Commit Graph

2438 Commits

Author SHA1 Message Date
Vadim Caen
39b397de9f Merge "Release the SurfacePackageViewHost on splash screen removed" into sc-dev am: dc07d29bd0 am: e65475b1c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14775423

Change-Id: I675fd44270a6a59863a2490e3723f0f53379b3c5
2021-06-16 12:42:44 +00:00
Vadim Caen
a46ff113be Release the SurfacePackageViewHost on splash screen removed
The SurfacePackageViewHost was never release, leading to a leak of its
surfaces.

This CL ensure it is released:
  - Directly in the shell if the SplashScreenView was not copied
  - From the client, through the window manger and then to the shell if
  the splash screen was copied in the client process

Test: Manually tested with app setting by checking if the surfaces
are actually removed (winscope + logs) in the following scenarios:
    - When the application registers an OnExitAnimationListener
      and calls remove(),
    - When the application registers an OnExitAnimationListener
      and dies without calling remove()
    - When the applicaiton does not register an OnExitAnimationListener
    and the shell removes the splash screen
Bug: 189759180

Change-Id: Ib68bfffad6720911368739d7dd87d8a03034c589
2021-06-15 15:39:09 +02:00
TreeHugger Robot
8ca1668d31 Merge "Give shell android.permission.GET_TOP_ACTIVITY_INFO" into sc-dev am: 57fcc33111 am: 78e8d725fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14909796

Change-Id: Ie28f3e5b2de85cfffe70c0668bc9b3b2cf96c3c2
2021-06-09 17:23:10 +00:00
TreeHugger Robot
57fcc33111 Merge "Give shell android.permission.GET_TOP_ACTIVITY_INFO" into sc-dev 2021-06-09 17:15:44 +00:00
Louis Chang
2a55ecab38 Merge "Migrate resuming/pausing activity to TaskFragment" into sc-v2-dev am: 3b0a062f7a am: 14cf8d7308
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14775350

Change-Id: Id0e97bf39a8d7fbc87612d7ead63ba8986c50827
2021-06-09 03:38:26 +00:00
Zak Cohen
46e5c0df76 Give shell android.permission.GET_TOP_ACTIVITY_INFO
Grant shell android.permission.GET_TOP_ACTIVITY_INFO for testing Launcher
tests that need access to AssistContentRequester in shell context.

Bug: 190344718
Test: Local build and flash, ran test
Merged-In: I551e0bee413432653f39c91664d716f695311b6f
Change-Id: I551e0bee413432653f39c91664d716f695311b6f
2021-06-09 03:27:58 +00:00
Louis Chang
14cf8d7308 Merge "Migrate resuming/pausing activity to TaskFragment" into sc-v2-dev am: 3b0a062f7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14775350

Change-Id: I2cc8c8a56b4ac0064e208d2a1280e8bc280b0581
2021-06-09 03:18:21 +00:00
Louis Chang
3b0a062f7a Merge "Migrate resuming/pausing activity to TaskFragment" into sc-v2-dev 2021-06-09 03:09:32 +00:00
Meng Wang
76ec769557 Merge "Allow ImsServiceEntitlement app to schedule jobs" into sc-dev am: 0c1b382ace am: 90e201297a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14762972

Change-Id: I3a0fb637558f339716610e656a078d0ce65c76b3
2021-06-09 00:51:54 +00:00
Meng Wang
1483485778 Merge "Allow ImsServiceEntitlement app to schedule jobs" into sc-dev am: 0c1b382ace am: b7e67719e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14762972

Change-Id: Ic20418050c11a42bee69ac923f8c04b79f838c09
2021-06-09 00:51:24 +00:00
Meng Wang
0c1b382ace Merge "Allow ImsServiceEntitlement app to schedule jobs" into sc-dev 2021-06-08 23:50:09 +00:00
TreeHugger Robot
7e674c8080 Merge "Use RobotoStatic-Regular for the weight 400 of roboto family" into sc-dev am: 15cc80b39c am: 5554b74403
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722633

Change-Id: Ibe273d17bcbc18bae54baa587c80d12d1967675c
2021-06-08 18:09:36 +00:00
TreeHugger Robot
37eb5eb465 Merge "Use RobotoStatic-Regular for the weight 400 of roboto family" into sc-dev am: 15cc80b39c am: 4932cd5faf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722633

Change-Id: Ied5a7fbd2bb664297079074a258de85664f0f970
2021-06-08 18:08:40 +00:00
TreeHugger Robot
15cc80b39c Merge "Use RobotoStatic-Regular for the weight 400 of roboto family" into sc-dev 2021-06-08 17:57:30 +00:00
TreeHugger Robot
1ef4096d8c Merge "Update com.android.statementservice to support v2 API" into sc-dev am: 53c5d85bef am: 02ce2626f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13438575

Change-Id: I736ce59307e6052b6c27718a96029253c06a4669
2021-06-07 19:07:52 +00:00
TreeHugger Robot
05e00c1007 Merge "Update com.android.statementservice to support v2 API" into sc-dev am: 53c5d85bef am: df0a5361e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13438575

Change-Id: Ic71991e9847f89a537bc1633ba4c819be0372da8
2021-06-07 19:01:34 +00:00
TreeHugger Robot
53c5d85bef Merge "Update com.android.statementservice to support v2 API" into sc-dev 2021-06-07 18:50:45 +00:00
Jahdiel Alvarez
ddf3656b51 Merge "Add CarWatchdog privileged permissions in allowlist for CarShell package" into sc-dev am: 7a19e4a94e am: 508bf5a8ec am: 3b3def618c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14752415

Change-Id: Ica707795d0cd17b46182cf7573122394cb31ad2c
2021-06-07 16:50:54 +00:00
Jahdiel Alvarez
3b3def618c Merge "Add CarWatchdog privileged permissions in allowlist for CarShell package" into sc-dev am: 7a19e4a94e am: 508bf5a8ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14752415

Change-Id: I7653752fcafb450cb217be41aedc6aabea917a8e
2021-06-07 16:49:17 +00:00
Jahdiel Alvarez
7a19e4a94e Merge "Add CarWatchdog privileged permissions in allowlist for CarShell package" into sc-dev 2021-06-07 16:40:33 +00:00
Louis Chang
ee0990f3bb Migrate resuming/pausing activity to TaskFragment
The resumed, pausing and last-paused activities are now set
at the leaf task fragment.

Also fix some unit tests that having a task containing both
child activity and child task.

Bug: 189384393
Test: build and boot
Change-Id: I0e4b00130ffa624e7dab6d53cbd9f8f95bc5b3d8
2021-06-07 09:50:44 +08:00
Winson
374e6d6cc9 Update com.android.statementservice to support v2 API
Brings AOSP up to a true representative implementation which can be
shipped on production devices.

Bug: 171219506

Test: manual, push AOSP, pm enable, pm verify-app-links

Change-Id: I5de6405afe884a19d35d09b266457c4ad4eee91b
2021-06-03 16:37:26 -07:00
samalin
cc01a8a656 Allow ImsServiceEntitlement app to schedule jobs
ImsServiceEntitlement is a headless app for certain carriers requiring
background IMS provisioning only. So the app needs to be allowed to
schedule jobs.

Bug: 189397221
Test: make
Change-Id: Ib910681ef81a417aaa4a13514260cfa26098a048
2021-06-03 16:38:16 +00:00
TreeHugger Robot
a9aebf8a3c Merge "Add emergency app to power-save allowlist" into sc-dev am: e36c773634 am: 8291125946 am: 046d88db92
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804723

Change-Id: I53fd36abe51edd591ca1019969f036851a646c2b
2021-06-03 00:27:35 +00:00
TreeHugger Robot
8291125946 Merge "Add emergency app to power-save allowlist" into sc-dev am: e36c773634
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804723

Change-Id: If614f99888ca09ecb89db488757404353ac13d31
2021-06-03 00:00:15 +00:00
TreeHugger Robot
e36c773634 Merge "Add emergency app to power-save allowlist" into sc-dev 2021-06-02 23:47:04 +00:00
Suprabh Shukla
a1812e90a3 Add emergency app to power-save allowlist
Test: Manually run:
adb shell dumpsys alarm
Should show 'com.android.emergency' under 'Exempted bucket packages'.

Bug: 189866352
Change-Id: I485dd3e4d9026e576b670a1a4439ea62eec987f3
2021-06-02 14:08:32 -07:00
Hai Zhang
f838f89513 Merge "Remove allowlist for GET_RUNTIME_PERMISSION_GROUP_MAPPING." into sc-dev am: 9e264163d4 am: 0f1f6405ef am: 2ff5f06cda
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14782438

Change-Id: I5fe14f5ab83207c1a10e4182adc63ae08563478b
2021-06-02 19:47:16 +00:00
Hai Zhang
0f1f6405ef Merge "Remove allowlist for GET_RUNTIME_PERMISSION_GROUP_MAPPING." into sc-dev am: 9e264163d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14782438

Change-Id: I5161e5e1d92aadbb590a62948d42060e2a1b4dd0
2021-06-02 18:57:57 +00:00
Hai Zhang
49ca739329 Remove allowlist for GET_RUNTIME_PERMISSION_GROUP_MAPPING.
The permission has been removed in ag/14670362.

Bug: 182094776
Bug: 185607880
Change-Id: I780d951c57283f0097780fb780afec915c64303c
2021-06-02 05:08:20 +00:00
Jahdiel Alvarez
96d1208d01 Add CarWatchdog privileged permissions in allowlist for CarShell package
Test: atest AtsCarTests:CarWatchdogManagerTest
Bug: 189354222
Change-Id: If87b2eed7d7e183b29e0d9eba9b54505c117218c
2021-05-26 22:05:18 +00:00
TreeHugger Robot
ebb9f1e93e Merge "Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService" into sc-dev am: 6572539f65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14540428

Change-Id: Ib9db03805c0a7cbc337824a61434422cff4ffa30
2021-05-26 10:56:56 +00:00
Seigo Nonaka
18c044d31b Use RobotoStatic-Regular for the weight 400 of roboto family
Bug: 189235998
Test: Manually done
Change-Id: I253a72df5641b57d371598cec6853737c5e98ba9
2021-05-25 14:09:52 -07:00
TreeHugger Robot
a189352b35 Merge "Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService" into sc-dev am: 6572539f65 am: 09002c32f6 am: ee6e60c8fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14540428

Change-Id: Ie669734fbf469eac199a3f0dd8e986a12276242a
2021-05-25 14:53:17 +00:00
TreeHugger Robot
ee6e60c8fb Merge "Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService" into sc-dev am: 6572539f65 am: 09002c32f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14540428

Change-Id: I611ff53efcac3f9f0859a9721cbcc6df82908d81
2021-05-25 14:33:50 +00:00
TreeHugger Robot
6572539f65 Merge "Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService" into sc-dev 2021-05-25 13:24:35 +00:00
Patrick Baumann
43628ca24c Updates OWNERS files
Bug: 186864416
Test: Builds
Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-21 14:13:18 -07:00
lpeter
e66524d14f Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService
Bug: 187914415
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I4ccd8fd5b153f28fa4b1463f7412bb8067cc4ffd
2021-05-21 10:49:56 +08:00
Matt Reynolds
1b0b271ff4 Merge "Add keylayout mapping for Luna controller (Bluetooth)" am: 82edb97d6a am: 9002f72215 am: 12bd37c674 am: 0616847694
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1714670

Change-Id: I73f526e3cb7696ad38f04f96d59c97eaaf632d10
2021-05-21 01:44:00 +00:00
Matt Reynolds
12bd37c674 Merge "Add keylayout mapping for Luna controller (Bluetooth)" am: 82edb97d6a am: 9002f72215
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1714670

Change-Id: I912ca3a1e09d4de5fd3fcd954bdd15bfbbf531a1
2021-05-21 01:06:36 +00:00
Matt Reynolds
82edb97d6a Merge "Add keylayout mapping for Luna controller (Bluetooth)" 2021-05-21 00:32:19 +00:00
Matt Reynolds
552dfe5c29 Add keylayout mapping for Luna controller (Bluetooth)
Add a keylayout mapping to support gamepad buttons and axes on the
Amazon Luna controller.

Buttons and axes are mapped according to
https://www.kernel.org/doc/Documentation/input/gamepad.txt except for
the Alexa Push-To-Talk button which is mapped to MEDIA_RECORD.

Bug: 183990549
Test: used the "Gamepad Tester" app and https://gamepad-tester.com in
Chrome to verify all mappings work.

Change-Id: I1921e501eea0ce398b79a32809efa63456074ed5
2021-05-20 15:01:11 -07:00
Neil Fuller
55f4ea8068 Merge "Add permission to shell for CTS test" 2021-05-20 13:13:27 +00:00
TreeHugger Robot
6d72a8e453 Merge "Revert "Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionCo..."" into sc-dev am: 92c4b3d31d am: a746cc8027 am: 5662e88b21
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14645039

Change-Id: I12fcc8fd9d3fd04d6b7987ee6deeb1df80c8982c
2021-05-20 05:02:46 +00:00
Neil Fuller
e6ed399271 Merge "Add permission to shell for CTS test" into sc-dev am: bc9061fdf3 am: 17ba82b205 am: b1377cb2e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14621137

Change-Id: I811f37de7aabd0e878c3513749fbc37ed4475fa9
2021-05-20 04:31:08 +00:00
TreeHugger Robot
0f9786e3a7 Merge "Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionController."" into sc-dev am: 393cd159ae am: 5ee0f1c551 am: da80076881
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640418

Change-Id: Ib31aa5570c033a0e17a44896fc430220613f6c33
2021-05-20 04:15:11 +00:00
Patrick Baumann
fd55b563bb Merge changes I04dfc5c2,Idc7e1f3c am: 1ef34e9022 am: 4c56bac295 am: 62bf50bbd8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705089

Change-Id: I78aa27d7521a981d3ef7494c3c2d20b44b048213
2021-05-20 00:22:15 +00:00
Aaron Huang
481d5247d4 Merge "Split out NetworkStack and Tethering permission" into sc-dev am: 63fd72154c am: 2c90e7946e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14352466

Change-Id: I52a7dd289f86ff805062f30e93b93de2ccf3ea1c
2021-05-19 22:51:28 +00:00
TreeHugger Robot
5662e88b21 Merge "Revert "Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionCo..."" into sc-dev am: 92c4b3d31d am: a746cc8027
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14645039

Change-Id: I42806548485441f27e8467ebf8a53c610dff8dc7
2021-05-19 20:47:09 +00:00
TreeHugger Robot
2b25f043b8 Merge "Revert "Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionCo..."" into sc-dev am: 92c4b3d31d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14645039

Change-Id: I7f51c736bd0c5e79225c059ffa69ea34885c032f
2021-05-19 20:29:32 +00:00