Commit Graph

29274 Commits

Author SHA1 Message Date
Yuliya Kamatkova
4d5b0be481 Merge "Restrict visibility of LOCUS_ID_SET events." 2020-02-13 01:05:09 +00:00
Siarhei Vishniakou
b0f1fe887a Merge "New VerifiedInputEvent api" 2020-02-12 22:55:00 +00:00
Zach Johnson
c425dc2958 Merge "Revert "Require user pass in a non-null BluetoothDevice to all B..."" 2020-02-12 21:39:47 +00:00
Yuliya Kamatkova
fea62a512b Restrict visibility of LOCUS_ID_SET events.
UsageStats will not return LOCUS_ID_SET events to callers
of #queryEvents and #queryEventsForUser if they don't have visibility.

Bug: 148821246
Test: manual, atest tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest
Change-Id: Ic904a97e66775ef63bc8b84e67e8f430b2a4121b
2020-02-12 11:20:22 -08:00
TreeHugger Robot
0fe79c3fe2 Merge "Revert "System API used by telephony to bind to WapPushManager app."" 2020-02-12 18:23:59 +00:00
Automerger Merge Worker
e5bbdcfcf5 Merge "Include NetworkCapabilities and LinkProperties in DataStallReport." am: 3939d29c0b am: b3a0f10a8e am: 8a175acf37
Change-Id: Iae8c37ceeae1616b2b0edc43248e72f3de082f20
2020-02-12 17:50:39 +00:00
TreeHugger Robot
98a201dcd9 Merge "Finalize @SystemApi annotation for StatsFrameworkInitializer (retry)" 2020-02-12 17:36:49 +00:00
Cody Kesting
b3a0f10a8e Merge "Include NetworkCapabilities and LinkProperties in DataStallReport."
am: 3939d29c0b

Change-Id: If2157b0dd7d62560c77318b76e0d7d2a66c09644
2020-02-12 09:16:41 -08:00
Daniel Chapin
45fefe0f65 Revert "Require user pass in a non-null BluetoothDevice to all B..."
Revert "Pass in active device to all BluetoothA2dp APIs in packa..."

Revert "Pass in active device to all BluetoothA2dp APIs in packa..."

Revert submission 10253996-bt-a2dp-no-null

Reason for revert: b/149361880
Reverted Changes:
If43934374: Pass in active device to all BluetoothA2dp APIs in...
I22dd1ca36: Make sure calls to BluetoothA2dp APIs pass non-nul...
If6475af6f: Require user pass in a non-null BluetoothDevice to...
I9d0e2c89c: Pass in active device to all BluetoothA2dp APIs in...
I1faa6174d: Need to now pass in active device instead of null ...
I69a941a7e: Pass in active device to all BluetoothA2dp APIs in...

Change-Id: I297bda68da5023fd832201c485554d6bff05fa78
2020-02-12 17:16:10 +00:00
Anton Hansson
c6e0e28391 Merge "Add @Nullable and @NonNull to module API" 2020-02-12 16:55:31 +00:00
Cody Kesting
3939d29c0b Merge "Include NetworkCapabilities and LinkProperties in DataStallReport." 2020-02-12 16:38:38 +00:00
Automerger Merge Worker
23fa19dce9 Merge "Expose NETWORK_STACK permission for system and test API" am: 97c24fb167
Change-Id: I46ddde0f99b5444ca8ffc6df1adbcdc9b5317c35
2020-02-12 09:48:27 +00:00
Chiachang Wang
97c24fb167 Merge "Expose NETWORK_STACK permission for system and test API" 2020-02-12 09:28:24 +00:00
Kyunglyul Hyun
8239e3f35a Merge "MediaRouter2: Add group volume" 2020-02-12 08:20:50 +00:00
Automerger Merge Worker
b9e9fcbc88 Add a systemapi constructor for NetworkAgent am: 6dc9854996
Change-Id: I3fa3ec32d3c580ba0b7f2d515e08d27dd6af5bcd
2020-02-12 06:25:42 +00:00
Chalard Jean
7fa63afe6d Merge changes Ibc9b1965,I288ea32f
* changes:
  Fix invalid usage of javadoc
  Add a systemapi constructor for NetworkAgent
2020-02-12 06:10:32 +00:00
Chiachang Wang
d643862a46 Expose NETWORK_STACK permission for system and test API
NETWORK_STACK permission is used for system and test API
permission check which should also be system API. Expose
as it is.

Bug: 148379628
Test: make test-api-stubs-docs-update-current-api \
      system-api-stubs-docs-update-current-api

Change-Id: I87db8568f20f26eabf236f76a8e281a63bf25114
Merged-In: I27061280b0c49677fa651c6f9799e48b78e4c109
2020-02-12 13:44:23 +08:00
Jeff Sharkey
1758e2fb7a Merge "Add column for indexed XMP metadata." 2020-02-12 04:41:46 +00:00
TreeHugger Robot
1fc4966a00 Merge "Promote System APIs to also be Test APIs for Content Capture Data Sharing." 2020-02-12 03:27:40 +00:00
Adrian Roos
e8d7ecdbb1 Merge "Insets Animation: Add CancellationSignal to controlWindowInsetsAnimation" 2020-02-12 02:45:41 +00:00
TreeHugger Robot
07e850a979 Merge "Add new permission / appop for reading loader data" 2020-02-12 01:56:31 +00:00
Makoto Onuki
553df30582 Finalize @SystemApi annotation for StatsFrameworkInitializer (retry)
Change-Id: I3c8bce84fbdbe4e65ec430eb5046a1a46cc6fbfb
Fix: 148225705
Test: build / treehugger
2020-02-11 16:26:18 -08:00
Todd Kennedy
b0948d4cec Add new permission / appop for reading loader data
Bug: 148374455
Test: Manual
Test: Create three packages; 1) only request PACKAGE_USAGE_STATS, 2) only request LOADER_USAGE_STATS, 3) request both
Test: Go to Settings -> Apps & Notifications -> Special app access
Test: See that there is only a single entry for "Usage access"
Test: Under "Usage access", see all three test apps appear
Test: Disable access for each application and verify that only the appop for the declared permisson is flipped using
Test: adb shell cmd appops get <<PACKAGE_NAME>>
Test: atest CtsPermission2TestCases
Change-Id: I7741a703fd4494832347e51e113adf974cc31d2b
2020-02-11 15:46:43 -08:00
TreeHugger Robot
f0c72dd6ba Merge "Fix: Use super Builder class for TsFilterConfiguration" 2020-02-11 23:44:07 +00:00
Sergey Volnov
0115ede5b4 Promote System APIs to also be Test APIs for Content Capture Data
Sharing.

This is to be able to test them with CTS suite.

Bug: 145205247
Test: built Android, CTS is coming.
Change-Id: I28cc804be06ee3adbfd1e139803eed2ab10715ca
2020-02-11 23:29:07 +00:00
TreeHugger Robot
fa65b021e4 Merge "Invert the DONT_AUTO_REVOKE permission flag" 2020-02-11 22:58:18 +00:00
Adrian Roos
3406fb97f4 Insets Animation: Add CancellationSignal to controlWindowInsetsAnimation
Fixes an API deficiency where the request to control the animation
could not be cancelled until it has succeeded (or failed). To address that,
we return a CancellationSignal.

Bug: 143556682
Test: make checkapi; atest InsetsControllerTest
Change-Id: I03d1bcc7013c10d2deac7b1059b99894b7103230
2020-02-11 14:50:22 -08:00
Sasha Kuznetsov
db44f628cd Merge "Revert^2 "Add GnssAntennaInfo framework APIs" + added fixes" 2020-02-11 22:29:33 +00:00
Soonil Nagarkar
77a9227b19 Fix work profile handling across location
There were a couple problems with work profile state in location. First,
we assumed that notifications sent to parent users would also be sent to
profiles but this is not true. Second we had assumed location status in
profiles was always identical to the parent user, but work profiles may
have user restrictions applied which are not present on the parent user.
The easiest way to handle these issues seems to be to expand LMS user
handling to deal with all users, rather than making various assumptions
which may or may not be true.

This also means we need to store last locations on a per profile basis.
Since we're refactoring how last location works completely, we also
removed the special NO_GPS handling for last locations. With the new
permission strings we now no longer have to exclude gnss based location
from coarsening. This lets us:

1) deprecate and remove various constants and methods use for storing
coarse locations tied to fine locations
2) substantially simplify code that calculated coarse location

This also exposed numerous bugs in the location service where we were
using the current user's state instead of the calling user's state,
which could have exposed the current user's location to other users
inappropriately.

Bug: 148798374
Bug: 146071833
Test: presubmits + manual
Change-Id: I2d3216a9fb58b73d0124d563b05de8870b70b716
2020-02-11 14:04:39 -08:00
TreeHugger Robot
4ea476c9c8 Merge "AudioManager: listener for changes to preferred device for strategy" 2020-02-11 21:55:08 +00:00
Matt Pietal
a3ef50bcce Merge "Controls API - New method for suggested controls" 2020-02-11 21:37:11 +00:00
TreeHugger Robot
e8759cc707 Merge "Deprecate Gps* APIs" 2020-02-11 21:31:50 +00:00
Automerger Merge Worker
c1363ad2b9 Merge "Add HomeVisibilityObserver APIs in ActivityManager." am: cb47d86158
Change-Id: Ib48d687e8da2941fa3385aa5066e4d490b1d3ad8
2020-02-11 21:10:48 +00:00
Automerger Merge Worker
e92242378e Merge changes I7099048c,If6965979 am: fd46f62892
Change-Id: Ida71dbbdc2d608d551e5e05483f5beea3a294f65
2020-02-11 21:09:50 +00:00
Automerger Merge Worker
6078c8641f Make Telephony to Setting notification @SystemApi am: 7c5e823965
Change-Id: Ia88cfa333168b383a2b894165bf7ab8dcdd99021
2020-02-11 21:09:42 +00:00
Xiangyu/Malcolm Chen
cb47d86158 Merge "Add HomeVisibilityObserver APIs in ActivityManager." 2020-02-11 21:00:16 +00:00
Xiangyu/Malcolm Chen
fd46f62892 Merge changes I7099048c,If6965979
* changes:
  Expose RESULT_RECEIVER_CONTROLLER_KEY as @SystemApi.
  Make Telephony to Setting notification @SystemApi
2020-02-11 20:59:52 +00:00
TreeHugger Robot
14e6a15b45 Merge "Access to Device Vibrator State" 2020-02-11 20:13:08 +00:00
Automerger Merge Worker
1a9afb726f Merge "Move the UCE APIs to @hide for Android R" am: c71b27c2d5 am: 7af40d3a38 am: 79fe675703
Change-Id: I2a505428fe16680e07bb6d5545c44f8ffc129c62
2020-02-11 18:02:20 +00:00
Automerger Merge Worker
7af40d3a38 Merge "Move the UCE APIs to @hide for Android R" am: c71b27c2d5
Change-Id: I5280fa2744925812c17e7807a4e63a6874183706
2020-02-11 17:37:32 +00:00
Jean-Michel Trivi
8d64ebb8b3 AudioManager: listener for changes to preferred device for strategy
Add a listener for being notified when the preferred audio device
for an audio strategy changes.

Bug: 148566862
Bug: 144440677
Test: atest AudioServiceHostTest#testPreferredDeviceRouting
Test: atest AudioServiceHostTest#testDevicesForAttributes
Change-Id: Iff47d6bc7f4bd18c3a8fe48557acf803a4059630
2020-02-11 09:20:47 -08:00
Brad Ebinger
c71b27c2d5 Merge "Move the UCE APIs to @hide for Android R" 2020-02-11 17:18:20 +00:00
Cody Kesting
7064b5c25a Include NetworkCapabilities and LinkProperties in DataStallReport.
DataStallReport is updated to include the NetworkCapabilities and Link
Properties for the Network being reported on. This provides a more
complete picture of the Network conditions when the suspected data stall
was detected.

Bug: 148966398
Test: atest FrameworksNetTests
Change-Id: I913cf18c348b9f688f9d2a3d25a71bc94eb8f000
2020-02-11 08:50:59 -08:00
TreeHugger Robot
456ffd240f Merge "Two API changes:" 2020-02-11 10:13:19 +00:00
Chalard Jean
6dc9854996 Add a systemapi constructor for NetworkAgent
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
      make doc-comment-check-docs
Change-Id: I288ea32fac07a9a486e2ea451a2c9b098446a74c
Merged-In: I288ea32fac07a9a486e2ea451a2c9b098446a74c
2020-02-11 16:26:10 +08:00
Sasha Kuznetsov
a68a7a3d23 Revert^2 "Add GnssAntennaInfo framework APIs" + added fixes
fef9247572

Test: End to end test: run "atest GnssAntennaInfoRegistrationTest" on cuttlefish and watch "adb logcat | grep -i GnssAntennaInfo". Other tests:  atest GnssAntennaInfoTest, atest GnssAntennaInfoProviderTest, atest GnssManagerServiceTest, atest VtsHalGnssV2_1TargetTest, atest LocationManagerFineTest.
Bug: 124556515
Change-Id: Ie1a8a60b9d7b9b95335bc84118639e33e0784ca1
2020-02-11 07:52:56 +00:00
Kyunglyul Hyun
5161b37e62 MediaRouter2: Add group volume
Add session volume or group volume info into RoutingSessionInfo.
Group volume can be controlled by MediaRouter2 or MediaRouter2Manager.

This CL includes minor clean up for CTS and MediaRouter2Manager.

Bug: 148994658
Bug: 149200358
Test: atest android.media.cts.MediaRoute2InfoTest
  && atest android.media.cts.MediaRouter2Test
  && atest android.media.cts.RouteDiscoveryPreferenceTest
  && atest android.media.cts.RoutingSessionInfoTest
  && atest android.media.cts.MediaRoute2ProviderServiceTest
  && atest mediaroutertest

Change-Id: If1d3aaae604a3c23d504e620ddb2bd2ffb260602
2020-02-11 16:12:12 +09:00
Yu-Han Yang
eb1ae5b6bc Merge "Revert "Add GnssAntennaInfo framework APIs"" 2020-02-11 04:16:46 +00:00
Yu-Han Yang
fef9247572 Revert "Add GnssAntennaInfo framework APIs"
Revert "Add GnssAntennaInfo tests"

Revert submission 10111057-pco_pcv

Reason for revert: Build breakage
Reverted Changes:
I70e4014dd:Add GnssAntennaInfo framework APIs
I072958ecb:Add GnssAntennaInfo tests
Ia63a1f502:Add GnssAntennaInfo to HAL

Change-Id: I1934b1061737b417bb903f592c8f51cc65523747
2020-02-11 04:02:18 +00:00
Sasha Kuznetsov
1f11233375 Merge "Add GnssAntennaInfo framework APIs" 2020-02-11 02:54:40 +00:00