Commit Graph

83004 Commits

Author SHA1 Message Date
Pat Manning 505814903b Merge "Refactor building chain of spring animations for task reflow." into main 2025-05-07 14:54:34 -07:00
Bill Yi eea31a9730 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-07 14:49:23 -07:00
Bill Yi 4023aef00b Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-07 14:49:23 -07:00
Ajinkya Chalke e101b3e734 Use per-display shared state in TaskbarManager
- Without this, the following type of issues manifest: if shade is
  pulled down when folded and then the device is unfolded, the taskbars
  are recreated but on the connected display the taskbar is stashed
  because on unfolding the shade remains pulled down and because we
  reused share state the taskbar on connected display remains stashed.

Test: m
Flag: com.android.window.flags.enable_taskbar_connected_displays
Bug: 414767865
Change-Id: I7579f70edf342f5f34e7884a26c2decb512e3143
2025-05-07 21:37:03 +00:00
Merissa Mitchell 6ce6bd6328 Merge "[Pip2] Use PipFlags#isPip2ExperimentEnabled in Launcher" into main 2025-05-07 14:12:10 -07:00
Charlie Anderson f2d24992e7 Add logging for preview ContentProvider in GridCustomizationsProxy
Bug: 413707700
Test: N/A just logs
Flag: EXEMPT just logs
Change-Id: I626e9f7c3b4abafcf109657b070b4267eebdf166
2025-05-07 20:58:11 +00:00
Sunny Goyal 57a195b790 Making workspaceData immutable
BgDataModel holds a mutable handle of the data, which ensures that all edits go through this class and there is a single place to keep the repository updated

Bug: 390572144
Test: Updated existing model tests
Flag: EXEMPT refactor
Change-Id: I991b707dd21801d1abd00510f676549947285012
2025-05-07 13:21:21 -07:00
Matthew Mourgos c67c038ec3 Merge "Fix freeform tasks not animating on overview button press." into main 2025-05-07 13:20:05 -07:00
Treehugger Robot 879abdab2a Merge "Fix quick switch state during battery saver" into main 2025-05-07 13:10:55 -07:00
Andy Wickham 1ff9421785 Performance improvements for Launcher blurs.
- Ignore blur changes smaller than 1dp unless going to/from 0.
 - Don't apply depth animation during app launch from blurred
   All Apps.
 - Use DepthController directly rather than creating a new one
   for other app launch animaitons. Avoids extraneous memory and
   performance overhead.

Bug: 411292920
Bug: 410973453
Bug: 408284263
Test: forrest perf tests
Flag: com.android.launcher3.all_apps_blur
Change-Id: Id5c8e71b19ebb8f1c1b82f8c5c76785e001017af
2025-05-07 19:47:31 +00:00
mpodolian e877d5f2a7 Hide bubble bar stash handle on the keyboard open.
Added SYSUI_STATE_IME_VISIBLE flag to MASK_HIDE_HANDLE_VIEW to hide the
bubble bar stash handle view. Also update alpha to 1 for the stash
handle view when visibility is updated to VISIBLE.

Fixes: 403363673
Flag: com.android.wm.shell.enable_bubble_bar
Test: Manual. Have stashed bubble bar and multiple system languages.
Go to settings (or ane other apps that has input fields). Click on
search to trigger keyboard pop up. Observe that stash handle is hidden.
Collapse the keyboard and observe that stash handle is shown again.

Change-Id: I5c8518cf02cc784243f9f55a95022279b2608760
2025-05-07 12:22:52 -07:00
Treehugger Robot adde4dd42a Merge "External displays should always be in 3-button nav mode" into main 2025-05-07 12:15:46 -07:00
Pat Manning d8fb91b894 Refactor building chain of spring animations for task reflow.
Use task offsets to determine which spring drives which, as columns should move in unison.

Fix: 403234864
Test: Manual
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I48f7f2a7fcfbd2850d371b4bc7eed3296a2a650a
2025-05-07 20:14:18 +01:00
Treehugger Robot 1025a0db05 Merge "Add aconfig flag for home screen edit improvements" into main 2025-05-07 11:36:32 -07:00
Thu-Huong Vu 486436b704 Merge "[Growth] Add nudge proto." into main 2025-05-07 11:36:13 -07:00
Treehugger Robot 7d0ea7ed6b Merge "Enable overview for connected display as developer option" into main 2025-05-07 11:15:20 -07:00
Stefan Andonian c404171a5b Merge "Implement Jump Scroll Animation" into main 2025-05-07 10:58:21 -07:00
Stefan Andonian bd83a1c75d Smoothly transition PageIndicatorDot alpha when switching active dots.
Bug: 408028262
Test: See https://b.corp.google.com/issues/407711750#comment3 for a screen recording showing this works well.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I76d5551da28fabf7548e15781680b240daaa2e36
2025-05-07 10:28:40 -07:00
vinayjoglekar ea75586c0a Fix quick switch state during battery saver
During quick switch we will always need to have background Transparent for consistency.
Previous implementation of Quick switch state was inconsistent. Hence making quick switch state return always transparent.

Bug: 416217645
Test: Quick switch between apps.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I561dd6509bbadbbdc751308740d8152bcb0c4032
2025-05-07 18:26:23 +01:00
Uwais Ashraf cbb16c2fac Merge "Make state of TTV xml match Uninitialized state" into main 2025-05-07 10:13:34 -07:00
Will Osborn f0ed143ab7 External displays should always be in 3-button nav mode
Also changed TouchInteractionService gestureNavMode to be per-display

Bug: 415269541
Flag: EXEMPT bugfix
Test: local + presubmit

Change-Id: I0da978e6fcb29f743b41f1c75c6d0efd8e7231a8
2025-05-07 16:25:49 +00:00
Jagrut Desai 6e3a83cf15 Fix Taskbar window size upon rotation
This cl simply reuses logic of setting the default taksbar window size upon rotation of device.

Test: Manual
Bug: 411587814
Flag: EXEMPT bugfix
Change-Id: I65149425b8d03240c3c4ab09ec0ec82be6b40c8f
2025-05-07 09:15:40 -07:00
Treehugger Robot 2e6fc30b12 Merge "Use supplied context instead of system for taskbar" into main 2025-05-07 09:09:26 -07:00
Pierre Barbier de Reuille 296a74b880 Enable overview for connected display as developer option
Bug: 407954908
Test: manual
Flag: EXEMPT (flag infra)
Change-Id: Iebc0f1be080026097e3fb450cc9f74d6bba8f834
2025-05-07 08:42:25 -07:00
Treehugger Robot dadf9f45a3 Merge "Delete Ignored test" into main 2025-05-07 08:36:45 -07:00
Treehugger Robot 51343f74d5 Merge "Create bugfix flag for coroutine threading improvements" into main 2025-05-07 07:40:50 -07:00
Shamali Patwa fce9328959 Merge "Log when a required attribute is missing in the AutoInstall layout." into main 2025-05-07 06:21:12 -07:00
Uwais Ashraf 882a6a22bf Make state of TTV xml match Uninitialized state
Flag: EXEMPT - test only
Bug: 416195253
Test: Presubmits
Change-Id: I82250915bf35b4ce9583dd58c6fc736530c25461
2025-05-07 05:28:28 -07:00
Treehugger Robot bf27d46837 Merge "Ignore flaky tests" into main 2025-05-07 04:58:56 -07:00
Uwais Ashraf fb60dc96c6 Create bugfix flag for coroutine threading improvements
Flag: com.android.launcher3.enable_coroutine_threading_improvements
Bug: 416206104
Test: None - flag creation
Change-Id: Ic0b812cbf2ef7ff00fbb87db5fd2df7a9e8b6599
2025-05-07 11:36:03 +00:00
Uwais Ashraf d425f4ef99 Ignore flaky tests
Flag: EXEMPT - test only
Bug: 416195253
Bug: 415780503
Test: Presubmits
Change-Id: I8b4dc0890b1186bb32e70adccc872e2174b6e168
2025-05-07 11:14:36 +00:00
Sam Cackett c81daa36ae Delete Ignored test
testOverviewForTablet was ignored for over a year and other tests cover
most of the test cases of the original test so removing

Add separate tests for grid re-balancing

Fix: 315376057
Flag: EXEMPT. Test
Test: TaplTestsQuickstep
Change-Id: I33016ccdb68b1c2039c626a6d32821de71509506
2025-05-07 11:33:21 +01:00
Steven Ng c488852c2c Merge "Don't show phantom animation when switching app in connected display oveview" into main 2025-05-07 02:53:52 -07:00
Treehugger Robot 9d6ecdda8e Merge "Cleanup flag" into main 2025-05-07 02:22:31 -07:00
Treehugger Robot 344bee4ae0 Merge "Moving PredictionHelper to kotlin" into main 2025-05-06 19:45:06 -07:00
Sunny Goyal aa0b9183da Merge "Using single pass to update both widgets and shortcuts in BgDataModel" into main 2025-05-06 17:48:44 -07:00
Stefan Andonian cb16a98e5e Implement Jump Scroll Animation
This requires a decent sized refactor. Namely, rather than relying on
mCurrentPosition we need to rely more upon mLastPosition and
mFinalPosition for increasing and decreasing dot size. We also need to
delay the animation start if we are mega-moving to have the desired
delayed dot change effect.

Bug: 407711750
Test: Verified this works locally. Please see the bug for a screenrecording that shows this correct behavior working.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I83ef113c17f2197e3c02e85f44cf3f05947d2adb
2025-05-06 17:06:23 -07:00
Thu-Huong Vu 3c8c04c1b1 [Growth] Add nudge proto.
Keep these file in synch with the nudge proto definition in //depot/google3/java/com/google/android/desktop/growth/proto.

Bug: 416054612
Test: EXEMPT add in the follow up CL
Flag: EXEMPT add separately

Change-Id: I5fe6ae7b3cb285bd1c07fd4ff54b273799ec0d98
2025-05-06 17:06:06 -07:00
Ajinkya Chalke 5212ce06f9 Use supplied context instead of system for taskbar
- Use supplied TaskbarActivityContext to evaluate padding in dp instead
  of Resources.getSystem that doesn't seem to provide accurate
  measurement when launcher is initialising.

Fix: 414343355
Test: m
Flag: EXEMPT minor refactor
Change-Id: Ia64a7280ba60534fc949269c5886e9b32a917e03
2025-05-06 23:28:29 +00:00
Merissa Mitchell bea2e7ca6c [Pip2] Use PipFlags#isPip2ExperimentEnabled in Launcher
instead of checking Flags#enablePip2 directly

Bug: 409622499
Test: m
Flag: com.android.wm.shell.enable_pip2
Change-Id: I4892d6590403202737e40d21c6d215c1adc7b47e
2025-05-06 15:42:12 -07:00
Federico Baron 773ba7ea64 Add aconfig flag for home screen edit improvements
Flag: EXEMPT adding flag
Test: EXEMPT adding flag
Bug: 416087474
Change-Id: I3d5c7993ab904bdc2e2c6251b1646da1691e3a36
2025-05-06 15:41:15 -07:00
Sunny Goyal f7fa4cef5b Using single pass to update both widgets and shortcuts in BgDataModel
Bug: 390572144
Test: Presubmit
Flag: EXEMPT refactor
Change-Id: I9ead8f7acb9fc3b550f7368474f0402c032dfd12
2025-05-06 15:20:13 -07:00
Fengjiang Li 05f7f5596f [Memory Leak Test] Support toggle theme from LauncherInstrumentation
Bug: 394613048
Flag: NONE - test code
Test: NONE - this CL is infra for follow up test
Change-Id: Idfdcee20c14159509b2a9be005485b24a17dd372
2025-05-06 21:36:31 +00:00
Bill Yi a0910bcf27 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibf99e2ac8809f353bc10cbf4be54a71d62606f5b
2025-05-06 21:28:03 +00:00
Bill Yi 274d8cc6e8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic07c7fd32a91551401320b54dea89c07b2e88caf
2025-05-06 21:27:04 +00:00
Treehugger Robot 0b0dd2683a Merge "Reparse all grids for secondary displays for DP" into main 2025-05-06 13:03:00 -07:00
Vinit Nayak 208b999445 Merge "Disable taskbar nav buttons when split layout animations are running" into main 2025-05-06 12:25:24 -07:00
Steven Ng 3f9fa4e2db Don't show phantom animation when switching app in connected display oveview
In TaskViewUtils, the StateManager#movetoRestState method is invoked after the recents animation finishes and before the launcher state is reapplied. The issue leading to a phantom transition is that moveToRestState initiates an animation due to RecentsWindowManager#shouldAnimateStateChange always returns true.
Connected display overview is similar to 3P recents. And thus, we follow RecentsActivity#shouldAnimateStateChange to always return false.

Test: manually click on a overview tile in the connected display. No phantom animation is observed after switching to the app.
Flag: com.android.launcher3.enable_overview_on_connected_displays
Bug: 415245440
Change-Id: I3c9600cae6ce9058749365734f433f5e3cdb9445
2025-05-06 17:56:01 +00:00
Sunny Goyal 02a41c7e5c Moving PredictionHelper to kotlin
Bug: 390572144
Flag: EXEMPT refactor
Test: atest PredictionHelperTest
Change-Id: If94ae62d7e1412e6760423cf8ab43acba236c3e9
2025-05-06 10:49:30 -07:00
Sunny Goyal 53cc9a7806 Merge "Moving predicted items to ItemIdMap instead of extraItems" into main 2025-05-06 10:29:39 -07:00