Commit Graph

50541 Commits

Author SHA1 Message Date
Tony Wickham a6bbd643cd Merge "Dump mExclusionRegion bounds" into tm-qpr-dev am: 6e59888a89
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19458613

Change-Id: Id7f1e132d3b5cc90d6423677762dd5745e5f802c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 15:43:42 +00:00
Tony Wickham 6e59888a89 Merge "Dump mExclusionRegion bounds" into tm-qpr-dev 2022-08-01 15:26:35 +00:00
Tony Wickham 3e70b820f0 Dump mExclusionRegion bounds
Also fix the dump for mDeferredGestureRegion to more helpfully print the
bounds instead of the region (which just prints "SkRegion()").

Test: adb shell dumpsys activity service TouchInteractionService | grep
- i region
Bug: 240654796

Change-Id: Ibb14c51f92ec01d2635cee33da15bb6d0421683d
2022-07-29 16:37:11 -07:00
TreeHugger Robot 8409354878 Merge "Set overview progress on fling to 1 only if going to overview state." into tm-qpr-dev am: 4a98d8f919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19394242

Change-Id: I6097c3a59675f5c6883d975a5ff57152ae061b77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 23:05:28 +00:00
TreeHugger Robot 4a98d8f919 Merge "Set overview progress on fling to 1 only if going to overview state." into tm-qpr-dev 2022-07-29 22:46:35 +00:00
TreeHugger Robot 3e5b0dd39d Merge "Fixing search behavior in Launcher3" into tm-qpr-dev am: 8157be497d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19451873

Change-Id: I26c2f858d9ff4fd7728eb4c0fede69626454d2a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 20:17:05 +00:00
TreeHugger Robot 8157be497d Merge "Fixing search behavior in Launcher3" into tm-qpr-dev 2022-07-29 19:48:34 +00:00
Jeremy Sim 67c895776d Merge "Update animations for TM-QPR: OverviewSplitSelect > Home transition" into tm-qpr-dev am: b7a781b599
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19224802

Change-Id: I88ccda0d93c8491d2f414220d046a9d561b198aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 19:20:36 +00:00
Jeremy Sim 1b468babdc Merge "Update calculation method for Overview UI placement on tablets" into tm-qpr-dev am: fe5bccbf6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19289801

Change-Id: Ifd96660ca65230f598986290d3c97eb92dbd0cee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 19:20:20 +00:00
Jeremy Sim b7a781b599 Merge "Update animations for TM-QPR: OverviewSplitSelect > Home transition" into tm-qpr-dev 2022-07-29 18:57:00 +00:00
Jeremy Sim fe5bccbf6f Merge "Update calculation method for Overview UI placement on tablets" into tm-qpr-dev 2022-07-29 18:56:40 +00:00
TreeHugger Robot 1ba7282333 Merge "Listen to DisplayController for ignoreAutoRotateSettings" into tm-qpr-dev am: f49287d627
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429918

Change-Id: I2ccb73183c63a51d8165e04b4b4348dff5d92ef5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 18:23:18 +00:00
TreeHugger Robot f49287d627 Merge "Listen to DisplayController for ignoreAutoRotateSettings" into tm-qpr-dev 2022-07-29 18:05:17 +00:00
Sebastián Franco be69a39b72 Merge "[Cherry pick merge conflict] Updating visibility of some members for easier extensibility" into tm-qpr-dev am: 33edba1006
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19450088

Change-Id: I422bf32fe9d452449d3f1bf022761e674df1cd6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 17:48:13 +00:00
Sebastián Franco 33edba1006 Merge "[Cherry pick merge conflict] Updating visibility of some members for easier extensibility" into tm-qpr-dev 2022-07-29 17:23:46 +00:00
Alex Chau 6209af67d3 Listen to DisplayController for ignoreAutoRotateSettings
- Also skip most of initDeviceProfile/onIdpChanged if DeviceProfile didn't actually change to effectively skip the 2nd unexpected onConfigurationChangeded caused by setRequestedOrientation (b/211763738)

Test: Change display size while in app or at home screen
Fix: 240019605
Change-Id: If307742639bd269622140a7da0dc900887c67937
2022-07-29 13:09:17 +01:00
TreeHugger Robot 54e6d7a978 Merge "Revert "Add testSplitFromOverview test (for phones)"" into tm-qpr-dev am: 0438ea2293
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19462868

Change-Id: I946d2d6e0ef3cb9fdb230b729b031c8e2b7345d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 07:30:17 +00:00
TreeHugger Robot 0438ea2293 Merge "Revert "Add testSplitFromOverview test (for phones)"" into tm-qpr-dev 2022-07-29 07:05:34 +00:00
Sunny Goyal af95ddbadc Fixing search behavior in Launcher3
> Showing no-result found only when there are no results
> Removing unnecessary view inflation in RecyclerViewPool for
  various search vide types
> Removing unused market-search link and no-empty-result illustration

Bug: 240343082
Bug: 207573083
Test: Verified Launcher3
Change-Id: Ia44799cd2385ea5dc837ef25732ca237975abde7
2022-07-28 22:05:30 -07:00
TreeHugger Robot d825fd0b3c Merge "Keep the default display's top running task in the top of running list" into tm-qpr-dev am: 96010b10f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18910390

Change-Id: I64fedf30919c4e2964492f2b8802dc45d58682a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 04:01:43 +00:00
TreeHugger Robot 96010b10f1 Merge "Keep the default display's top running task in the top of running list" into tm-qpr-dev 2022-07-29 03:15:31 +00:00
Tony Wickham 571b52d2ae Merge "Cleanup taskbar+assistant interactions" into tm-qpr-dev am: d7fb7f379a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19450086

Change-Id: Ife34bd2a70b2b5c864873de14814ececab6c0531
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 00:04:29 +00:00
Winson Chung 9a72c2ed18 Merge "Add running apps icons to taskbar for desktop environment." into tm-qpr-dev am: 8848152b7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19459897

Change-Id: Iee89a3e096581f1f3df99b776d1e48ccca1c7f23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 00:02:33 +00:00
Winson Chung 24df4bffd8 Revert "Add testSplitFromOverview test (for phones)"
This reverts commit 1780cee0fe.

Reason for revert: b/240517487

Change-Id: Id0b690ebba880dd9c978ed42c0f965beb2678b8c
2022-07-29 00:01:17 +00:00
Tony Wickham d7fb7f379a Merge "Cleanup taskbar+assistant interactions" into tm-qpr-dev 2022-07-28 23:02:35 +00:00
Winson Chung 8848152b7a Merge "Add running apps icons to taskbar for desktop environment." into tm-qpr-dev 2022-07-28 22:14:42 +00:00
Jeremy Sim 1cfe6d490a Update calculation method for Overview UI placement on tablets
This update slightly changes the calculation method for Overview UI placement, in order to line up better with spec. (The previous calculation caused a small 30dp divergence on tablets.)

Bug: 236760307
Test: Manual by measuring pixels and comparing to spec
Change-Id: I94e9e7b5a6a24c37693425ac8ec71cd066003658
2022-07-28 14:05:24 -07:00
Tony Wickham d8458af5a1 Merge "Set FLAG_RESUMED = false when expanding PiP" into tm-qpr-dev am: 06e5728c7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19449318

Change-Id: I1dc35c51827c0bf32f3d8cf9c07f23be820095a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 19:36:14 +00:00
Tony Wickham 06e5728c7e Merge "Set FLAG_RESUMED = false when expanding PiP" into tm-qpr-dev 2022-07-28 18:57:22 +00:00
Merissa Tan 5dbd289f18 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
Merged-In: Ieaaf001530b5778871fb7a8d18cdcaa1ccbf0e31
2022-07-28 17:50:12 +00:00
Tracy Zhou 8d86a4e038 Merge "Add testSplitFromOverview test (for phones)" into tm-qpr-dev am: f1a523a790
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19252928

Change-Id: I8a89b533781ccfa1175fb36c86efe9f9468b916e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 05:21:15 +00:00
Tracy Zhou f1a523a790 Merge "Add testSplitFromOverview test (for phones)" into tm-qpr-dev 2022-07-28 05:06:40 +00:00
Iris Yang 282cf0867f Keep the default display's top running task in the top of running list
While we move a task to virtual display, we will receive
onTaskMovedToFront() callback to add the task(on virtual display) into
the running list. It cause the first item of Recents is virtual
display's task but the thumbnail view is showing default display's
task snapshot.
This change is to keep default display's top task in the first while
adding a virtual display's task into the running task list.

Fix: 235797788
Test: 1.Launch app1 on default display,
        launch app2 on virtual display,
        enter Recents,
        observed the recent animation and overview is showing app1.
      2.Launch app1 on default display,
        swipe app1 to home,
        launch app2 on virtual display,
        enter Recents,
        observed the overview is showing app2.
https://drive.google.com/file/d/1XkGNupJknmFKqjE3c97s6ieCKN5v-n_z/view?resourcekey=0-NLDIaK2EV2tG2ItccUdxDw
Change-Id: Ibb740986782eadf02672081cbd716fed04be6468
2022-07-28 02:43:39 +00:00
Andy Wickham 82f02caceb Merge "Only bind fast scrollbar when attached if not already bound." into tm-qpr-dev am: f61e7bb4a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19225719

Change-Id: I8d65be04f468cef2fbab6756bcd3b21cd3f5a224
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 22:57:01 +00:00
Andy Wickham f61e7bb4a2 Merge "Only bind fast scrollbar when attached if not already bound." into tm-qpr-dev 2022-07-27 22:27:25 +00:00
TreeHugger Robot 88cbc4e055 Merge "Fix issue where System UI crashing resulted in no unlock animation." into tm-qpr-dev am: 778f8c1833
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18779947

Change-Id: I493e20cb3d0b8e1094050af07256051f34b9d3bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 21:52:30 +00:00
TreeHugger Robot 778f8c1833 Merge "Fix issue where System UI crashing resulted in no unlock animation." into tm-qpr-dev 2022-07-27 21:34:05 +00:00
Andy Wickham 87a9bf7c15 Only bind fast scrollbar when attached if not already bound.
This was overriding the previously bound RecyclerView if multiple
were attached simultaneously. Instead, the appropriate container
(All Apps / Widgets) should bind the active RecyclerView whenever
it changes, with the onAttach serving as a fallback to ensure
the scrollbar has an initial RV to avoid NPEs.

Fix: 234591523
Bug: 235476489
Test: Manually checked All Apps from Launcher and Taskbar, as well
as Widget bottom sheet. Also ran relevant Tapl tests.

Change-Id: I06e27d2f66f9778087711a566817b6806ec7218b
2022-07-27 21:02:34 +00:00
Vadim Tryshev f163a413f7 Merge "Moving all sources that are shared between Launcher and TAPL in one directory" into tm-qpr-dev am: 45633e5aa1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19436564

Change-Id: I5780bd94511e068ed29345bf6e0eb6ea1517da63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 20:40:13 +00:00
Shikha Malhotra bc9b08fdd1 [Cherry pick merge conflict] Updating visibility of some members for easier extensibility
This change is causing a merge conflict with ag/19441591. Hopefully only a cherrypick is needed.

Bug: b/218186980
Test: Manual Testing that Launcher3 compiles and works
Change-Id: Id85486ef763ce9a04b83fef44542b2eb3e0e599d
(cherry picked from commit c487e1b4c5)
2022-07-27 20:33:29 +00:00
Vadim Tryshev 45633e5aa1 Merge "Moving all sources that are shared between Launcher and TAPL in one directory" into tm-qpr-dev 2022-07-27 20:24:35 +00:00
vadimt f6ef879cf4 Moving all sources that are shared between Launcher and TAPL in one directory
This will help SysUI test team (who uses TAPL) to set up Gradle build for their tests.

Bug: 202567877, 234414088
Test: presubmit
Change-Id: I3d923ea4b54d1a4c3d2b345be09692727d30433e
2022-07-27 20:18:46 +00:00
Tony Wickham eeb66e41e5 Cleanup taskbar+assistant interactions
- Always move the taskbar layer when voice interaction window visibility
  changes, to ensure we remove the temporary taskbar background in all
  cases (e.g. swipe to home)
- Move check to not draw taskbar background to the temporary view
  itself, so that it's at the proper layer when shown (e.g. during
  fulfillment on the home screen)
- Don't add view to window if it's already added (we already have this
  check for the removal case)

Test: Open an app, invoke Assistant, swipe home; Taskbar background is
removed; invoke and fulfill assistant from home screen, in app, in 3
button mode, and in gesture mode (all permutations)
Fixes: 236924161
Fixes: 240101132
Fixes: 235895444

Change-Id: I5958f1dbe14a6d190d3808014429f7f8146c9f96
2022-07-27 12:52:59 -07:00
Josh Tsuji 28fa196090 Fix issue where System UI crashing resulted in no unlock animation.
Fixes: 235254892
Test: adb shell am crash com.android.systemui
Test: adb shell am crash com.google.android.apps.nexuslauncher
Change-Id: Ia9644f8d1d5ffc9b162ce1608f8dd9ea9e1e3622
2022-07-27 14:38:31 -04:00
Evan Rosky 74328fd323 Merge "Make shell-transit flag public" into tm-qpr-dev am: d14f4c5181
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19435993

Change-Id: Ib14becf81c5fdd755236ad2f474059a94679c933
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 16:21:02 +00:00
Evan Rosky d14f4c5181 Merge "Make shell-transit flag public" into tm-qpr-dev 2022-07-27 16:11:50 +00:00
Tony Wickham f3636d09e7 Set FLAG_RESUMED = false when expanding PiP
This allows us to play the icon alignment animation immediately, rather
than waiting for the expand to finish and launcher to be paused.

Test: Open Maps in PiP on home screen, expand it and watch taskbar
Fixes: 239506421
Change-Id: I5c04f778c4c39c2895db0a1ea1fca4d48d1f3093
2022-07-27 08:52:09 -07:00
Tony Wickham dc6596c1ef Merge "Add @ScreenRecord to testSwitchToOverview" into tm-qpr-dev am: 592d80dc29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19421646

Change-Id: I9bb7c3b2f1c12e289871049ebde192ecd5ab6004
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 15:10:32 +00:00
Tony Wickham 592d80dc29 Merge "Add @ScreenRecord to testSwitchToOverview" into tm-qpr-dev 2022-07-27 14:59:12 +00:00
Tracy Zhou 1780cee0fe Add testSplitFromOverview test (for phones)
Design doc: go/split_tapl

Bug: 238553914
Fixes: 239082974
Test: run this test
Change-Id: I6b67ede6d62a9fb48222aa4d15fe29ccd1d0fa06
2022-07-27 04:18:50 +00:00