Commit Graph
87505 Commits
Author SHA1 Message Date
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
Treehugger Robot 5a04fbb274 Merge "Use concurrent list to prevent ConcurrentModificationException" into main 2025-04-14 02:12:35 -07:00
Roy Chou 53086598a6 cleanup(magnification): remove flag remove_exclude_from_screen_magnification_flag_usage
Bug: 409604377
Flag: EXEMPT cleanup
Test: build pass
Change-Id: I43ece08e3a12ddc5a52738772a3f6225eff52236
2025-04-14 08:40:31 +00:00
Lawnchair BotandCrowdin Bot c61a762cf7 New Crowdin translations by GitHub Action (#5416)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-04-13 04:21:06 +03:30
Android Build Coastguard Worker 90e638a44f Snap for 13350447 from d19d21fea0 to 25Q3-release
Change-Id: I742dd0b5573868557f0fa3afb239ccafdb370991
2025-04-12 14:18:18 -07:00
Alex Chau 2c2088ed87 Migrate RecentsDisplayModel to PerDisplayRepository
- RecentsWindowManager/FallbackWindowInterface should be accessed through the respecitve REPOSITORY_INSTANCE or through Dagger
- RecentsDisplayModel is no longer needed as PerDisplayRepository manages lifecycle of all per-display objects

Fix: 410224937
Test: manual and presubmit
Flag: EXEMPT refactor
Change-Id: Iddfddbdcbe15be5075c038d98d02aa79ab55117b
2025-04-12 22:05:38 +01:00
Treehugger Robot d19d21fea0 Merge "Trigger taskbar state changes onActiveDeskChanged" into main 2025-04-11 20:08:54 -07:00
Android Build Coastguard Worker 2fce8a8fbd Snap for 13348984 from efae5662e8 to 25Q3-release
Change-Id: If37bbe96c6f110f8a2aabafd4721be04ba03c64f
2025-04-11 18:19:42 -07:00
Treehugger Robot 1e5e03d74d Merge "Remove flag ComAndroidLauncher3EnableUnfoldedTwoPanePickerLaunch" into main 2025-04-11 18:06:26 -07:00
Uwais Ashraf 4dc3313044 Use concurrent list to prevent ConcurrentModificationException
TasksRepository.setVisibleTasks can add/remove listeners while HighResLoadingState.updateState iterates over them.

Bug: 408978565
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: SwitchBackToSplitFromRecentGesturalNavLandscape#switchBackToSplitFromRecent
Test: Manual - made exception extremely likely by constantly adding/removing listeners. Could easily repro exceptions, then added this CL and could no longer repro.
Change-Id: Ic04717527fcbdb9301a6e313f9e666e2f5135b3e
2025-04-12 00:40:18 +00:00
minch 9381184f58 Trigger taskbar state changes onActiveDeskChanged
1. Add [DisplayDeskConfig] when `onDeskAdded` if there is no config yet.
   As the display might start without any desks.
2. Trigger the task bar enter or exit on desktop mode changes inside
   `onActiveDeskChanged` instead, which is also transition based.

Bug: 408060477
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I6f77f2a8d9fe660175b739f44dc241937a6bcc7a
2025-04-12 00:24:51 +00:00
Treehugger Robot 0aabd48612 Merge "Fix Entry Animation Indicator Alpha" into main 2025-04-11 17:22:29 -07:00
Treehugger Robot 08a65bfd06 Merge "Use shell's SplitBounds class instead of our own" into main 2025-04-11 17:16:27 -07:00
Brandon Dayauon b570514ee0 Merge "Add nudgeView to Taskbar.xml" into main 2025-04-11 16:28:59 -07:00
Stefan Andonian 71170e9276 Implement Folder Pagination Arrow Hover / Pressed UX
Bug: 394355070
Test: Verified locally that everything works. Check out bug for video test.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: Ief4b895d8eb31e6ed53b05aad4b733e8de41e4d9
2025-04-11 16:02:04 -07:00
Stefan Andonian c547affdc9 Moved PageIndicatorDots to their own ImageViews.
Previously, they were simply included in PageIndicatorDots via Canvas
drawing. This worked well to keep behavior encapsulated within
PageIndicatorDots class. But it didn't work for Accessibility Services
which require an actual view in order to focus properly.

Bug: 409629978
Test: Verified manually. See video on bug comment: https://b.corp.google.com/issues/394355070#comment23
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I212bf3dbee82e449088536fa841b02a3644df7d3
2025-04-11 16:00:12 -07:00
Federico Baron d11aa358c3 Remove flag ComAndroidLauncher3EnableUnfoldedTwoPanePickerLaunch
Flag: EXEMPT internal cleanup
Test: EXEMPT internal cleanup
Bug: 409604800
Change-Id: Id67bcd7af442e19eff4ef65f3135b83124e4098f
2025-04-11 22:01:49 +00:00
Sebastián Franco efae5662e8 Merge "When dragging make the content of the drag layer not accessible but keep the drag View accessible" into main 2025-04-11 14:55:08 -07:00
Sebastian Franco 04b0a4a0d8 Use correct container for predictive icons
Fix: 408280336
Test: Manual Testing
Flag: EXEMPT Bug Fix
Change-Id: I20432ee13247bd4dbd089fc936476333900150e6
2025-04-11 14:51:29 -07:00
Stefan Andonian 37df1e3238 Fix Entry Animation Indicator Alpha
Bug: 394355070
Test: Verified indicator alpha locally. See screen recording on https://b.corp.google.com/issues/394355070#comment25
Flag: EXEMPT bug fix
Change-Id: Idfba3916136c579bbc2b25b566e8761bed24f939
2025-04-11 14:35:25 -07:00
Charlie Anderson b71758624a update folder anim for new folder specs and spring animation
- Refactors FolderAnimationManager into several classes including new FolderSpringBuilderAnimationManager
- Changes Folder animations to use animators resembling SpringAnimation
- Split up calculations from creating AnimatorSet

Bug: 387543793
Test: tested opening closing folders of different sizes
Flag: com.android.launcher3.enable_launcher_icon_shapes
Flag: com.android.launcher3.enable_expressive_folder_expansion
Change-Id: Idf1f21374f987389979ad45544ade1506b26fc0c
2025-04-11 13:57:38 -07:00
Sunny Goyal 040ff3a7bf Adding HomeScreenRepo to expose homescreen data as repository
Bug: 390572144
Test: Presubmit
Flag: com.android.launcher3.model_repository
Change-Id: If82a388a44d7a9c448f6eb4901c2acdb508ccfdc
2025-04-11 13:28:08 -07:00
Brandon Dayauon 1fc6f916d3 Add nudgeView to Taskbar.xml
Aiai will send a broadcast to Launcher and will animate the stashHandleView and nudgeView accordingly.
Verified on large screen device that transient taskbar is not affected as its not in scope at the moment.

bug:409121556
Test: manual - video in bug
Flag: com.android.launcher3.nudge_pill

Change-Id: I740e5d81dd008a230aa089f311d38bac665fc227
2025-04-11 13:24:22 -07:00
Alex Chau 45f4721a6e Merge "Clean-up enable_separate_external_display_tasks" into main 2025-04-11 10:12:48 -07:00
Schneider Victor-tulias ec8841a926 Merge "Clean up fully rolled out flag enable_desktop_task_alpha_animation" into main 2025-04-11 07:36:27 -07:00
Schneider Victor-tulias 34fcfddaa2 Merge "Clean up fully rolled out flag enable_handle_delayed_gesture_callbacks" into main 2025-04-11 07:36:12 -07:00
Schneider Victor-tulias 69dc582a4e Merge "Clean up fully rolled out flag enable_active_gesture_proto_log" into main 2025-04-11 07:35:12 -07:00
Alex Chau 60595d7037 Clean-up enable_separate_external_display_tasks
Fix: 409611251
Test: manual
Flag: EXEMPT flag removal
Change-Id: Ib0ab4f6d994ba30d68f3a31d88b4f681e8e9d718
2025-04-11 14:25:38 +01:00
Alex Chau eee45c8dfd Merge "Mark all PerDisplayRepository as LauncherAppSingleton" into main 2025-04-11 04:42:11 -07:00
Alex Chau 3f314e5a07 Mark all PerDisplayRepository as LauncherAppSingleton
- Without this annotation, everytime the PerDisplayRepository is requested, a new PerDisplayRepository is created effectively not functioning as a repositroy.
- This caused RotationTouchHelper to be created whenever get() is called, thus losing its state across the swipe gesture

Fix: 409722063
Fix: 409258907
Test: manual
Flag: EXEMPT bug fix
Change-Id: Ibde4c6ce18b96bafea1c40d8c69a4552f371501a
2025-04-11 02:33:38 -07:00
Sergey Pinkevich 9bddbabc73 Merge "Relax condition for the OPEN change to be on top of transition" into main 2025-04-11 02:17:22 -07:00
Sebastian Franco 2ff9ebce8e When dragging make the content of the drag layer not accessible but keep the drag View accessible
Continuation of change I842415f689c992f64d863743f019455701da22e9

Fix: 392872410
Bug: 374642145
Bug: 374656225
Bug: 374658319
Test: manual
Flag: EXEMPT bugfix
Change-Id: I282f1f6ca30e10c5aef6947feee9b10514e286a6
2025-04-10 17:18:13 -07:00
Android Build Coastguard Worker cb2f63b05e Snap for 13340456 from 5e619cd675 to 25Q3-release
Change-Id: If6937e001d347cebf8f0e64d80570a2b34a179f9
2025-04-10 16:22:08 -07:00
Jon Miranda a5505327dd Only enable taskbar snapshot if taskbar is present.
Bug: 343194358
Bug: 409795053
Test: testDragDownNotificationShade
Flag: com.android.launcher3.enable_taskbar_behind_shade
Change-Id: I62f9cb2e5acde57cee866fc3dda21e4a709714be
2025-04-10 15:42:40 -07:00
mpodolian d3c7eed166 Maximised the taskbar window to the default size
TaskbarViewController set window height to the too low value, so bubble
bar was not visible in 3 - buttons navigation mode on foldable device.

Fixes: 407708503
Test: Manual.
Use foldable device, set navigation mode to the 3 buttons. Fold the
device and trigger bubble. Lock screen. Unfold. Unlock screen. The
bubble remains visible.
Flag: EXEMPT bugfix

Change-Id: I516eab4121c39fc2bec5e49cc3c9b0ad8e640f8b
2025-04-10 14:56:37 -07:00
Vinit Nayak fdcfb61f1b Use shell's SplitBounds class instead of our own
* Previously we had duplicated classes because of some
launcher3 and quickstep package separation. That got refactored
so now we can conslidate to only use one class. Yay!

Bug: 254378592
Test: Compiles, manual
Flag: EXEMPT refactor

Change-Id: Ifea3358ac38c1d2881cb19bb88cf14ef9c0aaa29
2025-04-10 15:18:24 -04:00
Schneider Victor-Tulias 67a1a3646c Clean up fully rolled out flag enable_handle_delayed_gesture_callbacks
Flag: EXEMPT removing flag
Bug: 409605707
Test: None; flag is already fully rolled out
Change-Id: I06adfa8e0b88c14854fd80b1ccdcd6406c2cf2e9
2025-04-10 11:12:28 -07:00
Schneider Victor-Tulias 21744a7b01 Clean up fully rolled out flag enable_active_gesture_proto_log
Flag: EXEMPT removing flag
Bug: 409609863
Test: None; flag is already fully rolled out
Change-Id: I9ab72733d18944f25c7593415abb5964794d7f05
2025-04-10 11:12:15 -07:00
Schneider Victor-Tulias a1366e3531 Clean up fully rolled out flag enable_desktop_task_alpha_animation
Flag: EXEMPT removing flag
Bug: 409605077
Test: None; flag is already fully rolled out
Change-Id: I92c8520ce1f924104453be7e969bd6095d612717
2025-04-10 11:11:58 -07:00