Commit Graph

83004 Commits

Author SHA1 Message Date
Charlie Anderson 34bbc47c37 Make apply button for shapes ~28522% faster in picker
In reality just makes shapes load asynchronously when applying, to unblock users.
In the future we may want to at least wait for preview to load, and handle case where users leave picker early.

Bug: 404486355
Test: tested applying each shape in picker and measuring the elapsed time
Flag: com.android.launcher3.enable_launcher_icon_shapes
Flag: com.android.systemui.shared.new_customization_picker_ui
Change-Id: Ic844a3519a8d7ecde80b72c0616a9e08edceb310
2025-03-25 08:31:04 -07:00
Uwais Ashraf deefa3db71 Also cancel TaskView collection Jobs when Overview is not on screen.
This prevents old scopes still being active when new TaskView state emissions are being sent to main. They were previously cancelled in time but still result in empty continuations occuring on main.

Bug: 395294954
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Manual - checking perfetto traces
Change-Id: I539a6fde8c9315ceeac74c9bf622d1e2dca1403a
2025-03-25 15:23:56 +00:00
Brandon Dayauon 5cba691b34 Merge changes from topics "fontUpdateGoogleSansFlex", "workToastFontChange" into main
* changes:
  Update personalWork tabs and work related fonts
  Change A-Z font to GSF for app icons and PS header
2025-03-25 07:55:28 -07:00
Pat Manning ac5027dbf8 Account for Recents Scale when computing dismiss length to take task off screen.
Fix: 406213321
Test: Manual.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: If0e79fc58a1f094071b98587e3f57af4af64c524
2025-03-25 14:41:27 +00:00
vinayjoglekar 1653a5082d Reduce calls to surface reparenting and set relative layer.
Surface reparenting was happening on every frame since we call
applyDepthAndBlur on each frame during animation. Instead we can do it
only when base surface is set. mBlurSurface should always be parented to
mBaseSurface so no point in calling it again and again.

Relative layer changes only when we either draw above or recents. While
drawing above recents, mBaseSurface relative layer should be used.
mBaseSurfaceOverride otherwise. No point to call this during animation.

Added perfetto traces comparison home->all apps, alongwith all other
generic overview scenarios which possibly could have caused jank is
added here:

https://drive.google.com/drive/folders/146K_4WLaOGQcZ1gsuhCFlOCzfZ-mJBw8?resourcekey=0-r1-NnNtYGH88d8DGEvnXZg&usp=sharing

Bug: 404647629
Test: Manual. Enter overview from Desktop tile / home.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I9dae7c5ece37e51664d82c680ea247f89bb5664b
2025-03-25 07:02:46 -07:00
Shamali Patwa 15fa804ddf Merge "Add ViewStubs for DWB layouts to avoid duplicate views in refactor" into main 2025-03-25 06:38:42 -07:00
Uwais Ashraf e54f38f7c7 Add null backup for title.
Fix: 403146003
Flag: EXEMPT - test bugfix
Test: Postsubmit runs
Change-Id: Icd94a207ba6e35b92c72e407db4ebc1ba0178723
2025-03-25 13:20:25 +00:00
Pat Manning b147f6f4b7 Snap to Large tile or first grid task when they are the next page.
Fix: 398232493
Fix: 399622012
Test: Manual
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I10cbd303b3e36059a41cb4ff7fdb4b4af7f93f23
2025-03-25 12:44:35 +00:00
Alex Chau f5956e01b2 Merge "Still play home task dismiss animation when aniamtorSet is null" into main 2025-03-25 05:03:06 -07:00
Treehugger Robot 5ff3717c6f Merge "Add debounce to TaskView emissions" into main 2025-03-25 03:58:44 -07:00
vinayjoglekar 162a85e777 Remove unnecessary call to RecentsView.reset when switching from any non-overview state.
We were checking whether recents is visible or not while opening all
apps and calling RecentsView#reset. Since Recents is not visible, we
were always calling reset which was making additional blur. Adding check
here of what current state is, will reduce these calls.

Added perfetto traces comparison here

https://drive.google.com/drive/folders/146K_4WLaOGQcZ1gsuhCFlOCzfZ-mJBw8?resourcekey=0-r1-NnNtYGH88d8DGEvnXZg&usp=sharing

Bug: 404647629
Test: Manual. Launcher home -> all apps.
Flag: EXEMPT bugfix
Change-Id: If0e31638adee50d36974abd7a4c809e3747f37a0
2025-03-25 03:40:18 -07:00
Chaitanya Cheemala (xWF) 62ad6217ac Revert "Notify StateManager of workspace reveal animations."
This reverts commit adb3bf5a8d.

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

Change-Id: I9bad89e9ffa082bc8a1505e699048a7739aaf24d
2025-03-25 03:18:33 -07:00
Treehugger Robot 0a3f31940d Merge "Notify StateManager of workspace reveal animations." into main 2025-03-24 23:34:33 -07:00
Treehugger Robot 373bb0d190 Merge "Fix broken quick switch from home gesture with recents-in-window enabled" into main 2025-03-24 21:41:08 -07:00
Charlie Anderson 7c165d725f Fix shaped icons not centering correctly when scaled
Test: try different shapes and scaling
Bug: 400774067
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I06d05099195bd3cb3a4e7baf7b397eb90bc06f77
2025-03-25 00:14:55 -04:00
Shamali P ab0ddca48d Update fonts for widget picker
Screenshot test will be updated when build flag is moved to staging

Bug: 393610557
Flag: com.android.launcher3.gsf_res
Test: on device
Change-Id: Ide96093555b7f4592952a2c111cc14062c8d41e7
2025-03-25 00:20:38 +00:00
Shamali P 085e01ad72 Add a new flag for the digital wellbeing toast refactor
Bug: 404838605
Fix: 405359733
Flag: com.android.launcher3.enable_refactor_digital_wellbeing_toast
Test: EXEMPT flag addition
Change-Id: I4feffbf7b8a19942617b9a9c65b5c98899541450
2025-03-24 16:18:01 -07:00
Brandon Dayauon 8161b7c9ef Update personalWork tabs and work related fonts
Bug:393609630
Test - manually:
AA tab work enabled flag off: https://hsv.googleplex.com/5718615755063296
AA tab work enabled flag on: https://hsv.googleplex.com/6373838181892096
AA tab work disabled flag off: https://hsv.googleplex.com/5020660391739392
AA tab work disabled flag on: https://hsv.googleplex.com/5242306297856000
Flag: com.android.launcher3.gsf_res

Change-Id: Ic1069bc636429f63ab6d583940c14fa7f0211f61
2025-03-24 23:04:57 +00:00
Daniel Andersson 07c09556f0 desktop-exploded-view: Avoid triggering layout when starting animation
This fixes an issue with the desktop task view unexpectedly jumping
first to the right, and then back to the left. See the bug for more
information.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug=399822967

Change-Id: I3713b20effa2a7f25ca04ed83ed524772d23ca2f
2025-03-24 15:04:27 -07:00
Treehugger Robot 44552dc98f Merge "Stay in the current task when a new desk is created" into main 2025-03-24 13:23:22 -07:00
minch fa50caf83c Remove wallpaper task and tasks below from getCachedTopTask
Remove the wallpaper task and tasks below from
`TopTaskTracker.getCachedTopTask` thus the empty task can be
really empty.
Also update the usage of the cached top task to avoid crash
because it can be empty now.

Bug: 402218420
Flag: EXEMPT refactor
Test: m
Change-Id: I15835ec3bf84b9ea5b6b2aba731f9f5b8a17353f
2025-03-24 20:18:05 +00:00
minch 1b3daa918e Handling for an empty desk
Bug: 401582344
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I60960277f22196050491b152ea7e9476f4f70bb9
2025-03-24 20:17:44 +00:00
Uwais Ashraf 2f193110b7 Add debounce to TaskView emissions
The emissions of each TaskView on Overview open are usually:
1. task exists
2. icon loaded
3. then thumbnail loaded

If the 3 updates above come in quick succession, then ideally the first 2 will be debounced and the last one will be consumed immediately.

Debouncing only when thumbnails are not present gives the best results. This is because thumbnail loading is a decent predictor of there being no more emissions to come as they are typically the last emission for a TaskView.

Bug: 395294954
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: ABTD run of failing metric
Change-Id: Ib57d6dc7d9f58b7bb37ec1177b23d89360c24c0e
2025-03-24 20:17:35 +00:00
Vinit Nayak 16210fa129 Merge changes I48079ecb,Ifda20367 into main
* changes:
  Revert "Re-use existing method to get split root"
  Revert "Reset leashes before starting taskbar app pair launch animation"
2025-03-24 13:14:22 -07:00
Min Chen d5aa8031b1 Merge "Pass displayId to CachedTaskInfo when needed" into main 2025-03-24 13:10:29 -07:00
Shamali Patwa bb04b1135f Merge "Revert "Improve reliability of cleanup done in onDestroy."" into main 2025-03-24 13:06:27 -07:00
Min Chen 0599eaa522 Merge "Make sure the correct input consumer is created" into main 2025-03-24 12:34:44 -07:00
Alex Chau 09a3453052 Still play home task dismiss animation when aniamtorSet is null
- If onPrepareGestureEndAnimation is called with null aniamtorSet, plays the dismiss animator directly with 0 duration

Fix: 405368787
Flag: EXEMPT bugfix
Test: manual, adb shell input keyevent KEYCODE_APP_SWITCH or Window + Tab with keybnoard from home
Change-Id: I16048f9454f79e2828c6a4a75b788b9838e886ab
2025-03-24 18:51:26 +00:00
Treehugger Robot 69998a8c77 Merge "Using Choreographer for getting refreshrate instead of display manager" into main 2025-03-24 11:10:42 -07:00
Treehugger Robot e0a018785e Merge "Add screenrecord for TaplUninstallRemoveTest#testUninstallFromAllApps" into main 2025-03-24 11:03:55 -07:00
Bill Yi af19c1113e Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-24 11:00:23 -07:00
Bill Yi 5d20814641 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-24 11:00:23 -07:00
Suhua Lei 77481d611b Stay in the current task when a new desk is created
Bug: 401002178
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: manual create new desks
Change-Id: Iaa29c557a421d5c51b90aa808188d3cabec89143
2025-03-24 17:19:17 +00:00
Charlie Anderson 2044dae70e Fix folder closing to different shapes
Bug: 403915526
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: opening and closing apps from shaped folders

Change-Id: I42f0f689151dcbbd5c8eb6bf424ec4ad7dbe435a
2025-03-24 10:07:44 -07:00
minch e7a054ae2b Make sure the correct input consumer is created
Let `isGestureBlockedTask` return false directly if
`mGestureBlockingTaskId` is not valid. This can avoid
the caller go to create incorrect InputConsumer when
the chekcing `taskId` is also invalid.

Bug: 402218420
Flag: EXEMPT bug fix
Test: m
Change-Id: Ia0cde8ee2b97fc92028458d01487d958f2e87a80
2025-03-24 17:00:28 +00:00
minch 956a9e0abb Pass displayId to CachedTaskInfo when needed
Bug: 401582344
Flag: EXEMPT refactor
Test: m
Change-Id: Id930db727dd0072ab5be04ae4272dc68c8b6dcb3
2025-03-24 16:18:09 +00:00
Sunny Goyal 836a832bfe Using Choreographer for getting refreshrate instead of display manager
Bug: 404582684
Flag: EXEMPT bugfix
Test: Manually verified that values are same as before even after changing refresh rate `adb shell settings put system peak_refresh_rate [30/60/90/120]`
Change-Id: I5d5468d8ab81a9a5e8d8cd67a9097423b750edb3
2025-03-24 08:51:53 -07:00
Shamali Patwa cfcb27aa9d Revert "Improve reliability of cleanup done in onDestroy."
This reverts commit 9cf28d1772.

Reason for revert: Fix in ag/32425180

Change-Id: I714665944384db6f68634de529272e618bccdad9
2025-03-24 08:46:36 -07:00
Schneider Victor-Tulias 6daf7fd963 Fix broken quick switch from home gesture with recents-in-window enabled
Flag: com.android.launcher3.enable_launcher_overview_in_window
Fixes: 405201109
Bug: 377678992
Test: used quick switch gesture from home with flag enabled. presubmit tests on temporary test cl
Change-Id: I8dbd3a41c350aba6c785aa0b2c8f20da7a468998
2025-03-24 11:17:50 -04:00
Treehugger Robot f67f97ade2 Merge "Fix action buttons visibility in handheld devices with blur enabled(1/n)" into main 2025-03-24 08:05:04 -07:00
Massimo Carli 2d70081aa5 Merge "Fix Test supporting HSUM" into main 2025-03-24 07:47:17 -07:00
Treehugger Robot 1d5064b8dc Merge "Add debug logging for task view touch controllers." into main 2025-03-24 06:17:26 -07:00
Shamali Patwa 173790f52d Merge "Update font weights for the text in widget list header's selected states" into main 2025-03-24 05:47:26 -07:00
vinayjoglekar 7d27140a59 Fix action buttons visibility in handheld devices with blur enabled(1/n)
Added scrim in overview over blur.

Bug: 404479758
Test: Manual. Enter overview from home with and without tasks in handheld devices.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: If8cb37099f2e2b1fa8bed1611ed359b49f255d64
2025-03-24 18:10:18 +05:30
Andy Wickham adb3bf5a8d Notify StateManager of workspace reveal animations.
This way any subsequent state changes during the animation will
cancel it. Previously swiping up to All Apps immediately after
going home would cause the 2 depth animations to interleave,
ending with a depth of 0, for example. Now the workspace depth is
cancelled and the All Apps depth is correctly applied.

Demo: https://drive.google.com/file/d/1R1BwYAsxj31FDgAeIZqZdJbuSz7s9PZy/view?usp=sharing&resourcekey=0-4UyZfAMxecSHWAyqyeNZmg

Fix: 405836159
Test: Manual (swipe home and immediately to all apps)
Flag: EXEMPT bugfix
Change-Id: Iac32f2a03a5cbbb297c71ebd9cfedc8ee6e8cae7
2025-03-24 11:07:28 +00:00
Treehugger Robot 69461b2d75 Merge "Add "change aspect ratio" to Recents/Overview" into main 2025-03-24 01:04:31 -07:00
Robin Lee 116eafb95c Add "change aspect ratio" to Recents/Overview
This shows up if the launcher is in a sw600dp-or-greater configuration.

Test: AspectRatioSystemShortcutTests
Test: OverviewMenuImageTest
Test: Manual check on phone, tablet, and inner/outer fold screens.
Flag: com.android.window.flags.universal_resizable_by_default
Bug: 357141415
Change-Id: I1bcbf9299d28ce68cccd636d92ed7195d64736eb
2025-03-24 06:56:05 +01:00
Wei Sheng Shih 7e4fa0f833 Merge "Revert^2 "Remove DepartingAnimationTarget from BackMotionEvent(2/2)"" into main 2025-03-23 21:51:51 -07:00
Treehugger Robot 88b2f23a83 Merge changes from topic "ttt-refactor" into main
* changes:
  Migrate to TopTaskTracker.getPlaceholderGroupedTaskInfo
  Introduce TopTaskTracker.getPlaceholderGroupedTaskInfo
2025-03-22 08:35:44 -07:00
Treehugger Robot ee872972dc Merge "Adding support for custom layouts in Preview" into main 2025-03-22 02:42:04 -07:00