Commit Graph

1022 Commits

Author SHA1 Message Date
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
Nataniel Borges
e08000c02d Merge "Allow LaunchBubble app to be launcher from launcher" into tm-dev 2022-03-23 17:47:26 +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
a6ac70eddf Pass the keep clear areas to PipBoundsState.
Bug: 183746978
Test: atest PipControllerTest
Change-Id: Ic1cfe6e51298f172a09d3ab31dd599b7002e99b7
2022-03-22 17:36:48 +00: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
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
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
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
Tom Natan
262c988936 Merge "[18/n] Letterbox Education: start dialog enter animation after all shell transitions have finished" into tm-dev am: 5059dbde7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17136515

Change-Id: I4c17987658568c1acc85be7b0825ec1395176250
2022-03-16 00:26:45 +00:00
Tom Natan
5059dbde7b Merge "[18/n] Letterbox Education: start dialog enter animation after all shell transitions have finished" into tm-dev 2022-03-16 00:26:02 +00:00
tomnatan
dc3dac34bd [18/n] Letterbox Education: start dialog enter animation after all shell transitions have finished
Fix: 219499529
Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest
Test: atest WMShellUnitTests:CompatUIControllerTest
Test: atest WMShellUnitTests:ShellTransitionTests
Change-Id: Ifa7ab82c6fa076fbb054b8d370a244e7e8738b0b
2022-03-15 18:05:38 +00:00
Tony Huang
5f79687ab2 Merge "Fix divider disappear when rotation on shell transition" into tm-dev am: d5cdea4800
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17055968

Change-Id: Ie9e02fafb29785f6fc6a550192942d984e96a72e
2022-03-15 07:52:00 +00:00
Tony Huang
d5cdea4800 Merge "Fix divider disappear when rotation on shell transition" into tm-dev 2022-03-15 07:25:57 +00:00
Shan Huang
535a34fac5 Merge "Implement back to launcher animation from shell and WM animation controllers." into tm-dev am: 7c722ca403
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17087724

Change-Id: I8e07d7190dccc562272197f77e44fddccd50f3a3
2022-03-15 06:02:32 +00:00
Shan Huang
0e9d709e2f Implement back to launcher animation from shell and WM animation
controllers.

Test: m -j.
Test: Open and swipe back on pre-T and T apps.
Test: atest BackNavigationControllerTests
Test: atest BackAnimationControllerTest
Bug: 195946584

Change-Id: I981f8deff9fad75355ee0e8bbe08b375f4da6e74
2022-03-14 23:12:41 +00:00
Tony Huang
dd637175b1 Fix divider disappear when rotation on shell transition
When rotation, it will re-init the split divider for new rotation on
DAinfoChanged callback, but when shell transition, we should do it on
startAnimation to make transition smooth and make didider could release
by specfic Transcation to avoid it hide immediately but didn't sync with
transition.

Fix: 222158856
Test: manual
Test: pass existing tests
Change-Id: I797ffd0ea35d89b4ec1e3ef4828ce36e18c860be
2022-03-14 04:02:01 +00:00
Merissa Tan
2a607adc18 Add running apps icons to taskbar for desktop environment.
This CL adds app icons for launched/running apps to the Launcher
taskbar hotseat. When the activity is closed, the app icon is
removed. The apps that are added to the taskbar on boot are never
removed.

Recall: http://recall/clips/ad6d3cfc-7358-4b37-846e-de843ad3000d

Bug: 183906774
Test: Launch an app and verify the app icon is added on the taskbar.
Close the app and verify the icon is removed from the taskbar.
Test: Switch navigation modes on the emulator and ensure that running
app icons are added to the taskbar after it is reinitialized.
Test: atest NexusLauncherTests:com.android.quickstep.RecentTasksListTest RecentTasksControllerTest

Change-Id: I2c839b6f35310d2d0fa98cc8d4a432eb1163861d
2022-03-10 15:22:33 -08:00
Pablo Gamito
633398fe8c Merge "Promote stable flicker tests" into tm-dev 2022-03-10 18:30:39 +00:00
Pablo Gamito
19caa1d7d8 Promote stable flicker tests
Change-Id: Ibdb17efe85a8a6cb8da16d96c1658720f53bd671
2022-03-10 11:28:41 +00:00
Robert Horvath
3f574e253e Merge "Move TV PiP away from keep clear areas" into tm-dev 2022-03-09 09:14:54 +00:00
Shawn Lin
bf8b8621ad Merge "Exclude nav bar area from apps bounds when in kids mode" into tm-dev 2022-03-09 06:18:00 +00:00
Evan Rosky
10dc2271c1 Merge "move shell_transit sysprop to persist.wm" into tm-dev 2022-03-08 19:34:01 +00:00
Robert Horvath
c4f571a27e Move TV PiP away from keep clear areas
The PiP is placed in a way to avoid keep clear areas.
If no areas overlapping the default PiP anchor position are defined,
the PiP will stay at its anchor position.
Otherwise, it will try to move to a free location closest to its anchor
position. Unrestricted areas can cause the PiP to move across the entire
screen, but restricted areas have limited influence and can only move
the PiP a short distance.
If no free position is found, the PiP will be stashed for some time.
To find the position to move to once the PiP unstashes, a relaxed search
is performed, excluding a restricted keep clear area. If this still does
not yield a position to move to, only unrestricted areas will be taken
into account. The PiP is stashed along the edge closest to the unstash
position.

Bug: 218416347
Bug: 218494300
Test: atest TvPipKeepClearAlgorithmTest
Change-Id: I76c6527320fc403bb604b188f38eed505eeaab89
2022-03-08 18:23:16 +01:00
shawnlin
10d7cb3c0f Exclude nav bar area from apps bounds when in kids mode
GKS requested that app's bounds should not overlap with the nav bar area
when kids mode is enabled except for Launcher.

Creates a dedicate task organizer for kids mode. When kids mode is
enabled, create a root task with its bounds excluding the nav bar area
and tasks except launcher will be launched into it.

Bug: 161689887
Test: manual:
      1. adb shell settings put secure "nav_bar_force_visible" "1"
      2. choose 3-buttons navigation mode in
         Settings>System>Gestures>System navigation
      3. check winscope and see if bounds are set correctly
Test: atest KidsModeTaskOrganizerTest
Test: atest WindowOrganizerTests

Change-Id: I93af1bc5b2696654d8ca5055dbbbebf5a41f89aa
2022-03-08 16:00:22 +08:00
Hongwei Wang
6bafc9804c Merge "Cleanup LegacySplitScreen usage in PiP" into tm-dev 2022-03-07 18:13:21 +00:00
Tom Natan
687af63e66 Merge "Check if keyguard is showing instead of occluded for compat UI." into tm-dev 2022-03-07 15:35:08 +00:00
Tom Natan
2e12d3499c Merge "[16/n] Letterbox Education: focus on the dialog title for accessibility." into tm-dev 2022-03-07 15:32:28 +00:00
Hongwei Wang
5524cdd990 Cleanup LegacySplitScreen usage in PiP
Bug: 207532012
Test: verify PiP works with new split screen
Change-Id: I457bfc174ddf86f3005a47eb6f45eb926915757c
2022-03-04 16:36:00 -08:00
tomnatan
3beba95ad3 [16/n] Letterbox Education: focus on the dialog title for accessibility.
This will cause talkback to read the title and the rest of the dialog when the user swipes right.

Bug: 222112590
Test: atest WMShellUnitTests:LetterboxEduDialogLayoutTest
Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest
Change-Id: Id850520380144055c9efa95f6006b7b277cf8eb9
2022-03-04 18:48:38 +00:00
tomnatan
7b22430139 Check if keyguard is showing instead of occluded for compat UI.
This fixes an issue where compat UI is hidden even when keyguard is dismissed (but still considered occluded because the activity could occlude the keyguard).

Bug: 206627721
Test: atest SystemUITests:WMShellTest
Test: atest WMShellUnitTests:CompatUIControllerTest
Change-Id: I95f5b4d75d46a4958763c5ea3cdadb09b88f9836
2022-03-04 17:14:31 +00:00
Jerry Chang
16fc7aa4f5 Merge "Fix no touch events on half of the split screen" into tm-dev 2022-03-03 01:21:46 +00:00
Evan Rosky
cf3d0a65a4 move shell_transit sysprop to persist.wm
This way we can use a context that systemui can set via flipper

Bug: 219067621
Test: manual
Change-Id: I29d1c39a1733e4d5f19f7f025e8a2cf2ca4f6d5a
2022-03-02 17:04:32 -08:00
Jerry Chang
5982b80584 Fix no touch events on half of the split screen
Make sure the surface bounds of split root tasks will be properly set
after enabled shell-transition. So client apps can inherit the correct
touch region.

Fix: 222163100
Test: atest StageCoordinatorTests
Test: manual check with the repro steps
Change-Id: I5c71e54513ad37d43347f9716081751aad477149
2022-03-02 11:14:16 +00:00
Jerry Chang
613fbf778c Merge "Update smallestScreenWidthDp when split bounds resized" into tm-dev 2022-03-02 04:31:36 +00:00
Nataniel Borges
78019cb9db Allow LaunchBubble app to be launcher from launcher
Test: install all and check launcher
Change-Id: Ib544248a34bc6fd925b343bff819216cdec15f30
2022-02-24 16:27:25 +01:00
Nataniel Borges
e74d47839a Fix wait condition for SetRequestedOrientationWhilePinnedTest
The setup waited for a ROTATION_0, but this test starts at ROTATION_90

Bug: 219773854
Bug: 220977327
Test: atest WMShellFlickerTests:SetRequestedOrientationWhilePinnedTest
Change-Id: Ib2bde1f66f248adbe69acf5c344322e32b364eb2
2022-02-24 11:24:20 +01:00
Chris Li
1e9ff8eea6 Merge "Fix SetRequestedOrientationWhilePinnedTest with Shell transition" into tm-dev 2022-02-24 00:59:34 +00:00
Mateusz Cicheński
429c0a9769 Merge "Moving the resources related to PiP to the WindowManager/Shell." into tm-dev 2022-02-23 19:49:36 +00:00
Nataniel Borges
7f7b20e086 Merge "Crash test when wait condition not met" into tm-dev 2022-02-23 11:16:52 +00:00
Chris Li
7404ff1182 Fix SetRequestedOrientationWhilePinnedTest with Shell transition
When the windowing mode is changed during fixed rotation, we don't want
to animate to the fixed rotation anymore, because the fixed rotation
will be cancelled later.

Bug: 214324061
Test: atest WMShellFlickerTests:SetRequestedOrientationWhilePinnedTest
Change-Id: I24b5389ec2b6ea28ce3ba7abf38fbd269566edf3
2022-02-23 14:50:01 +08:00
Jerry Chang
24d954694a Merge "Fix extra offset of the split layout" into tm-dev 2022-02-23 02:06:18 +00:00
Nataniel Borges
798fe83b4b Crash test when wait condition not met
This makes triaging issues unrelated to the test (e.g., transition crash) easier since all failing assertions are clustered with the same stack trace

Bug: 219773854
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I65bb1b5e87997c856ce080b24d549ba1c978955a
Merged-In: I65bb1b5e87997c856ce080b24d549ba1c978955a
2022-02-22 14:23:34 +00:00
Jerry Chang
a57326c97f Fix extra offset of the split layout
Use parent based coordinate instead of screen based coordinate when
indicating split surfaces' position so they won't be offset unexpectedly
when its parent is not at (0, 0).

Fix: 210696145
Test: check split UI when enabled "render apps below cutout area"
Change-Id: I65399f5ef2975e7ef376d161c41de2cfb7ed29dc
2022-02-22 03:27:10 +00:00
Jerry Chang
bb94ac8b44 Update smallestScreenWidthDp when split bounds resized
Update smallestScreenWidthDp of the splitting tasks, so client apps can
determine which resources they should apply.

Fix: 217600744
Fix: 220069817
Test: atest WMShellUnitTests
Test: manual check smallestScreenWidthDp of splitting apps in winscope

Change-Id: Ie36065a951dfab2d4bb8d7a56dbc12ae03ff4033
2022-02-21 06:05:37 +00:00
Chris Li
02c59f009b Fix ExitPipWithDismissButtonTest#focusDoesNotChange
The transition is to click on the pip menu, then click on the dismiss
button. This will cause the focus change.

Fix: 215869110
Fix: 216306753
Test: atest WMShellFlickerTests:ExitPipWithDismissButtonTest
Change-Id: I50dab84f588c3bedaa7d65c02144054d4eefdcd5
2022-02-21 05:29:51 +00:00
Mateusz Cicheński
6990ff032c Moving the resources related to PiP to the WindowManager/Shell.
Test: Test: atest WMShellUnitTests:PipBoundsAlgorithmTest
Bug: 218653892
Change-Id: Ieeff465e04cbd1bfc3ddfc47f38e11eefa9e798d
2022-02-18 19:02:26 +00:00
Tom Natan
0a8e38d541 Merge "[14/n] Letterbox Education: Add tests for WM shell code." 2022-02-17 18:58:38 +00:00
tomnatan
c295edad0b [14/n] Letterbox Education: Add tests for WM shell code.
In addition, this CL does additional polishing to the code itself.

Bug: 215316431
Test: atest WMShellUnitTests:LetterboxEduDialogLayoutTest
Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest
Test: atest WMShellUnitTests:CompatUIControllerTest
Change-Id: I3cb58f89a52f0d427545e3959dd9082e8b8b5cc7
2022-02-17 16:53:38 +00:00
Tom Natan
0711bba4f2 Merge "Mark compat UI hints as shown only if they are actually shown" 2022-02-17 13:36:33 +00:00