Commit Graph

2604 Commits

Author SHA1 Message Date
Eran Messeri
9ac9fe53bf Merge "Address API review for admin-granted permissions" into sc-dev 2021-04-11 11:44:26 +00:00
Jimmy Shiu
4c6e5036b7 ADPF: PerformanceHintManager API implementation
Test: Manual test, run bouncy ball
Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest
Bug: 158791282
Change-Id: Ia0bf2b06675b8cf57cdf1668ee90e98026416439
Signed-off-by: Wei Wang <wvw@google.com>
2021-04-10 10:21:17 -07:00
Tianjie Xu
61647a6979 Merge "Expose error code for RoR reboot system API" am: d5547af728 am: 2cf5387b09 am: 133568e964
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1656644

Change-Id: I9cda23318ea0cab9c2e37e7a5967bed81a3188c7
2021-04-10 00:07:51 +00:00
Brad Ebinger
5d26ce4360 Merge "Rename closeDialog to cleanupSession" am: 0a99b6c48b am: 0eaa96b4e7 am: 6523cf73cb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1670485

Change-Id: Ibf58445e83e76ee13980ecd89d7919de676fd710
2021-04-10 00:06:27 +00:00
Suprabh Shukla
026ecf618a Merge "More changes for the exact alarm permission" into sc-dev 2021-04-09 22:27:50 +00:00
Tianjie Xu
d5547af728 Merge "Expose error code for RoR reboot system API" 2021-04-09 22:07:29 +00:00
Brad Ebinger
0a99b6c48b Merge "Rename closeDialog to cleanupSession" 2021-04-09 21:54:45 +00:00
Bhalchandra Gajare
65cadbe09f Merge "AudioAttributes: update setHotwordMode to setHotwordModeEnabled" into sc-dev 2021-04-09 19:30:52 +00:00
TreeHugger Robot
aeeed26dfc Merge "Allow overlaying default activity recognizer" into sc-dev 2021-04-09 19:30:49 +00:00
Brad Ebinger
913b325c8b Rename closeDialog to cleanupSession
The current name of SipDelegate[Connection]#closeDialog assumes
there will only be one SIP dialog per SIP session and does not
adequately cover the case where a SIP INVITE has forked and
generated multiple dialogs for the same call-id.

Instead, rename closeDialog to cleanupSession, which is more
accurate and should be called after all SIP dialogs associated
with the SIP session represented by the call-id have closed.

Bug: 184858064
Test: atest CtsTelephonyTestCases
Change-Id: I438dbc45dffbaf33e0cf36ddc61008fd8c18209c
2021-04-09 19:28:10 +00:00
Mady Mellor
3c0890601d Merge "API feedback: setSuppressableBubble/setSuppressBubble" into sc-dev 2021-04-09 17:49:12 +00:00
Svet Ganov
23d824eca1 Allow overlaying default activity recognizer
bug: 179069158

Test: N/A

Change-Id: I177831019a63e952b96a01aafc5c649e2b96da55
2021-04-09 17:37:43 +00:00
Gavin Corkery
072ef5624b Merge "Move REBOOT_READY broadcast into android.scheduling" into sc-dev 2021-04-09 17:17:38 +00:00
Svetoslav Ganov
ae4d48ebec Merge "Add AR intent to ingest exempt attribution tags" into sc-dev 2021-04-09 15:31:00 +00:00
Svet Ganov
0d6d9f972e Add AR intent to ingest exempt attribution tags
bug: 179069158

Test: atest CtsActivityRecognitionTestCases

Change-Id: I3fa454351a586cc5d408217a2c1382048e6031e4
2021-04-09 15:29:18 +00:00
Sergey Volnov
427ab9d056 Merge "Introduce additional error codes for better language handling." into sc-dev 2021-04-09 12:57:41 +00:00
Kriti Dang
7e6abece7d Merge "Adding unknown constant to AudioManager ENCODED_SURROUND_OUTPUT mode constants" into sc-dev 2021-04-09 12:51:31 +00:00
Sergey Volnov
8aeb16cd18 Introduce additional error codes for better language handling.
Additionally, address minor feedback from API council regarding errors
and documentation.

Test: N/A, adding constants
Bug: 176578753
Bug: 183427999
Change-Id: I46358373e8d562cb829ff44232252d26bb5acda4
2021-04-09 11:31:23 +01:00
Bhalchandra Gajare
ab5fedc682 AudioAttributes: update setHotwordMode to setHotwordModeEnabled
Update setHotwordMode to setHotwordModeEnabled and set/clear the hotword
mode based on the boolean flag passed to setHotwordModeEnabled. This is
to meet the API requirements. Also update the references to this API.

BUG: 180419637
Test: Able to setHotwordModeEnabled from AGSA application. Confirmed
HAL receives the flag and audioSource correctly in open_input_stream.

Change-Id: Ia01e8b5f3edaeafc9617846efc247635005456a8
2021-04-09 02:29:42 -07:00
Jeff Sharkey
7627719334 Merge "New BLUETOOTH_ADVERTISE manifest permission." into sc-dev 2021-04-09 05:22:23 +00:00
TreeHugger Robot
0a0ddadab5 Merge "usb: Address some API review comments" into sc-dev 2021-04-09 05:14:47 +00:00
Jeff Sharkey
6dcac06a84 New BLUETOOTH_ADVERTISE manifest permission.
This change is part of defining a distinct BLUETOOTH_ADVERTISE
permission to guard the BluetoothLeAdvertiser APIs, since that's a
distinct enough of an operation from SCAN and CONNECT.  It'll
continue to be covered under the general "Nearby devices" runtime
permission group.

Bug: 181813006
Test: atest CtsPermission2TestCases
Test: atest CtsPermission3TestCases
Change-Id: I8b62e4d625df1e201f12a73025cd29c431feea79
2021-04-08 20:15:02 -06:00
Treehugger Robot
b3cbeb79a2 Merge "UWB: Add Reason to onRangingStop()" 2021-04-09 01:33:40 +00:00
Remi NGUYEN VAN
6c9d7a5c75 Merge "Replace IS_DEBUGGABLE with isDebuggable module API" am: ba77876dbd am: 4290766ae7 am: 116bab20ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1667304

Change-Id: I3a64653b1a9cb283ba04d4c5a363d3b44fa7b987
2021-04-09 01:30:00 +00:00
Tianjie
559ed7f0f0 Expose error code for RoR reboot system API
The clients of resume on reboot want additional information for
reboot failures, so they can handle these failures better.
Therefore expose the reboot failure error code via SystemApi.

Bug: 183646725
Test: atest FrameworksServicesTests:RecoverySystemServiceTest;
      Do an RoR with gmscore
Change-Id: Ia02655218194a070ce02e9dae6fd62e19259c9f9
2021-04-08 17:54:29 -07:00
Remi NGUYEN VAN
ba77876dbd Merge "Replace IS_DEBUGGABLE with isDebuggable module API" 2021-04-09 00:19:19 +00:00
Suprabh Shukla
38d5d66c80 More changes for the exact alarm permission
Adding a deny list option, which changes the default grant state of the
permission to denied. This means now alarm manager is the source of
truth of the permission state and exposes an API that clients like
Settings should call.
Also using the same API to cap the minimum standby-bucket
for apps with this permission to WORKING_SET.

Adding an app to the deny list may mean revocation of its permission, in
which case its exact alarms will be removed.
Meanwhile, performed some long needed refactoring on the remove methods,
so they re-use common code and are easier to maintain.

Also, changing strings for the Settings UI to be clearer.

Test: atest FrameworksMockingServicesTests:com.android.server.alarm
atest CtsAlarmManagerTestCases

Bug: 171306433
Bug: 130444055
Bug: 181894091
Bug: 181152252
Change-Id: I9410f988343800b7322963fecf3eafac9561b093
2021-04-08 14:15:28 -07:00
TreeHugger Robot
44763d1b5b Merge "Deprecate unuses installer auto revoke whitelist api" into sc-dev 2021-04-08 21:14:38 +00:00
Mady Mellor
4da856e1ef API feedback: setSuppressableBubble/setSuppressBubble
Apps can't actually suppress the bubble, that is only
done by the system so that method is @hide.

Did a similar thing for setSuppressNotification for
consistency.

Test: atest NotificationManagerTest (see CTS CL)
Bug: 184204395
Change-Id: Ia17453507daf5bba4408bd6b386efa225c3051dd
2021-04-08 19:26:14 +00:00
Svetoslav Ganov
64b26b5c49 Merge "Activity recognition source app op tracking" into sc-dev 2021-04-08 18:34:58 +00:00
Treehugger Robot
41069eb17e Merge "Keystore 2.0 SPI: Make getAttestationIds return an empty array." am: 1f82f476c0 am: cf64e636a8 am: 1a4f20ceac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1664321

Change-Id: I8c1146a0b86cfca21bf9f3e837b4315cca3d5f86
2021-04-08 18:14:54 +00:00
Treehugger Robot
1f82f476c0 Merge "Keystore 2.0 SPI: Make getAttestationIds return an empty array." 2021-04-08 16:26:44 +00:00
Thierry Strudel
e7edb005c5 Merge "UWB: Add Reason to onRangingStop()" into sc-dev 2021-04-08 16:20:12 +00:00
Sunny Goyal
283beee225 Merge "Updating AppWidgetProviderInfo API" into sc-dev 2021-04-08 16:19:05 +00:00
Andy Hung
b20bc56206 Merge "Audio: Add ENCODING_DTS_UHD" into sc-dev 2021-04-08 15:49:53 +00:00
Sahana Rao
1e98cff664 Merge "Rename requestOptimizedExternalStorageAccess to more precise name" into sc-dev 2021-04-08 15:42:12 +00:00
Kriti Dang
98fdb2616e Adding unknown constant to AudioManager ENCODED_SURROUND_OUTPUT mode constants
Bug: 184044740
Test: atest AudioManagerTest
Change-Id: I806df4aac6fbab5f32f66a7deac67ae8f71e3fdd
2021-04-08 15:01:55 +02:00
Harpreet "Eli" Sangha
bfc70149cf Merge "UWB: Annotate DistanceMeasurement Parameters" am: 159a635593 am: b2a10a7811 am: a647964125
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1666840

Change-Id: I893fbffddc10e92c9cd902f14fa91a288f4d7fdd
2021-04-08 07:56:25 +00:00
Paul Hu
3347a6c3db Merge "Move ACTION_CLEAR_DNS_CACHE to ConnectivityManager" am: ed4117ff40 am: d40e17099f am: 52b8921820
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1667080

Change-Id: I5fd350d67065211b84dbea769d258daff9780276
2021-04-08 07:48:14 +00:00
Harpreet "Eli" Sangha
159a635593 Merge "UWB: Annotate DistanceMeasurement Parameters" 2021-04-08 06:04:54 +00:00
Remi NGUYEN VAN
b5f095ebf0 Replace IS_DEBUGGABLE with isDebuggable module API
Introduce a Build.isDebuggable() getter instead of the IS_DEBUGGABLE
static member.

Also make it module API as APK modules now have access to module APIs in
S, but also TestApi so it can be tested.

Test: m
Fixes: 182345786
Change-Id: I25d0848aee758792bbaba8ab73b5dd997a7250b3
2021-04-08 13:50:31 +09:00
Paul Hu
ed4117ff40 Merge "Move ACTION_CLEAR_DNS_CACHE to ConnectivityManager" 2021-04-08 01:10:44 +00:00
Kholoud Mohamed
45dc22e11c Merge "Add set/verify lock credentials testAPIs in KeygyardManager" into sc-dev 2021-04-08 00:38:36 +00:00
Adam He
f9af9bde4a Merge "Remove api TranslationResponse.Builder.setTranslationStatus(), repeat of the Builder ctor." into sc-dev 2021-04-07 23:14:34 +00:00
Janis Danisevskis
464e6c415f Keystore 2.0 SPI: Make getAttestationIds return an empty array.
getAttestationIds shall return an empty array instead of null.

Bug: 184026478
Test: N/A
Change-Id: I6c6233fa50a83cf7d6354d2783525704a3b39d0d
2021-04-07 14:38:57 -07:00
Pierre Barbier de Reuille
d26a0b7b2b Merge "Replace RemoteViews#setViewId with a constructor" into sc-dev 2021-04-07 20:20:37 +00:00
Eugene Susla
ef3dc74a53 Deprecate unuses installer auto revoke whitelist api
Bug: 181344542
Test: presubmit

Change-Id: Ie5032e09cfe426a7611534afc4c7b4fac531018b
2021-04-07 12:45:09 -07:00
TreeHugger Robot
dcc1a906cf Merge "OOB: Implement generateLocalOutOfBand API" into sc-dev 2021-04-07 19:32:23 +00:00
Eran Messeri
1663624e5d Address API review for admin-granted permissions
Address API review for changes related to admin-granted permissions:
* Change the provisioning extra to indicate it only affects
  sensors-related permissions.
* Add an IntDef for the AdminPermissionControlParams grant state.

Bug: 184204476
Bug: 184204334
Test: atest ManagedProvisioningTests
Change-Id: I75c8b6de1e897e02916b17f0ae3a521f8384c242
2021-04-07 19:03:44 +01:00
Marcus Hagerott
d05767a0af Merge "Improve SimPhonebookContract javadocs and qualifiers" am: e738f2f211 am: 77c1d68aa4 am: 38ff81afb3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1649647

Change-Id: Ie046dd362b2b0c91ce7dfa6faa02e0c6d1741bdc
2021-04-07 17:08:07 +00:00