Commit Graph

19897 Commits

Author SHA1 Message Date
Treehugger Robot 0a38582ff6 Merge "Use dimen for GridSize_minDeviceWidth/Height" into main 2025-05-09 20:47:49 -07:00
Treehugger Robot d506f0154b Merge "Adding support for generating a preview bitmap with an optional delay to allow widgets to be rendered" into main 2025-05-09 17:16:29 -07:00
Treehugger Robot c9eb3511d2 Merge "Separate blur/fallback styles for all apps and overview" into main 2025-05-09 13:34:51 -07:00
Coco Duan b97962a927 Merge "Show all default widgets in glanceable hub widget picker" into main 2025-05-09 11:48:32 -07:00
Sunny Goyal 63fe0c779e Adding support for generating a preview bitmap with an optional delay to allow widgets to be rendered
> Adding a completionSignal when preview is generated so that callers can wait on it
> Also adding support for proving an optional screen-id for preview

Bug: 400403115
Test: atest GridPreviewTest
Flag: EXEMPT refactor and unused new API

Change-Id: I569e0ab318ad101e4f6dd808f2e1cfc39ba50bda
2025-05-09 10:42:39 -07:00
Uwais Ashraf 1ae9814920 Merge "Create separate worker threads for IO work and lighter BG work" into main 2025-05-09 09:45:40 -07:00
Will Osborn ddbce96536 Merge "Check for null display in DisplayController onDisplayAdded" into main 2025-05-09 05:50:00 -07:00
vinayjoglekar 3997f6ce4a Separate blur/fallback styles for all apps and overview
Fix: 415233763
Test: Manual. go to overview/all apps enable/disable battery saver mode.
Flag: com.android.launcher3.all_apps_blur
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I4fdb672feb34d4b4da74f430eb8ef9a86ec3adf2
2025-05-09 10:17:11 +01:00
Coco Duan cc55afe1fd Show all default widgets in glanceable hub widget picker
Update the predicate condition to correctly use the host's specified
filter for default widgets.

Fixes: b/415899961
Test: verify in hub widget picker on tablet
Test: atest WidgetPickerDataProviderTest
Flag: EXEMPT bugfix
Change-Id: I5a68d49dfda08059de880bca6964ac1620ffff36
2025-05-09 07:18:36 +00:00
Uwais Ashraf c1102750dd Create separate worker threads for IO work and lighter BG work
Documentation largely pulled from Kotlin coroutines docs.

Flag: com.android.launcher3.enable_coroutine_threading_improvements
Bug: 416206104
Test: Presubmits
Change-Id: I89b7222e31680619e311fa9e9986da5c12d80ed4
2025-05-09 06:49:48 +00:00
Treehugger Robot 2a7a8b5662 Merge "Use setQsbAlpha to update qsb alpha" into main 2025-05-08 13:08:31 -07:00
Treehugger Robot 4f030edec6 Merge "Store startAlignTaskbar in DisplayInfoSpec" into main 2025-05-08 12:47:28 -07:00
Stefan Andonian 4a07ef1019 Merge "Smoothly transition PageIndicatorDot alpha when switching active dots." into main 2025-05-08 11:13:31 -07:00
Toni Barzic ff16a5912d Use dimen for GridSize_minDeviceWidth/Height
Makes the grid size format more flexible, as it allows the min width and
height to be easily defined either as px, or dp (which may be
preferable for upcoming desktop grids - I noticed that scaling display
size may end up with too tightly packed grid when using pixel sizes
to select the correct grid size).

Test: Existing tests
Bug: 375643744
Flag: EXEMPT cleanup

Change-Id: I09b772ece177fe0539a1ff641ff2391e88d9e289
2025-05-08 10:20:54 -07:00
Ajinkya Chalke f0ec71d325 Store startAlignTaskbar in DisplayInfoSpec
- CD grids should override startAlignTaskbar.
- The DP.toBuilder method should carry forward DisplayInfoSpec instead
  of always recalculating.

Fix: 416276424
Test: m
Flag: EXEMPT updating recently added logic
Change-Id: I7b1cb8eab5fedc09b29e96a765d1341655474e8a
2025-05-08 17:00:22 +00:00
Sunny Goyal 29b86863f2 Merge "Making workspaceData immutable" into main 2025-05-08 08:06:06 -07:00
Charlie Anderson 2f8156437e Merge "Add logging for preview ContentProvider in GridCustomizationsProxy" into main 2025-05-08 07:43:17 -07:00
Will Osborn 19392fc5cf Check for null display in DisplayController onDisplayAdded
Bug: 415007177
Test: local + presubmit
Flag: EXEMPT bugfix
Change-Id: Ic4e9e6156ed565ed86aa25ebbdeda853fb2d8eda
2025-05-08 12:39:23 +00:00
Matthew Mourgos 2a6553ff9e Merge "Enable right click on items when home screen is shown behind desktop" into main 2025-05-07 20:23:09 -07:00
Matthew Mourgos 5c6ab9a11d Enable right click on items when home screen is shown behind desktop
Remove the hasWindowFocus() check to allow long pressing or right
clicking an icon on the home screen while freeform tasks are open. If
a view can receive touch events, it should handle it properly, leaving
the check for hasWindowFocus() to the touch-dispatcher.

Bug: 375644149
Flag: com.android.window.flags.show_home_behind_desktop
Test: Manually open tasks, then long press items on home to open menu
Change-Id: I7805533a5961e8ec088d43146d4b841f3bc93a50
2025-05-07 17:46:21 -07:00
Sebastián Franco 78ddf0f37c Merge "Log which active controller is handling input in the BaseDragLayer" into main 2025-05-07 17:22:23 -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
Treehugger Robot adde4dd42a Merge "External displays should always be in 3-button nav mode" into main 2025-05-07 12:15:46 -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
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
Treehugger Robot 2e6fc30b12 Merge "Use supplied context instead of system for taskbar" into main 2025-05-07 09:09:26 -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
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
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
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
Treehugger Robot 0b0dd2683a Merge "Reparse all grids for secondary displays for DP" into main 2025-05-06 13:03:00 -07:00
Sunny Goyal 53cc9a7806 Merge "Moving predicted items to ItemIdMap instead of extraItems" into main 2025-05-06 10:29:39 -07:00
Adnan Begovic cd153cf5c9 Merge "Launcher3: Expose adjust ArrowTipView layout params." into main 2025-05-06 09:58:33 -07:00
Ajinkya Chalke bb3571806e Reparse all grids for secondary displays for DP
- This is required to show a half width all apps sheet on external
  monitor connected to the phone. Without this the apps sheet covers the
  full width of the external monitor in projected mode.
- Create a new class to hold all the properties that need to be
  overridden. Set this class as part of DP buider.
- Override all props that are overridden for isTwoPanels.
- Update isTwoPanels to override using the new class in DP constructor.

Flag: com.android.window.flags.enable_taskbar_connected_displays
Bug: 414342881
Test: m
Change-Id: Ia035620c96c5a8912b99314014d4b19a125c7c5c
2025-05-06 12:32:53 +00:00
Sunny Goyal aef6c7932e Moving predicted items to ItemIdMap instead of extraItems
> This allows the whole workspace model to be contained in itemIdMap instead of spread across multiple data containers
> Deprecating extraItems, all non-workspace data should use separate repositories
> Design: http://go/launchermodel-re-arch?#heading=h.5y8n4r164d5s

Bug: 390572144
Test: atest PredictionUpdateTaskTest
Flag: EXEMPT refactor
Change-Id: I886d0a8d5bbbf9f5c2054d4a2442bf03f9c4eab5
2025-05-05 15:52:37 -07:00
Shamali Patwa b7ee8bc7a0 Log when a required attribute is missing in the AutoInstall layout.
Current implementation fails but doesn't give error message on what caused failed.


Bug: 413665268
Test: Unit test
Flag: EXEMPT BUGFIX
Change-Id: Iedbd18bb37c0e4d1ac8b86d426d469ddc5fe163f
2025-05-05 12:39:38 -07:00
Adnan Begovic f2d6d0ec9f Launcher3: Expose adjust ArrowTipView layout params.
Allows a subclass to follow the same pattern of using the device
grid to stipulate the layout params.

Bug: 415259527
Test: Manual, Unit
Flag: EXEMPT bug fix
Change-Id: I6afe9bbb1aba8132bdcbee92e1dca33e1243f4bd
2025-05-05 11:28:22 -07:00
Sunny Goyal 55b5e41d8a Merge "Removing Smartspace as a widget flag" into main 2025-05-05 10:01:05 -07:00
Schneider Victor-tulias a8053f8cba Merge "Support the gesture nav contract for recents in window" into main 2025-05-03 20:02:30 -07:00
Treehugger Robot 418a8e4aa9 Merge "Update All Apps divider color." into main 2025-05-02 17:43:28 -07:00
Treehugger Robot b393e253de Merge "Fix Data Import for folder-internal items" into main 2025-05-02 17:17:51 -07:00
Andy Wickham 28f422544e Update All Apps sheet interpolators.
This is a bit of a stopgap until we are able to adopt a more
versatile mechanism similar to SysUI, but here's the high level:
 - Workspace scale finishes more quickly than blur (53% vs 83% of
   the transition)
 - Closing All Apps reverses the opening interpolators (avoid blur
   disappearing too quickly).

Design intent is described in the bug.

Demo: https://drive.google.com/file/d/14Y28NeHoh_RBh3acXijhhx_ZIUK8GmYy/view?usp=drive_link&resourcekey=0-A9AUbEZcJsmP1GtSqbbrgg

Bug: 415247657
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Flag: com.android.launcher3.all_apps_blur
Test: Manual
Change-Id: Iffa8e6f9dd98817899aadb3fb28fecd6c53bca7e
2025-05-02 13:36:27 -07:00
Schneider Victor-Tulias 9118d87d84 Support the gesture nav contract for recents in window
- Support for the GNC allows for some additional animations and clean up. The missing clean up was causing test failures
- Also fixing broken GNC support for split apps. Swiping up from split apps caused consistent crashes, however since the current 1P swipe to home has no special animation, updating the recents window and 3P GNC to match this.

Flag: com.android.launcher3.enable_launcher_overview_in_window
Bug: 377678992
Test: pre/postsubmit; swipe home from 1P and 3P launcher
Change-Id: Idf24d7969e76a50ff656f6644c2b568c42e409d7
2025-05-02 15:32:51 -04:00
Stefan Andonian 1725d9d75f Fix Data Import for folder-internal items
Bug: 379378706
Test: Verified this works locally.
Flag: com.android.launcher3.external_data_access
Change-Id: I0396a593bd02591ae599e0eb9b9e44922bd17960
2025-05-02 10:55:17 -07:00
Sunny Goyal 46b13eb184 Moving WorkspaceItemFactory to dagger as PredictedItemFactory so that it can be reused
Bug: 390572144
Flag: EXEMPTY refactor
Test: Presubmit
Change-Id: I41c5fea73452d7f4c1fd9980a89bcb7199eb19d7
2025-05-02 08:55:21 -07:00
Alex Chau 14f266442b Merge "Don't consider IME insets in mSystemGestureRegion" into main 2025-05-02 01:47:08 -07:00
Sunny Goyal 7a332e02aa Removing Smartspace as a widget flag
Bug: 300140279
Flag: EXEMPT removing dead code
Test: Presubmit
Change-Id: If24db0b4c2c119f5cbe1153e3d77599d12ff80a6
2025-05-01 16:00:04 -07:00