Commit Graph

16168 Commits

Author SHA1 Message Date
Taran Singh
af126fbaf8 Merge "Hide IME after re-parenting IME container to DisplayArea" into sc-dev am: cf55fa2ead
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13855245

Change-Id: I2b5b14e396bd19b80a0658d4d3149571120a0df6
2021-03-24 01:10:45 +00:00
Jeff DeCew
53cd202258 Merge "Remove Notification.DevFlags" into sc-dev am: e2d38c5ac5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13924938

Change-Id: I9c234f756e08abb64432e31e4144c93b03b7785b
2021-03-24 01:07:41 +00:00
Tim Van Patten
e5eaca6001 Merge "GameManagerService: Restrict get/set Game Mode to Games" into sc-dev am: f9c119884a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13832126

Change-Id: I7d5c0202d27887fdd4c11b8e7862a401d03f78ae
2021-03-24 01:05:43 +00:00
TreeHugger Robot
8342e6d823 Merge "Introduce vibrator frequency mapping." into sc-dev am: 14278aecfd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13886485

Change-Id: I81391fec56d7baba714afbe2483da6c42a5b9733
2021-03-24 01:04:07 +00:00
TreeHugger Robot
c19c8d77ff Merge "Enable RESTRICTED bucket." into sc-dev am: 77cbe77beb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13520216

Change-Id: I9c7fbe6587c58663918d1f7eb0b460ce946fe367
2021-03-24 01:03:09 +00:00
TreeHugger Robot
631e128d08 Merge "Enable the tests in DPM for testing ConnectivityManager API in 5G Slicing" into sc-dev am: 64449bbbab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13960787

Change-Id: I23706e176b11ebe4cda1bc3d9964b605f78600da
2021-03-24 01:02:30 +00:00
TreeHugger Robot
35d73c2471 Merge "Fix NPE in SyncManager#isSyncSetting." into sc-dev am: e3e4c1f93d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13959155

Change-Id: I5be1d2b6bd10c56709d300eb7a61b5bf7947585a
2021-03-24 01:01:11 +00:00
Winson Chung
0352d1d69d Don't replace task in list if NEW_TASK + MULTIPLE_TASK is set am: 6c246287c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13922010

Change-Id: I7c291aea7b1514d2d3c854e01d6453befc547907
2021-03-24 00:55:18 +00:00
Mustafa Emre Acer
b56ab770d0 Merge "Add a new permission for external time sources" into sc-dev am: e7ec6b42a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13577871

Change-Id: Ibddac707d442ac196ece90ed3273bcc641c44896
2021-03-24 00:54:26 +00:00
Taran Singh
cf55fa2ead Merge "Hide IME after re-parenting IME container to DisplayArea" into sc-dev 2021-03-23 20:17:01 +00:00
Jeff DeCew
e2d38c5ac5 Merge "Remove Notification.DevFlags" into sc-dev 2021-03-23 19:50:27 +00:00
Tim Van Patten
f9c119884a Merge "GameManagerService: Restrict get/set Game Mode to Games" into sc-dev 2021-03-23 19:33:07 +00:00
TreeHugger Robot
f24ed47824 Merge "[Notification] Fix NotificationManagerServiceTest" into sc-dev 2021-03-23 19:19:26 +00:00
TreeHugger Robot
14278aecfd Merge "Introduce vibrator frequency mapping." into sc-dev 2021-03-23 19:11:07 +00:00
TreeHugger Robot
77cbe77beb Merge "Enable RESTRICTED bucket." into sc-dev 2021-03-23 18:58:14 +00:00
TreeHugger Robot
64449bbbab Merge "Enable the tests in DPM for testing ConnectivityManager API in 5G Slicing" into sc-dev 2021-03-23 18:52:59 +00:00
TreeHugger Robot
e3e4c1f93d Merge "Fix NPE in SyncManager#isSyncSetting." into sc-dev 2021-03-23 17:51:05 +00:00
Francois Gaffie
a52a48212b [Notification] Fix NotificationManagerServiceTest
NotificationManagerServiceTest fails (10 failures) when launched
with different user as 0 (e.g. Automotive platform).
Test could be launched with "--user 0" to fix these test or test
can be adapted not to hardcode user id launching these test.

This CL makes the test adapative to the user id launching unit test.

Bug: 178032672

Test: adb shell am instrument -w -e class com.android.server.notification.NotificationManagerServiceTest com.android.frameworks.tests.uiservices

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I1f124deafd50d257683667ef986b88df1e4b8a75
Merged-in: I1f124deafd50d257683667ef986b88df1e4b8a75
(cherry picked from commit 3a543bb49d)
2021-03-23 17:05:10 +00:00
Kweku Adams
7369c96a97 Merge "Make sure out-of-quota EJs stop in time." into sc-dev am: 31a6954900
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13959205

Change-Id: I3e682b1389575e684bddbd082532ad4f8207982b
2021-03-23 16:52:45 +00:00
Winson Chung
6c246287c7 Don't replace task in list if NEW_TASK + MULTIPLE_TASK is set
Bug: 183046894
Test: atest RecentTasksTest
Change-Id: Ifbaac51efa90b7a51bd3d64a32dde293ef45d040
2021-03-23 16:33:42 +00:00
Mustafa Emre Acer
e7ec6b42a9 Merge "Add a new permission for external time sources" into sc-dev 2021-03-23 16:27:46 +00:00
Kweku Adams
31a6954900 Merge "Make sure out-of-quota EJs stop in time." into sc-dev 2021-03-23 16:25:42 +00:00
Mustafa Acer
6cebc2f2ac Add a new permission for external time sources
This CL adds a new permission called SUGGEST_EXTERNAL_TIME that
gates TimeManager.suggestExternalTime calls.

The new permission is marked as 'privileged' as protection level. This
could result in third party apps preinstalled on the system image to
potentially get this permission. This is OK for the following reasons:
 - OEM coordination is needed to grant 3P apps this permission, so
 adding "privileged" doesn't introduce significant risk.
 - This permission/API doesn't guarantee that the suggested timestamp
 will immediately be used as the new system timestamp. The system must
 be configured so that the external time source has a higher priority
 than other time sources (e.g. GNSS) for the external time suggestion to
 be used. This configuration is also done by the OEM. That introduces
 significant roadblock for a malicious app to do anything useful with
 this permission.
- More importantly, apps can set system time directly using
TimeManager.setTime() which requires SET_TIME permission. This
permission is also signature|privileged, so this change is consistent
with it.

Bug: 157504928, 177079827
CTS-Coverage-Bug: 182275086
Test: atest android.app.time
Change-Id: I0098ab7565b647fb220d39575f0616d2a47bdc89
2021-03-23 16:24:41 +00:00
Lais Andrade
e574d3bbe8 Introduce vibrator frequency mapping.
Introduce frequency data to VibratorInfo and a transformation for
VibrationEffect that maps relative frequency and amplitude values to the
device absolute values.

The transformation also clips amplitude values to the device bandwidth
map provided.

Pending implementation of chaining composed waveforms and sending PWLE
primitives to the HAL.

Bug: 167947076
Test: DeviceVibrationEffectAdapterTest
Change-Id: Ie7505a1c0f50bb7d907b0752c02987f258316874
2021-03-23 15:28:10 +00:00
Christophe Koessler
ee1572afed Merge changes from topic "audiomanagertest_cts_dnd"
* changes:
  [Notification] Fix NotificationManagerServiceTest
  [Notification] Fix Notification channel Dnd bypass for multiusers
2021-03-23 15:19:57 +00:00
TreeHugger Robot
1ab180da79 Merge "Introduce WaveformBuilder to VibrationEffect" into sc-dev am: 9db9a56c7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13828865

Change-Id: I70acc05ee9b610211bd1b13b55454756263eedb2
2021-03-23 14:42:03 +00:00
TreeHugger Robot
7e4ae8e58f Merge "Refactor handling of <Feature Abort> responses" into sc-dev am: 699d25c00b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13877113

Change-Id: Id60c960ea50fd9734f0b3322f1042b30aaf4ee9d
2021-03-23 14:41:48 +00:00
Shuo Qian
cd008dffd6 Enable the tests in DPM for testing ConnectivityManager API in 5G Slicing
Test: atest DevicePolicyManagerTest
Bug: 178655595

Change-Id: Ib58f27b661436c9c59f8681fb2e69a930b8444a8
2021-03-23 07:41:01 -07:00
Rhed Jao
9f3f483315 Merge "Adds OWNERS for servicestests/utils-mockito" am: e1b9b92816 am: 37e30ee198 am: 178e53c6d9 am: bdae0d1b77
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645303

Change-Id: I7e24d941d7fd46aa03b1e219b17c33cd61143c94
2021-03-23 14:37:43 +00:00
Tianjie Xu
57c0155956 Merge changes Ieeb0ebef,I1f33a8c6,I07168a7b am: fb5d22ffea am: 2d2731926f am: 7b349b0d63 am: df6fde66ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1647333

Change-Id: Ia78ead0f090d85d2e79ce711012f39d7093a74dd
2021-03-23 14:36:54 +00:00
Jeff Sharkey
b94f778689 Merge "Add OWNERS file for content tests." am: 82ac7c4eeb am: 2b047210ff am: 3e41a528f4 am: 41b860ee63
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1650090

Change-Id: I16a262fa6ec4e8842b97183ab327a9a6b5dcbfd3
2021-03-23 14:35:58 +00:00
Rajeev Kumar
4cc9e777a5 Merge "Move disk reads to background" am: 6d7c90717a am: f60e5d331e am: 44b72882b0 am: 24c97c9f6a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1626341

Change-Id: I6df667b316fe41f5439f4060857a4bc0abd21aa7
2021-03-23 14:35:40 +00:00
TreeHugger Robot
9db9a56c7e Merge "Introduce WaveformBuilder to VibrationEffect" into sc-dev 2021-03-23 14:32:56 +00:00
Tianjie Xu
a990c74bdf Merge "Report more metrics in RecoverySystem" am: d880cf50a5 am: 637cd18231 am: cb8e274fea am: bc8336b77f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1622203

Change-Id: I23f33a01f46e70868bb4c959e7c12dc3044e6a66
2021-03-23 14:32:26 +00:00
TreeHugger Robot
699d25c00b Merge "Refactor handling of <Feature Abort> responses" into sc-dev 2021-03-23 14:19:46 +00:00
Rhed Jao
bdae0d1b77 Merge "Adds OWNERS for servicestests/utils-mockito" am: e1b9b92816 am: 37e30ee198 am: 178e53c6d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645303

Change-Id: Ica59de9939fd5d97078a1bda27d1346e80859362
2021-03-23 14:04:42 +00:00
Tianjie Xu
df6fde66ca Merge changes Ieeb0ebef,I1f33a8c6,I07168a7b am: fb5d22ffea am: 2d2731926f am: 7b349b0d63
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1647333

Change-Id: I9d91f3f6b9f8231a96e143dbc3dc2e7d195a56d2
2021-03-23 14:03:37 +00:00
Jeff Sharkey
41b860ee63 Merge "Add OWNERS file for content tests." am: 82ac7c4eeb am: 2b047210ff am: 3e41a528f4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1650090

Change-Id: Ica04999f8b95f5be9706114ce33e5f41879faaac
2021-03-23 14:02:20 +00:00
Rajeev Kumar
24c97c9f6a Merge "Move disk reads to background" am: 6d7c90717a am: f60e5d331e am: 44b72882b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1626341

Change-Id: Id00efc69e73e0376f3508b89cad86f60c77efab0
2021-03-23 14:01:47 +00:00
Tianjie Xu
bc8336b77f Merge "Report more metrics in RecoverySystem" am: d880cf50a5 am: 637cd18231 am: cb8e274fea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1622203

Change-Id: Ie0aa402be5adfb8b7f15e8212e274cc53e186b57
2021-03-23 13:59:53 +00:00
Jeff DeCew
8548f343e2 Remove Notification.DevFlags
Fixes: 176239013
Test: manual
Change-Id: I1aeed1c79e4a829d8829eb08224f9b21fafc50fe
2021-03-23 13:28:55 +00:00
Jeff Sharkey
cbdf88ce58 Merge changes from topic "nearby-bluetooth-permission-group" into sc-dev am: 9f5392e8b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13956893

Change-Id: Idef7bb2a70ff9a5f0c4eff73ccbdc6e2bae02259
2021-03-23 13:10:54 +00:00
Jeff Sharkey
9f5392e8b7 Merge changes from topic "nearby-bluetooth-permission-group" into sc-dev
* changes:
  Request new Bluetooth runtime permissions.
  Default grants for "Nearby devices" permission.
  Add BLUETOOTH_SCAN and BLUETOOTH_CONNECT app ops
  Split new NEARBY_DEVICES permissions
  Define new NEARBY_DEVICES permission group
2021-03-23 12:56:30 +00:00
Yan Han
9b7f74f6e9 Refactor handling of <Feature Abort> responses
When handling a message, local devices return a constant instead of
a boolean. The constant represents 3 cases:
1. A <Feature Abort> response with a specific operand
2. The message was successfully handled
3. The message was not handled

This allows (almost) all <Feature Abort> messages to be sent by
HdmiCecController instead of local devices.

Test: atest com.android.server.hdmi
Bug: 180103617
Change-Id: If3a65f512c689a1b0596dd4b8d9fcf489c3468e3
2021-03-23 13:07:49 +01:00
Saumya Pathak
37fc428f52 Merge "Add app clone profile and APIs." into sc-dev am: cbe66b17b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13709992

Change-Id: If7bb00d9cef3ea19b79da23793747e4a41989dc9
2021-03-23 11:32:35 +00:00
Saumya Pathak
cbe66b17b9 Merge "Add app clone profile and APIs." into sc-dev 2021-03-23 11:15:59 +00:00
Saumya Pathak
5a4fc52fc7 Add app clone profile and APIs.
This change adds a new hidden user type "android.os.usertype.profile.CLONE"
and two new system APIs "isCloneProfile" and "hasSharedMedia". To support App cloning, we need to support sharing media between the owner user and the clone user. Adding this as a property in UserTypeDetails.

Bug: 182396009
Test: atest android.multiuser.cts.UserManagerTest#testCloneUser, atest com.android.server.pm.UserManagerTest#testCloneUser and manually ran shell commands on the clone user.

Change-Id: I49ddcbd499944ca9ec05ef4dc10d2e2b231d8b88
(cherry picked from commit db930667a21dac9f0de7cb2fe99175b3b4545bf4)
2021-03-23 11:15:09 +00:00
Rhed Jao
178e53c6d9 Merge "Adds OWNERS for servicestests/utils-mockito" am: e1b9b92816 am: 37e30ee198
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645303

Change-Id: I452e6e99172f304f7cacd323e87e2d2d3ee41bd0
2021-03-23 09:26:27 +00:00
TreeHugger Robot
abb595130e Merge "Introduce VibrationEffectSegment" into sc-dev am: 11d5b29d7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13776606

Change-Id: I6ec5517437927a6b9e07af92c4e7a8d3942ee0e8
2021-03-23 09:04:46 +00:00
TreeHugger Robot
11d5b29d7c Merge "Introduce VibrationEffectSegment" into sc-dev 2021-03-23 08:52:21 +00:00