Commit Graph

83004 Commits

Author SHA1 Message Date
Anushree Ganjam 59d5401f59 Move InstantAppResolver to Dagger.
Helps us to delete ResourceBasedOverride class.

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I9320e0309e2ae4370dcbf2f6f62d704712876bd5
2025-04-18 20:14:14 +00:00
Sebastián Franco 8c96a1528c Merge "Adding screenrecord for IntegrationReorderWidgetsTest" into main 2025-04-18 11:38:20 -07:00
mpodolian 04bd5b49ea Stash the taskbar on every bubble bar expansion
Added logic to enable BubbleBarView to  notify BubbleBarViewController
of expanded state change. Also updated all the test that uses
BubbleBarView to pass empty Controller.

Fixes: 411304392
Flag: com.android.wm.shell.enable_bubble_bar
Test: Manual. Go to any app. Swipe up to show the taskbar. Trigger any
bubble. Observe taskbar is stashed on bubble bar expanded.

Change-Id: I88ad167eb0ed444629716df3672bbb06ca8adcc4
2025-04-18 11:16:40 -07:00
Charlie Anderson e2aa4dc71b Handle exception thrown for missing Component during restore
Bug: 400681403
Flag: EXEMPT bugfix
Test: presubmit
Change-Id: Ieb5357a7afa76b45aaa60a4c391e79d4a7196d98
2025-04-18 10:45:53 -07:00
Mykola Podolian 93a7212f7e Merge "Fix bubble bar drag-to-dismiss target over the taskbar interruption" into main 2025-04-18 10:43:22 -07:00
Vinit Nayak af2f3b43ca Use SplitPosition instead of StagePosition in TaskViewSimulator
* Ultimately we want to migrate to SplitIndex, but
first we'll slowly remove all usages of StagePosition

Test: Compiles
Flag: EXEMPT cleanup
Bug: 254378592
Change-Id: I44651b4c378dedd4409d99986f7c92371180afd2
2025-04-18 17:21:00 +00:00
Surbhi Kadam 77dadc1fc5 Merge "Launcher3: send token with early wakeup request to SurfaceFlinger" into main 2025-04-18 09:48:11 -07:00
Treehugger Robot c562b3ce4e Merge "Fix a crash on null getLegacyBaseTask" into main 2025-04-17 21:51:27 -07:00
Jagrut Desai a0fc328fa2 Merge "Fix Taskbar issue with Multi Desks" into main 2025-04-17 20:15:35 -07:00
Treehugger Robot 579672c0d8 Merge "Update All Apps colors to use shared sysui resources." into main 2025-04-17 20:00:20 -07:00
Treehugger Robot 7838b0ce05 Merge "[Taskbar] Remove uncessary threading check on LauncherModel." into main 2025-04-17 19:39:02 -07:00
Andy Wickham 33c7b3dcf1 Make TaskbarOverlayContext overrideable.
Bug: 371343636
Flag: EXEMPT refactor
Test: with other change
Change-Id: I46c4bcb88d21890e66e7db7240d3450d75d74354
2025-04-18 01:24:56 +00:00
Jagrut Desai 120250f0db Merge "Fix pinned Taksbar in Overview Modal Launcher state." into main 2025-04-17 16:54:14 -07:00
Toni Barzic 5207024240 Improve TaskbarRecentAppsController on multi-display
Fixes two issues:
1.  TaskbarRecentAppsController was reflecting tasks from the first
    DesktopTasks it found in the RecentsModel - this does not work in
    multi-display environemnt where each display may have a separate
    DesktopTask. The CL updates the logic to gather tasks from all
    available DesktopTasks.
2.  RecentsModel supported a single recent apps changed listener. In
    multi-display, each display has its own taskbar, and thus its own
    TaskbarRecentAppsController, each of which needs to listen for
    RecentsModel changes. This meant that second taskbar that registered
    a listener was clearing out the listener set by the first taskbar.

Bug: 406183146
Flag: com.android.window.flags.enable_taskbar_connected_displays
Test: On multidisplay, open apps on different displays. Taskbar reflects
      all running desktop tasks regardless of the display on which
      they're open.
Change-Id: I1dd750e5bcd58d8d90b7b859053e2616c7d18441
2025-04-17 16:32:12 -07:00
Fengjiang Li 924d6a8a6f [Taskbar] Remove uncessary threading check on LauncherModel.
The LauncherModel#addCallbacks() and #removeCallbacks() apis are thread safe due to synchronized(mCallbacksList). So there is no need to enforce main thread.

This CL will unblock taskbar per-window ui thread work.

Bug: 404636836
Test: presubmit
Flag: NONE - released code
Change-Id: Iccc3f6da12625305f8db7111226df6e923c1891e
2025-04-17 16:27:58 -07:00
Jagrut Desai 9205db6d36 Fix Taskbar issue with Multi Desks
Test: Manual, Presubmit
Bug: 408236390
Bug: 408059650
Flag: EXEMPT bugfix
Change-Id: Iadd79fb1504e2183fee52cc0871fc27613482e2a
2025-04-17 15:02:27 -07:00
Treehugger Robot efd9b79a4c Merge "Remove feature flag for OverviewCommandHelper timeout" into main 2025-04-17 14:33:39 -07:00
Andy Wickham c626620f74 Don't blur workspace targets when dragging out of All Apps.
Sorry for the whack-a-mole here. The intention is to only blur
going to All Apps or returning from All Apps to Normal. Added some
tests to help prevent regressions.

Test: DepthControllerTest#test_blurWorkspaceDepthTargets
Flag: com.android.launcher3.all_apps_blur
Bug: NA (noticed locally from a recent cl)
Change-Id: Ib0285dae42c41ba9eb2e747b272d40c228e0b035
2025-04-17 21:00:21 +00:00
Sunny Goyal 452b9855de Merge "Creating a dumpmanager class to allow dumping state from singleton objects" into main 2025-04-17 13:38:19 -07:00
Fengjiang Li dda14192b7 Merge "[Taskbar] Add taskbar root view on per-window-thread" into main 2025-04-17 12:51:01 -07:00
Schneider Victor-Tulias a6951ba731 Fix broken TaplStartLauncherViaGestureTests close activity flow
When trying to destroy the launcher activity in TaplStartLauncherViaGestureTests test cases, we weren't cleaning up the recents window properly. This was also causing following tests to fail since they didn't expect the recents window to already be open.

Flag: com.android.launcher3.enable_launcher_overview_in_window
Bug: 377678992
Test: pre/postsubmit
Change-Id: Ibf568fd1e9abf946c3d3be933b575aa4501828de
2025-04-17 15:42:59 -04:00
Andy Wickham 51a0a3829a Update All Apps colors to use shared sysui resources.
This includes the new scrim color and panel treatment documented
here: https://docs.google.com/presentation/d/1BKFfB2LAIDoaA5aLs8did6IcUw_pktrSWI5xmypkl3s/edit?slide=id.g3484dcfffc6_1_203&resourcekey=0-HpXwztiEYGe0BYQzUeBBbQ#slide=id.g3484dcfffc6_1_203

Bug: 371343636
Test: Manual
Flag: com.android.launcher3.all_apps_blur
Change-Id: I810aaa84eda218ab33112c9a5c1561cdb088b310
2025-04-17 19:14:18 +00:00
Jagrut Desai 51be868783 Fix pinned Taksbar in Overview Modal Launcher state.
Test: Manual
Bug: 406681846
Flag: EXEMPT bugfix
Change-Id: Icaf4fefdc6e1085b865a438817f5c62d473c6edd
2025-04-17 11:12:50 -07:00
Sunny Goyal 54e5ed0d36 Creating a dumpmanager class to allow dumping state from singleton objects
Bug: 410927105
Flag: EXEMPT refactor
Test: atest DumpManagerTest
Change-Id: Idcd1c74b1edf7a79ec8e4fa91676e617afa04907
2025-04-17 11:05:20 -07:00
minch 95922915a1 Fix a crash on null getLegacyBaseTask
Bug: 410090695
Test: m
Flag: EXEMPT crash fix
Change-Id: I4b198764f182bf31769860619842feeb2191e583
2025-04-17 16:52:15 +00:00
Jordan Silva 612b58b344 Merge "Fix Drag to launch desktop still shows app chip" into main 2025-04-17 08:36:33 -07:00
Jordan Silva 5713bf2ef0 Remove feature flag for OverviewCommandHelper timeout
Fix: 409608875
Flag: EXEMPT Flag removal.
Test: OverviewCommandHelperTest.kt
Change-Id: I094eed94620665b8b089716b2cfe15773243e573
2025-04-17 08:36:06 -07:00
Alex Chau bb5958ec48 Merge "Clean-up enableDesktopWindowingCarouselDetach and refactor detachDesktopCarousel" into main 2025-04-17 07:04:21 -07:00
Cosmin Băieș 7dedaeb255 Remove canImeRenderGesturalNavButtons and sysprop
This method, and the corresponding system property
persist.sys.ime.can_render_gestural_nav_buttons were originally added
in [1], just before starting the implementation of gesture navigation
handling for IMEs. These were meant to serve as a feature flag,
initially turned off, and later permanently enabled.

This removes the sysprop and the code path handling it being disabled.

  [1]: I7a2e9f08072a97d61b78dddb144282a5728d1407

Flag: EXEMPT refactor
Bug: 281029564
Bug: 411106486
Test: atest InputMethodServiceTest#testShowHideImeNavigationBar_doesDrawImeNavBar
  InputMethodServiceTest#testShowHideImeNavigationBar_doesNotDrawImeNavBar
  InputMethodServiceTest#testBackButtonClick
  InputMethodServiceTest#testBackButtonLongClick
  InputMethodServiceTest#testImeSwitchButtonClick
  InputMethodServiceTest#testImeSwitchButtonLongClick
Change-Id: I94e2fb280a1dac130596d7f4e344d83cfc12b70e
2025-04-17 15:07:20 +02:00
Alex Chau e4413f929d Clean-up enableDesktopWindowingCarouselDetach and refactor detachDesktopCarousel
- Removed enableDesktopWindowingCarouselDetach flag
- detachDesktopCarousel is now always false, except in home quick switch (QuickSwitchState)
- Updated home quick switch controller NoButtonQuickSwitchTouchController to apply DESKTOP_CAROUSEL_DETACH_PROGRESS

Fix: 411127271
Test: manual
Flag: EXEMPT flag cleanup and refactor
Change-Id: I1cbf0987b111d0111cb8b9b6c7994f4494780e1a
2025-04-17 05:08:41 -07:00
Jordan Silva 46cb63d619 Fix Drag to launch desktop still shows app chip
Extract logic for `settledProgressFullscreen` to `TaskView` to reuse it in subclasses.
`DesktopTaskView` now uses `updateSettledProgressFullscreen` instead of updating `settledProgressFullscreen` directly.

Fix: 406236028
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual. Drag a Desktop tile to launch.
Change-Id: I31bab76e44dbe5219c65b9dc3654e0988bf77fef
2025-04-17 10:31:54 +01:00
Alex Chau 5951ff0bcd Merge "Recents keyboard switch on focused display" into main 2025-04-17 01:51:29 -07:00
Anushree Ganjam cf00d63c2e Merge "Introduce "qsb_container_hotseat" layout to override the existing search_container_hotseat." into main 2025-04-16 22:44:12 -07:00
Treehugger Robot 1205b1da1c Merge "Remove AllAppsState history override." into main 2025-04-16 22:38:40 -07:00
Treehugger Robot 73779be7cd Merge "Change the handling of shouldBlurWorkspace in LauncherState." into main 2025-04-16 22:09:21 -07:00
Treehugger Robot 5d21ff5374 Merge "Get the animation duration from the res file" into main 2025-04-16 21:02:20 -07:00
Andy Wickham bebe570201 Remove AllAppsState history override.
This was introduced with the Rocket Gesture but causes a weird
transition when quickly going from an app to All Apps and invoking
Back, because it thought the previous state was BACKGROUND_APP.

The default just treats the previous state as NORMAL, which is
correct for All Apps. The OVERVIEW case was also an even older
path when you could access All Apps from Overview.

Bug: Can't find it right now.
Test: Open app, quickly go home and to all apps, invoke back.
Flag: EXEMPT bugfix
Change-Id: I76cad48abdba9b621e80d2f0cc0414b59fa35725
2025-04-17 02:41:51 +00:00
Andy Wickham e3371d32f5 Change the handling of shouldBlurWorkspace in LauncherState.
Previously: blur if previous and next state want it blurred.
New: blur if previous OR next state want it blurred.

As part of this, change the default from true to false. Only All
Apps currently sets it to true, meaning we blur workspace only
going to or from All Apps.

Fix: 405836159
Test: Launch app, quickly go home and to All Apps
Flag: com.android.launcher3.all_apps_blur
Change-Id: Ic52c5aa2dce7e1e107418952031574bc2e47e585
2025-04-17 02:31:50 +00:00
Fengjiang Li d952514e04 [Taskbar] Add taskbar root view on per-window-thread
1. Add LooperExecutor in TaskbarManager
2. Add taskbar root view to window in that LooperThread if flag is on

Bug: 404636836
Test: presubmit
Flag: com.android.launcher3.enable_taskbar_ui_thread
Change-Id: I45c6db760b1aafbd186d433ae6f15292f7fe5b43
2025-04-16 19:03:53 -07:00
Treehugger Robot dfda4408cf Merge "Cleaning up useActivityOverlay flag" into main 2025-04-16 19:00:18 -07:00
Andy Wickham f0d3ce8bfd Fix navbar to home for All Apps.
It reuses the predictive back animation now. In addition, if All
Apps entered directly into the Search state (i.e. via QSB), the
back gesture now scales the whole panel to indicate it will close
and return to the home screen (as opposed to closing Search within
All Apps).

Demo: https://drive.google.com/file/d/1wpaZg3JaSxDMMc62uU-1miP9RaIO10EB/view?usp=drive_link&resourcekey=0-h8qKzuDguwIE2vUDr0H6lQ

Fix: 406523972
Flag: EXEMPT bugfix
Test: Manual
Change-Id: I470d67e03b2d8bbbaa39aea76c7dde639cff62f5
2025-04-16 18:58:47 -07:00
Treehugger Robot 2711f8d0d9 Merge "Removing flag enable_smartspace_removal_toggle" into main 2025-04-16 18:57:40 -07:00
mpodolian eeaa58556b Fix bubble bar drag-to-dismiss target over the taskbar interruption
Added an additional check for BubbleDragController drag state
to the TaskbarStashViaTouchController. T

Bug: 410908600
Flag: com.android.wm.shell.enable_bubble_bar
Test: Manual.
  1. Go to overview screen with a transient taskbar.
  2. Create any bubble.
  3. Collapse the bubble bar.
  4. Drag the collapsed bar towards the dismiss target location
     (usually bottom center) ensuring the drag path crosses
     the taskbar area. Verify dismissal works correctly without
     interference from the taskbar touch handling.
Change-Id: I8c58135359dc6ea30479a778caa8e7b6eebc9c80
2025-04-16 18:18:56 -07:00
Jeff DeCew 9593f2b612 Merge "Set shouldForceThemeIcon = true in ThemeManager" into main 2025-04-16 18:16:17 -07:00
Mykola Podolian 5373ecfe4f Merge "Revert^2 "Maximised the taskbar window to the default size"" into main 2025-04-16 17:20:13 -07:00
Treehugger Robot 8a45dc2cd1 Merge "Make static DisplayController methods respect display id" into main 2025-04-16 17:10:04 -07:00
Anushree Ganjam ac37e33a17 Merge "Remove flag "enable_shortcut_dont_suggest_app" since it's eligible to be removed." into main 2025-04-16 16:34:58 -07:00
Anushree Ganjam 87603a10e8 Introduce "qsb_container_hotseat" layout to override the existing search_container_hotseat.
This layout is no-op in AOSP.

Bug: 405166827
Test: Manual
Flag: com.android.launcher3.enable_qsb_on_hotseat
Change-Id: Ief142c3c141a672c5a4c53814b7901ff322ed053
2025-04-16 22:21:50 +00:00
mpodolian de74f01f01 Revert^2 "Maximised the taskbar window to the default size"
This reverts commit 28f664a3cb.

Reason for revert: Check if the presubmit passes

Change-Id: Ic1336d8620916b98eaca3656ed844e1d5f181254
2025-04-16 14:31:12 -07:00
Treehugger Robot a582c90fa1 Merge "Add aconfig flag for replacing psb with qsb." into main 2025-04-16 13:47:14 -07:00