Commit Graph

468813 Commits

Author SHA1 Message Date
Sudheer Shanka
e9232d6d6f Update BlobStoreMS to augment storage stats with blobs data.
- Any pending sessions data is attributed to the apps
  which contributed them.
- Any commited blobs data is attributed to the app which
  has a lease on it. If multiple apps have lease on a blob, don't
  attribute the blob to those apps for now.
- Remove StorageStatsAugmenter.augmentStatsForUser as it
  is not used for anything currently.
- Fix an issue in how we override existing committers and leasees.

Bug: 148694869
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Test: atest tests/tests/os/src/android/os/storage/cts/StorageStatsManagerTest.java
Test: atest hostsidetests/appsecurity/src/android/appsecurity/cts/StorageHostTest.java
Test: manual
Change-Id: Ia4af0a2549c75db66741f2d1979de95d2d150bc8
2020-02-19 14:45:12 -08:00
Automerger Merge Worker
8780085add Merge "DO NOT MERGE Have volume UI dismiss on home button press." into qt-qpr1-dev am: 40e124cac9
Change-Id: I729fb4e9b0039da94efe48bd072a715c073b9a4e
2020-02-19 22:43:35 +00:00
Automerger Merge Worker
e5eca9739d DO NOT MERGE Have volume UI dismiss on home button press. am: 25400fdcb9
Change-Id: I41f3e4167c097ee1df5ef5fd4d07932967995b33
2020-02-19 22:43:28 +00:00
Julia Reynolds
9d93649bad Merge "Be more strict about what sounds can play in DND" 2020-02-19 22:42:46 +00:00
Khaled Abdelmohsen
41456aa99c Create rule atom for source stamp
Bug: 149200249
Test: atest FrameworksCoreTests:IntegrityFormulaTest
Change-Id: I8a5ca33e8b2b125a8b7bc178557b7689c0eab50d
2020-02-19 22:41:16 +00:00
Soonil Nagarkar
3819f972df Revert requestSetProviderEnabled API
Bug: 144955780
Test: presubmits
Change-Id: Iec8520acfd98b9d9d92a4876ebfa899ac2a0731e
2020-02-19 14:39:58 -08:00
Automerger Merge Worker
83d8de2f15 Merge "Make get/setCallerNumberVerificationStatus final." am: 4cbb288657 am: 329d286b88
Change-Id: I2120367071a694f93c61e6c0df9945404f012373
2020-02-19 22:37:40 +00:00
Feng Cao
6c821f6ea1 Merge "Introduces the Bundle to inline suggestions APIs to encode custom UI styling information." 2020-02-19 22:35:42 +00:00
TreeHugger Robot
40e124cac9 Merge "DO NOT MERGE Have volume UI dismiss on home button press." into qt-qpr1-dev 2020-02-19 22:31:25 +00:00
Automerger Merge Worker
9a715bc428 Merge "Add carrier config to skip validation if recently validate." am: beb963fbc2 am: ebf5f1d4f3
Change-Id: Ia77f66ae22b6657fa0c5d09b678cf1a810c3c00a
2020-02-19 22:29:37 +00:00
Sasha Kuznetsov
b6b9848b3a Update constellation types in measurement corrections
Bug: 147504090
Test: atest VtsHalGnssV2_1TargetTest and manually injecting dummy
measurement corrections from GnssLocationProvider and verifying that
they are received below the HAL (on a cuttlefish implementation)

Change-Id: I320c7b8cdf6c919f3b23e3454009b5b9eeceea26
2020-02-19 14:28:19 -08:00
Evan Severson
43b2a199ab Add method to give a permission revoke a reason
Test: Compile
Bug: 149861310
Change-Id: I865a300a9795550a2549f928f4e967b2b695439e
2020-02-19 14:23:56 -08:00
Automerger Merge Worker
329d286b88 Merge "Make get/setCallerNumberVerificationStatus final." am: 4cbb288657
Change-Id: I734a658b5849cc5bca14d1b7fbc7509971774ce0
2020-02-19 22:23:34 +00:00
Michael Groover
117da2461a Merge "Update the getIccId docs to reflect access requirements" 2020-02-19 22:22:45 +00:00
Automerger Merge Worker
ebf5f1d4f3 Merge "Add carrier config to skip validation if recently validate." am: beb963fbc2
Change-Id: Ie918c367e4aaa3e2bcb9e7c86093e6ea43fa7320
2020-02-19 22:19:01 +00:00
Automerger Merge Worker
7995915661 Merge "RingtoneManager: Don't crash if the ringtone doesn't have a numerical ID" am: ff78aab391 am: 0396aae65b am: ac23b2292d
Change-Id: Id6d7ff358769c86fab311b5b1161e8916169212e
2020-02-19 22:17:45 +00:00
Sudheer Shanka
3e66066440 Merge "Don't error out if the index files are not available." 2020-02-19 22:17:22 +00:00
Dave Mankoff
cb45d588e1 RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing
This allows new phones to use a sensor with a different
theshold when attempting to determine the devices proximity
to surfaces.

Bug: 149420648
Test: manual
Change-Id: Iee8568f7d9f58359dc1e72fd195a42abeaf2ddf3
2020-02-19 17:16:35 -05:00
Automerger Merge Worker
ed67786e6b Merge "Consume health HAL 2.1 values from framework" am: 217aadd0c2 am: 28c43860ea am: 8f9d77ae03
Change-Id: I60f9cee5e0ba74349a0448204b0e31d213151e5f
2020-02-19 22:16:25 +00:00
Winson Chiu
633cd037f7 Merge changes from topics "package-parsing-v2.1", "parsing-parsed-package-split"
* changes:
  Remove AndroidPackageWrite
  Migrate to new ParsedComponents and ParseResult
  Split ParsedComponents
  Add ParseResult infrastructure
  ParsingPackage/ParsedPackage test code migration
  ParsingPackage/ParsedPackage split source migration
  Important migration for new ParsingPackage/ParsedPackage split
  Separate ParsingPackage into core and ParsedPackage into server
2020-02-19 22:16:15 +00:00
Automerger Merge Worker
d3e581f7c6 [automerger skipped] Merge "Add encoding information to TvTrackInfo" am: f3681741e3 am: e982fa4084 am: 9764563966 -s ours
am skip reason: skipped by user nchalko

Change-Id: Ibfc92e45b9b1cf22346b198b75611fcb1732de7c
2020-02-19 22:15:32 +00:00
Jeffrey Huang
89e09b58d6 Migrate Statsd to the apex
Bug: 145923087
Test: m -j
Change-Id: Ib4ea98aedef629dd9a2a8764cfd91284a38ba596
2020-02-19 14:13:13 -08:00
Igor Murashkin
c4156d8da7 Merge "pinner: Replace camera pinning with iorap prefetching" 2020-02-19 22:10:40 +00:00
Bohdan Petrivskyy
7f1264e629 Merge "Removes redundant @SystemApi for registerMonitorCallback and from MONITOR_DEVICE_CONFIG_ACCESS permission declaration." 2020-02-19 22:07:00 +00:00
Tyler Gunn
4cbb288657 Merge "Make get/setCallerNumberVerificationStatus final." 2020-02-19 22:03:52 +00:00
Beth Thibodeau
57bda3c2fa Merge "Adding unit tests" 2020-02-19 22:03:45 +00:00
Yurii Zubrytskyi
df7c050e16 Add a version field to the v4 signature file format
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest
Bug: b/136132412 b/133435829
Change-Id: I09fd36eb5914f59d63c5c244e34db75aa4f43639
2020-02-19 14:03:23 -08:00
Qasid Ahmad Sadiq
88d52e8ca6 Make me an owner of accessibility frameworks
Test: Relying on treehugger. No functional changes.
Change-Id: If0e88345001ec286bd0a9a01314dba53e45dc6ac
2020-02-19 14:02:07 -08:00
Philip P. Moltmann
41ace3ba24 Revert "Revert "Add feature ids to system server services that requset location.""
This reverts commit 8fe72a21f1.

Reason for revert: Fixed issue that caused the revert, now fine for re-submit

Change-Id: Iaaeb9e937e336f4d08d761bf4ce343de0f8acf27
2020-02-19 21:49:15 +00:00
Abhijoy Saha
ec95199f43 Have volume UI dismiss on home button press.
Register a receiver that listens for Intent.ACTION_CLOSE_SYSTEM_DIALOGS
and dismisses the volume UI when such an intent is received.

Bug: 149228466
Test: Manual
Change-Id: Iabb706b1d4cc54cb84f228aad95bfdb7e6f75851
2020-02-19 13:48:58 -08:00
TreeHugger Robot
205a16abfb Merge "Move inflation-related NEM tests to their own file" 2020-02-19 21:47:57 +00:00
Abhijoy Saha
25400fdcb9 DO NOT MERGE Have volume UI dismiss on home button press.
Register a receiver that listens for Intent.ACTION_CLOSE_SYSTEM_DIALOGS
and dismisses the volume UI when such an intent is received.

Bug: 149228466
Test: Manual
Change-Id: Iabb706b1d4cc54cb84f228aad95bfdb7e6f75851
2020-02-19 13:44:11 -08:00
Xiangyu/Malcolm Chen
beb963fbc2 Merge "Add carrier config to skip validation if recently validate." 2020-02-19 21:43:46 +00:00
Beth Thibodeau
75bda2bf30 Adding extras for output switcher slice
Fixes: 149527489
Test: tapped output switcher from controls, now shows media info
Change-Id: I26206fd3804e7d00561994bba75b31cea7942daa
2020-02-19 16:42:22 -05:00
Shuo Qian
ad7a410364 Add VDBG for CellSignalStrengthLte, and CellSignalStrengthNr
Test: Manual; treehugger;
Bug: 146498052
Bug: 147439337
Change-Id: I37acc63fa3a10aaa21db987980becc57b5365e5c
Merged-In: I37acc63fa3a10aaa21db987980becc57b5365e5c
(cherry picked from commit 8ed9b2b2d7)
2020-02-19 13:41:36 -08:00
Danning Chen
6fb9750619 Keep the event information in EventIndex for at most 63 days instead of 64 days
Bug: 149758587
Bug: 146522621
Test: atest com.android.server.people.data.EventIndexTest
Change-Id: I0cae2a5c958d88aab9f76a7ee198fc2e6d69971c
2020-02-19 21:40:06 +00:00
David Su
740e68c2ae Verbose Logging: Add maxTargetSdk
Add maxTargetSdk = Q for @UnsupportedAppUsage
Wifi Verbose Logging APIs. Callers on Android R+
should use formal @SystemApi's.

Bug: 148967842
Test: compiles
Change-Id: I27798f2ae97f07c3452e13ff8f82fdc90b36298d
2020-02-19 13:37:39 -08:00
Sudheer Shanka
f462373a9b Merge "Don't hold any locks while computing the blob digest." 2020-02-19 21:36:26 +00:00
Rambo Wang
8a54f49ba6 Expose DataFailCause as public API
API Council requests to add document for public API getLastCauseCode()
which return DataFailCause constants. DataFailCause constants are widely
used in system to report data connection failure code. But currently it
is system and hide API.

By opening DataFailCause, we can have better javadoc for both system and
public APIs. This also benefits applications that need to refer to the
consistent data connection failure code.

Bug: 147804257
Test: atest com.android.internal.telephony.dataconnection.DataFailCauseTest
Change-Id: I27bc1d88ba0e7b25fe8f032df1f4d14b805a68bf
2020-02-19 13:25:55 -08:00
Nate Myren
8f842ae786 Merge "Add Auto Revoke Enabled settings constant" 2020-02-19 21:18:36 +00:00
Nikita Dubrovsky
37f4c72a28 Merge "Update cursor drag to snap the finger position to the handle + add slop" 2020-02-19 21:18:13 +00:00
Julia Reynolds
23c9b1f27e Fix flaky test
Test: this
Fixes: 149846720
Change-Id: I7087c7e21b8f29be2bdf0336da80a1f13926804a
2020-02-19 16:17:50 -05:00
TreeHugger Robot
80def30076 Merge "Dismiss bubbles into overflow" 2020-02-19 21:16:40 +00:00
Sudheer Shanka
5cbf9d6856 Merge "Allow usagestats for multiple pkgs to be dumped." 2020-02-19 21:14:18 +00:00
Hui Yu
aaaf256cc7 Always print mAllowWhileInUsePermissionInFgs in dumpsys
Also print mRecentCallingPackage for the most recent package
that start/bind this service.

Bug: 136219221
Test: adb shell dumpsys activity -a
Change-Id: I08bfab6459301383b7276708a0567d9289fb37e9
2020-02-19 13:10:14 -08:00
David Su
0792b12f99 Merge "CurrentTimeMillisLong: Move to framework-annotations" 2020-02-19 21:06:34 +00:00
Peter Collingbourne
da0524f0f6 Tethering: Don't crash if wifi unavailable.
r.android.com/1213016 seems to have caused the following crash on devices
without wifi:

FATAL EXCEPTION: main
Process: com.android.networkstack.process, PID: 1041
java.lang.RuntimeException: Unable to create service com.android.server.connectivity.tethering.TetheringService: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.net.wifi.WifiManager.registerSoftApCallback(java.util.concurrent.Executor, android.net.wifi.WifiManager$SoftApCallback)' on a null object reference
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4005)
	at android.app.ActivityThread.access$1500(ActivityThread.java:220)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1891)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:216)
	at android.app.ActivityThread.main(ActivityThread.java:7396)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:949)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.net.wifi.WifiManager.registerSoftApCallback(java.util.concurrent.Executor, android.net.wifi.WifiManager$SoftApCallback)' on a null object reference
	at com.android.server.connectivity.tethering.Tethering.<init>(Tethering.java:317)
	at com.android.server.connectivity.tethering.TetheringService.makeTethering(TetheringService.java:90)
	at com.android.server.connectivity.tethering.TetheringService.onCreate(TetheringService.java:81)
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:3993)

Fix it by null checking wifiManager before calling a method on it.

Bug: 142352330
Change-Id: I46e2f3053a59d3dba6a186a9eed34fa63b45d03e
2020-02-19 12:55:44 -08:00
evitayan
daeb328e32 Do not expose module IPsec(IKE) API from frameworks
Module IPsec(IKE) will not be in bootclasspath or expose API
from frameworks/base anymore. Instead it will be built as a
java_sdk_library and expose APIs under its own directory.

This commit:
- Removes API from frameworks/base
- Adds ike to FrameworksNetTests manifest so that VpnTest is
  able to load it.

Bug: 145995723
Test: build, flash, boot
Test: atest FramewokrsIkeTests (passed)
Test: m mts && mts-tradefed run mts-ipsec (passed)
Test: manually tested that FrameworksNetTests can use ike.jar
Change-Id: I37ba02eb3003ea28e66f50ca0b612597ef48f6d5
2020-02-19 12:55:25 -08:00
Leon Scroggins
658cd3ccff Merge "Switch to SharedElementCallback to HardwareBuffer" 2020-02-19 20:50:21 +00:00
Leon Scroggins III
25118818b6 Switch to SharedElementCallback to HardwareBuffer
Bug: 148155907
Bug: 135299581
Test: Covered by CTS

We plan to remove Bitmap#createGraphicBufferHandle. Call the new
Bitmap#getHardwareBuffer instead.

Change-Id: I0b3ada9636fcc00df82472ea9479eb0bfbcda9eb
2020-02-19 20:48:21 +00:00