Commit Graph

47938 Commits

Author SHA1 Message Date
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
TreeHugger Robot 055d9a5f07 Merge "Fix a case that task jump when dismissing" into sc-v2-dev 2021-11-09 16:03:45 +00:00
Lais Andrade f6e31b1d21 Fix overview scroll triggering haptics on swipe up gesture
Add an extra check to the PagedView, before triggering the haptic
callback, to avoid triggering this when the scroll happens
outside an actual scroll action (e.g. some setter methods that update
the scroll state).

This was triggered on some calls to setCurrentPage, that was
snapping the current scrolled page and triggering the
View.onScrollChanged method.

Fix: 201237536
Test: manual
Change-Id: I9b29981dba408493c78873aea42d8615ea7573a0
Merged-In: I9b29981dba408493c78873aea42d8615ea7573a0
(cherry picked from commit bff03e2d0f)
2021-11-09 10:26:42 +00:00
ryanlwlin c8d588cff6 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
2021-11-09 14:17:48 +08:00
TreeHugger Robot 4fe2da7724 Merge "Fixing allSet page not closed if recentsAnimation takes time to start" into sc-v2-dev am: ef18f8c5a2 am: 382f0482db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16200930

Change-Id: I69713060b3292a452daad72a1e295bf5d03d6b58
2021-11-09 02:23:18 +00:00
TreeHugger Robot e93ed69a30 Merge "Fixing allSet page not closed if recentsAnimation takes time to start" into sc-v2-dev am: ef18f8c5a2 am: ff75c4fe78
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16200930

Change-Id: Ia7eabd1f8317146eba56f47f16f40bb43c8a952e
2021-11-09 02:22:22 +00:00
TreeHugger Robot 382f0482db Merge "Fixing allSet page not closed if recentsAnimation takes time to start" into sc-v2-dev am: ef18f8c5a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16200930

Change-Id: If8de6389bb53307def876328001092aeb3504b3a
2021-11-09 02:00:36 +00:00
TreeHugger Robot ff75c4fe78 Merge "Fixing allSet page not closed if recentsAnimation takes time to start" into sc-v2-dev am: ef18f8c5a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16200930

Change-Id: Ie168c6b5d955b9839f6d48b3204d9f62ed67cd90
2021-11-09 01:57:46 +00:00
Evan Rosky e4102c6ffe Support multiple tasks in recentsaninmation onTaskAppeared
Needed for app-pairs support

Bug: 204094785
Test: TODO
Change-Id: I3c5f8097b04b4033ba887e3c6d9e5ffd900df80e
2021-11-08 17:40:13 -08:00
TreeHugger Robot ef18f8c5a2 Merge "Fixing allSet page not closed if recentsAnimation takes time to start" into sc-v2-dev 2021-11-09 01:35:48 +00:00
TreeHugger Robot 7d72c5d34d Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev am: 1c79327f6e am: 27f2fb355d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214207

Change-Id: I639d286a0ab06b41a3ad8fd65d996e1c3576ae49
2021-11-09 00:34:09 +00:00
TreeHugger Robot 31df4aca76 Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev am: 1c79327f6e am: 55bef3bdd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214207

Change-Id: I8caedae65eff243061015e8076bb581c3aea2986
2021-11-09 00:33:31 +00:00
TreeHugger Robot 27f2fb355d Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev am: 1c79327f6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214207

Change-Id: Ie577045ed8b6a12b9cd69d8aac19242227cf2dd7
2021-11-09 00:15:13 +00:00
TreeHugger Robot 55bef3bdd4 Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev am: 1c79327f6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16214207

Change-Id: I62876c198b063445041fa67bb75b3a9b90056762
2021-11-09 00:12:23 +00:00
Android Build Coastguard Worker 217e5c75b5 Snap for 7894766 from 44fcfa5bfd to sc-v2-release
Change-Id: I5a2c14d7dc9a8b9da43c321cd354ae732d3ccd8c
2021-11-09 00:08:49 +00:00
TreeHugger Robot 1c79327f6e Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev 2021-11-08 23:52:50 +00:00
Brian Isganitis 149dbcb137 Allow overriding getOptionsPopup test method.
Test: TAPL
Bug: 205491724
Change-Id: Ib4adfa85df6aa9e52922f76479487c9459535fcd
2021-11-08 18:17:36 -05:00
TreeHugger Robot fb23d19b0e Merge "Play fallback animation when overlay is shown." into sc-v2-dev am: 44fcfa5bfd am: 1f60b796e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16202910

Change-Id: Ic4e4453545993c174af2be241c40af0c814cf978
2021-11-08 21:19:16 +00:00