Commit Graph

49755 Commits

Author SHA1 Message Date
Thales Lima c335ad28a2 launcher: use a different task menu for foldables
Foldables use a different menu from phones, positioned either to the
right or left of the app icon, and display an arrow. Since TaskMenuView
is very specific for handhelds, it was cleaner to create another class
to handle foldables case extending from ArrowPopup.

This creates a working menu, the correct style will come in later CLs.

Bug: 193432925
Test: open Overview and tap the app icon

Fixes: 205298731
Test: atest NexusLauncherTests

Change-Id: I7a5c1fb4800a309f40fadb2df0f6c3a4c3f42679
2021-11-10 17:30:13 +00:00
Winson Chung 52d22171a2 Merge "Support multiple tasks in recentsaninmation onTaskAppeared" into sc-v2-dev am: 7ce4af988b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16184047

Change-Id: Iea2192b1d3f8c7289877657fbf4a1abe018be2b6
2021-11-10 17:29:16 +00:00
Winson Chung 5e48eac33e Merge "Support multiple tasks in recentsaninmation onTaskAppeared" into sc-v2-dev am: 7ce4af988b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16184047

Change-Id: I5c10d44cd48b423a38893138ff410b68a1816b62
2021-11-10 17:28:05 +00:00
Winson Chung 7ce4af988b Merge "Support multiple tasks in recentsaninmation onTaskAppeared" into sc-v2-dev 2021-11-10 17:05:46 +00:00
Vinit Nayak d016d3560e Merge "Shows AppPairs in previous tasks" into sc-v2-dev am: 524d6b83e9 am: 6f15d11ebf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16134803

Change-Id: Iedaa6b3540ee49ddb2672b9fd7acc0382a6f59f4
2021-11-10 17:05:39 +00:00
Vinit Nayak 0061ab1f4d Merge "Shows AppPairs in previous tasks" into sc-v2-dev am: 524d6b83e9 am: d9d4ef59ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16134803

Change-Id: Icc5fa4343fa983b5b79c1f421f0410a500082bc7
2021-11-10 17:00:34 +00:00
Vinit Nayak 6f15d11ebf Merge "Shows AppPairs in previous tasks" into sc-v2-dev am: 524d6b83e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16134803

Change-Id: I726ce816e156897ec719cc7108315a7f49b5d2d1
2021-11-10 16:47:30 +00:00
Vinit Nayak d9d4ef59ac Merge "Shows AppPairs in previous tasks" into sc-v2-dev am: 524d6b83e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16134803

Change-Id: I244d0877336d28d6d76a5c45c78811bfc662755b
2021-11-10 16:46:23 +00:00
Vinit Nayak 524d6b83e9 Merge "Shows AppPairs in previous tasks" into sc-v2-dev 2021-11-10 16:33:50 +00:00
Fedor Kudasov 96f8792c04 Annotate AttributeSet with @Nullable
Bug: 205828770
Test: m LauncherGoResLib
Change-Id: Ib8584e1bbcc7061aef2eb4813a8f6aa41d3c7362
2021-11-10 15:26:08 +00:00
TreeHugger Robot 9ddabb0a01 Merge "Fix wrong getIconBounds method inside BubbleTextView" into sc-v2-dev am: 31bd663332 am: 31926e6c5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16186109

Change-Id: If3d6464cc4f84c8b346d20703adc97a1c070af5e
2021-11-10 10:10:32 +00:00
TreeHugger Robot c67891dcb2 Merge "Don't skip adding stub home task if applyLoadPlan hasn't run" into sc-v2-dev am: e4f6f951da am: 3f6a430c20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16221737

Change-Id: Idca76065c2285235a73211637d52e603cb85284d
2021-11-10 10:10:24 +00:00
TreeHugger Robot 903065a490 Merge "Fix wrong getIconBounds method inside BubbleTextView" into sc-v2-dev am: 31bd663332 am: c1d0a5a6fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16186109

Change-Id: If8a2b62b5f1166dd53905482c3ef139e4801b550
2021-11-10 10:09:58 +00:00
TreeHugger Robot eecaf1f5aa Merge "Don't skip adding stub home task if applyLoadPlan hasn't run" into sc-v2-dev am: e4f6f951da am: d354341d30
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16221737

Change-Id: I50ddb396c9e5545055553cbbd53637cbddec24b7
2021-11-10 10:09:49 +00:00
TreeHugger Robot 31926e6c5d Merge "Fix wrong getIconBounds method inside BubbleTextView" into sc-v2-dev am: 31bd663332
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16186109

Change-Id: I20d38e8b3bef394ce3daba18c773e3f066c9a750
2021-11-10 09:52:21 +00:00
TreeHugger Robot 3f6a430c20 Merge "Don't skip adding stub home task if applyLoadPlan hasn't run" into sc-v2-dev am: e4f6f951da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16221737

Change-Id: Id43dc63c7799e1ebedecac7f524e4b66a6772546
2021-11-10 09:52:15 +00:00
ryanlwlin 1ee6bd7bb6 Fix the cutout of magnification border
If the window is unmagnifiable, it might cause the cutout of
magnification region.
To fix it, we set the flag when the touchable region is not the
entier window frame.

To fix NexusLauncherTests, we add a flag to avoid updateViewLayout
too frequently that would impact memory test and have the performance
issue.

Bug: 196510717
Test: manual test on gestural and 3-button navigation
      presumbit test pass
      run atest NexusLauncherTests with foldables
Change-Id: Ifef81640fe6c08ee1b0dcd3915227fba3002ea43
Merged-In: Ifef81640fe6c08ee1b0dcd3915227fba3002ea43
(cherry picked from commit c8d588cff6)
2021-11-10 09:51:54 +00:00
TreeHugger Robot c1d0a5a6fb Merge "Fix wrong getIconBounds method inside BubbleTextView" into sc-v2-dev am: 31bd663332
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16186109

Change-Id: I24ecb290b780f7fb75af827d262131ce62847243
2021-11-10 09:51:15 +00:00
TreeHugger Robot d354341d30 Merge "Don't skip adding stub home task if applyLoadPlan hasn't run" into sc-v2-dev am: e4f6f951da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16221737

Change-Id: I1e40e55d97207031c416d1ea99abc6a63d93e466
2021-11-10 09:51:06 +00:00
TreeHugger Robot 31bd663332 Merge "Fix wrong getIconBounds method inside BubbleTextView" into sc-v2-dev 2021-11-10 09:44:26 +00:00
TreeHugger Robot e4f6f951da Merge "Don't skip adding stub home task if applyLoadPlan hasn't run" into sc-v2-dev 2021-11-10 09:38:44 +00:00
Jon Miranda ced6eeaaa1 Add back waitForStateTransitionToEnd to fix flakiness. am: 8568602aaf am: c7e9e637bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16225468

Change-Id: I495a0068d3e045de5102a1d51a066fc668ea6f94
2021-11-10 09:31:38 +00:00
Jon Miranda bc477f52b8 Add back waitForStateTransitionToEnd to fix flakiness. am: 8568602aaf am: 6dbfce731a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16225468

Change-Id: Icb006c27e1fbe731f6cce33ab10c179cba3b455c
2021-11-10 09:31:02 +00:00
Jon Miranda c7e9e637bc Add back waitForStateTransitionToEnd to fix flakiness. am: 8568602aaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16225468

Change-Id: Iad482d9d3d23b92f71097d621600f7347f73b804
2021-11-10 09:20:28 +00:00
Jon Miranda 6dbfce731a Add back waitForStateTransitionToEnd to fix flakiness. am: 8568602aaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16225468

Change-Id: Ide0870aab3b7d595417ae4e34502118eb951c32c
2021-11-10 09:19:08 +00:00
Xin Li c4a6b5cc40 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I40bef9eb41bfedf73ac4bd0ff0050833d2a9623c
Change-Id: Iae5e73b18d8885df51c1fca1ef27e277721a8237
2021-11-10 08:06:07 +00:00
Tracy Zhou e89a83b65d Track LauncherState, RecentsAnimation, resumed state for task bar in one place
TODO:
- Consider delaying animating task bar to stashed towards all apps state until user releasing their finger (tho in this change heuristic is applied for stashing and unstashing respectively)
- Further consolidate some animation logic

Bug: 204220602
Test: manual

Change-Id: I58b4d035fcf65a9f5c68e69c129eae95b89b1c4a
2021-11-09 23:46:03 -08:00
Ryan Lin e19039cc69 Merge "Fix the cutout of magnification border" 2021-11-10 02:16:39 +00:00
Jon Miranda 8568602aaf Add back waitForStateTransitionToEnd to fix flakiness.
Bug: 202735477
Test: presubmit
Change-Id: I03c7e8b0c40177f4e6e38a7d9aa3e01b029effd6
2021-11-09 17:02:31 -08:00
Becky Qiu 1fc202867e [AA+ Search] Add logging for header search icon tapping events.
Logging example for the search icon tapping event: https://paste.googleplex.com/4809431536631808

Bug: 198507048
Test: tested with AiAi apk with search icon sent as child of header.
Change-Id: Ibbaec61b93c30a99ea2ffef8d7342490ba37335d
2021-11-09 16:50:47 -08:00
sfufa@google.com 226843cde1 [Search] Introduce notifyEvent api in OneSearch plugin
Bug: 204243851
Test: presubmit
Change-Id: Idba665419038f743f3d977602dab44d270f94642
2021-11-09 16:41:52 -08:00
Android Build Coastguard Worker 459253dc36 Snap for 7898627 from f37d7a21f2 to sc-v2-release
Change-Id: I0a0e6e1181e968b9ea302fba1df0a9a06d9a24a9
2021-11-10 00:08:07 +00:00
Vinit Nayak 4d57e7091f Shows AppPairs in previous tasks
Fixes: 203006080
Change-Id: I63912a61e7617ec41f229c19cc267dc5a1857bae
2021-11-09 13:47:18 -08:00
Jon Miranda 796ec235bb Add resume check to other WorkProfileTests to fix flakiness. am: f37d7a21f2 am: 9ca3c46421
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16222650

Change-Id: Ia69a5904cf794c5127d6ecd5c995ee16fbde95c6
2021-11-09 21:25:26 +00:00
Jon Miranda d0de5ca3e4 Add resume check to other WorkProfileTests to fix flakiness. am: f37d7a21f2 am: cbe0f5fa63
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16222650

Change-Id: Ib2bd359448328ab1fea1fcb5f68c1ad2b5e4e466
2021-11-09 21:24:47 +00:00
Jon Miranda 9ca3c46421 Add resume check to other WorkProfileTests to fix flakiness. am: f37d7a21f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16222650

Change-Id: I053f7bc25f55ce066d6ec9bad17aa029ea0a1b19
2021-11-09 21:04:30 +00:00
Jon Miranda cbe0f5fa63 Add resume check to other WorkProfileTests to fix flakiness. am: f37d7a21f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16222650

Change-Id: Ibb9c82bdab00dae3953a33b4e53f785528fdf2f3
2021-11-09 21:01:35 +00:00
Hyunyoung Song c2f024beb6 Fix wrong getIconBounds method inside BubbleTextView
Bug: 205065809
Test: screenshot on the bug

TL;DR;; created two variants depending on the layout direction

Change-Id: I9c5e74409c701b1f219ca450de0dca2291507045
2021-11-09 11:39:21 -08:00
Alex Chau 7c4bc7dd74 Don't skip adding stub home task if applyLoadPlan hasn't run
- In FallbackRecentsTest.goToOverviewFromHome, home task gesture starts before applyLoadPlan, causing shouldAddStubTaskView to return false because getTaskViewCount is 0. This falsely avoid home task to be added to RecentsView, causing the animation to be drastically different from what user sees outside the test
- Added a check on whether applyLoadPlan is ever called to solve the problem

Fix: 205580523
Test: FallbackRecentsTest.goToOverviewFromHome
Change-Id: I2e435e56008e916e8f7e1037d3fa3c8177437d13
2021-11-09 19:01:23 +00:00
Jon Miranda f37d7a21f2 Add resume check to other WorkProfileTests to fix flakiness.
- Tests were flaky with waitForStateTransitionToEnd
- Tests stopped flaking with both waitForResume and waitForStateTransitionToEnd
- waitForResume may be enough to fix the flakiness, so
  removing waitForStateTransitionToEnd for now, if flakiness
  returns we can add it back

Bug: 202735477
Test: presubmit
Change-Id: Ib9cc16ea7815387582486517a87249d0053475f6
2021-11-09 10:14:01 -08:00
Alex Chau bc53f801bb Merge "Remove gap between screenIds when restoring from single display device" into sc-v2-dev am: 048a8246fa am: 3789aa1c86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16191338

Change-Id: Ib496f264cba523f480eaf7bbd6463b57ed36a9e3
2021-11-09 17:45:22 +00:00
Alex Chau c3a92ca2eb Merge "Remove gap between screenIds when restoring from single display device" into sc-v2-dev am: 048a8246fa am: 2ccecc1614
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16191338

Change-Id: Ia4a19dfe7d59ff7b71e1ca35c22493a371dc3723
2021-11-09 17:44:40 +00:00
Alex Chau 3789aa1c86 Merge "Remove gap between screenIds when restoring from single display device" into sc-v2-dev am: 048a8246fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16191338

Change-Id: I4561a5a799ac82c86756f591a1b330c02974547e
2021-11-09 17:25:57 +00:00
Alex Chau 2ccecc1614 Merge "Remove gap between screenIds when restoring from single display device" into sc-v2-dev am: 048a8246fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16191338

Change-Id: I7d37cd871cf8f6b506154458ba09bc4fe5e9b2e0
2021-11-09 17:23:05 +00:00
Alex Chau 048a8246fa Merge "Remove gap between screenIds when restoring from single display device" into sc-v2-dev 2021-11-09 17:01:10 +00:00
Alex Chau ac038434f0 Remove gap between screenIds when restoring from single display device
- In RestoreDbTask.sanitizeDb, add extra step to fill all screenIds gaps so that no empty pages are left in between
  e.g. [0, 3, 4, 6, 7] -> [0, 1, 2, 3, 4]

Fix: 201085524
Test: RestoreDbTaskTest
Change-Id: If0b577bf789347cc490ada0b22f2cd39ee1a33bb
2021-11-09 17:01:01 +00:00
TreeHugger Robot 1461f4d41f Merge "Fix a case that task jump when dismissing" into sc-v2-dev am: 055d9a5f07 am: 13b23613fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16194618

Change-Id: I3552e89da4f9f3811aa007efa07a3a5514b351eb
2021-11-09 16:39:14 +00:00
TreeHugger Robot abc00984f2 Merge "Fix a case that task jump when dismissing" into sc-v2-dev am: 055d9a5f07 am: 690bd9c527
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16194618

Change-Id: I48f8ef4dd29940960a1da80a0e8728603eec9ff7
2021-11-09 16:38:25 +00:00
TreeHugger Robot 13b23613fa Merge "Fix a case that task jump when dismissing" into sc-v2-dev am: 055d9a5f07
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16194618

Change-Id: I31aae2a9bed46f7421f330126a4a1f5cbca48767
2021-11-09 16:19:50 +00:00
TreeHugger Robot 690bd9c527 Merge "Fix a case that task jump when dismissing" into sc-v2-dev am: 055d9a5f07
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16194618

Change-Id: Ia76826d79488d3fcf11d100206456a69d09a81e1
2021-11-09 16:16:58 +00:00