Commit Graph

80629 Commits

Author SHA1 Message Date
Sunny Goyal e9355c622d Removing unnecessary ActivityContextDelegate
Bug: 393703968
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Ib95b26de000a2fe8204fdbc46c8a9da4f65c7eab
2025-02-26 10:52:10 -08:00
Treehugger Robot b00227ca3f Merge "Adding events check to TAPL method for flinging to clear all." into main 2025-02-25 12:15:47 -08:00
Brian Isganitis fbd55aeda4 Merge "Have per-environment bindings for Taskbar multivalent tests." into main 2025-02-25 09:53:16 -08:00
Thu-Huong Vu 803145f6f5 Merge "Add a growth broadcast receiver in taskbar." into main 2025-02-25 09:45:00 -08:00
Will Osborn 8bc3268ec4 Merge "DisplayController refactoring for multiple displays" into main 2025-02-25 08:16:52 -08:00
Treehugger Robot 4ea485eca4 Merge "[CD Taskbar] Refactor TaskbarManager - Add Debugging Support for Stability." into main 2025-02-25 08:14:09 -08:00
Treehugger Robot 14756d5a30 Merge "Convert TaskMenuView.java to Kotlin" into main 2025-02-25 08:09:02 -08:00
Pat Manning 11f50b01c7 Adding events check to TAPL method for flinging to clear all.
Clear all impl separate from public method, as nested events checking fails assertions.

Fix: 398771634
Test: TaplTestsQuickstep#testDismissLastGridRow
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I7f86c0667034c95b4b21dd0fd75307ca0f8cf48d
2025-02-25 15:46:45 +00:00
Jordan Silva c5e3d0abf5 Convert TaskMenuView.java to Kotlin
Fix: 398831742
Flag: EXEMPT converting class to kotlin.
Test: OverviewMenuImageTest
Change-Id: I6080b9c315eb7fc8b1cd221ed41f1c8f498ffef3
2025-02-25 12:55:03 +00:00
Alex Chau 45c1192fdf Merge "Handle AddDesktopButton's visibility in different launcher states" into main 2025-02-25 03:39:39 -08:00
Will Osborn c47d03f1f9 DisplayController refactoring for multiple displays
Test: locally tested on Tangor
Flag: com.android.launcher3.enable_overview_on_connected_displays
Bug: 392858637
Change-Id: I18c196c977b3731aa09d2cc93ab6341b8f1636c6
2025-02-25 11:29:02 +00:00
Sukesh Ram f1ec7a7699 [CD Taskbar] Refactor TaskbarManager - Add Debugging Support for Stability.
Refactor TaskbarManager & add Debugging Support for Stability. Centralize all existing logging behind existing logging methods.

Bug: 398878697
Bug: 382378283
Bug: 391653300
Test: m
Flag: EXEMPT not adding new behavior
Change-Id: I3f131b5e9ce720140c1d3eb46a53a4763926df83
2025-02-25 02:52:48 -08:00
Treehugger Robot 3ac18ead77 Merge "[CD Taskbar] Create a seperate device profile for external displays." into main 2025-02-25 01:47:59 -08:00
Sukesh Ram 23d9282043 [CD Taskbar] Create a seperate device profile for external displays.
Remove legacy all apps UI from secondary display.

Bug: 398306484
Test: m
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: I93214fbf7fbda0b2f809e4d72424264276164831
2025-02-24 23:44:56 -08:00
Sukesh Ram 3242782931 Merge "[CD Taskbar] Remove legacy all apps button (secondary display)" into main 2025-02-24 23:38:34 -08:00
Jeremy Sim bc872b2ae4 Merge "Fix icon positioning for flexible split in Overview" into main 2025-02-24 17:03:09 -08:00
Treehugger Robot 1799b85186 Merge "Fix grid previewing so it matches the applied layout" into main 2025-02-24 17:00:15 -08:00
Thu-Huong Vu 4aa26a3944 Add a growth broadcast receiver in taskbar.
The growth broadcast receiver will be used to receive broadcast from
Growth Framework and show a nudge on screen.

Refer to go/al-growth-framework-nudge

Test: Manual
Bug: b/396165728
Flag: com.android.launcher3.enable_growth_nudge
Change-Id: Iebf006c733f6f9d079a4c3b03d78fb7c9dd3e5e7
2025-02-25 00:29:42 +00:00
Jagrut Desai 269fb15e97 Merge "Desktop Mode Taskbar Recreate Animation" into main 2025-02-24 16:00:48 -08:00
Sukesh Ram dc0a634362 [CD Taskbar] Remove legacy all apps button (secondary display)
Remove legacy all apps UI from secondary display. This is a quick temporary fix just to remove the legacy all apps button for aesthetic purposes without breaking secondary display launcher. The button will appear invisible. A more robust removal will be done when secondary launcher is eradicated completely.

Bug: 398196983
Test: m
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: Ic5bc44efd479f7298e346d9d45fbb6f24dfad5d3
2025-02-24 15:26:56 -08:00
Treehugger Robot 087e54c81c Merge "Removing temporary debug tracing" into main 2025-02-24 14:55:05 -08:00
minch b10cedd21c Handle AddDesktopButton's visibility in different launcher states
Introduce [ADD_DESK_BUTTON] in LauncherState and change the button's
visibility across different launcher states. E.g., the button
shouldn't be visible in the quick switch.

Bug: 389209338
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: 1. Swipe up from home, the button shown util in overview.
      2. Swipe up from the fullscreen app, the button is invisible
         util release the finger.
      3. The button is invisible in quick switch.
      4. All the above tested with NexusLauncher and Nova launcher,
         which is a 3rd launcher.
      5. Tested with gesture and 3-finger swipe on the touchpad.
      6. Both the ClearAllButton and AddDesktopButton are not
         visibile when in select mode.
Change-Id: I54e11d4d03401be68b5b67a6f591edd737c9ea30
2025-02-24 21:33:36 +00:00
Schneider Victor-tulias 6040a652a6 Merge "Respect accessibility animation guidelines in AllSetActivity" into main 2025-02-24 13:30:10 -08:00
Jagrut Desai cf05d3ec0e Merge "Fix Taskbar Edu accessibility anmimation" into main 2025-02-24 13:27:53 -08:00
Treehugger Robot da7d6aff2e Merge "Enforcing grid customization permission in manifest instead of code" into main 2025-02-24 13:16:51 -08:00
Jagrut Desai 8b2e5eff9b Desktop Mode Taskbar Recreate Animation
This Cl includes
       - addition of entry/exit callback methods in DesktopVisibilityController.
       - taskbar manager now listens to desktop mode changes.
       - TaskbarBackrgroundRedererer can now individually animation backgrounds for transient and persistent taskbars
       - new channel for taskbar icon alpha added to TaskbarViewController
       - new animated float to handle background alpha while we are recreating taskbar with animation.

Solution:

we use the callabck we get from DekstopVisibilty for entry/exit to first change logic of when we are considered inDesktopMode. Upon entry/exit we notify display controller for info change.
we also at notify taskbar manager who is now a listener to the desktop mode change and start the recreate process. TaskbarManager first animates existing taskbar out of user view and then follows the original recreate flow.

Test: Presubmit
Bug: 343882478
Flag: com.android.window.flags.enable_desktop_windowing_mode
Change-Id: Ib827564cacd194f499e7d9b1965e2bb13e3548ab
2025-02-24 11:59:53 -08:00
Federico Baron 45fe4733fb Fix grid previewing so it matches the applied layout
Bug: 392019771
Flag: com.android.systemui.shared.new_customization_picker_ui
Test: tested manually
Change-Id: If0fdd130d4278222b0b6ec2787aa7d6d56fc4b2f
2025-02-24 11:54:26 -08:00
Jeremy Sim 633b94abf1 Fix icon positioning for flexible split in Overview
In flexible split ratios like 90:10 and 10:90, we hide the Overview icon of the smaller app completely. This resulted in a bug where the single remaining visible icon was positioned badly.

Fixed this by adding a check in updateIconPlacement() so that we can skip the two-icon positioning and center the visible icon alone. Also fixed the cases where split select is initiated on a split tile (from Taskbar). Now the correct icon should be shown and centered.

Fixes: 391865942
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: Single icon is positioned correctly in the middle. When split select is initiated, the right icon is shown and centered. When app chip menus are enabled, the (existing) correct behavior is not changed.
Change-Id: I79842222fc325a7661cbabbb54d277389a317504
2025-02-24 11:48:50 -08:00
Sunny Goyal b1fab90e26 Enforcing grid customization permission in manifest instead of code
Bug: 389173244
Test: Updated tests
Flag: EXEMPT manifest change
Change-Id: I0fee57f935156da6b2b5a612259db2c4b3605846
2025-02-24 10:40:43 -08:00
Saumya Prakash b716d19362 Merge "Update gesture nav tutorial to new font style" into main 2025-02-24 10:37:22 -08:00
Alex Chau 31f32597dd Merge "Fix jump when dismissing last grid task View" into main 2025-02-24 10:35:14 -08:00
Schneider Victor-Tulias de841f6092 Respect accessibility animation guidelines in AllSetActivity
- Disabling the background animation if the user has opted out
- Allow the user to pause/resume the animation

Flag: EXEMPT bug fix
Fixes: 386743741
Test: launched AllSetActivity with animations on/off; tapped screen in both cases
Change-Id: I2bdbef24d6c582b4229441149fffcb67ba488882
2025-02-24 10:00:32 -08:00
Charlie Anderson d4d526c3b5 Merge "Simplify some package update logic around restoring archived/unarchived shortcuts" into main 2025-02-24 09:58:35 -08:00
Treehugger Robot 332c329276 Merge "Fixing model thread priority getting set to background while loading" into main 2025-02-24 09:40:53 -08:00
Jagrut Desai e49214080f Fix Taskbar Edu accessibility anmimation
This cl include: Allows user to click on lottie animation views to play and pause animations. If user have choosen to remove animations we will honor it and not play the animation from begaining.

Test: Manual, Presubmit
Bug: 378980835
Flag: EXEMPT bugfix
Change-Id: Ieaaf771bc307837f042f6e59d8f02fefb2e8286a
2025-02-24 09:36:22 -08:00
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
Sunny Goyal 362fa9e96a Fixing model thread priority getting set to background while loading
Bug: 396250724
Flag: EXEMPT bugfix
Test: Manual
Change-Id: I587d6c64f75a4fd2b68c4e98c3b1cab30864879c
2025-02-21 16:02:03 -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
Charlie Anderson 9e50a01e92 Simplify some package update logic around restoring archived/unarchived shortcuts
- also avoids race condition where unarchived shortcut is not pinned in shortcut service after restore, and then marked as broken

Bug: 375414891
Test: Launcher B&R w/ archiving
Flag: com.android.launcher3.restore_archived_shortcuts
Change-Id: I2b5331117be93d66e4acbded49b65cd5ce9f8f83
2025-02-21 17:04:12 -05: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