Commit Graph

83004 Commits

Author SHA1 Message Date
Uwais Ashraf bc67694c26 Revert "Also cancel TaskView collection Jobs when Overview is not on screen."
This reverts commit deefa3db71.

Reason for revert: b/406603025

Change-Id: Ifb770dd1e7e38946fe0ee02779dcb315023e392e
2025-04-01 09:39:34 -07:00
vinayjoglekar 8e82c8e354 Apply blur to blur surface only when live tile is drawing below recents.
We were applying blur to blur surface irrespective of whether live tile
is below or above recents. This was causing overhead of native calls due
 to additional reparenting and relayering. These calls are expensive and
  probably responsible for  jank.

Now we will apply blur behind base layer when live tile above recents
and swap surface to leash when below recents.

Bug: 404647629
Test: Manual. Launcher home -> all apps.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: Ia01e65253b3062ed2b597977bfd37a44d674e444
2025-04-01 17:34:54 +01:00
Pat Manning cb855eeeaf Fling cancel at same rate as fling so it is detected by touch controller.
Fix: 396447643
Test: TaplTestsQuickstep#testDismissCancel
Flag: EXEMPT bugfix
Change-Id: I1cf3ae6944d4765b54b78a86d4a81af1ed81e661
2025-04-01 09:33:49 -07:00
Pat Manning 8014b50abc Merge "Do not intercept touch on other actions if not enabled in ACTION_DOWN." into main 2025-04-01 09:07:18 -07:00
Eghosa Ewansiha-Vlachavas 34605d8575 [2/n] Isolate desktop entry point disabling from window exemptions
The windowing exemptions logic is used for both exempting apps from
opening in desktop but also hiding the entry point so apps cannot be
moved into desktop. However, disabling desktop entry points is not
constrained by the same security restrictions as exempting apps from
opening as freeform in desktop. Instead we should have a separate
heuristic for disabling entry points and forcing to fullscreen.

Flag: EXEMPT Refactoring
Fixes: 407704088
Test: atest NexusLauncherTests:com.android.quickstep.ExternalDisplaySystemShortcutTest.kt,
      atest NexusLauncherTests:com.android.quickstep.DisplaySystemShortcutTest.kt

Change-Id: I268566072ca5fba090d05f0202468d086c41a66d
2025-04-01 15:24:11 +00:00
Schneider Victor-Tulias 9f75f51a2c Dispatch KeyEvents received by the RecentsWindowManager to the LauncherRootView
- TaplTestsQuickstep.testDismissModalTaskAndOverviewWithEscKey was failing because RecentsWindowManager didn't dispatch key events at all.
- Also moving all LauncherRootView setup to a one-time execution

Flag: com.android.launcher3.enable_launcher_overview_in_window
Bug: 368610710
Bug: 377678992
Test: TaplTestsQuickstep.testDismissModalTaskAndOverviewWithEscKey
Change-Id: I9d8e0c91a549ed08398b2c89b1e4d23561f95c62
2025-04-01 07:31:49 -07:00
Schneider Victor-tulias f311ff67ff Merge changes Ib386c3b8,I2315e0af into main
* changes:
  Fix broken uses of TISBinder.refreshOverviewTarget
  Fix missing TAPL test state checks
2025-04-01 07:26:27 -07:00
Treehugger Robot 181a4b1911 Merge "Initialise and retain TaskViewModel in TaskView's constructor." into main 2025-04-01 06:22:15 -07:00
Pat Manning 3980b03b32 Do not intercept touch on other actions if not enabled in ACTION_DOWN.
Fix: 406405786
Test: Manual.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Ibd03917a2109307921642a681747709f113e279d
2025-04-01 12:22:34 +01:00
Uwais Ashraf e65743b7de Initialise and retain TaskViewModel in TaskView's constructor.
This means that the VMs are created on the bg threads in the ViewPool setup stage rather than at critical points in CUJs.

Bug: 395294954
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Manual - checking perfetto traces
Change-Id: I3aab5271d552e5f292533617a6842a046cb43bf1
2025-04-01 11:11:36 +00:00
Will Osborn f655091164 V small tidy of InputConsumerUtilsTest
Test: locally tested on Tangor
Bug: 399371607
Flag: EXEMPT refactor
Change-Id: Ie034525cfb88c378c7edfbbcabeb7d68d62ea5da
2025-04-01 11:06:14 +00:00
Sunny Goyal 55c51ff06d Merge "Lazily loading theme icons" into main 2025-03-31 23:31:30 -07:00
Jeremy Sim 9f96577bd5 Increase threshhold for hiding one icon menu in Overview
Increases the minimum ratio for showing both icon menus from 0.2 to 0.25. Needed because certain layouts were exceeding the previous breakpoint (at around 0.22) and causing the icon menu to appear in a too-small space.

Fixes: 404545073
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: Manual
Change-Id: I87b93994fb37a9b82e58749792c519aaae541d0d
2025-04-01 12:12:12 +08:00
Min Chen 7eba676ba6 Merge "Swtich to screenshot before trigger the desk launch" into main 2025-03-31 17:23:07 -07:00
Toni Barzic f1e27a8aa7 Recreate taskbar for combined desktop mode / pinning state change
If desktop mode change also contains change in the pinning state,
recreate taskbar even if home screen always shows locked taskbar.
Without this, exiting desktop mode with transient taskbar to home with
"locked", i.e. pinned taskbar leaves taskbar in a broken state
(transient taskbar layout, with no background).

Bug: 406575227
Test: On desktop device, untoggle "Always show taskbar" in desktop mode.
    When in desktop mode, click/tap the stashed taskbar handle to go
    home. Verify that a proper pinned taskbar is drawn on home.
Flag: EXEMPT bugfix
Change-Id: I818d22e1bdd8258bbfe79ee67c04b61508b829d5
2025-04-01 00:02:12 +00:00
Treehugger Robot 8bc47e7df1 Merge "Add ScreenRecord for DigitalWellBeingToastTest" into main 2025-03-31 16:46:17 -07:00
Saumya Prakash 699be36c9b Ensure the back button is visible in SUW for simple view
Simple view is meant to provide an easier setup experience and this
means that the back button must be visible in SUW, even if the new
design choice is applied. This change adds a caveat to enable the back
button for this situation.

Fix: 396559615
Test: Enable/Disable simple view with the new theme applied and observe
the back button appear/disappear
Flag: EXEMPT bugfix

Change-Id: Ic58b5d87b2d0670c468222098a53293ae27b0206
2025-03-31 23:38:01 +00:00
Schneider Victor-Tulias cdf20df7f6 Fix broken uses of TISBinder.refreshOverviewTarget
TaskbarManager.setActivity doesn't get called again when TISBinder.refreshOverviewTarget is called because TIS isn't re-connecting to launcher. TISBinder.refreshOverviewTarget just forcefully updated the overview target, but TIS was still connected. So, QuickstepLauncher.onTISConnected wouldn't run again to call TaskbarMAnager.setActivity(this). Calling it manually to fix failing TaplTestsNexus tests with recents in window flags enabled

Flag: com.android.launcher3.enable_launcher_overview_in_window
Flag: com.android.launcher3.enable_fallback_overview_in_window
Flag: com.android.launcher3.enable_overview_on_connected_displays
Bug: 377678992
Test: TaplTestsNexus.testDismissWithKeyboardShortcut and TaplTestsNexus.testSearchWithKeyboardShortcut
Change-Id: Ib386c3b8cfc5a9167f7f219dba0cccec344446b6
2025-03-31 16:16:15 -07:00
Schneider Victor-Tulias 924c181fcd Fix missing TAPL test state checks
Flag: com.android.launcher3.enable_launcher_overview_in_window
Bug: 377678992
Test: pre/postsubmit
Change-Id: I2315e0af7b0567368ddc194a2d5ec7b3e563175f
2025-03-31 16:15:42 -07:00
minch 624f96dd72 Swtich to screenshot before trigger the desk launch
Bug: 400870600
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I7a622a2fa865ddb26d902e0bf13f1e69257e2dfa
2025-03-31 22:10:38 +00:00
Jagrut Desai 75a26fc793 Merge "Set Content Description for Taskbar edu animation view" into main 2025-03-31 14:55:28 -07:00
Jagrut Desai 87a09c4374 Merge "Taskbar Divider Popup Icon changes" into main 2025-03-31 14:55:04 -07:00
Wen-chien Wang edf603cf95 Merge "pin-shortcut: Make single recent task pinnable from taskbar" into main 2025-03-31 14:12:43 -07:00
Sebastián Franco 713624e79d Merge "Deactivate fixed landscape preview and show portrait preview instead." into main 2025-03-31 13:44:17 -07:00
Alex Chau f0575814e1 Add ScreenRecord for DigitalWellBeingToastTest
Bug: 407406547
Test: DigitalWellBeingToastTest
Flag: EXEMPT test only
Change-Id: I45caf7e9fc6e091180bfcbabab1d06c3a302eb96
2025-03-31 21:32:45 +01:00
Sunny Goyal 50884dadfe Lazily loading theme icons
Theme icons are generated and stored in cache, but only loaded if requested in lookup flags
This allows to keep the memory usage low, but not loading theme icons for all the apps

Bug: 381897614
Flag: com.android.launcher3.extendible_theme_manager
Test: Updated tests
Change-Id: I494eab9c4f70670e6f5aeb864ed5287f6b9f1b9e
2025-03-31 13:07:03 -07:00
Treehugger Robot 73818a634d Merge "Turn on debug log for BaseActivity" into main 2025-03-31 12:54:54 -07:00
Treehugger Robot a32268b55a Merge "Do not run expressive dismiss when removing a task if grid only overview is not supported." into main 2025-03-31 12:14:42 -07:00
Charlie Anderson 6db3955ef4 Merge "remove shape-based icon scaling" into main 2025-03-31 11:17:42 -07:00
Treehugger Robot 86ad2f1b34 Merge "Fix App Chip disappearing when tapping multiple times to expand" into main 2025-03-31 11:14:38 -07:00
Alex Chau 0896c64198 Turn on debug log for BaseActivity
Bug: 406230491
Test: presubmit
Flag: EXEMPT logging
Change-Id: Ie39dc12f0d6d245dc547f911120e13753e90a7af
2025-03-31 18:25:31 +01:00
Pat Manning d9af44a159 Do not run expressive dismiss when removing a task if grid only overview is not supported.
Fix: 406982143
Test: Manual.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Ifc7557a06134a9c8e2765f684797d03ad4b4e4a4
2025-03-31 17:56:58 +01:00
Jagrut Desai b9214a935b Taskbar Divider Popup Icon changes
Test: Manual
Bug: 379158656
Flag: com.android.wm.shell.enable_gsf
Change-Id: Ifc603d18e5aae2b6d61ba682515f35de42e2a533
2025-03-31 09:52:08 -07:00
Xiaoqian (Daisy) Dai b5006ef5fb Merge "desktop-exploded-view: only create header when needed" into main 2025-03-31 09:33:07 -07:00
Alex Chau 7c0241ae0e Merge "Add missing onIDPChanged listener in RecentsActivity" into main 2025-03-31 08:47:13 -07:00
Alex Chau d80be596a0 Add missing onIDPChanged listener in RecentsActivity
- As part of b/405384582's investigation I discovered that when changing navigation mode with 3P Launcher, DeviceProfile.isGestureMode didn't get update when switching between gesture and 3 button
- This is because unlike Launcher activity, RecentsActivity doens't listen for IDP changes and update its DeviceProfile accordingly, adding the listener solved the problem
- This also makes  b/405384582 no longer reproducible for 3 button mode

Bug: 405384582
Test: Switch navigation mode with 3P launcher
Flag: EXEMPT bugfix
Change-Id: I85b57f5c85d7356517d04e601b705ec0cade2d96
2025-03-31 06:37:41 -07:00
Treehugger Robot 767d2a98a4 Merge "Use enhanced blur radius for overview blur" into main 2025-03-31 06:33:11 -07:00
Alex Chau 79349ab7d7 Merge "Make sure animation properties are applied correctly for non-gestural transitions" into main 2025-03-31 05:46:51 -07:00
Jordan Silva dc7b80758d Fix App Chip disappearing when tapping multiple times to expand
Instead of incrementing and decrementing the zIndex, we set a fix value: elevation + constant. And we reset the value back to the initial elevation. This avoids the elevation becoming negative when tapping on the chip multiple times.

Fix: 407505697
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Test: OverviewSplitTaskImageTest
Test: Manual. Tap multiple times on the App chip.
Change-Id: Icb1b5df1674131416ec6722adb8f2c2563d81f18
2025-03-31 13:43:23 +01:00
vinayjoglekar 47f0ac6d7f Use enhanced blur radius for overview blur
Fix: 406442306
Test: Manual. Enter overview from app / home.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I5ca2265c6127faaa8cdea09f2a43da961a38045a
2025-03-31 04:03:48 -07:00
Treehugger Robot fb28c6e3b9 Merge "Revert^2 "Notify StateManager of workspace reveal animations."" into main 2025-03-31 02:47:32 -07:00
Treehugger Robot 0c30f0e01b Merge "Perf tracing for methods that can be slow" into main 2025-03-31 02:30:24 -07:00
Uwais Ashraf 207d5fa3b5 Merge "Remove flag rule to turn off one grid in all image tests" into main 2025-03-30 14:11:59 -07:00
Xiaoqian Dai 31a944cbb4 desktop-exploded-view: only create header when needed
Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
BUG: 353965691

Change-Id: Id5b0fb6d458e69bcd3b6bafd9f9898160efe902a
2025-03-30 18:55:47 +00:00
Andy Wickham ec76ce32c2 Revert^2 "Notify StateManager of workspace reveal animations."
This reverts commit 62ad6217ac.

Reason for revert: we need the original fix

Fix: 405836159
Fix: 406159877
Fix: 406157493
Test: Manual (swipe home and immediately to all apps)
Test: atest FlickerTestsIme:com.android.server.wm.flicker.ime.CloseImeOnGoHomeTest#cujCompleted[ROTATION_0_3_BUTTON_NAV] -- --abi arm64-v8a
Flag: EXEMPT bugfix
Change-Id: Ibc58cbef929422ee23d452f0db40b082debce3a4
2025-03-30 06:15:13 +00:00
Andy Wickham 3c7f59ac4b Re-adds Workspace behind All Apps and ties to DepthController.
I had previously hidden workspace with All Apps blur because the
approaches I had tried looked poor. However, I found that this
approach is both simple and relatively performant! Essentially,
wallpaper is still pushed back and blurred by the DepthController.
When the DepthController applies blur, we also apply it to the
Workspace and Hotseat. In addition, we scale these at the same
rate as the depth when swiping to all apps. Perhaps we can have
the DepthController control this scale too, but for now we just
use the same Interpolator. The result looks pretty cohesive.

Demo: https://drive.google.com/file/d/1KyKc0c5BsAEOrT3K4buOW3U9-Gk0e7vE/view?usp=sharing&resourcekey=0-MI1gdQMul0cro9IEkQDEng
App exit demo (slightly outdated): https://drive.google.com/file/d/1r-VhzGhlI0300_6IUXthty3Tm1cgw9aI/view?usp=sharing&resourcekey=0-nxZ2BHW2UN34lr567I0RdA

Bug: 400827727
Bug: 371343636
Test: Manual
Flag: com.android.launcher3.all_apps_blur
Change-Id: I5dc66619a001ccd32f37272cf77966cbe1bf8ef6
2025-03-29 08:12:29 +00:00
Treehugger Robot e18ec2b41a Merge "Remove demo mode layout code" into main 2025-03-28 19:14:34 -07:00
Brandon Dayauon df761a1c53 Merge "Override PS app icon title to Add" into main 2025-03-28 17:35:20 -07:00
Sebastian Franco af31a6fa80 Deactivate fixed landscape preview and show portrait preview instead.
There is extra work needed from the Wallpaper picker side to support
showing the FixedLandscape view on the Launcher. They are already
working on it but in the meantime we will disable the preview and show
the portrait view instead.

Fix: 402353157
Test: NA
Flag: com.android.launcher3.one_grid_specs
Change-Id: I12942a8f4edb7eff537d8431880cfe108e161ed2
2025-03-28 17:05:51 -07:00
Federico Baron dc1e7d004c Remove demo mode layout code
It's no longer used/needed

Bug: 407120123
Flag: EXEMPT internal cleanup
Test: EXEMPT internal cleanup
Change-Id: Ie0ae18b67ed4d7119b7901e652c27c024450da4b
2025-03-28 23:58:50 +00:00