Commit Graph

14613 Commits

Author SHA1 Message Date
Sunny Goyal 07cfe33533 Renaming CONTAINER_PREDICTION to CONTAINER_ALL_APPS_PREDICTION
This avoids confusion with CONTAINER_HOTSEAT_PREDICTION

Bug: 390572144
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: I0e110e2884dd0566bd2e621e60e7458605b9bad7
2025-04-28 09:30:12 -07:00
Pat Manning edaab56ed6 Merge "Cancel ongoing dismiss animation when Launcher state changes." into main 2025-04-28 05:14:24 -07:00
Jordan Silva af7016c3ef Merge "Make repeated recents button double tap return to previous task" into main 2025-04-28 04:36:13 -07:00
Pat Manning 9ee290e81f Cancel ongoing dismiss animation when Launcher state changes.
Fix: 410744889
Test: Manual
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I5e81de6762e7d0ea47f8574599901aac1bb8bb77
2025-04-28 10:27:29 +01:00
Vinay Joglekar 077532a909 Merge "Fix background in quick switch when quick switch is started from home." into main 2025-04-28 01:34:10 -07:00
Will Osborn b28d1fc453 Merge "Fix stage split for connected display" into main 2025-04-26 02:29:57 -07:00
Treehugger Robot d50a7a1189 Merge "Not pausing hotseat predictions on app launch" into main 2025-04-25 18:06:15 -07:00
Ats Jenk 963df5dca3 Merge "Rename method to set bubble bar expanded state [1/N]" into main 2025-04-25 14:21:49 -07:00
Treehugger Robot fe7225eace Merge "Move LauncherRestoreEventLogger to dagger" into main 2025-04-25 14:11:18 -07:00
Sunny Goyal 834e9c3bbe Not pausing hotseat predictions on app launch
We do not pause updates on tablets anyway, maintaining a separate behavior on phone is unnecessary

Bug: 339700174
Flag: EXEMPT bugfix
Test: Manually verify that the predictions update
Change-Id: Ia835e3c73dc536e0ff5b4c1f5120628a48f7723f
2025-04-25 12:39:13 -07:00
Alex Chau abb2133bf1 Make repeated recents button double tap return to previous task
- With grid only Overivew, we can no longer rely on positioning in RecentsView to returning to previous task by using nextTaskView
- After a double tap, on the 2nd TOGGLE command, record the task Ids that this double tap comes from as ToggleInfo
- In the next double tap, if there is a ToggleInfo within last 5 second, return to the previous task
- Also make double tap from home picks up the first grid task instead of a Desktop task
- Simplified special handling when there is only large tile to always fallback to `previousTaskView` when there are no `nextTaskView`. This does not affect cases where there are no Desktop tasks (as previousTaskView will be null).

Fix: 411029836
Test: OverviewCommandHelperTest
Flag: com.android.launcher3.enable_grid_only_overview
Change-Id: I1caa6b3db1bfd2c6203d4f1c5bf3e50c1b3c53c3
2025-04-25 18:24:47 +01:00
Ats Jenk 416f80dc82 Rename method to set bubble bar expanded state [1/N]
Rename methods in BubbleBarViewController and BubbleBarView that set the
expanded state.
These will update the state using an animation.
Update the name to highlight this.
Enables us to create methods to set the state without animation.

Bug: 357115534
Test: refactor, presubmit
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I9d2c46ab1640ab0b19f54103ab8cdb37a5d19dbb
2025-04-25 10:20:41 -07:00
Treehugger Robot 087c9c4cf6 Merge "Run task reflow after dismiss earlier and increase spring constants." into main 2025-04-25 09:47:03 -07:00
Treehugger Robot 28d6aafa84 Merge "Update Icon App Chip menu animation" into main 2025-04-25 09:09:56 -07:00
Pat Manning dac05b0390 Run task reflow after dismiss earlier and increase spring constants.
This allows the user to dismiss multiple tasks in a row more quickly.

Fix: 409485085
Test: Manual. Fling to dismiss tasks as quickly as possible.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I9a0d05c1a47b5bc0ef72cde055379e4df50b48b4
2025-04-25 15:04:53 +01:00
Jordan Silva 6a70a9ac1c Update Icon App Chip menu animation
Fix: 320435745
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual. Expanding and Collapsing Icon App Chip menu.
Change-Id: Ibfaeb5908f6edf4d3f4c249f6064a21ff10ee0ba
2025-04-25 14:28:27 +01:00
Treehugger Robot 1fb5b3be7b Merge "Clean up aconfig flag coordinate_workspace_scale." into main 2025-04-25 05:50:01 -07:00
Chaitanya Cheemala (xWF) 4f7245fe6b Merge "Revert "Store bubble bar state in sysui proxy"" into main 2025-04-25 03:42:46 -07:00
Luca Zuccarini d7ca66d080 Clean up aconfig flag coordinate_workspace_scale.
Fix: 409610286
Flag: EXEMPT flag cleanup
Test: EXEMPT flag cleanup
Change-Id: I0c51163f6eaab8a89c16da70193a2d2b5243e307
2025-04-25 09:56:19 +00:00
Chaitanya Cheemala (xWF) fbfec0d3e1 Revert "Store bubble bar state in sysui proxy"
This reverts commit 821adae181.

Reason for revert: Likely culprit for b/413593389 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Bug: 413593389

Change-Id: Ie680f8b4934d1678796c1a0381e4472cfbf40f41
2025-04-25 02:32:11 -07:00
Treehugger Robot b0fda55a26 Merge "Revert "Launcher3: send token with early wakeup request to Surfa..."" into main 2025-04-24 23:33:11 -07:00
Ats Jenk be9c6f76e3 Merge "Store bubble bar state in sysui proxy" into main 2025-04-24 22:21:10 -07:00
Anushree Ganjam 06bc3f5301 Move LauncherRestoreEventLogger to dagger
Helps us to delete ResourceBasedOverride class.
Delete "launcher_restore_event_logger_class" resource from config.

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: Ia11162979f016513bd09e06796346d29699b2efd
2025-04-25 01:02:28 +00:00
Anushree Ganjam 99ba7b61be Merge "Move NavHandleLongPressHandler to Dagger." into main 2025-04-24 16:29:24 -07:00
Saumya Prakash 8a422c3ea6 Merge "Hide the taskbar edu when taskbar all apps launches" into main 2025-04-24 15:33:11 -07:00
Treehugger Robot 4b74cfa36d Merge "Fix tapl tests with multi-desks on" into main 2025-04-24 15:15:16 -07:00
Ats Jenk 821adae181 Store bubble bar state in sysui proxy
SysUIProxy may not be initialized when we set the launcher bubble bar
state and the listener.
Listener is stored in a field and set in sysui when the proxy
initializion is complete.
Add the same for the launcher bubble bar state. Otherwise bubble bar
state in sysui may not be immediately updated.

Bug: 357115534
Test: restart device, trigger a bubble before device is rotated
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I5dca49981c45b0e4c8c2535a283b9d9241eb47ba
2025-04-24 14:04:45 -07:00
Liran Binyamin 4753b6e83e Merge "Pass bubble bar bounds to shell on handshake" into main 2025-04-24 13:56:59 -07:00
Ats Jenk bc164497b5 Merge "Tell WMShell when bubble bar is active or not active" into main 2025-04-24 13:00:03 -07:00
Saumya Prakash c3855cf8fb Hide the taskbar edu when taskbar all apps launches
This change will dismiss the taskbar edu tooltip if taskbar all apps is
launched while it is showing.

Fix: 410687369
Test: Reset taskbar edu through developer options, open an app, observe
taskbar edu, then launch taskbar all apps. The edu tooltip should disappear
Flag: EXEMPT bugfix

Change-Id: I82d9d09d2f297e2ab20bf794d01ba5735a6d2fbd
2025-04-24 19:14:03 +00:00
Liran Binyamin 149db6c701 Pass bubble bar bounds to shell on handshake
If the systemui process restarts, as it does as part of tests,
it does not get notified about the bubble bar bounds until they
actually change. This could result in invalid bounds for the
expanded view which would prevent bubbling tasks.

This change ensures that the bounds are sent to shell after the
initial handshake.

20x runs: https://android-build.googleplex.com/builds/abtd/run/L46000030011522666

Bug: 411307439
Test: atest BubbleAnythingTest
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I2a5898f32506529b8860274cdee1fcea1a264e83
2025-04-24 11:07:56 -07:00
minch 94d8fc6206 Fix tapl tests with multi-desks on
Bug: 362720309
Test: TaplTestsKeyboardQuickSwitch, TaplTestsQuickstep.testOverview
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: Ia670eb0f0ccf0ecbe08051f0fc1cd0a39b0089e2
2025-04-24 16:44:30 +00:00
Will Osborn bc183f7154 Fix stage split for connected display
Bug: 397942185
Test: local + presubmit
Flag: com.android.launcher3.enable_overview_on_connected_displays

Change-Id: I03207b808abc14a30a1de7b7030216325c7762e7
2025-04-24 16:38:24 +00:00
vinayjoglekar ffe7a93c09 Fix background in quick switch when quick switch is started from home.
As of today it shows opaque background, in blur world we want to show the blurred background.

Bug: 410743069
Test: Quick switch from home
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I457f260f0fbfc960e5f3c7b32d9fd09751c24ade
2025-04-24 17:16:38 +01:00
Ats Jenk 8c37d68fa7 Merge "Bubble bar to ignore launcher state changes after destroy" into main 2025-04-24 09:16:26 -07:00
Daniel Andersson 6b0e2f4bfa Merge "desktop-exploded-view: Animate when a desktop task is dismissed" into main 2025-04-24 08:58:17 -07:00
Uwais Ashraf a6f5fda29e Merge "Add tracking of visibleTasks to enable more reliable request creation." into main 2025-04-24 08:26:41 -07:00
Treehugger Robot 48e09c9f1d Merge "Refactor on end runnable of create task dismiss animation." into main 2025-04-24 05:52:06 -07:00
Pat Manning 5783a8ef92 Refactor on end runnable of create task dismiss animation.
This is mostly used for snapping pages and resetting task values after dismissal.

Fix: 409494671
Fix: 409509940
Test: TaplTestsQuickstep
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Ie53ad75f6b96bc833cad86fc42b337d845b49a18
2025-04-24 11:52:54 +01:00
Pat Manning 4803577d25 Disallow scrolling of Recents during dismissal by consuming touch event.
Fix: 408820591
Test: Manual
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I4d3b3be60b7557fbc24220a691e80d4b254dccb4
2025-04-24 03:16:24 -07:00
Uwais Ashraf d99cbd8b41 Add tracking of visibleTasks to enable more reliable request creation.
Enforce synchronisation of parallel operations (e.g. updating task requests and tasks map MSF)

Fix: 395717365
Fix: 395331030
Fix: 410825381
Fix: 407558302
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: TasksRepositoryTest
Test: ABTD run for black thumbnails (OverviewImageTest, OverviewSplitTaskImageTest, OverviewMenuImageTest)
Test: ABTD run for memory metrics
Change-Id: Ib21487361b3e877170acfcdfed8d095bf1424061
2025-04-24 09:57:10 +00:00
Shamali Patwa d83ecd4c44 Merge changes from topic "dwb-refactor-domain" into main
* changes:
  Move app timer in the taskContentView behind a refactor flag.
  Change task content view to be a constraint layout.
  Extract out timer text specific utility from the dwb view
  Add a ui state for the app timer toast and add a mapper function for it
2025-04-23 19:49:38 -07:00
Jon Miranda ce82b8a6bd Merge "Switch taskbar overflow flag to lse_desktop_experience" into main 2025-04-23 18:04:05 -07:00
Mykola Podolian 976ab5aebd Merge "Check the bubble bar maximum so it is not cut off." into main 2025-04-23 17:00:38 -07:00
Ats Jenk 7d28df80e8 Bubble bar to ignore launcher state changes after destroy
When device is rotated, launcher is recreated and the existing
controllers are destroyed.
As part of handling the destroy signal, LauncherTaskbarUIController
updates the launcher state to in-app. This launcher state change is
handled by BubbleStashController which in turn notifies
BubbleBarViewController that bubble bar should be collapsed.
BubbleBarViewController then notifies WMShell that bubble bar should be
collapsed. And that state is stored in WMShell.
This causes bubble bar to collapse when it is expanded on home screen
and device is rotated.
Fix this by checking if the TaskbarActivityContext is already destroyed
when a launcher state change happens. And if it is, ignore those state
changes.

Bug: 357115534
Test: expand bubble bar on home screen, rotate device, check that bubble
  bar remains expanded
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I7e019f8d1fd7935582d84a99d3afa3ffadd92799
2025-04-23 16:18:57 -07:00
Daniel Andersson 6d514be4fc desktop-exploded-view: Animate when a desktop task is dismissed
This CL makes it so that the DesktopTaskView smoothly animates from
the old exploded view to the new when a task is dimissed.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
BUG=411155030

Change-Id: Idf22607336b5974bc72cc0e9009583f885ba0d67
2025-04-23 16:08:55 -07:00
Jon Miranda a19e4e2063 Switch taskbar overflow flag to lse_desktop_experience
Both flags are in Nextfood, so there will be no change to
user experience.

Bug: 368119679
Bug: 375627272
Test: TaskbarOverflowTest
Flag: com.android.window.flags.enable_taskbar_overflow
Change-Id: Ie3ef3bd49e078f5657bd069bc92c5a48a136e7cb
2025-04-23 15:20:04 -07:00
Treehugger Robot 59e208c28e Merge "Moving various launcher binding logic, outside LauncherModel" into main 2025-04-23 12:32:54 -07:00
Treehugger Robot 7919c64e6c Merge "RecentsWindowManager onDestroy fixes" into main 2025-04-23 11:56:42 -07:00
Surbhi Kadam 64aea3a713 Revert "Launcher3: send token with early wakeup request to Surfa..."
Revert submission 29600497-multiple_requests

Reason for revert: Causes SysUI jank metrics regression

Reverted changes: /q/submissionid:29600497-multiple_requests

Change-Id: Id9737044ce4833f42aab1d3ab7daa9a426881a26
2025-04-23 10:48:12 -07:00