Commit Graph

23356 Commits

Author SHA1 Message Date
Fengjiang Li 27cff24c00 [Memory Leak] Fix leak of NexusLauncehrActivity via AbsSwipeUpHandler#mRecentsAnimationStartCallbacks -> SurfaceTransactionApplier
Fix: 397559243
Flag: NONE - released code
Test: presubmit
Change-Id: I8a1a03575e98bdbe44c70f2bd691f6930ac8b8fd
2025-02-18 21:18:03 -08:00
Wei Sheng Shih e0221f0c8b Merge "Release predict_back animaton leash in Launcher." into main 2025-02-18 18:24:48 -08:00
Treehugger Robot 3c985a8c65 Merge "Indices correction inside RecentsView" into main 2025-02-18 17:02:45 -08:00
Treehugger Robot f1397811e0 Merge "Do not crash DesktopVisibilityController on unknown displays" into main 2025-02-18 17:02:00 -08:00
Mykola Podolian a593d2a7da Merge changes I6fe1139e,I581dddf2 into main
* changes:
  Handle new bubble notification while drag is in progress.
  Made the bubble bar react to drag events from the Shell.
2025-02-18 14:03:17 -08:00
Ahmed Fakhry 41111bd8f6 Do not crash DesktopVisibilityController on unknown displays
Instead of requiring that a valid display ID is given to
the APIs in `DesktopVisibilityController` and crashing the Launcher,
this CL lets the code handle invalid IDs gracefully, and adds a test
that fails without the fix.

Bug: 392986431
Test: atest NexusLauncherTests:com.android.launcher3.statehandlers.DesktopVisibilityControllerTest
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: Id1bc7876ce654b96191c85089557b9279963acd8
2025-02-18 20:54:19 +00:00
Treehugger Robot bc55a8ee4b Merge "Fix live tile in dismiss and swipe down animation" into main 2025-02-18 11:20:42 -08:00
Bill Yi e60a2da5d5 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-18 11:06:55 -08:00
mpodolian 39c4bf2448 Handle new bubble notification while drag is in progress.
Handle new bubble notification while drag is in progress. Updated logic
to react to new bubble notifications arriving during drag operations
before a drop occurs.

Bug: 388894910
Flag: com.android.wm.shell.enable_create_any_bubble
Test: BubbleBarViewAnimatorTest
Test: Manual. Go to some application and have no bubbles. Start
dragging the taskbar icon over the bubble bar drop zone. Trigger new
bubble with the bubbles test application. Observe drop target is
hidden and new bubble is animated in, followed by flyout. When flyout
disappears, bubble bar remains on the screen. Release icon over the
bubble bar. Observe newly added application bubble is expanded. Repeat
same test, but drag the taskbar icon to the opposite side.
Test: Manual. Go to some application, but have bubbles. Start
dragging the taskbar icon over the bubble bar drop zone. Trigger new
bubble with the bubbles test application. Observe new bubble is added
and the flyout is shown. When flyout disappears, bubble bar remains on
the screen. Release icon over the bubble bar. Observe newly added
application bubble is expanded. Repeat same test, but drag the taskbar
icon to the opposite side.

Change-Id: I6fe1139ef56f4ad40d36a804016d23a9b34abf5f
2025-02-18 10:45:20 -08:00
Saumya Prakash 7286e3b053 Merge "Update Taskbar edu with new font style" into main 2025-02-18 10:40:44 -08:00
Uwais Ashraf e4d50cf422 Add view based screenshot for remaining TTV UI states
Bug: 344800402
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: TaskThumbnailViewScreenshotTest
Change-Id: Ib67eea313d12631e1ff3bd83b4874d8eb3ebeb39
2025-02-18 18:15:05 +00:00
minch 754e24c521 Indices correction inside RecentsView
Audit all the functions inside RecentsView with the TaskView index as
a parameter. Make sure the AddDesktopButton is considered while
setting the value of these parameters.

Flag: EXEMPT refactor
Bug: 379942019
Test: m
      alt+tab to the "# more apps" button insde KQS view, the first
      hidden TaskView inside the RecentsView will be focused.
Change-Id: I92cd3e38700e83e72d362dc47d3adae538695b60
2025-02-18 18:11:02 +00:00
Mady Mellor 21fde7581c Merge "Allow bubble bar to show on phones if the flag is enabled" into main 2025-02-18 09:34:44 -08:00
Treehugger Robot a00a837bd8 Merge "Do not translate the AddDesktopButton on dismissing a TaskView" into main 2025-02-18 09:15:44 -08:00
Alex Chau 65c04b0f05 Fix live tile in dismiss and swipe down animation
- Add separate property for grid translation in TaskViewSimulator, so it doesn't get reset when other translations (e.g. dismiss) is applied to live tile
- In createAdjacentPageAnimForTaskLaunch, use onAnimationStart without isReverse parameter, so it's actually called when the PendingAniamtion starts
- Also reset pivot if we have overriden it during createAdjacentPageAnimForTaskLaunch
- Also avoid applying addOverviewToAppAnim on live tile if it's not launching, otherwise recentsViewScale will be applied twice with addOverviewToAppAnim applying wrong value
- Use pivot instead of recentsViewScroll to bring non scroll position live tiel to fullscreen, to avoid a trajectory that will otherwise travel left and then right

Fix: 391146807
Fix: 321013528
Test: launching via swipe down with non-launching live tile
Test: dismissing live tile
Test: launching live tile in non scroll position
Flag: com.android.launcher3.enable_grid_only_overview
Change-Id: I24ee85399b09b25e157a8986103658bb4803a87e
2025-02-18 17:13:21 +00:00
Schneider Victor-Tulias ef06ef3328 Send intent boradcast when AllSetActivity ends and reaches launcher
Flag: EXEMPT supporting new SUW behaviour
Bug: 396378163
Test: registered temporary broadcast receiver and checked logs
Change-Id: Ib39da6bf17efd7e72c8e45bc2528781e1b9aa8d3
2025-02-18 12:08:45 -05:00
Treehugger Robot 329763191a Merge "Reduce ViewPool sizes for Desktop/GroupedTaskView to save RAM." into main 2025-02-18 08:59:42 -08:00
Treehugger Robot 0351edbdcc Merge "Move dismiss utils into new Util class." into main 2025-02-18 08:08:35 -08:00
Alex Chau 9063bd7a46 Update Desktop tasks's corner radius to match Shell side
Fix: 384517710
Test: OverviewDesktopTaskImageTest
Flag: EXEMPT BUG_FIX
Change-Id: I021c3cd4e8c1cc13066def470536535c5dbc791e
2025-02-18 15:19:04 +00:00
Uwais Ashraf 5a148aef44 Reduce ViewPool sizes for Desktop/GroupedTaskView to save RAM.
Bug: 395287683
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Manual - split tasks displaying correctly
Change-Id: Ib4496ee1859cc5245ec4ef76f0723de8fbd55b7c
2025-02-18 07:13:58 -08:00
Pat Manning d093526259 Move dismiss utils into new Util class.
Fix: 396111473
Test: Manual. Does everything build.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I039fc38c133245e52b7ca30ff5231ddba7b77e47
2025-02-18 06:11:41 -08:00
Treehugger Robot bb6c434ca6 Merge "Clean-up unused dependencies from TaskContainer and RecentsDependencies" into main 2025-02-18 05:54:05 -08:00
Sergey Pinkevich 861a31e8fd Convert DesktopAppLaunchTransitionManagerTest to multivalent
Bug: 378096575
Flag: NONE test fix, not actual code editing
Test: DesktopAppLaunchTransitionManagerTest

Change-Id: I6dc335fea156f4e830e9c2cadf3c98ff01fb7c4f
2025-02-18 13:45:51 +00:00
Sergey Pinkevich 668f630d92 Add logs for DesktopAppLaunchTransition when animation starts/no launch change
Bug: 395495925
Flag: NONE only adding logs, not change of actual code
Test: manually

Change-Id: I02d436b6a7bd2210f7917211648124b11d7bb972
2025-02-18 12:20:14 +00:00
Jordan Silva 73120a210b Clean-up unused dependencies from TaskContainer and RecentsDependencies
Fix: 397222030
Doc: go/launcher-overview-unified-taskviewmodel
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: OverviewImageTest
Test: TaskViewModelTest
Test: GetThumbnailPositionUseCaseTest
Test: GetThumbnailUseCaseTest
Change-Id: Idc1793039b4fc57d666dc19c55b984ba617c67bd
2025-02-18 03:39:42 -08:00
Cosmin Băieș 28d8275737 Use FLAG_ALT_FOCUSABLE_IM in taskbar when needed
Previously taskbar would only set/remove the FLAG_NOT_FOCUSABLE, which
also made it IME focusable. This was toggled when a tasbkar folder was
opened/closed, as well as opening the popup by long pressing an app in
the taskbar. Folders do require IME focusability, as the folder name can
be edited. However, the popup does not require IME focusability, and
this lead to the IME suddenly disappearing when the popup is shown.

This fixes the issue by also setting FLAG_ALT_FOCUSABLE_IM as needed,
only when the taskbar is also focusable. This follows the same logic
as in NotificationShadeWindowControllerImpl.

Flag: EXEMPT bugfix
Test: switch to gesture nav, show IME in app, show popup and verify
  IME is still visible
  open folder in either taskbar or launcher and verify IME can be shown
Bug: 361046041
Change-Id: Idb9b4503d5622222e99735f0f6981a17add12360
2025-02-18 12:12:40 +01:00
wilsonshih 3f20308743 Release predict_back animaton leash in Launcher.
Release the animation leash after back_to_home animation done.

Flag: EXEMPT bugfix
Bug: 395035430
Test: Use the back gesture to trigger the back_to_home animation
multiple times and perform multiple random transitions, dumping the
Surface Flinger to check the predict_back leashes not remain in the
offscreen layer.

Change-Id: I7ed9dfd510e38bed28b51762df9976d33c4a5644
2025-02-17 23:19:16 -08:00
mpodolian c7106806f1 Made the bubble bar react to drag events from the Shell.
Added logic to show and hide the bubble bar drop target on Shell
drag-and-drop events.

Test: Manual. Drag a shortcut or an application icon from the taskbar to
the bubble bar drop zone. Observe that if the bubble bar is showing
bubbles, the background stroke color becomes non-transparent; if there
are no bubbles, the drop zone appears. Drag the app icon to the opposite
side and observe that the bubble bar location is animated or the drop
zone appears on the dragged side. Drop the application icon or shortcut
on any side and observe that a new bubble is added and immediately
expanded. Additionally, the bubble bar remains at the drop location.
expanded.
Bug: 388894910
Flag: com.android.wm.shell.enable_create_any_bubble

Change-Id: I581dddf2c76ac982a5c78bc32d94b79bf63fd2b9
2025-02-17 16:50:46 -08:00
David Stevens 1189ee33c6 Mark tasks on launcher as perceptible
Mark all tasks on launcher as perceptible tasks.
Flag enablement is for desktop devices only.

Bug: 370890207
Test: Manual
Flag: com.android.server.am.perceptible_tasks
Change-Id: Ic9022dcb07f2fc2d1bd1277bc1a83233ebc5626e
2025-02-17 01:06:13 +00:00
Saumya Prakash e6036ab358 Update Taskbar edu with new font style
This change applies the new expressive font style if the expressive
theme is enabled. Screenshots are available in the bug

Fix: 393610004
Test: Check that the fonts change when the expresssive theme is enabled
Flag: com.android.launcher3.expressive_theme_in_taskbar_and_navigation
Change-Id: I5fa34ab08486c7fdeb37ccd9afeda77b577a9404
2025-02-14 23:32:36 +00:00
Sergey Pinkevich 6880093100 Merge "Open and close animation for trampoline task" into main 2025-02-14 15:22:20 -08:00
Sukesh Ram f601711707 Merge "[CD Taskbar] Fix - Make Taskbar Icons Launch" into main 2025-02-14 14:45:33 -08:00
Andy Wickham 62f205b9e4 Fix performance regressions with handheld apps panel.
Theory: We are now rendering the wallpaper and workspace while All
Apps is open. This is causing additional rendering to be done,
leading to dropped frames and other regressions.

Here I remove workspace/hotseat on phones where the panel will
fully cover them anyway. I also remove the depth controller
during the all apps transition.

Using the "debug overdraw" developer setting, I verified that
Workspace and Hotseat are not drawn below the All Apps panel on
handheld.

I ran ABTD on this change and verified the p95 dropped frames
went back to 0.

Bug: 393188362
Bug: 393088056
Test: abtd commands in the bug
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Change-Id: I47287f3356d401a3bd4202e61fd44199855a4a3c
2025-02-14 22:44:13 +00:00
Mady Mellor 768019357f Allow bubble bar to show on phones if the flag is enabled
* Check for bubble bar on phone being enabled in most places
  tiny taskbar was checking
* Forces taskbar to always be stashed when bubble bar is enabled
* There are a couple of visual issues with the flag enabled:
  - extra space in overview
  - the hotseat is a lil squished on home when bubbles are there

Flag: com.android.wm.shell.enable_bubble_bar_on_phones
Test: manual - enable bubble bar on phones observe that bubble bar
               is enabled and kind of works
Bug: 394869612
Change-Id: I56d3045c78c6c31dcacf16744033b34c9aa5f6e0
2025-02-14 13:09:46 -08:00
Sukesh Ram 00cccdca4c [CD Taskbar] Fix - Make Taskbar Icons Launch
The base TaskbarUIController returns null for recents view.This makes icons on external display's taskbar unable to launch on external displays.

Test: m
Bug: 395954042
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: I389a0fa102f63ab93b8a29de722cce0a446a2ea1
2025-02-14 12:46:28 -08:00
Treehugger Robot 059bba075b Merge "Update dismiss length for tasks to bring them off screen." into main 2025-02-14 12:30:46 -08:00
Treehugger Robot 2ab63042b8 Merge "[CD Taskbar] Staging - Add/Remove Taskbars" into main 2025-02-14 11:36:58 -08:00
Bill Yi 0072b81db8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I340f82be9a7deae5c0e300455d131e927409bea5
2025-02-14 11:24:24 -08:00
Treehugger Robot 5ac353c697 Merge "Scale recents on drag of tasks during dismiss." into main 2025-02-14 11:05:12 -08:00
Treehugger Robot 2c5886869f Merge "Add debug logs to AbsSwipeUpHandler.calculateEndTarget" into main 2025-02-14 10:54:01 -08:00
Pat Manning 8bda4f6b5f Update dismiss length for tasks to bring them off screen.
Fix: 393553524
Test: TaplTestsQuickstep#testDismissBottomRow
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I959bcc86ad986abfe4546add62146e99f3707cc4
2025-02-14 18:32:00 +00:00
Treehugger Robot bbc199826f Merge "Update KQS text font family to match new specs" into main 2025-02-14 10:07:00 -08:00
Sunny Goyal fe5101d8de Simplifying icon normalization for adaptive icons
Bug: 366237794
Flag: EXEMPT refactor
Test: PResubmit and screenshot tests
Change-Id: Id21e57c9d4ba83983f27aa7988a08db3fd618ce3
2025-02-14 09:09:33 -08:00
Pat Manning 3b355f645b Scale recents on drag of tasks during dismiss.
Fix: 389083567
Test: TaplTestsQuickstep#testDismissCancel
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Ibeb0a742cdfb4392c920deb64dd5bd4f221a9564
2025-02-14 17:04:19 +00:00
Schneider Victor-Tulias 0ae28ca5d0 Update KQS text font family to match new specs
Flag: com.android.launcher3.expressive_theme_in_taskbar_and_navigation
Fixes: 393615634
Test: opened KQS, be before/after in bug
Change-Id: Ia953e2b927b6e69c0c150df01925436b6247d751
2025-02-14 10:49:30 -05:00
Treehugger Robot 17c250e9d5 Merge "Merging IconShape with ThemeManager" into main 2025-02-14 07:21:20 -08:00
Treehugger Robot 2c29f8cdaa Merge "Convert IconAppChipView from Java to Kotlin" into main 2025-02-14 05:15:02 -08:00
Sergey Pinkevich 9c8926bff5 Open and close animation for trampoline task
Moving most of the logic from DesktopAppLaunchTransition to DesktopAppLaunchAnimatorHelper to make it more testable

Bug: 391548553
Flag: com.android.window.flags.enable_desktop_trampoline_close_animation_bugfix
Test: DesktopAppLaunchAnimatorHelperTest

Change-Id: I606fc3fc25250ea4128f3089b701a1ae153dc47a
2025-02-14 10:20:26 +00:00
Sukesh Ram edec1fbbfd [CD Taskbar] Staging - Add/Remove Taskbars
Tablet to Monitor connection renders Extended Mode.

Test: Manual
Bug: 390426030
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: I16e2e4911446c42d5351d7086154d6c720bca284
2025-02-14 01:50:33 -08:00
Sunny Goyal 29f9c3d231 Merging IconShape with ThemeManager
The order of initialization for IconShape is closely tied to ThemeManager
which makes it difficult for change listeners to work. Merging these keeps
all the theming information at one place

Bug: 381897614
Test: Updated tests
Flag: EXEMPT refactor
Change-Id: Ie29efa20c3308a24be3e284c1c93ed7444b68d58
2025-02-13 22:38:01 -08:00