Commit Graph

22509 Commits

Author SHA1 Message Date
Helen Cheuk
d5dfd7e7b7 Merge "[Action Corner] Handle overview action in launcher" into main 2025-04-15 09:46:47 -07:00
Li Lin
64d6a14386 Merge "Add Growth Framework nudge view." into main 2025-04-15 09:31:58 -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
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
Treehugger Robot
bb2b582e7f Merge "Injrect WindowContext into RecentsWindowManager" into main 2025-04-15 02:22:07 -07: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
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
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
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
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
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
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
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
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
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
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
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
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