Commit Graph

53916 Commits

Author SHA1 Message Date
Sunny Goyal 42b640404a Removing tabWidth calculation and using DeviceProfile directly
This removes some dependency on FloatingHeaderView, making it
easier to replace

Bug: 234008165
Test: Verified that the UI does not change
Change-Id: I363c98c23f84fe570ea9cb1a40128359f5b67c9f
Merged-In: I363c98c23f84fe570ea9cb1a40128359f5b67c9f
2022-07-28 18:10:19 +00:00
Sunny Goyal 524f4c4fba Fixing tab width and panner not aligned with the all-apps icons
Bug: 234008165
Test: Verified on device
Change-Id: Ibec3eed4aef730439d79b086d6ae23b63b66361e
Merged-in: Ibec3eed4aef730439d79b086d6ae23b63b66361e
2022-07-28 18:06:16 +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
Android Build Coastguard Worker 5142e9682a Snap for 8877244 from 45633e5aa1 to tm-qpr1-release
Change-Id: Ib678ac703068c80ac756a8ff6b0bac456d69db0c
2022-07-27 23:29:48 +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
Android Build Coastguard Worker a8c33af17e Snap for 8872621 from bb76b99c56 to tm-qpr1-release
Change-Id: I1983e55a08432b744f34ba1e8aff68f3a7d3b69c
2022-07-26 23:25:37 +00:00
Jeremy Sim 8e18921036 Merge "Add comment regarding Overview TaskViews" into tm-qpr-dev am: caacd73cfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19388388

Change-Id: I8ba556c2e851e0c28b952f574221b19d08dd0f12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 23:21:05 +00:00
Jeremy Sim caacd73cfa Merge "Add comment regarding Overview TaskViews" into tm-qpr-dev 2022-07-26 23:00:20 +00:00
Evan Rosky 13a86c43ac Make shell-transit flag public
So it can be accessed by tests in other packages

Bug: 238328090
Test: N/A just increasing visibility
Change-Id: I5c270e1bdd315010c169d4cfcd82e3cce6d12442
2022-07-26 12:49:11 -07:00
Tony Wickham 29865625a8 Have All Set aniamted background extend edge-to-edge am: 96431570d4 am: c7639c92fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429240

Change-Id: I88bd78abbe8cfdbe0c79cc9342ecfb8c830f97fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:36:32 +00:00
Tony Wickham 434abd78ca Have All Set aniamted background extend edge-to-edge am: 96431570d4 am: bb76b99c56
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429240

Change-Id: I9f1141f2a0b8447ca57ec03416f19460fe2c8a60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:35:52 +00:00
Tony Wickham c7639c92fd Have All Set aniamted background extend edge-to-edge am: 96431570d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429240

Change-Id: If44306b791ada951c3e82ad6419547e10354bf47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:19:28 +00:00
Tony Wickham bb76b99c56 Have All Set aniamted background extend edge-to-edge am: 96431570d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429240

Change-Id: Ideffeaa3d083feaa0a3d8e110d25c0b1eb5c3153
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:19:24 +00:00
Schneider Victor-tulias de490c6bb1 Merge "Fade out the taskbar icons when animating to overview in 3 button nav." into tm-qpr-dev am: f6003ff070
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19051009

Change-Id: Ibe73df1c56a315bc9d057bd825df532c46872069
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 18:35:23 +00:00
Schneider Victor-tulias f6003ff070 Merge "Fade out the taskbar icons when animating to overview in 3 button nav." into tm-qpr-dev 2022-07-26 17:29:33 +00:00
TreeHugger Robot 2a8906bfba Merge "Space out 3 button nav on taskbar" into tm-qpr-dev am: 5e6fe32818
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19272533

Change-Id: I2eddc38eaa756d6f5cb5b36ccd516d8ad7cc3de0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 16:54:10 +00:00
Winson Chung a1ddc4becb Merge "Prevent setting max layer above the input consumer" into tm-qpr-dev am: c6fb382132
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398454

Change-Id: Ida613684919122b78e50af1b7b88c1be7ac14114
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 16:53:57 +00:00
TreeHugger Robot 5e6fe32818 Merge "Space out 3 button nav on taskbar" into tm-qpr-dev 2022-07-26 16:32:06 +00:00
Winson Chung c6fb382132 Merge "Prevent setting max layer above the input consumer" into tm-qpr-dev 2022-07-26 16:28:21 +00:00
Tony Wickham 96431570d4 Have All Set aniamted background extend edge-to-edge
There's already a separate ConstraintLayout for the content that needs
to have fitsSystemWindows="true", but the drawing can extend past system
insets.

Test: Run AllSetActivity, manually inspect layout/drawing
Fixes: 237052706
Change-Id: I8ff1e3a036fb5c6bfa8586b041c9e5eae55c321d
2022-07-26 16:03:04 +00:00
Alex Chau eed67e721e Merge "Revert "Move BaseActivityInterface task size methods to DevicePr..."" into tm-qpr-dev am: 66bac181ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398184

Change-Id: Iaadadc947c57e60c445b78d8bbb763559704adc3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 09:58:49 +00:00
Alex Chau 66bac181ac Merge "Revert "Move BaseActivityInterface task size methods to DevicePr..."" into tm-qpr-dev 2022-07-26 09:36:18 +00:00
Tony Wickham a137d19d6d Merge "Hide the task icon during quick switch from home" into tm-qpr-dev am: bbfbe60f72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19369341

Change-Id: I4d8c28dcd55ba241bdf72fd108059c73044f4aa6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 00:58:36 +00:00
Tony Wickham bbfbe60f72 Merge "Hide the task icon during quick switch from home" into tm-qpr-dev 2022-07-26 00:43:55 +00:00
Tony Wickham a397f3784f Add @ScreenRecord to testSwitchToOverview
Test: N/A
Bug: 238461765
Change-Id: I0ff65e2ca7c5026d46e0e218a94a11cafe3f9648
2022-07-25 17:11:55 -07:00
Sunny Goyal 6d0ee47f50 Fixing icon label not updated during bulk load am: bc3fb936e1 am: b31cd07647
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19419027

Change-Id: Ieb4aea4df75264ca434cc5216a6dae997a6477d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 23:49:43 +00:00
Sunny Goyal 42a1c7cdc4 Fixing icon label not updated during bulk load am: bc3fb936e1 am: 7b131c7c50
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19419027

Change-Id: I68bcf2786c714869d8ed0ffe1f6f35927563680f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 23:49:27 +00:00
Android Build Coastguard Worker ea6669fee7 Snap for 8867503 from 9fb9ae1a9e to tm-qpr1-release
Change-Id: Iaf1721c17e7217efdfeeb32539f9d7db23d5290c
2022-07-25 23:25:28 +00:00
Sunny Goyal b31cd07647 Fixing icon label not updated during bulk load am: bc3fb936e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19419027

Change-Id: I8dd080ff31e910e1ff3202d00696c09103f512c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 23:08:21 +00:00
Sunny Goyal 7b131c7c50 Fixing icon label not updated during bulk load am: bc3fb936e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19419027

Change-Id: I75c5949e541afef084cd4f078c86565e09d77b54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 23:08:18 +00:00
Jeremy Sim 74f7789f8b Add comment regarding Overview TaskViews
Just adds a comment explaining the elevation of Overview TaskViews. No code changes.

Bug: 208650434
Test: None needed.
Change-Id: I19c434f8473237a4a0f6fe36deecc9c80e7b8a49
2022-07-25 22:04:37 +00:00