Commit Graph
54966 Commits
Author SHA1 Message Date
Brian Isganitis 99a6be39ca Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev am: bc1b36344f am: 7e5e234668
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16215049

Change-Id: I59d603e5413c0a2b1f528fbfcef4d041c519502a
2021-11-10 20:29:16 +00:00
TreeHugger Robot cc4438ac0b Merge "launcher: use a different task menu for foldables" into sc-v2-dev am: 0aadbc6b37 am: 3945fd8f4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214330

Change-Id: Ife3cc0d3a23a048495d275b8225d64c32af7743b
2021-11-10 20:29:04 +00:00
Brian Isganitis 23b37b7ac4 Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev am: bc1b36344f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16215049

Change-Id: I4f7b99eca39c182a37110c138ee2a5d17d33ad2c
2021-11-10 20:18:30 +00:00
TreeHugger Robot bf6842025b Merge "launcher: use a different task menu for foldables" into sc-v2-dev am: 0aadbc6b37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214330

Change-Id: I99b1bb0531dcbfdbc6e8899da06ff7d82c817fed
2021-11-10 20:18:23 +00:00
Brian Isganitis 7e5e234668 Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev am: bc1b36344f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16215049

Change-Id: I5634da8649178166d17a63d04787e5079df83dc0
2021-11-10 20:17:45 +00:00
TreeHugger Robot 3945fd8f4c Merge "launcher: use a different task menu for foldables" into sc-v2-dev am: 0aadbc6b37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214330

Change-Id: I46f180584f6abb122adbb290e6a128151509c07c
2021-11-10 20:17:36 +00:00
Brian Isganitis bc1b36344f Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev 2021-11-10 19:56:07 +00:00
TreeHugger Robot 0aadbc6b37 Merge "launcher: use a different task menu for foldables" into sc-v2-dev 2021-11-10 19:45:36 +00:00
Vinit Nayak 2db58f68ee Finish recents animation for app-icon tap
* There is a layering issue w/ live tile
* Also, order tasks for app-pair when binding

Bug: 205354856
Change-Id: I4fb5b9ed070e96299fd4b58d172ebba93789d009
2021-11-10 10:21:02 -08:00
Winson Chung 832cffcb4c Merge "Support multiple tasks in recentsaninmation onTaskAppeared" into sc-v2-dev am: 7ce4af988b am: 52d22171a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16184047

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

Change-Id: I9439b1874246f2ab75bfcb34babab2bd4d6ea268
2021-11-10 17:40:14 +00:00
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