Commit Graph

12138 Commits

Author SHA1 Message Date
Vinit Nayak bacd5e1d21 Use ComponentCallbacks to recreate on fold/unfold
* DisplayController callbacks were sometimes being
called too soon and providing stale window bounds,
which led to the incorrect DeviceProfile being used.
Switched to ComponentCallbacks on the window to get
the most up-to-date callbacks.
* Sadly, for navigation mode changes, ComponentCallbacks
get fired too soon and have a stale navigation mode
so we continue to rely on DisplayController for that
change for now.

Fixes: 219958843
Test: Tested folding/unfolding, no taskbar appears when
it shouldn't.
Tested with changing display/font size as well as
nav mode changes

Change-Id: I1b398934c0ea49f69bad19b13977b7b0906f3190
2022-03-17 12:03:14 -07:00
Alex Chau 8cee1ebed0 Fix splitPrimaryScrollOffset in RTL
Fix: 225165124
Test: split select in RTL and non-RTL, check min/max scroll
Change-Id: I5fb13e39560d9dceb4a53c9c79a355f72faf3dba
2022-03-17 14:55:14 +00:00
Alex Chau 2e48760e97 Update overview grid icon sizes and paddings
- Introduced additional page spacign for clear all button to match mocks

Fix: 222664142
Test: Quick switch to last task and immediately enter overview
Test: Dismiss last task in overview grid
Change-Id: I4d2f93d843c50b10051f3fb17027cd06e86707e1
2022-03-17 13:44:21 +00:00
Bill Yi 496bab5d60 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifb61dcd706a3df8f2c075555bd915294f4a7ed85
2022-03-17 03:00:54 +00:00
Bill Yi c42f30f626 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ief530dbb7ecfea9032c7f5bc18281fa6e4155571
2022-03-17 03:00:17 +00:00
Wei Sheng Shih 6a54663c3c Merge "[Shell Transition]Release floating task view after second task select." into tm-dev am: 5d9a319c76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17184431

Change-Id: I3df17073dfbea6dc6b0012f1fef820d5f0e6ae6d
2022-03-17 00:40:05 +00:00
Wei Sheng Shih 3073d0ebc9 Merge "[Shell Transition]Release floating task view after second task select." into tm-dev am: 5d9a319c76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17184431

Change-Id: I69b8ae73e6cfe3a4bf9ceab65c460bfec159c1ce
2022-03-17 00:39:57 +00:00
Wei Sheng Shih 5d9a319c76 Merge "[Shell Transition]Release floating task view after second task select." into tm-dev 2022-03-17 00:25:34 +00:00
wilsonshih 7315e33630 [Shell Transition]Release floating task view after second task select.
Register animation start callback to RemoteSplitLaunchTransitionRunner,
so there can clear up the floating task view when entering recents.

Bug: 223397364
Test: verify no floating task view remaining on RecentsActivity.
Change-Id: Idedc7950b8954d1376960d5e74aa4c60fefa9c86
2022-03-16 11:30:46 +08:00
TreeHugger Robot b1b9117eef Merge "Fix failing test TaplTaskbarTest#testHideShowTaskbar" into tm-dev am: a66bbdab86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17188987

Change-Id: I730b0ee11ce5c3460155d4a03a1a80c480cbf828
2022-03-15 23:32:35 +00:00
TreeHugger Robot bc6f2374fd Merge "Fix failing test TaplTaskbarTest#testHideShowTaskbar" into tm-dev am: a66bbdab86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17188987

Change-Id: I89e0de9f862d1945e0309cd2acbda4a1b160462f
2022-03-15 23:31:19 +00:00
TreeHugger Robot a66bbdab86 Merge "Fix failing test TaplTaskbarTest#testHideShowTaskbar" into tm-dev 2022-03-15 23:20:08 +00:00
TreeHugger Robot ff04c118c3 Merge "Add event tracking to the gesture navigation tutorial." into tm-dev am: e0380381b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17127449

Change-Id: I4f23193e75ee759f60f9550a8207ba8583205156
2022-03-15 22:38:13 +00:00
TreeHugger Robot be4217d19e Merge "Add event tracking to the gesture navigation tutorial." into tm-dev am: e0380381b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17127449

Change-Id: Ia417f3d407c7ef254e7bf31f05782f13294a7345
2022-03-15 22:37:51 +00:00
TreeHugger Robot 056f90e232 [Merge] Small improvement for ag/17016891 (unstash taskbar input area size)
Because of a merge conflict in ag/17141712 we have to first accept
this and then the other.

Bug: 204166104
Test: Unstash and stash taskbar, done in both orientations.
Change-Id: I14c3593552939f3be78f3e5c1193020873555d37
2022-03-15 22:16:26 +00:00
TreeHugger Robot e0380381b7 Merge "Add event tracking to the gesture navigation tutorial." into tm-dev 2022-03-15 22:12:29 +00:00
kholoud mohamed e210b47c20 RESTRICT AUTOMERGE Moved enteprise resource updatability to Launcher3
Bug: 217388602
Bug: 218875965
Test: atest EnterpriseResourcesTests
Test: manual
Change-Id: I095a1da30766e4b4eab33f42b034601b3322eb3d
2022-03-15 17:24:04 +00:00
Schneider Victor-tulias 0cde81a5d2 Fix failing test TaplTaskbarTest#testHideShowTaskbar
Closing the Taskbar all apps page doesn't automatically close any open popup menus. This lead to the popup menu opened in TaplTaskbarTests#testOpenMenu_FromTaskbarAllApps remaining open after going home in setUp (before running TaplTaskbarTest#testHideShowTaskbar). The the workspace is not visible to the tests while the popup menu is open, so this test would consistenly fail.

Bug: 215218813
Fixes: 224597087
Test: Ran tests locally and remotely
Change-Id: I81d8eb1e99a264611749eb3c508f707988c0fcb1
2022-03-14 22:19:12 +00:00
TreeHugger Robot b7810a041b Merge "Renaming LauncherInstrumentation.pressHome to goHome" into tm-dev am: 8cb2364c1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17128893

Change-Id: I6d6c71f8721e9907ad46ba88d8b84fd9881d42db
2022-03-14 21:10:48 +00:00
TreeHugger Robot 4e130a995c Merge "Renaming LauncherInstrumentation.pressHome to goHome" into tm-dev am: 8cb2364c1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17128893

Change-Id: I51f169e47e08e0e43c1cdb7dd7ceea2a7074c205
2022-03-14 21:10:25 +00:00
TreeHugger Robot 8cb2364c1a Merge "Renaming LauncherInstrumentation.pressHome to goHome" into tm-dev 2022-03-14 20:37:06 +00:00
Schneider Victor-tulias b82d945953 Add event tracking to the gesture navigation tutorial.
- Added logs for tutorial step shown/completed and for tutorial skip.
- Added shared preference tracking for tutorial steps completed and for tutorial skip.

Bug:
Test: manual
Change-Id: I47dbdb394db80c5687e98fb034a3883b33f6fd3c
2022-03-14 13:14:05 -07:00
Merissa Tan 5836e3802b Merge "Add running apps icons to taskbar for desktop environment." 2022-03-14 18:18:33 +00:00
vadimt 41c0b52cd9 Renaming LauncherInstrumentation.pressHome to goHome
This is a better name now that we have gestural nav.

Renaming will happen in stages, the first one being having 2 names side-by-side.

Test: presubmit
Bug: 187761685
Change-Id: Ifb15c838cc0e161d852cf6df025687e3f92d6124
2022-03-14 18:13:47 +00:00
Shan Huang 4be5acc273 Merge "Clear back callback in SystemUiProxy." into tm-dev am: b6ff87bb99
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17169107

Change-Id: Ie4c9579e315c5add2531d85c1f971ba56f05f622
2022-03-14 17:02:50 +00:00
Shan Huang aa358e2a35 Merge "Clear back callback in SystemUiProxy." into tm-dev am: b6ff87bb99
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17169107

Change-Id: Ibc448746886bdfcd70513fa7032fe1988e580352
2022-03-14 17:02:33 +00:00
Shan Huang b6ff87bb99 Merge "Clear back callback in SystemUiProxy." into tm-dev 2022-03-14 16:29:25 +00:00
Alex Chau 9142cd1aa2 Merge "Use overview_actions_height from Resources to calculate OverviewActionsView alignment" into tm-dev am: 85978e7dc8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17158485

Change-Id: I5643ac17c9fe93450c33e816bdb86f9e1d2175fe
2022-03-14 11:49:27 +00:00
Alex Chau 93f20f0482 Merge "Use overview_actions_height from Resources to calculate OverviewActionsView alignment" into tm-dev am: 85978e7dc8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17158485

Change-Id: I3dfcd6134297b74e27c831cd32a9ca3cfacf7d6d
2022-03-14 11:49:13 +00:00
Alex Chau 85978e7dc8 Merge "Use overview_actions_height from Resources to calculate OverviewActionsView alignment" into tm-dev 2022-03-14 11:21:32 +00:00
Shan Huang b960ea2be1 Clear back callback in SystemUiProxy.
Bug: 223955009
Test: atest com.android.launcher3.jank.BinderTests#testPressHome

Change-Id: I00197732a6e50c0907afecff497702fc4b799925
2022-03-11 18:03:52 +00:00
TreeHugger Robot d9352a2a3b Merge "Close taskbar all apps when task stack changes." into tm-dev am: 19570f9b05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17162359

Change-Id: I9a33a7f0e4686505ae5c98af4d0744ad958a250d
2022-03-11 02:32:17 +00:00
TreeHugger Robot fff94e1155 Merge "Close taskbar all apps when task stack changes." into tm-dev am: 19570f9b05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17162359

Change-Id: I122f91b36febcd050e0e9e446e70c313b944eed5
2022-03-11 02:32:12 +00:00
TreeHugger Robot 506dd38978 Merge "Launcher side implementation of gesture seekable back to home animation." into tm-dev am: 1b4d9b3b23
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17086406

Change-Id: Ia0b024a9c797d514c4fa2638e4a9f5c997f8fff1
2022-03-11 02:32:06 +00:00
TreeHugger Robot de686c7293 Merge "Launcher side implementation of gesture seekable back to home animation." into tm-dev am: 1b4d9b3b23
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17086406

Change-Id: I480b7a1bbbfac5bae71eb9db297ab8db22b911df
2022-03-11 02:31:59 +00:00
TreeHugger Robot 19570f9b05 Merge "Close taskbar all apps when task stack changes." into tm-dev 2022-03-11 02:18:34 +00:00
TreeHugger Robot 1b4d9b3b23 Merge "Launcher side implementation of gesture seekable back to home animation." into tm-dev 2022-03-11 02:11:03 +00:00
TreeHugger Robot ceecec6746 Merge "Add taskbar TAPL tests" into tm-dev am: 6b7e469088
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17016894

Change-Id: I4b21cb49523448eacc8991c7089df99a62fb6264
2022-03-11 00:26:42 +00:00
TreeHugger Robot e21f325530 Merge "Add taskbar TAPL tests" into tm-dev am: 6b7e469088
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17016894

Change-Id: I94952522f2b8c4355f04ecedc5a620ffc2601f6d
2022-03-11 00:26:40 +00:00
Shan Huang 581429b3dc Launcher side implementation of gesture seekable back to home animation.
This is a two part animation. The first part is an animation that tracks gesture location to scale and move the leaving app window. Once the gesture is committed, the second part takes over the app window and plays the rest of app close transitions in one go.

This animation is used only for apps that enable back dispatching via {@link android.view.OnBackInvokedDispatcher}. The controller registers an {@link IOnBackInvokedCallback} with WM Shell and receives back dispatches when a back navigation to launcher starts.

Apps using the legacy back dispatching will keep triggering the WALLPAPER_OPEN remote transition registered in {@link QuickstepTransitionManager}.

Bug: b/195946584
Test: m -j
Test: Swipe back to home on pre-T and T apps, at different life cycle
stages.

Change-Id: I615c5171cd875130f10346fa3ca2a8e9670176cf
2022-03-11 00:11:21 +00:00
Brian Isganitis 7910a3ca0a Close taskbar all apps when task stack changes.
Test: Manual
Fix: 223898952
Change-Id: I4c5e41227f0ee199cc08931f4532d769f376a617
2022-03-10 16:03:30 -08:00
TreeHugger Robot 6b7e469088 Merge "Add taskbar TAPL tests" into tm-dev 2022-03-11 00:00:36 +00:00
Merissa Tan 501ac7242d 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: Ieaaf001530b5778871fb7a8d18cdcaa1ccbf0e31
2022-03-10 15:30:06 -08:00
TreeHugger Robot c755b33711 Merge "Revert "Sync hotseat/taskbar handoff"" into tm-dev am: ec8ba135be
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17158891

Change-Id: I89dee436720812539fc60e0e5c3421adc025ec9c
2022-03-10 22:26:12 +00:00
TreeHugger Robot b1f884b273 Merge "Revert "Sync hotseat/taskbar handoff"" into tm-dev am: ec8ba135be
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17158891

Change-Id: Iee9218d642567e43254b1240d6b5dc83305b96ce
2022-03-10 22:22:59 +00:00
Jon Miranda d7a8be06dd Merge "Add debug logs for bad launcher state." into tm-dev am: e8b174482d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17155096

Change-Id: Ic4e13fa90a0156509738d7e404d733b2c4b791c9
2022-03-10 22:22:49 +00:00
Jon Miranda 50b532aa46 Merge "Add debug logs for bad launcher state." into tm-dev am: e8b174482d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17155096

Change-Id: I9eb4f460511cdc038bbb3a6cc0f655b729442332
2022-03-10 22:22:40 +00:00
TreeHugger Robot 18ebd4645f Merge "Set taskbar touchable region to empty when all apps is open." into tm-dev am: 5ad574ae60
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17158409

Change-Id: I5dbd4d2a745bb1c88f4be8b0c2e35d90fb1a5cb2
2022-03-10 22:22:39 +00:00
TreeHugger Robot 88382ae15b Merge "Set taskbar touchable region to empty when all apps is open." into tm-dev am: 5ad574ae60
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17158409

Change-Id: Ib501e315a809da4755cdc5ecb0e115992f53eddd
2022-03-10 22:22:30 +00:00
TreeHugger Robot ec8ba135be Merge "Revert "Sync hotseat/taskbar handoff"" into tm-dev 2022-03-10 22:19:16 +00:00