Commit Graph

21229 Commits

Author SHA1 Message Date
Hongwei Wang
45f528ddae Merge "Fix letterbox issue when auto-enter-pip from landscape" into sc-v2-dev am: 109a5be4e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275746

Change-Id: I4d86b1588965c99baf00d4f7d6d0066ce7df89f9
2021-07-14 21:12:44 +00:00
Hongwei Wang
70dd96cea7 Fix letterbox issue when auto-enter-pip from landscape
Included in this CL
- Skip layout of window when in transition to PiP mode
- Pass display cutout info via TaskInfo
- Removed TaskInfoCompat

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bpKcGg1eoOo5Jz5U6IwBYK
Bug: 191310680
Test: manual, auto-enter-pip from landscape with source rect hint being
      turned on, see the video
Change-Id: Ie657d15d9edb9d07555bd166b5919bb12cb217e6
2021-07-13 14:59:52 -07:00
TreeHugger Robot
c379618954 Merge "Apply pending AppInfo on Activity override change" into sc-dev am: d2dd630204 am: dfd3c926ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15260966

Change-Id: Ifb5de96582f8f9abf7c1eabc32f49c59682b9e7a
2021-07-13 00:54:53 +00:00
TreeHugger Robot
e66a6ca567 Merge "Remove isAppStartModeDisabled binder entry point" into sc-dev am: f59bf68628 am: cee250576e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15246166

Change-Id: I641e03501b93f5b3af7719b676f774fd56b22da2
2021-07-13 00:54:38 +00:00
Jeff DeCew
c17567ce1a Merge "Use SRC_ATOP instead of SRC_IN for blending the NotificationExpandButton" into sc-dev am: d14c60be51 am: ffdbe187a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237912

Change-Id: I0ca7582b8a7eb51e364ffd9eaf8a252ef278ee41
2021-07-13 00:52:33 +00:00
TreeHugger Robot
dfd3c926ab Merge "Apply pending AppInfo on Activity override change" into sc-dev am: d2dd630204
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15260966

Change-Id: I311409dbd669049ca5cbc46f6f58bb6d0f51de19
2021-07-13 00:37:28 +00:00
TreeHugger Robot
cee250576e Merge "Remove isAppStartModeDisabled binder entry point" into sc-dev am: f59bf68628
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15246166

Change-Id: I8e059e17c333b9a6f4fd809845f93de759745169
2021-07-13 00:37:17 +00:00
Jeff DeCew
ffdbe187a6 Merge "Use SRC_ATOP instead of SRC_IN for blending the NotificationExpandButton" into sc-dev am: d14c60be51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237912

Change-Id: Iab479860b685db90eee761f98d5d450bd8907a4c
2021-07-13 00:36:19 +00:00
TreeHugger Robot
192785cba9 Merge "Apply pending AppInfo on Activity override change" into sc-dev am: d2dd630204
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15260966

Change-Id: I65f9630fe8c10ed833292cb1c609cacac3fcf343
2021-07-13 00:02:52 +00:00
TreeHugger Robot
d2dd630204 Merge "Apply pending AppInfo on Activity override change" into sc-dev 2021-07-12 23:46:03 +00:00
TreeHugger Robot
496e98d41b Merge "Remove isAppStartModeDisabled binder entry point" into sc-dev am: f59bf68628
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15246166

Change-Id: Ic847445732f37587b8b03713b7cb1451ae0ce1af
2021-07-12 22:30:52 +00:00
TreeHugger Robot
f59bf68628 Merge "Remove isAppStartModeDisabled binder entry point" into sc-dev 2021-07-12 22:14:30 +00:00
Ryan Mitchell
290e51fce3 Apply pending AppInfo on Activity override change
When the activity override configuration changes, we need to apply any
pending application info changes so that when the activity is
recreated, it will have updated overlays.

Bug: 193256671
Test: change live wallpaper and observe launcher colors
Change-Id: I6b8c25a6e6756f612a0f57c921625bc58ac1ecf6
2021-07-12 22:00:43 +00:00
Charles Chen
9e5efe4aaf Merge "Send DA's config directly when attaching to DA" into sc-v2-dev am: 427a66fa71
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15047821

Change-Id: I19901472ca16fbe33cf1c4f1abaa7ab2dab2922e
2021-07-12 20:35:44 +00:00
TreeHugger Robot
85fce2dc24 Merge "Optimize AttributionSource tokens - base" into sc-dev am: 2b90cc827b am: c4fe42e347
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15247205

Change-Id: I566b13fe6273d08badd3ce7ff00c76733fd668c3
2021-07-12 20:33:32 +00:00
TreeHugger Robot
01f6847c8a Merge "Optimize AttributionSource tokens - base" into sc-dev am: 2b90cc827b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15247205

Change-Id: Id2435469fff42a22018a0d08370a987a76eb42b4
2021-07-12 20:30:07 +00:00
Amith Yamasani
c2ef597c15 Merge "Fix FGS notification mismatch" into sc-dev am: 9eed97ac10 am: 4993c552e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15226946

Change-Id: I0cfb763bade331e193b6635dcc81e29893e7df0f
2021-07-12 20:17:39 +00:00
Amith Yamasani
81cd037108 Merge "Fix FGS notification mismatch" into sc-dev am: 9eed97ac10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15226946

Change-Id: Ia22a84858562eefa1b6994054ae81ce7f29c80b3
2021-07-12 20:17:30 +00:00
Jeff DeCew
e390215973 Merge "Use SRC_ATOP instead of SRC_IN for blending the NotificationExpandButton" into sc-dev am: d14c60be51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237912

Change-Id: Ie1b2c82414463188f6a9404a2ad3015290e07c94
2021-07-12 19:55:51 +00:00
Jeff DeCew
d14c60be51 Merge "Use SRC_ATOP instead of SRC_IN for blending the NotificationExpandButton" into sc-dev 2021-07-12 19:48:58 +00:00
Charles Chen
427a66fa71 Merge "Send DA's config directly when attaching to DA" into sc-v2-dev 2021-07-10 05:02:32 +00:00
TreeHugger Robot
c4fe42e347 Merge "Optimize AttributionSource tokens - base" into sc-dev am: 2b90cc827b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15247205

Change-Id: I4b1d8d446ea18a308c4a523298682b3a7d217421
2021-07-10 02:27:03 +00:00
Svet Ganov
1babd5bf51 Optimize AttributionSource tokens - base
For cases where the attribution soruce doesn't need to be
registered as trusted we are now using a shares static
token since the only purpose of the token in these cases
is for watching the source process dying as opposed to that
and security for registered cases.

bug: 192415943

Test: CtsPermissionTestCases
      CtsPermission2TestCases
      CtsPermission3TestCases
      CtsPermission4TestCases
      CtsPermission5TestCases

Change-Id: I93fde9ca1cacada7929761533dcae11b2736ce1e
2021-07-10 00:24:30 +00:00
Christopher Tate
6054148ef9 Remove isAppStartModeDisabled binder entry point
Obsolete: the use cases for which it was introduced now have a clean
internal API layer to use instead, and this reduces informational
exposure about package presence & states.

Bug: 185513355
Test: atest SyncManagerTest
Test: atest CtsSyncManagerTest
Change-Id: I4aa1848950061dce3a1378f7d0117364e62ba59f
2021-07-09 14:28:37 -07:00
Jeff DeCew
8d6f3cc158 Use SRC_ATOP instead of SRC_IN for blending the NotificationExpandButton
Bug: 191969252
Bug: 193157438
Test: check for number of layers in the scene
Change-Id: I65bd80c71b55582347da1559cf707e9d023b7f13
2021-07-09 15:40:31 -04:00
Amith Yamasani
4993c552e7 Merge "Fix FGS notification mismatch" into sc-dev am: 9eed97ac10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15226946

Change-Id: Ib6cae8c9e8fbb1361da3555074eabc803f23878d
2021-07-09 02:01:45 +00:00
Amith Yamasani
9eed97ac10 Merge "Fix FGS notification mismatch" into sc-dev 2021-07-09 01:45:59 +00:00
Chris Li
a57fc95521 Merge "Revert "Revert "Not show size compat UI when task is not visible""" into sc-dev am: 50c03ea7ed am: c769062301
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237129

Change-Id: Idc0767e26b90c93938258d053989b6d3d39eb722
2021-07-08 22:15:24 +00:00
Chris Li
c769062301 Merge "Revert "Revert "Not show size compat UI when task is not visible""" into sc-dev am: 50c03ea7ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237129

Change-Id: I8c2e257e5a2b7d89814288d5d8cd2e24af76c722
2021-07-08 22:03:19 +00:00
Chris Li
7d98b40e24 Merge "Revert "Revert "Not show size compat UI when task is not visible""" into sc-dev am: 50c03ea7ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237129

Change-Id: I567dadd827f0c2a6dd7f2d8b2b54b2559869df7c
2021-07-08 22:02:09 +00:00
Chris Li
a23a2bb5db Revert "Revert "Not show size compat UI when task is not visible""
This reverts commit 76370b6fe6.

Reason for revert: Fix the merge break in ShellTaskOrganizerTests.java

Fix: 193069342
Test: atest WMShellUnitTests:ShellTaskOrganizerTests
Change-Id: I02c4bddc407eaac0ebb7cd5abb0b394f242d4d6e
2021-07-08 12:09:40 -07:00
Chris Li
0a703480d2 Merge "Remove TaskInfo#topActivityToken usage in size compat for security" into sc-dev am: e7ed99bfc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15156978

Change-Id: Ieaa6eb5bc5dc023644d4f6c19dbb583f7e022f5b
2021-07-08 18:15:42 +00:00
Evan Rosky
884bd51e3a Merge "Hook up split-launch to legacy transition system" into sc-v2-dev am: 5b003d97e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15138014

Change-Id: Iba00e82284ae6e4f6dd4a6ba46c4af4147591be4
2021-07-08 18:11:43 +00:00
Chris Li
e7ed99bfc2 Merge "Remove TaskInfo#topActivityToken usage in size compat for security" into sc-dev 2021-07-08 18:05:40 +00:00
Evan Rosky
5ca3820ae6 Hook up split-launch to legacy transition system
Part 1 of hooking up stage-split to legacy stuff. This
actually routes the legacy remoteAnimation through shell
in order to gather the dividerbar and interract with the
WindowProcessController

Bug: 192279476
Test: atest WindowOrganizerTests.
      use SPLIT_SELECT to launch 2 apps in split and observe.
Change-Id: I4f8802e6eb33f068fae0e4b3c12942bea76e332b
2021-07-08 09:02:59 -07:00
Bernardo Rufino
f9d3c4aa09 Merge "Require proper permission for togglePanel()/handleSystemKey()" into sc-dev am: 6b1896db4f am: bef6e7a3c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15216476

Change-Id: I1e946ebc3fc1909a01dfa110444f27f97415d558
2021-07-08 10:36:03 +00:00
Bernardo Rufino
bef6e7a3c6 Merge "Require proper permission for togglePanel()/handleSystemKey()" into sc-dev am: 6b1896db4f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15216476

Change-Id: Ibba7df55a23bffb6ff0a28322f242278c9a0d8cf
2021-07-08 10:30:42 +00:00
Bernardo Rufino
cd6a92953d Merge "Require proper permission for togglePanel()/handleSystemKey()" into sc-dev am: 6b1896db4f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15216476

Change-Id: I7b0ba6ffbf2a8f029351e5e454e1eb1740cb603d
2021-07-08 10:29:52 +00:00
Leon Jeng
f44dc909e1 Revert "Not show size compat UI when task is not visible" am: 76370b6fe6 am: 15cbad37a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15232572

Change-Id: Ifbc94e6e1a32a59933db3dfd4978a1e8e5f8ffdb
2021-07-08 10:12:19 +00:00
Leon Jeng
979db138fe Revert "Not show size compat UI when task is not visible" am: 76370b6fe6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15232572

Change-Id: Ib61cabd6c4d77d4fa5cd3f64b2272fcd684db153
2021-07-08 10:01:44 +00:00
Leon Jeng
15cbad37a8 Revert "Not show size compat UI when task is not visible" am: 76370b6fe6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15232572

Change-Id: I1ca637c6e88906c74fe0ac0ab8f883e9fdbdce5a
2021-07-08 10:00:52 +00:00
Leon Jeng
76370b6fe6 Revert "Not show size compat UI when task is not visible"
This reverts commit adb92508c0.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=coral-userdebug&lkgb=7530814&lkbb=7530923&fkbb=7530923, bug b/193105445

Bug: 193105445
Change-Id: I697229da6986d6466d7f13872e9ae7a727b80838
2021-07-08 09:48:10 +00:00
Chris Li
4a6fe52bce Merge "Not show size compat UI when task is not visible" into sc-dev am: 927c644bfa am: 2d8b03190d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15225378

Change-Id: I7ca2c507dc934c52b638261c1707238e80f6e6dd
2021-07-08 07:14:43 +00:00
Chris Li
2d8b03190d Merge "Not show size compat UI when task is not visible" into sc-dev am: 927c644bfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15225378

Change-Id: Ic80035d84e4e2f2a5471bd4f85cc90ff61cda49f
2021-07-08 07:01:54 +00:00
Chris Li
85a76668fc Merge "Not show size compat UI when task is not visible" into sc-dev am: 927c644bfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15225378

Change-Id: I7d380e2e6bb351db4bb5a8a68c236c3444ef2bf1
2021-07-08 07:00:25 +00:00
Chris Li
927c644bfa Merge "Not show size compat UI when task is not visible" into sc-dev 2021-07-08 05:53:15 +00:00
Chris Li
1245aefa49 Remove TaskInfo#topActivityToken usage in size compat for security
Security report shows that this can cause leak token of different app.

Replace the functionality with a callback to the TaskOrganizerController
to restart activity when size compat restart button is clicked.

Bug: 186776724
Test: manually verify the restart button still works
Change-Id: I097b9f02e8435e6765695b9d5a531a4e165bac66
Merged-In: I097b9f02e8435e6765695b9d5a531a4e165bac66
2021-07-07 21:09:24 -07:00
Chris Li
7ee5c0b861 Merge "Remove TaskInfo#topActivityToken usage in size compat for security" into sc-v2-dev am: 9d86a7b10f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15140327

Change-Id: I055350435baff2260423ab43c0667009034033f7
2021-07-08 04:06:42 +00:00
Christopher Tate
ac4c63c682 Fix FGS notification mismatch
Mistakenly matching against id alone, rather than the (id,tag) tuple,
led to some notifications mistakenly being flagged as FGS-related.

Bug: 191518901
Test: atest CtsAppTestCases:android.app.cts.ServiceTest
Test: atest CtsAppTestCases:android.app.cts.NotificationManagerTest
Test: manual
Change-Id: I11c3993c13ded7859a5a860dcc99728f3db9809f
2021-07-07 19:15:08 -07:00
Chris Li
adb92508c0 Not show size compat UI when task is not visible
Before, when a size compat task was hidden, the size compat UI might
still be showing. Now, remove the UI when the task is no longer visible.

Bug: 193069342
Test: manually verify the size compat button is not showing in recents
Change-Id: Ia17a97f5e7a9af497d8da16b31bb5169dd502d53
2021-07-07 17:46:08 -07:00