Commit Graph

8101 Commits

Author SHA1 Message Date
Manjeet Rulhania
9ae00a02ad Merge "Add health connect read/write app-op" 2022-11-15 05:42:30 +00:00
Jim Sun
2bbc86235f Merge "Create module-specific Hal versions" 2022-11-15 00:02:39 +00:00
Automerger Merge Worker
0077f82b7b Merge "Merge "ServiceManager APIs for Remote Key Provisioning mainline module." am: 81c4fd8041 am: 0dda81576c" into tm-qpr-dev-plus-aosp am: 3966b14282
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2299820

Change-Id: Icf1bde247713c6b71f3f235d4598b6693ed416ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 22:25:29 +00:00
TreeHugger Robot
a9a29f94dd Merge "UM.isUserTypeEnabled @TestApi" 2022-11-14 22:23:46 +00:00
Daniel Norman
9650e7a388 Merge "Introduce A11yService#takeScreenshotOfWindow()" 2022-11-14 21:45:11 +00:00
Vikram Gaur
0dda81576c Merge "ServiceManager APIs for Remote Key Provisioning mainline module." am: 81c4fd8041
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2299820

Change-Id: Ifd1b61af5be088fcb6695110e73561f67a82052c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 21:09:08 +00:00
Daniel Kim
ba16af7804 Merge "Update the proximity feature to return proximity levels" 2022-11-14 19:02:44 +00:00
Thomas Stuart
6c82da4184 Merge "telecom-bluetooth DND bug" 2022-11-14 17:43:44 +00:00
jimsun
a4c9bc8003 Create module-specific Hal versions
Bug: 243072871
Test: cts test
Change-Id: Ib4bd4e42677b6d506a509a0097b86dd4a9acb012
2022-11-15 00:09:45 +08:00
Martynas Petuška
88275cca27 Merge "wipeData/wipeDevice API!" 2022-11-14 11:20:07 +00:00
Ziqi Chen
ae9337c1d0 Merge "Introduce FontStyle.FONT_WEIGHT_UNSPECIFIED constant" 2022-11-14 07:22:01 +00:00
Manjeet Rulhania
fdf43f3d27 Add health connect read/write app-op
Bug: 248587258
Test: manual
Change-Id: I19c35fde65677abd1a852971d1dae9ad12781373
2022-11-14 05:40:30 +00:00
TreeHugger Robot
1cf9181815 Merge "API review: Spell out subscription" 2022-11-14 00:43:50 +00:00
Daniel
2419ded7bb Update the proximity feature to return proximity levels
The original proximity feature which returned the distance in meters was
determined to be too privacy-invasive. AttentionManagerService continue
to receive proximity in distance from Attention Service, but
HotwordDetectedResult will map it
to different proximity levels, near and far. These proximity levels will be used in HotwordDetectionConnection. Use a RequiredServiceRule to make sure we only run the test if the device has the attention service

Bug: 253326426
Test: atest CtsVoiceInteractionTestCases
Change-Id: I4d55564c39d48dd1869d747beb37f81170c102f6
2022-11-14 00:21:23 +00:00
Gaurav Bhola
14fed442be Merge "Add the systemOverlays() method" 2022-11-12 22:50:29 +00:00
Roshan Pius
330e227208 Merge "Implement DISALLOW_ULTRA_WIDEBAND_RADIO AE user restriction" 2022-11-12 16:04:06 +00:00
Martynas Petuška
faab3ea858 wipeData/wipeDevice API!
Bug: 242193913
Test: Trigger wipeData via TestDPC

Change-Id: I1f03fe90b960e8a464aee0041d2514894cdb8495
2022-11-12 11:24:09 +00:00
Sewook Seo
0f461bf427 Merge "Guide transport type for emergency connection" 2022-11-12 07:59:33 +00:00
Zeyin Wu
f1caff72f0 Merge "Add Accessibility API for rate-limiting CONTENT_CHANGE_TYPE* events" 2022-11-12 03:42:32 +00:00
Vikram Gaur
81a458a73c ServiceManager APIs for Remote Key Provisioning mainline module.
ServiceManager.getDeclaredInstances is needed for Remote Key
Provisioning mainline module to get all the implementations for
IRemotelyProvisionedComponent.

Test: build + usage in Remote Key Provisioning mainline module.
Change-Id: I92545104fa9bc190fe7c2f84b33d5f8693fcc2a4
2022-11-11 22:46:33 +00:00
Kweku Adams
46038f2a1c Merge "Add data transfer JobService APIs." 2022-11-11 19:34:24 +00:00
Daniel Norman
32afd29346 Introduce A11yService#takeScreenshotOfWindow()
This enables accessibility services to take a screenshot of
a window without any overlay windows drawn on top, which is
beneficial for ML-based understanding of the visual content
in the window.

Bug: 249830826
Test: atest AccessibilityTakeScreenshotTest
Test: use in an a11y service, observe screenshots
      contain only content from the requested windows
      and no overlays
Change-Id: Ic886aeace9cb2984a472273858281b4f2c3a0e46
2022-11-11 18:07:10 +00:00
Matt Buckley
b091fb85de Merge "Add support for ADPF HintSession sendHint to JNI" 2022-11-11 17:54:42 +00:00
Florian Mayer
1162d79a78 Merge "Add constant for intent to open MemtagPage" 2022-11-11 16:33:13 +00:00
TreeHugger Robot
16f6b9a496 Merge "Changed UserManager.getVisibleUsers() to return Set instead of List." 2022-11-10 20:11:17 +00:00
Thomas Stuart
5ca875ebcf telecom-bluetooth DND bug
Bugs came in about Do Not Disturb being on but still
interrupting users of incoming calls.  Turns out, this was a
result of BluetoothInCallService putting the headset into ring
mode before Telecom informed the InCallService to not ring.

Fix is to add a new EXTRA called EXTRA_IS_SUPPRESSED_BY_DO_NOT_DISTURB.
The extra is intended for InCallServices that may interrupt the user of
an incoming call.

Bug:   208652088

Test: maual + unit tests,
         3 DndCallFilter tests,
         2 RingerTests,
         1 CallTests
Change-Id: If8abec19dfc90999b2fc2ef3e4f5584c55d6fc2a
2022-11-10 19:40:06 +00:00
Kweku Adams
7a5d66b557 Add data transfer JobService APIs.
Add new APIs to support the data transfer job project. These APIs allow
the app to update JobScheduler on estimated transfer sizes and the
progress of the transfer.

Bug: 255371817
Test: Android builds
Change-Id: I70c1020d8a8b0956aaff5e2a843cc338bdbe6bf5
2022-11-10 18:03:39 +00:00
Sarah Chin
f88b889346 API review: Spell out subscription
Test: atest and manual
Bug: 255552152
Change-Id: I4ad09cdf9892b35a4ba5d802c60eff2714a28cfe
2022-11-10 09:52:56 -08:00
Ante
6ee8817cf7 Implement DISALLOW_ULTRA_WIDEBAND_RADIO AE user restriction
Ultra-wideband (UWB) is a radio technology that can use a very low
energy level for short-range, high-bandwidth communications over a
large portion of the radio spectrum. This CL adds a user restriction
for disallowing UWB on a device. A user restriction is needed for
NIAP (Common Criteria) certification (see b/239714441). One of the
requirements for the certification is to be able to enable/disable
all the radios.

Bug: 239714441
Test: m; manual testing with testDPC;
Change-Id: Icfa16258cc789c337417c2e96a4e0c37d0030d55
2022-11-10 17:24:56 +00:00
TreeHugger Robot
c07978b259 Merge "Add error code for entitlement check failure" 2022-11-10 17:22:49 +00:00
Gil Cukierman
1f5aed3a72 Merge "Deprecate CarrierConfigManager.KEY_HIDE_ENABLE_2G" am: 09762c6ac6 am: 4d0ee1d0a7 am: d5c8beebba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2268206

Change-Id: I65043f0aef7be261b10b0d6f7035b40de3d1aff8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 13:37:00 +00:00
Sooraj Sasindran
79b6b5eabc Add error code for entitlement check failure
Test: system test with a test app
Bug: 257525164
Change-Id: I3b99ecfb36804b1e3cbaadfab6913566bbdfe786
2022-11-09 15:01:46 -08:00
Gil Cukierman
4d0ee1d0a7 Merge "Deprecate CarrierConfigManager.KEY_HIDE_ENABLE_2G" am: 09762c6ac6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2268206

Change-Id: I71da73d928c29072bbc3f879c2273cbfa4370199
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 21:36:01 +00:00
Gil Cukierman
09762c6ac6 Merge "Deprecate CarrierConfigManager.KEY_HIDE_ENABLE_2G" 2022-11-09 21:04:30 +00:00
Gaurav Bhola
367b09cc4a Add the systemOverlays() method
- Also rename GENERIC_OVERLAYS to SYSTEM_OVERLAYS

Bug: 232017511
Fix: 244238266
Test: atest WindowInsetsTests
Change-Id: Ib8455f6ae576c7b3f40789de30649d8fc137e3dd
2022-11-09 18:24:13 +00:00
Omar Eissa
a1b2904de9 Merge "Add DETECT_SCREEN_CAPTURE permission." 2022-11-09 11:12:14 +00:00
Alessandra Loro
f8a31bbf77 Merge "Expose ro.secure test endpoint for cts." 2022-11-09 09:26:03 +00:00
Bishoy Gendy
92609648fe Merge "Add support for a generic action to show output switcher in the platform." 2022-11-09 08:32:41 +00:00
Shu Chen
caa35d5585 Merge "Adds the new API - InputMethodSubtypeBuilder#setSubtypeNameOverride." 2022-11-09 03:01:12 +00:00
Matt Buckley
354cc0a140 Add support for ADPF HintSession sendHint to JNI
* Add sendHint API to HintManagerService and PerformanceHintManager
 * Plumb relevant calls through the existing implementation
 * Extend existing tests to cover new API calls
 * Update the relevant build files to use power API v4

Bug: b/243973548
Test: atest PerformanceHintNativeTestCases
Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest
Test: atest HintManagerServiceTest

Change-Id: Ice7ed8f32e877bd845afad77fcc6ae16f1a1b78c
2022-11-09 01:49:41 +00:00
Zeyin Wu
a1c0adb050 Add Accessibility API for rate-limiting CONTENT_CHANGE_TYPE* events
Bug: 222759137
Test: ran cts test
Change-Id: Ia49209d7138bd5bd1026dc18210552b3f359664e
2022-11-09 00:15:57 +00:00
Florian Mayer
cc2ac7cb9a Add constant for intent to open MemtagPage
Bug: 258070068
Change-Id: Iea62c6c58c0c8579540649886577856667627585
2022-11-08 14:35:24 -08:00
TreeHugger Robot
7c952e8bfd Merge "Camera: Add support for extension progress callbacks" 2022-11-08 22:23:47 +00:00
Alessandra Loro
045c55c4b3 Expose ro.secure test endpoint for cts.
Bug: 247053706
Test: android.os.cts.BuildTest

Change-Id: If0d0b13a53717d221a7eab8ffbd4b08f71db00c5
2022-11-08 18:19:31 +00:00
Tyler Gunn
454d80ad81 Merge "Revert "telecom-bluetooth DND bug"" 2022-11-08 15:44:56 +00:00
Tyler Gunn
455fbf69c3 Revert "telecom-bluetooth DND bug"
Revert submission 19521928-telecomBluetoothDndBug

Reason for revert: Causes crash on call reported in b/258128736
Reverted Changes:
If275c2370:telecom-bluetooth DND bug
I873823def:telecom-bluetooth DND bug

Change-Id: Ib876bf0a82c2657a14080b77ff6c49b177f67637
2022-11-08 15:40:26 +00:00
Bishoy Gendy
6234d7472a Add support for a generic action to show output switcher in the platform.
- We need to add this action in the platform so that WearOS can also handle it, not only SysUi.
- Add tests for MediaOutputDialogReceiver class.
- Add android:priority=1 to the MediaOutputDialogReceiver so that it's always the default handler for the action.

Bug: 246997969
Test: atest MediaOutputDialogReceiverTest
Change-Id: I25d60eef7d4170b5f0b748b9b61ebf043a7c189c
2022-11-08 11:25:39 +00:00
czq
2111954aaa Introduce FontStyle.FONT_WEIGHT_UNSPECIFIED constant
Introduce a new constant FontStyle.FONT_WEIGHT_UNSPECIFIED = -1, which is used when text weight is not specified. Also replace -1 with it in TextView, TextAppearanceSpan.

Bug: 256995042

Test: manually test
Change-Id: Ia8334f5513cc3e5b7383b67b24b27bf2866d05ad
2022-11-08 13:27:17 +08:00
TreeHugger Robot
2da6bafe25 Merge "Deprecate iDen network type" 2022-11-08 00:14:14 +00:00
Felipe Leme
bc505674df Changed UserManager.getVisibleUsers() to return Set instead of List.
Test: atest MultipleUsersOnMultipleDisplaysTest CtsMultiUserTestCases:android.multiuser.cts.UserManagerTest
Test: m update-api

Bug: 242801948

Change-Id: Ie18531e65bff66c7e4f9af8b5134e04a8d4f1016
2022-11-07 19:38:36 +00:00