Commit Graph

3932 Commits

Author SHA1 Message Date
Hongwei Wang
564770a918 Merge "Add IPipAnimationListener#onExpandPip" into tm-dev am: 4b1f6bbae3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17339828

Change-Id: I561b441161184b8545f52a3e88f24eafc380f469
2022-03-24 01:04:03 +00:00
Mady Mellor
fded87922f Merge "Fix an issue where stack education and the stack weren't aligned" into tm-dev am: 4db1adb65e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17326809

Change-Id: I752007f3e853bea65a5dcee9566c6cdfdec309e7
2022-03-24 00:46:44 +00:00
Mady Mellor
759ba075e8 Merge "Adjust the sizes of user education for large screens / landscape" into tm-dev am: 139a3c1803
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17326808

Change-Id: I100bc4057a4b306114e96cc4a47ca409d0435849
2022-03-24 00:46:04 +00:00
Nataniel Borges
3594672a2c Merge "Allow LaunchBubble app to be launcher from launcher" into tm-dev am: e08000c02d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17002569

Change-Id: Id675bd50206e97fc2d673d613f05b5d86780566d
2022-03-24 00:43:35 +00:00
Hongwei Wang
4b1f6bbae3 Merge "Add IPipAnimationListener#onExpandPip" into tm-dev 2022-03-23 22:39:30 +00:00
Mady Mellor
4db1adb65e Merge "Fix an issue where stack education and the stack weren't aligned" into tm-dev 2022-03-23 18:27:38 +00:00
Mady Mellor
139a3c1803 Merge "Adjust the sizes of user education for large screens / landscape" into tm-dev 2022-03-23 18:25:45 +00:00
Nataniel Borges
e08000c02d Merge "Allow LaunchBubble app to be launcher from launcher" into tm-dev 2022-03-23 17:47:26 +00:00
Tony Huang
4a8be98feb Merge "Implement fade animation on SplitDecorManager" into tm-dev am: 56c6199477
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17178852

Change-Id: Ifc9beb1ad01fdb95e15b525b2e4978ffade9ba88
2022-03-23 06:55:58 +00:00
Tony Huang
56c6199477 Merge "Implement fade animation on SplitDecorManager" into tm-dev 2022-03-23 06:45:09 +00:00
Mateusz Cicheński
ff43ebb7d3 Merge "Pass the keep clear areas to PipBoundsState." into tm-dev am: 86f4c7710d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17323776

Change-Id: I782439d82fe9d586b3a24fa1ca8eeb07cc4266fd
2022-03-23 03:40:33 +00:00
Mateusz Cicheński
86f4c7710d Merge "Pass the keep clear areas to PipBoundsState." into tm-dev 2022-03-23 03:31:03 +00:00
Hongwei Wang
bddc58e3bc Add IPipAnimationListener#onExpandPip
This signals Launcher when user leaves PiP mode by tapping on the
expand button in PiP window. Launcher can use signal, for instance, to
hide the Taskbar to avoid flicker when the app settles in full-screen mode.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dIgvinb9yEB8MYfYDx0Ijy
Bug: 218450853
Test: see video
Change-Id: I0e9882324daa6dc419ad2746312a22a0c8721ff4
2022-03-22 18:34:59 -07:00
Jerry Chang
fe39ebdfb5 Merge "Consolidate split layout adjust animation for showing IME panel" into tm-dev am: f3de3fee6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17197131

Change-Id: I92f5005e417d71fc46f5d3c3742c004b11797342
2022-03-23 01:06:38 +00:00
Jerry Chang
f3de3fee6b Merge "Consolidate split layout adjust animation for showing IME panel" into tm-dev 2022-03-23 00:48:06 +00:00
Evan Rosky
0821d9c3d5 Merge "Sync PiP WM bounds to rotation immediately for fade-in" into tm-dev am: d5826ea531
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17263633

Change-Id: I81329e66537b2d626f15bf981209c1515f735764
2022-03-22 21:41:18 +00:00
Evan Rosky
d5826ea531 Merge "Sync PiP WM bounds to rotation immediately for fade-in" into tm-dev 2022-03-22 21:09:35 +00:00
Mady Mellor
50ee3ce879 Fix an issue where stack education and the stack weren't aligned
On rotation the stack position is updated using the relative stack
position based on the last resting position. This doesn't work well
with the user education which relies on the stack being in the
"default" position & updating to the relative position clobbers this.
This change updates it so that:

1 - when the stack user education is shown it always updates the
    stack to be in the default position
2 - if stack user education is showing, don't set the stack position

Bug: 223635730
Test: manual - rotate device with stack user education showing and
               make sure the stack is aligned with the education view
Change-Id: I232227aed29ceef060883ed60ed02563093a9bbb
2022-03-22 18:50:22 +00:00
Mady Mellor
9052b5c2fe Adjust the sizes of user education for large screens / landscape
When the stack is expanded on large screen devices, the bubbles are
inset from the edge of the screen. Due to this the rounded corner
on the user education view for the manage button is kinda squished
with the text. To make this look better, increase the width of this
user education view when on large screens. Use this value for
landscape on phone as well because we were doing match parent in
that scenario and it looks bad.

Additionally, on all form factors, increase the padding at the end
of the view. This makes it look a little better especially for
languages where the words can be long.


Bug: 223635730
Test: visual - force user education to show for bubbles, take a look
               at how the stack & manage user education views look
               on tablet and phone (in landscape and portrait).
Change-Id: I7bcdfff7341b8c6acad0f6f5fdcbc7fd24aa4627
2022-03-22 18:50:08 +00:00
Mateusz Cicheński
a6ac70eddf Pass the keep clear areas to PipBoundsState.
Bug: 183746978
Test: atest PipControllerTest
Change-Id: Ic1cfe6e51298f172a09d3ab31dd599b7002e99b7
2022-03-22 17:36:48 +00:00
Sergey Serokurov
dff8e6ca7a Merge "Set Manage button click listener using postDelayed" into tm-dev am: 493666178c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17258121

Change-Id: I0d3d898b8b474d4b2d56480543108c6aa0a7af00
2022-03-22 16:00:10 +00:00
Sergey Serokurov
493666178c Merge "Set Manage button click listener using postDelayed" into tm-dev 2022-03-22 15:55:50 +00:00
TreeHugger Robot
9e1f3689b5 Merge "Deprecating windowSplashScreenAnimationDuration attr." into tm-dev am: 8bd2541e6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17178851

Change-Id: Ib61943fbf5b07aa98465d58174d0302cd2432a13
2022-03-22 14:40:29 +00:00
TreeHugger Robot
8bd2541e6e Merge "Deprecating windowSplashScreenAnimationDuration attr." into tm-dev 2022-03-22 14:23:31 +00:00
Pablo Gamito
1b527673cf Merge "Undeprecate animation background color" into tm-dev am: 7fb9397972
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17045230

Change-Id: Icd103496a6b6d0a1f6dece0c7f6acee239f4d67f
2022-03-22 13:54:52 +00:00
Pablo Gamito
7fb9397972 Merge "Undeprecate animation background color" into tm-dev 2022-03-22 13:48:12 +00:00
Jacqueline Bronger
7ebecd1625 Merge changes from topics "presubmit-am-1325d67a7f674ca38123dd172960bc6f", "presubmit-am-ffd5cd4e8da74d618406f2c336a0d70d" into tm-dev am: c037af53ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17048623

Change-Id: Ib6427d9fbb2e72ec725ca90ae8fd5a1258901838
2022-03-22 13:47:28 +00:00
Jacqueline Bronger
c037af53ba Merge changes from topics "presubmit-am-1325d67a7f674ca38123dd172960bc6f", "presubmit-am-ffd5cd4e8da74d618406f2c336a0d70d" into tm-dev
* changes:
  Add broadcast receiver to toggle expanded PiP (TV)
  Add broadcast receiver to open PiP move menu on TV
2022-03-22 13:33:35 +00:00
Tony Huang
d76637e8fd Implement fade animation on SplitDecorManager
Implement fade animation on it and follow-up to new design that
only show decor on lager side.

Bug: 220985951
Test: manual
Test: pass existing tests
Change-Id: Ifa3487075ffcfb2041c94a9435e27d4aca500842
2022-03-22 16:46:02 +08:00
Tom Natan
715d1ee956 Merge "[19/n] Letterbox Education: fix multi-user preference key" into tm-dev am: 87de67b69e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17293244

Change-Id: I52d5581ad93adcd57827185eefca9be280673ae7
2022-03-22 04:26:22 +00:00
Tom Natan
87de67b69e Merge "[19/n] Letterbox Education: fix multi-user preference key" into tm-dev 2022-03-22 04:19:30 +00:00
Sergey Serokurov
7fcda60a99 Set Manage button click listener using postDelayed
Bug: 223901921
Test: manual
Change-Id: If4db2a7872ead26cfd02a3e8f5f752cb6f111503
2022-03-21 12:53:07 -07:00
tomnatan
f94b460fda [19/n] Letterbox Education: fix multi-user preference key
TaskInfo#userId should be used instead of Context#getUserId because the
latter isn't correct following user switch.

In addition, don't mark the education as seen for the current user until
the dialog enter animation is done, to make sure the dialog is fully
visible to the user.

Fix: 225840105
Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest
Change-Id: Ic99c59bc866735bdc1420513f7a3eade4253e391
2022-03-21 17:42:34 +00:00
Jacqueline Bronger
d2a5274d11 Merge "Implement custom PiP close action on TV." into tm-dev am: 3c5b9738c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17046344

Change-Id: I3735f5a2a7400f155708c95116a0e7b738ebb9e5
2022-03-21 08:10:42 +00:00
Jacqueline Bronger
3c5b9738c7 Merge "Implement custom PiP close action on TV." into tm-dev 2022-03-21 07:56:37 +00:00
Tiger Huang
c3813c81a0 Merge "Push drag-resize mode to the client" into tm-dev am: 883190cdb3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17222863

Change-Id: Ib2c9262b0229579ebe14f4a5b77986b6efa2045d
2022-03-21 06:08:46 +00:00
Bill Yi
b375c75da5 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-03-20 17:59:26 +00:00
Tiger Huang
3e194cc9fa Push drag-resize mode to the client
The goal of this CL is to remove RELAYOUT_RES_DRAG_RESIZING_DOCKED and
RELAYOUT_RES_DRAG_RESIZING_FREEFORM, which is a step to make relayout an
oneway binder call.

When the resize mode is changed at the server side, the server will send
the new mode to the client via IWindow#resized, so the client doesn't
need to obtain the resize mode from the flags returned from relayout.

Bug: 161810301
Test: Perform drag-resize and drag-move on a freeform task and see if
      there is any unexpected behavior.
Change-Id: I450abc113932b6c1dc0ce0e2b76bebdf85a60777
2022-03-20 14:36:19 +08:00
Tom Natan
adaa7f2cdd Merge "Fix issue where KidsModeTaskOrganizer registers itself as CompatUICallback" into tm-dev am: ad03eb31c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17259743

Change-Id: I05b4b6acd5bc841ee27e0fc9ce0261535c6e6ce6
2022-03-19 15:38:15 +00:00
Tom Natan
ad03eb31c2 Merge "Fix issue where KidsModeTaskOrganizer registers itself as CompatUICallback" into tm-dev 2022-03-19 15:34:35 +00:00
Kholoud Mohamed
a8e9aa390d Merge changes from topic "apiFeedback" into tm-dev
* changes:
  RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
  RESTRICT AUTOMERGE move device policy resource APIs to a separate class
  RESTRICT AUTOMERGE hide device policy resources constants
2022-03-19 06:30:43 +00:00
TreeHugger Robot
6df18cf891 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-19 00:35:33 +00:00
TreeHugger Robot
8698e514a5 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-19 00:34:37 +00:00
kholoud mohamed
b7aedc6f3d RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
Bug: 217388602
Bug: 218875965
Test: atest EnterpriseResourcesTests
Test: manual
Change-Id: I8af03136e67057d171e97cb5a43187aa6c7f4fe7
2022-03-19 00:22:17 +00:00
tomnatan
7ce3e6a5a4 Fix issue where KidsModeTaskOrganizer registers itself as CompatUICallback
This results in the compat UI clicks reaching KidsModeTaskOrganizer instead of ShellTaskOrganizer.

Test: tested manually
Fix: 225137584
Change-Id: I1c79dd400810cc31c1d0f938887e45ab11ecf6fa
2022-03-19 00:08:25 +00:00
Evan Rosky
433c5eae07 Sync PiP WM bounds to rotation immediately for fade-in
When pip is fading-in, it should be reconfigured at the start
of the animation. This means that if the display rotates, we
want to immediately update the pip bounds to match otherwise
the window content will be relayout-ed in the wrong place on
screen -- usually resulting in unwanted insets.

In this case, keep track of when we are expecting to start a
fade-in and, in that situation, recalculate the bounds.

Additionally, fix a non-deterministic ordering situation where
some legacy per-activity callbacks would make global changes.
This meant that the order of activities in mParticipants could
effect which transition was actually requested. This CL moves
all the legacy callbacks after the other per-activity logic
in finishTransition.

Bug: 222033492
Test: Open landscape auto-pip app. Open recents, tap on edge
      watch pip fade-in without content-flicker
Change-Id: Iea3dc3ac4ddda02e1b464baedd11fb1cc9cbe930
2022-03-18 15:33:36 -07:00
Sergey Serokurov
6e45a130d5 Merge "Take into account cutout when hiding bubble stack in immersive mode" into tm-dev am: 9256523855
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17184734

Change-Id: If2927eb0e566cb99dd412ffdea5ba8e7ee5ee02a
2022-03-18 19:43:17 +00:00
Sergey Serokurov
9256523855 Merge "Take into account cutout when hiding bubble stack in immersive mode" into tm-dev 2022-03-18 19:28:59 +00:00
TreeHugger Robot
8d90f5f93e Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-03-18 14:28:36 +00:00
Evan Rosky
991efd4ba5 Merge "Fix pip finish-callback when enter animation runs in shell" into tm-dev am: a341f3003a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17219491

Change-Id: I7e3a78bfe87fc792735e98916f8eeb52c78172ae
2022-03-18 03:25:38 +00:00