Commit Graph

83004 Commits

Author SHA1 Message Date
Li Lin 64d6a14386 Merge "Add Growth Framework nudge view." into main 2025-04-15 09:31:58 -07:00
Adnan Begovic 5c99ccb5b1 launcher3: Expose coroutine contexts from concurrency module.
UiContext, LightweightContext, ThreadPoolContext, and BackgroundContext are provided from the provided implementations.

This is for convenience usage at call sites to quickly create a coroutine scope matched to a particular context.

Bug: 407593767
Test: N/A
Flag: NONE - new module
Change-Id: Id4127db3586e903d83605bac8fd61e33c9a29db5
2025-04-15 09:05:32 -07:00
Adnan Begovic ee79e0f5d2 launcher3: Use @UiExecutor within ThemeManager.
Use the provided @UiExecutor within the ThemeManager
instead of referencing the MAIN_EXECUTOR directly.

Bug: 407593767
Test: ThemeManagerTest
Flag: NONE - new module
Change-Id: I6359adc1308bdb209dcf6c6e1c2d3fc7f4438585
2025-04-15 09:04:44 -07:00
Alex Chau 3019338ae9 Use WindowContext in RotationTouchHelper
- See the bug on analysis on perfromance regression
- Using WindowContext which is able to have updated Resource after configuration change on all displays.

Fix: 408988616
Test: manual
Flag: EXEMPT refactor
Change-Id: I716a78072e77e2a5af11bc595f8d477ca136cc48
2025-04-15 09:04:15 -07:00
Uwais Ashraf dfef467212 Disable overlay on Desktop tasks to match existing behaviour.
Fix: 406931344
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: TaskViewModelTest#taskOverlayDisabled_when_OverlayIsEnabledForVisibleDesktopTask
Change-Id: Iadf6946e5eb67dc422c20f91f4395baf22c7ed57
2025-04-15 15:29:03 +00:00
Shamali P a8afda25da Add accessibility actions for "REMOVE", "UNINSTALL" & "Widget Settings"
Bug: 279800472
Flag: EXEMPT BUGFIX
Test: Talkback & VoiceAccess
Change-Id: I78387020cf23910fad5f7b98f9501bc1eb410a72
2025-04-15 15:05:52 +00:00
Schneider Victor-Tulias bfe39bdf36 Dispose input monitor on the main thread in InputConsumerUtilsTest
Flag: EXEMPT test fix
Fixes: 410599758
Test: InputConsumerUtilsTest
Change-Id: I2016d4711d5913e4e9baad1c394bcd1fb2f043ea
2025-04-15 10:37:27 -04:00
helencheuk f4d8a9d3a2 [Action Corner] Handle overview action in launcher
Add a new command type "TOGGLE_OVERVIEW_PREVIOUS" to toggle between overview and the previous task or homepage.
Renamed the existing command types to make them more precise

Bug: 409036363
Flag: com.android.systemui.shared.cursor_hot_corner
Test: OverviewCommandHelperTest
Change-Id: I7bab39adb0c933e16ac222fafc8be3f60fe36cc1
2025-04-15 15:08:54 +01:00
Charlie Anderson c77791ba2e Update system shortcut icons to filled GM3 versions
Flag: com.android.launcher3.enable_launcher_visual_refresh
Bug: 364950287
Test: manually and popup screenshot tests

Change-Id: I5e4c964b60a4254f9f67c8128e23f5b04b621541
2025-04-15 06:48:22 -07:00
Steven Ng 8cb1ae879b Use SysUi focus display ID as the source of truth
For key gesture events received in SysUi & Launcher, we will use the SysUi tracked display Id as the source of truth.
The KeyGestureHandler mechanism will be kept because it has less redirection compare to the existing pipeline.

Bug: 406452076
Test: atest NexusLauncherTests:QuickstepKeyGestureEventsHandlerTest
Test: atest NexusLauncherTests:AllAppsActionManagerTest
Test: atest NexusLauncherOutOfProcTests:com.google.android.apps.nexuslauncher.TaplTestsNexus
Test: Verfiy manually that meta key event triggered all apps if the display focused is the default display.
Flag: com.android.window.flags.enable_key_gesture_handler_for_recents
Change-Id: I032a44b903e4e49e85c2a40a1e0bdc49ef8d86b0
2025-04-15 12:51:05 +01:00
Treehugger Robot bb2b582e7f Merge "Injrect WindowContext into RecentsWindowManager" into main 2025-04-15 02:22:07 -07:00
Naresh Kumar Podishetty (xWF) 28f664a3cb Revert "Maximised the taskbar window to the default size"
This reverts commit d3c7eed166.

Reason for revert: <Droid monitor: Likely culprit for b/410713970 - 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: I672184a97d70dc3406514da8c2c0fa485c48eefa
2025-04-14 23:30:35 -07:00
Bill Yi fafa179973 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I29552657cb57a7ebc7aa7e1331779d40d3ae5ef2
2025-04-15 04:18:39 +00:00
Bill Yi 38d57bf674 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I91a8868789991096a90858d4b97a7844d8f77739
2025-04-15 04:17:42 +00:00
Toni Barzic 9e233b3aa1 Update home tappable insets when taskbar is shown on home
On desktop devices pinned taskbar is shown on home, so the home layout
needs to take taskbar insets into account.

Bug: 399708241
Flag: EXEMPT bugfix
Test: On desktop device, go to home, and open all apps, or widget
      picker. Scroll all the way down, and verify that the bottom row or
      apps is not cut-off by taskbar.

Change-Id: Ib8e83f84b71972313a25ae01619046be3c88d7ca
2025-04-15 03:05:32 +00:00
Treehugger Robot 20db2b67c2 Merge "Fix addDeskButton visibility for quick switch home" into main 2025-04-14 19:51:51 -07:00
Andy Wickham 55501c82fb Merge "Improve blur performance on Launcher." into main 2025-04-14 17:23:13 -07:00
Treehugger Robot 12f5ccddd3 Merge changes from topic "pid-iv" into main
* changes:
  Implement Folder Pagination Arrow Hover / Pressed UX
  Moved PageIndicatorDots to their own ImageViews.
2025-04-14 16:45:35 -07:00
Saumya Prakash ebfcad524b Remove the skip button from the gesture tutorial
This change removes the legacy skip button from the gesture tutorial. It
is not needed in the current version of the gesture tutorial.

Bug: 400485351
Test: Run tutorial and observe no change as this was for the legacy
tutorial that is no longer in use.
Flag: EXEMPT bugfix

Change-Id: Ice384a0b5811fdc0d09da58ade68539aa146d84d
2025-04-14 23:35:10 +00:00
Treehugger Robot 3ebed7ae11 Merge "Only enable taskbar snapshot if taskbar is present." into main 2025-04-14 16:22:47 -07:00
Sebastián Franco 526d80a550 Merge "No-op change, remove methods from BaseLauncherActivityTest into Utilities" into main 2025-04-14 16:21:19 -07:00
Randy Pfohl 72e980e116 Merge changes I3054ef81,If90b1f98 into main
* changes:
  fixing splitview issue not receiving callback in recents in window
  Moving RecentsWindowManager away from taskstackchangelistener
2025-04-14 16:08:15 -07:00
Suhua Lei a9f1bd967d Fix addDeskButton visibility for quick switch home
Bug: 409575334
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: quick switch home
Change-Id: Ia6f47c2db3bbcffe41ea53fa0160c839ff45611f
2025-04-14 23:05:29 +00:00
Adnan Begovic 7f1ba2e7e7 Merge changes from topic "launcher-executors" into main
* changes:
  launcher3: Implement ExecutorsModule
  launcher3: Introduce executors modules.
2025-04-14 15:55:58 -07:00
Mykola Podolian 923be5a319 Merge "Maximised the taskbar window to the default size" into main 2025-04-14 15:40:33 -07:00
Treehugger Robot f3f945ed16 Merge "Clean up fully rolled out flag enable_additional_home_animations" into main 2025-04-14 15:40:20 -07:00
Treehugger Robot 70901445dc Merge "Use DesktopExperienceFlags for freeform display taskbar" into main 2025-04-14 15:18:38 -07:00
Li Lin 0f1ee360b9 Add Growth Framework nudge view.
The current layout is a placeholder. UX Mock is still being finalized
and will be updated in follow up CLs.

Bug: 398033012
Test: Manual
Flag: com.android.launcher3.enable_growth_nudge
Change-Id: I44a8fa2e77009fabd037524d8b662d8199df4370
2025-04-14 14:29:38 -07:00
Sebastian Franco d330fdce3a Adding screenrecord for IntegrationReorderWidgetsTest
Bug: 408279425
Flag: EXEMPT bug fix
Test: IntegrationReorderWidgetsTest
Change-Id: I302a35304a145f90d7d49f93044787350c466ad1
2025-04-14 13:56:48 -07:00
Sebastian Franco c08c7de5e3 No-op change, remove methods from BaseLauncherActivityTest into Utilities
Bug: 324261526
Test: all test that inherit BaseLauncherActivityTest
Flag: TEST_ONLY
Change-Id: I0851373d179f064721a3a618853a05796cc1379f
2025-04-14 13:38:20 -07:00
Sebastián Franco 40d72a51c3 Merge "Make hotseat icons match with Workspace in Fixed Landscape" into main 2025-04-14 13:10:58 -07:00
Brandon Dayauon e42fd21462 Merge "Update Tapl test for Private Space Add button" into main 2025-04-14 13:07:21 -07:00
Vinit Nayak f5aa8582c0 Consolidate how we're cleaning up from split in recents
Test: Launched fullscreen from first split selected app,
seems fine
Flag: EXEMPT bugfix
Bug: 292269949

Change-Id: Ide2d64e5e15485f8bc2ba4accd1363db7bc0833c
2025-04-14 20:01:19 +00:00
Randy Pfohl b0487db434 fixing splitview issue not receiving callback in recents in window
Test: Built and ran locally. Verified cycling back to default state.

Flag: com.android.launcher3.enable_fallback_overview_in_window
      com.android.launcher3.enable_launcher_overview_in_window

Bug: 292269949

Change-Id: I3054ef815baf1a852c365a07cad5e66a168f88c5
2025-04-14 18:27:41 +00:00
Randy Pfohl 6abaca4e03 Moving RecentsWindowManager away from taskstackchangelistener
Test: Built and ran locally, tested against various cases, verified with
logs

Flag: com.android.launcher3.enable_fallback_overview_in_window
      com.android.launcher3.enable_launcher_overview_in_window

Bug: 292269949

Change-Id: If90b1f98ad18286fa0c9b9625077237823197967
2025-04-14 18:27:41 +00:00
Shamali Patwa 310b205de2 Merge changes from topic "dwb-refactor-domain" into main
* changes:
  Map timer info to ui state in TaskViewModel
  Update getTaskUseCase to return timer info
2025-04-14 11:14:30 -07:00
Andy Wickham aaea18bafe Improve blur performance on Launcher.
- Disable workspace blurs for non-all apps transitions. E.g. app
   to home, home to overview, quickswitch from home.

Bug: 408219095
Test: abtd
Flag: EXEMPT performance fix
Change-Id: I9f512b1e652ed4dc5632fd12ea10f075e5f5fe25
2025-04-14 17:46:22 +00:00
Sebastián Franco 04e7cce3db Merge "Use correct container for predictive icons" into main 2025-04-14 10:44:53 -07:00
Brandon Dayauon 3759f1428b Update Tapl test for Private Space Add button
See artifact: https://android-build.corp.google.com/test_investigate/invocation/I00100010386298382/test/TR74629693245670294/?itab=tests&ttab=artifacts

When aconfig flag is moved to staging the button is now "Add" rather than "Install" which will need to fix.

bug: 360313403
Test: presubmit
Flag: android.multiuser.enable_moving_content_into_private_space
Change-Id: I3a3e658d1a9d2b9d0795b5cef5d062ddfbe2b8ba
2025-04-14 10:38:10 -07:00
Alex Chau b4c6104925 Injrect WindowContext into RecentsWindowManager
- Also inject SystemUiProxy and RecentsModel
- Also creates a DesktopRecentsTransitionController to avoid crashing when launching desktop tasks
- Minor clean-up to use this instead of injected context in RecentsWindowManager

Bug: 408988616
Test: manual
Flag: com.android.launcher3.enable_fallback_overview_in_window
Flag: com.android.launcher3.enable_launcher_overview_in_window
Change-Id: I0691d5266f3eae1376ffadd6b29e3ec635b0354b
2025-04-14 18:23:12 +01:00
Ajinkya Chalke d6c2964922 Sort flattened tasks based on last active time
Test: m
Flag: com.android.launcher3.enable_alt_tab_kqs_flatenning
Bug: 382769617
Change-Id: I1b7de34fbef9dd90c8d99ae9893ba71dcf565bc7
2025-04-14 17:10:32 +00:00
Sunny Goyal 46aa3ccdf6 Merge "Adding HomeScreenRepo to expose homescreen data as repository" into main 2025-04-14 09:27:37 -07:00
Adnan Begovic 3b0dd96093 launcher3: Implement ExecutorsModule
Implement the ExecutorsModule interface
to provide the necessary dependencies needed
for having injectable executors.

Bug: 407593767
Test: N/A
Flag: NONE - new module
Change-Id: I4a53fc6be31664b7a6fa907761ea93a2d0377f08
2025-04-14 09:16:57 -07:00
Adnan Begovic 01d3f6f210 launcher3: Introduce executors modules.
The following change contains three parts:

1. Qualifiers for executor types.
2. A mapping of any provided-for-those-qualifier-types to
executors, executor services, or scheduled executor servies.
3. The exposure of the existing dagger qualifiers as a specific build target.

With this change, any host(launcher) can provide bindings for
these annotations stipulating whatever pool or thread allocations
as they see fit, while any dependent modules that want to isolate
their code from launcher can build against the qualifiers library
to ensure that they receive the right kind of executor at injection.

Bug: 407593767
Test: N/A
Flag: NONE - new module
Change-Id: I7e6ba623c7f85ec11bb86d1d3a66486f68efe7f6
2025-04-14 09:16:48 -07:00
Schneider Victor-Tulias 7850221bdb Clean up fully rolled out flag enable_additional_home_animations
Flag: EXEMPT flag being removed
Bug: 409610983
Test: None; flag is already fulled rolled out
Change-Id: Ib2b20bd43868275c4059a6a4bc3c9319d37bc5c3
2025-04-14 08:09:17 -07:00
Alex Chau eb223b6b75 Merge "Use AplicationContext for getWindowCornerRadius on DEFAULT_DISPLAY" into main 2025-04-14 07:06:23 -07:00
Charlie Anderson 8763d6e541 Merge "update folder anim for new folder specs and spring animation" into main 2025-04-14 06:25:44 -07:00
Alex Chau 62658b9d1b Merge "Migrate RecentsDisplayModel to PerDisplayRepository" into main 2025-04-14 06:13:57 -07:00
Shamali P 8fa26ebe5b Map timer info to ui state in TaskViewModel
Bug: 405359562
Flag: com.android.launcher3.enable_refactor_digital_wellbeing_toast
Test: Unit tests
Change-Id: I080e9c94a41c747210fa9621f913e43b9f584c29
2025-04-14 12:50:14 +00:00
Shamali P b06f61a509 Update getTaskUseCase to return timer info
Bug: 405359952
Flag: com.android.launcher3.enable_refactor_digital_wellbeing_toast
Test: Unit tests
Change-Id: I8b3f5713a44d38dff6c01dbbb7d5fcbb61c2217b
2025-04-14 12:32:27 +00:00