Commit Graph

80588 Commits

Author SHA1 Message Date
Brandon Dayauon 8f0df9a92c Merge "Change ps_install app icon to adaptive drawable" into main 2025-02-24 09:33:49 -08:00
Treehugger Robot 2be0868a34 Merge "Add missing bits of cleanup to TV recycle stage" into main 2025-02-24 07:51:33 -08:00
Treehugger Robot 19db412ca6 Merge "Update NavHandle tests to use more conservative timings." into main 2025-02-24 06:51:09 -08:00
Uwais Ashraf 5e3331dc6f Add missing bits of cleanup to TV recycle stage
Bug: 395331030
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Manual heap dump comparison
Change-Id: Ifa40d7bf874b0437fb0dc59a964748366ffe9986
2025-02-24 07:24:37 +00:00
Treehugger Robot 63de256dfe Merge "Add deskId to DesktopTask." into main 2025-02-21 18:33:52 -08:00
Andy Wickham 471ad8400f Update NavHandle tests to use more conservative timings.
On some devices, the long press would trigger due to an overly
long wait in the test. Separately, the small slop tests were
using a slop that would trigger the second stage if that flag was
enabled, so the trigger didn't happen (WAI). We already test 2
stage, so I updated these tests to use a smaller slop that should
not trigger with or without 2 stage.

Test: atest NexusLauncherTests:com.android.quickstep.inputconsumers.NavHandleLongPressInputConsumerTest -- --abi arm64-v8a
Flag: EXEMPT tests
Fix: 398216382

Change-Id: Iec633d01eff63eac8ba072fef4ac1e7b452d8242
2025-02-22 02:30:18 +00:00
Treehugger Robot 467ab548d9 Merge "Initialize shape with PreviewContext init and remove nullability" into main 2025-02-21 17:17:26 -08:00
Xiaoqian (Daisy) Dai 9ca73dfa09 Merge "desktop-exploded-view: Implement the close button and its behavior" into main 2025-02-21 16:53:28 -08:00
Jeremy Sim 96da8fc3ec Merge "Refactor SplitBounds to always use creation-time measurements" into main 2025-02-21 15:26:02 -08:00
Brandon Dayauon 29ae91c36f Change ps_install app icon to adaptive drawable
In the before pic, you can see that the original drawable is
small/compressed with a white ring around it. You can't really see that
in the light theme since the white ring is blended. It is much clearer in the
dark theme that this is the case.

Changing the vector drawable to adaptive-icon will fix the white ring
in the icon.

bug:396346767
Test: manual screenshot:
before:
light theme: https://hsv.googleplex.com/6358252685099008
dark theme: https://hsv.googleplex.com/6567188726022144
after:
light theme: https://hsv.googleplex.com/4762286056013824
dark theme: https://hsv.googleplex.com/4821700083449856
Flag: EXEMPT bug fix

Change-Id: Ib557bcf5fce5e58b6be4bb8bc82673441816b2d7
2025-02-21 23:03:53 +00:00
Xiaoqian Dai 6aca9bedd5 desktop-exploded-view: Implement the close button and its behavior
Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual + newly added tapl tests in a following CL
Bug: 353965691

Change-Id: Iba4603b84928885b1d50f5551adbacbd31e98cc3
2025-02-21 22:23:41 +00:00
Sunny Goyal 7a38a45ca3 Merge "Moving LooperExecutor to kotlin" into main 2025-02-21 14:02:16 -08:00
Treehugger Robot cc51f625ae Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-21 13:47:41 -08:00
Treehugger Robot 90f2ff3dc5 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-21 13:47:41 -08:00
Stefan Andonian e14ca0d14c Merge "[Memory Leak] Fix leak of LauncherAppWidgetHostView via StateManager.StateListener" into main 2025-02-21 13:02:08 -08:00
Treehugger Robot a8b8c7c3eb Merge "Correct the page scrolls of the AddDesktopButton" into main 2025-02-21 12:59:52 -08:00
Charlie Anderson de15672e6f Initialize shape with PreviewContext init and remove nullability
Bug: 372887760
Bug: 348664593
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: previewing shapes with flag on/off
Change-Id: I4d7278c54a0d69e38142d31dd7a9605a74db3348
2025-02-21 20:23:49 +00:00
Charlie Anderson aa0f606b9c Merge "Add more checks around archived shortcut restore" into main 2025-02-21 10:46:57 -08:00
Treehugger Robot 2e759f359c Merge "Launcher: Make RecentTasksController.getRecentTasks() multi-desks aware" into main 2025-02-21 10:38:35 -08:00
Sunny Goyal 7629bc4dcd Merge "Converting LauncherAppState to Dagger" into main 2025-02-21 10:06:01 -08:00
Fengjiang Li 710bce6163 Merge "[Memory Leak] Fix leak of NexusLauncehrActivity via AbsSwipeUpHandler#mRecentsAnimationStartCallbacks -> SurfaceTransactionApplier" into main 2025-02-21 09:52:49 -08:00
Daniel Andersson 050e6eebb0 Merge "desktop-exploded-view: Explode desktops when swiping up from home" into main 2025-02-21 09:50:39 -08:00
Ahmed Fakhry dafc2d4c42 Add deskId to DesktopTask.
Now that `GroupedTaskInfo` propagates the `deskId` from
Shell (see ag/31825217), we need to plumb this value in
Launcher through `DesktopTask`.

Future CLs will use this value in Overview.

Bug: 395911284
Test: m, modified existing tests.
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I396250e0cac761c4c5f7e8b2d6cddbe68e646217
2025-02-21 17:50:13 +00:00
minch 1c028b7ccb Correct the page scrolls of the AddDesktopButton
Do not apply the button's grid translation to its page scrolls if
it is not showing as a grid,otherwise the `mCurrentPage` may not be
set correctly while checking `ensureWithinScrollBounds`.

Bug: 396146789
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: m
Change-Id: Ia1378a997e681abda60fa1cb3c125660916df4c5
2025-02-21 09:06:53 -08:00
Treehugger Robot b38ab564be Merge "Close gap between grid and clear all for expressive dismiss." into main 2025-02-21 04:01:11 -08:00
Fengjiang Li e0553d7da3 [Memory Leak] Fix leak of LauncherAppWidgetHostView via StateManager.StateListener
Rather than register a StateListener for each LauncherAppWidgetHostView, just register one StateListener which, upon launcher state is changed to NORMAL, iterate over all child views under Workspace and perform a11y action if view tag is set.

Fix: 397978703
Test: presubmit
Flag: EXEMPT bug fix
Change-Id: I044d012b74eaa5356196c5503318fa8ab389ec46
2025-02-20 22:05:02 -08:00
Treehugger Robot feb96ff7d3 Merge "Launch app pair when one of them is in freeform." into main 2025-02-20 20:29:16 -08:00
Bill Yi 77a5570d16 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I64be39ef9954803287b1eca87bc57b6302211250
2025-02-20 20:24:33 -08:00
Bill Yi f20b4e9e4f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7b58aa89a399c9d5f79dac7e319414823522ae6c
2025-02-20 20:23:44 -08:00
Sunny Goyal c9f697aeb5 Converting LauncherAppState to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I336a233d2703c23a7e9065474bde471786886144
2025-02-20 19:13:49 -08:00
Sunny Goyal 4742d62285 Moving LooperExecutor to kotlin
> Will improve priority changes in a followup cl

Bug: 396250724
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Ic9646e9b1b8faf80996f6e63159e8abbf00fc0b7
2025-02-20 18:58:33 -08:00
Saumya Prakash 4e0e72e013 Merge "Add developer option to launch gesture nav tutorial" into main 2025-02-20 18:42:36 -08:00
Shamali Patwa e532fc86b4 Merge "Update widgetsModel to return pickable vs all widgets separately." into main 2025-02-20 17:42:32 -08:00
Treehugger Robot aea16bd093 Merge "Expose icon scale to properly shape themed icons" into main 2025-02-20 17:30:46 -08:00
Treehugger Robot 48fe315833 Merge "Update usage of flags to dev options." into main 2025-02-20 17:29:38 -08:00
Treehugger Robot 6787617f73 Merge "Log LPNH abandon times at least 200ms." into main 2025-02-20 17:16:15 -08:00
Charlie Anderson cf37c5ba7e Add more checks around archived shortcut restore
Bug: 375414891
Test: Launcher B&R and WorkspaceItemProcessorTest
Flag: com.android.launcher3.restore_archived_shortcuts

Change-Id: I58332dcee9563bb6c87aeff7255c8a9e2a8ca2c7
2025-02-20 19:15:41 -05:00
Treehugger Robot ca88e0cc04 Merge "Log minimize CUJ in MinimizeAnimator" into main 2025-02-20 14:52:48 -08:00
Ahmed Fakhry f7e64649a1 Launcher: Make RecentTasksController.getRecentTasks() multi-desks aware
This is the Launcher-side CL  of the companion CL ag/31825217.
This CL changes `GroupedTaskInfo` and `RecentTasksController.getRecentTasks()`
such that multiple desktops are supported.

Bug: 395911284
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I856768d03460054ccd7056f87e16dcb65ced47fb
2025-02-20 22:31:58 +00:00
Daniel Andersson 1422e89e92 desktop-exploded-view: Explode desktops when swiping up from home
This change makes it so that the explode animation only happens when
swiping up from the desk. In other cases, the desk is immediately set
to its exploded state.

The desk explode progress is now exposed as a FloatProperty in
RecentsViewUtils.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 367353392
Change-Id: I5adec7db1fdc933860dce7fcca0a47cec0672ee7
2025-02-20 14:30:47 -08:00
Randy Pfohl 4d9ce7c953 Merge changes I854de220,Ib5e380a3,I5acfa734 into main
* changes:
  Respond to configuration changes in RecentsWindowManager
  enabling animations to return to home
  Fixing crash, and  no touch input while mid animation
2025-02-20 14:15:00 -08:00
Andy Wickham 8fabc6d111 Log LPNH abandon times at least 200ms.
Restricting to 200ms+ to reduce the spamminess of these logs.

The idea is to log the latency of LPNH abandons to see the effect
of prewarming at x ms.

Bug: 397484410
Flag: EXEMPT logging
Test: Manual and updated NavHandleLongPressInputConsumerTest.
Change-Id: I93f94ed0757508b68fcb48d61bdd194564dcc573
2025-02-20 22:14:37 +00:00
Shamali P f6efa25a49 Update widgetsModel to return pickable vs all widgets separately.
Earlier wallpaper preview was reading widgets that were eligible for
displaying in picker, which means widgets that are marked as hidden in
picker wouldn't show up in wallpaper preview.

This fix updates widgets model to maintain map of all widgets (instead of just pickable widgets like before), so that the existing `getWidgetsByComponentKey` function used by wallpaper preview can see all widgets. And, updates picker specific methods to use separate functions (suffixed `forPicker` that filter out picker ineligible widgets when read by picker code).

Bug: 385695615
Test: WidgetsModelTest, WidgetsPredictionUpdateTaskTest and demo
Flag: EXEMPT BUGFIX
Change-Id: I59efe38be0ce1f8a956ba4be42fb6e8b48b5d323
2025-02-20 14:13:16 -08:00
Saumya Prakash 57794d1025 Add developer option to launch gesture nav tutorial
This change allows you to start the full, continuous gesture navigation
tutorial by tapping the "Launch Full Gesture Tutorial" option in
launcher developer settings.

Fix: 398018882
Test: Go to developer settings and launch tutorial. It should be
continuous and automatically move on to each gesture.
Flag: EXEMPT bugfix

Change-Id: I5da176e13b4403e1748b9ccba74b24145dafed2c
2025-02-20 21:54:25 +00:00
Hongwei Wang 3e63b57f7d Merge "Switch to PictureInPictureParams#isSameAspectRatio" into main 2025-02-20 13:10:56 -08:00
Treehugger Robot 54a002db43 Merge "Moving grid customization provider to Dagger" into main 2025-02-20 13:07:33 -08:00
Charlie Anderson c0fda71c36 Expose icon scale to properly shape themed icons
Bug: 394902299
Test: tested with themed/forced-themed icons on and off
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I5b189b8dcfefe195e42b8cfad1bda9e18fd80a29
2025-02-20 21:06:28 +00:00
Jeremy Sim b392f61ced Refactor SplitBounds to always use creation-time measurements
In flexible split ratios like 90:10 and 10:90, we hide the Overview icon of the smaller app completely (ag/30949010). However, there was an unintentional side effect where one of the icons would disappear when rotating the display.

This happened (basically) because SplitBounds is not recalculated on device rotation, so fields like leftTaskPercent and topTaskPercent should not be used directly when the rotation state is not known. I added an API to SplitBounds that hopefully makes it harder to write bugs like this in the future.

Fixes: 395783367
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: Icons do not disappear on rotation. When app chip menus are enabled, the (existing) correct behavior is not changed.
Change-Id: I2c1b38f4bd9a76dfb127b7bbf230897d747d3c49
2025-02-20 12:45:33 -08:00
Treehugger Robot 3cd737db84 Merge "Add null checks to prevent NPE on ViewModel." into main 2025-02-20 11:03:26 -08:00
Treehugger Robot e8a1719649 Merge "Copy drawable so that mutations don't affect other uses of the drawable" into main 2025-02-20 10:28:17 -08:00