Commit Graph

80408 Commits

Author SHA1 Message Date
Charlie Anderson
0e18dee91d Fix WorkspaceItemProcessorTest for HSUM
Bug: 395684478
Test: WorkspaceItemProcessorTest
Flag: EXEMPT test fix
Change-Id: Ib884af01fd225a01a7ba5408bcb38991b7b4c2c4
2025-02-18 13:43:47 -05:00
Treehugger Robot
17c250e9d5 Merge "Merging IconShape with ThemeManager" into main 2025-02-14 07:21:20 -08:00
Treehugger Robot
2c29f8cdaa Merge "Convert IconAppChipView from Java to Kotlin" into main 2025-02-14 05:15:02 -08:00
Sunny Goyal
29f9c3d231 Merging IconShape with ThemeManager
The order of initialization for IconShape is closely tied to ThemeManager
which makes it difficult for change listeners to work. Merging these keeps
all the theming information at one place

Bug: 381897614
Test: Updated tests
Flag: EXEMPT refactor
Change-Id: Ie29efa20c3308a24be3e284c1c93ed7444b68d58
2025-02-13 22:38:01 -08:00
Jeremy Sim
1767f094ad Merge "Handle dim layers in recents animation" into main 2025-02-13 17:13:10 -08:00
Treehugger Robot
03c22b7b0e Merge "Refactor: Extract GetThumbnailPositionUseCase from TTVM" into main 2025-02-13 15:14:06 -08:00
Brandon Dayauon
3791a80e28 Merge "Fix focusability of web suggest via talkback" into main 2025-02-13 15:05:14 -08:00
Sebastián Franco
3d3438ebbb Merge "Rotate Wallpaper Picker if in FixedLandscape" into main 2025-02-13 13:26:26 -08:00
Jordan Silva
8b53ee48b4 Refactor: Extract GetThumbnailPositionUseCase from TTVM
This CL deletes TaskThumbnailViewModel and refactored ThumbnailPosition
to be propagated from the TaskView into TaskContainer.

Fix: 396147816
Doc: go/launcher-overview-unified-taskviewmodel
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: OverviewImageTest
Test: TaskViewModelTest
Test: GetThumbnailPositionUseCaseTest
Test: GetThumbnailUseCaseTest
Change-Id: I9cc68a8007835f0dc4846b9bf71377c81d19b27b
2025-02-13 13:11:05 -08:00
Charlie Anderson
8f0658d652 Merge "Temporarily disable shapes flag for tests that it breaks." into main 2025-02-13 11:59:35 -08:00
Sunny Goyal
d1f19b103f Merge "Moving LauncherIcons to dagger" into main 2025-02-13 10:43:59 -08:00
Treehugger Robot
d59261110c Merge "Retrieve thumbnail for freeform windowing" into main 2025-02-13 09:50:55 -08:00
Jordan Silva
88df64edbb Convert IconAppChipView from Java to Kotlin
Fix: 396401083
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Test: Manual
Change-Id: Ie9b82a6ee531a8afb7dcfaf86d14d44acafeddc4
2025-02-13 17:47:46 +00:00
Charlie Anderson
527be0c133 Temporarily disable shapes flag for tests that it breaks.
- when done with breaking changes will update tests as part of b/396211437

Bug: 395952745
Bug: 396211437
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: Presubmit

Change-Id: I461f6834932a710efa439a112bce23359aee13de
2025-02-13 09:32:52 -08:00
Alex Chau
e15fa0470c Merge "Crop Desktop TaskThumbnailView according to its intersection with parent" into main 2025-02-13 09:10:34 -08:00
Treehugger Robot
38a203e8f4 Merge "Convert TaskGridNavHelper to Kotlin." into main 2025-02-13 08:54:17 -08:00
Uwais Ashraf
58b4407154 Retrieve thumbnail for freeform windowing
Fix: 348643341
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Manual - open freeform task and see thumbnail shown during launch. Videos in b/348643341.
Change-Id: I7c9d070e6b39391301a9701f33adef57819e631d
2025-02-13 15:25:41 +00:00
Pat Manning
1bc108f1c2 Convert TaskGridNavHelper to Kotlin.
Fix: 396114184
Test: TaskGridNavHelperTest
Flag: EXEMPT Kotlin conversion
Change-Id: I1c3da7eac7f41a0763293a0b408f608799f02cf2
2025-02-13 14:47:21 +00:00
Elliott Hughes
1c442011de Merge "Fix typo." into main 2025-02-13 06:15:09 -08:00
Alex Chau
08bd1bfcdb Crop Desktop TaskThumbnailView according to its intersection with parent
- Override TaskThumbnailView's outline bounds to be the Rect that the view intersect with parent, so it draw corner radius around the intersection, to match the corner radius behavior in live tile
- This is not fixed in TaskThumbnailViewDeprecated as it doesn't have an outline implemenation, and it's too complicated to rewrite that as a bugfix

Fix: 379881502
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Flag: com.android.window.flags.enable_desktop_recents_transitions_corners_bugfix
Test: OverviewDesktopTaskImageTest
Change-Id: I67d7e6a05b15f0f651c8ec71f33ca1e02d662b06
2025-02-13 12:38:03 +00:00
Pat Manning
849d204c71 Merge "Add Haptic feedback to task dismiss animations." into main 2025-02-13 02:51:01 -08:00
Treehugger Robot
6191d06684 Merge "launcher3: Improve SimpleBroadcastReceiver." into main 2025-02-12 18:19:35 -08:00
Sunny Goyal
46b9e9a2dd Moving LauncherIcons to dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: Ia6de74a5fd632872460dc7745f6c29ead1ab0a2e
2025-02-12 16:47:12 -08:00
Ana Salazar Maldonado
3bb0634a32 Merge "Fix contrast tile measurement calculation for folders" into main 2025-02-12 16:45:54 -08:00
Treehugger Robot
c2ef2629cd Merge "Notify with onIsInDesktopModeChanged()" into main 2025-02-12 16:27:38 -08:00
Jeremy Sim
d658a709f9 Handle dim layers in recents animation
Launcher-side changes for ag/31424956.

Bug: 349828130
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: Visually correct when a 90:10 pair goes to recents and back
Change-Id: I65bc56565291eae5959cd567057754d47a84bcaa
2025-02-12 15:39:52 -08:00
Treehugger Robot
6a039c4465 Merge "Implement isInDesktopMode*()" into main 2025-02-12 15:31:53 -08:00
Ana Salazar Maldonado
4ff68edea9 Fix contrast tile measurement calculation for folders
When creating a folder, the element name begins empty. Because of this,
while layout is happening, the paddings for the text and the bubble are
not considered. Fix the condition within onMeasure to add the respective
paddings when the bubble could be drawn.

Bug: 341217082
Flag: com.android.launcher3.enable_contrast_tiles
Test: Manual, visual change
Change-Id: Ie707102fa3d4827568a9db247ea5ebf5f8e1ae0d
2025-02-12 14:31:01 -08:00
Adnan Begovic
1b26bb4a74 launcher3: Improve SimpleBroadcastReceiver.
Unless explicitly annotated, parameters in java are by
  default nullable. There are a few cases where a null context
  may be passed to the unregisterReceiverSafely function
  of SimpleBroadcastReceiver.

  To mitigate misuses or incorrect contexts being passed for
  register vs unregister, keep the context as a strong reference
  in the constructor.

  Also added NonNull annotations for any public callsites to
  enforce behavior.

Bug: 395019017, 395966395
Flag: NONE - bug fixed
Test: manual - presubmit
Change-Id: Ie371fa45cadceaf51cf184b446df9123ef27c337
2025-02-12 13:43:34 -08:00
Ahmed Fakhry
2289c28f7f Notify with onIsInDesktopModeChanged()
This CL renamed `onDesktopVisibilityChanged()` to
`onIsInDesktopModeChanged()` and adds a parameter for the display ID
on which the change is taking place.

When the multiple desktops flags are disabled, the behavior should
remain exactly as it is today; `onIsInDesktopModeChanged()` is
triggered only for the `DEFAULT_DISPLAY`, and when the same old
conditions occur.

Bug: 394685645
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I31658b1b7932c787ebd430cee7e5c99bdd01e8c9
2025-02-12 21:18:54 +00:00
Ahmed Fakhry
ad6fee6111 Implement isInDesktopMode*()
This CL does the following:
- Adds new methods `isInDesktopMode()` and
  `isInDesktopModeAndNotInOverview()` to `DesktopVisibilityController`.
- These two methods rely on the new multi-desks impl when the flags are
  enabled.
- Makes the existing `areDesktopTasksVisible()` and
  `areDesktopTasksVisibleAndNotInOverview()` private, and migrates all
  the usages to the new methods.
- The new methods uses the old methods if the flags are disabled.

A companion NexusLauncher CL is at ag/31601363.

Bug: 394182435
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I29ff38f984bfe2f68a120f84e1a75fa36b739258
2025-02-12 21:18:51 +00:00
Treehugger Robot
4425ab3062 Merge "Moving InvariantDeviceProfile to Dagger" into main 2025-02-12 12:44:44 -08:00
Treehugger Robot
6c33393fe3 Merge "Revert "Refactor all uses of DisplayController singleton INSTANCE"" into main 2025-02-12 12:34:41 -08:00
Pat Manning
f49e206f7e Merge "Add additional dampening to neighboring springs the further they are from dragged task." into main 2025-02-12 11:34:03 -08:00
Sunny Goyal
c864281f3c Revert "Refactor all uses of DisplayController singleton INSTANCE"
Revert submission 31490053-DisplayControllRefactorForCD

Reason for revert: Leak is displayProvider

Reverted changes: /q/submissionid:31490053-DisplayControllRefactorForCD

Change-Id: Ib65150cdde765be009b5c4ce960f9fe025de9e60
2025-02-12 10:27:18 -08:00
Treehugger Robot
92513ecc7e Merge "Revert "Adding logs to debug test failures"" into main 2025-02-12 10:10:46 -08:00
Pat Manning
58fa42ad13 Add additional dampening to neighboring springs the further they are from dragged task.
Fix: 394513952
Test: TaskGridNavHelperTest
Test: TaplTestsQuickstep#testDismissCancel
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Ib26a48256e9f14974aa01266c6950d15412683c3
2025-02-12 16:23:15 +00:00
Pat Manning
fe7eb99dc4 Add Haptic feedback to task dismiss animations.
Fix: 389640582
Test: Manual.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Icfbc875b4021136f612d8227f5cbbc1491e54801
2025-02-12 14:21:34 +00:00
Jordan Silva
55e3fcfb4e Revert "Adding logs to debug test failures"
This reverts commit 4151c1eb9a.

Reason for revert: These logs are no longer necessary.

Change-Id: Ic0c8e8ba148f0103ca8001dfec2b3dc031973dab
2025-02-12 05:56:24 -08:00
Treehugger Robot
fb683dff89 Merge "Refactor all uses of DisplayController singleton INSTANCE" into main 2025-02-12 05:47:46 -08:00
Treehugger Robot
a6a4b0921a Merge "Pass TransitionInfo from onTasksAppeared() to TransformParams" into main 2025-02-12 04:28:45 -08:00
Treehugger Robot
efebae2ef4 Merge "Destroy RecentsDependencies in tests that initialise it." into main 2025-02-12 02:48:35 -08:00
Will Osborn
5f8b6206ce Refactor all uses of DisplayController singleton INSTANCE
And make DisplayController display id aware

Test: locally tested on Tangor
Flag: EXEMPT refactor
Bug: 392858637

Change-Id: I805cd7323c48a2988c95b9fda7f6cfe4c153860c
2025-02-12 10:46:34 +00:00
Gustav Sennton
57ce690d4e Pass TransitionInfo from onTasksAppeared() to TransformParams
Pass the TransitionInfo of the merging recents-transition through to
TransformParams to allow setting the corner radius of desktop tasks to
zero during the second part of a recents transition.

Bug: 378657004
Flag: com.android.window.flags.enable_desktop_recents_transitions_corners_bugfix
Test: swipe up from fullscreen app to overview, then tap desktop tile

Change-Id: I08f87aa1b9a2feca9e9f8bed2c55279e0ddc1edb
2025-02-12 10:19:14 +00:00
Uwais Ashraf
d7007ef6e8 Destroy RecentsDependencies in tests that initialise it.
This prevents unaccounted for destructions which can lead to a leak in tests after these.

Bug: 395214062
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: TaplStartLauncherViaGestureTests.testStressPressHome
Change-Id: I5cf9214ea9344f7e9d79b61e87269fd6e2c05753
2025-02-12 00:49:00 -08:00
Treehugger Robot
1844db355f Merge "Disable All Apps keyboard shortcut during user setup." into main 2025-02-11 19:58:28 -08:00
Treehugger Robot
97d837e8b8 Merge "Converting LauncherIcons to kotlin" into main 2025-02-11 16:32:22 -08:00
Sunny Goyal
5bca45a739 Moving InvariantDeviceProfile to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: Ia99ee031e96c5e6069a56fe90a262a533dd8665a
2025-02-11 15:22:18 -08:00
Treehugger Robot
0d9c54fc51 Merge "Make sure only old grids show up when the flag is off" into main 2025-02-11 13:52:38 -08:00
Sunny Goyal
a48e22319e Converting LauncherIcons to kotlin
This will simplify migration to dagger

Bug: 361850561
Test: Presubmit
Flag: EXEMPT refactor
Change-Id: I1d806c51a49cea4a5c44788d2fc3b825c2da8bbd
2025-02-11 13:22:06 -08:00