Commit Graph

76126 Commits

Author SHA1 Message Date
Uwais Ashraf
fe2107c59d Merge "Revert "Move widget picker tests to Robolectric"" into main 2024-05-21 23:05:12 +00:00
Uwais Ashraf
e21d6b15d5 Merge "Fix some compile errors occurring as a result of robo enablement" into main 2024-05-21 21:18:11 +00:00
Liran Binyamin
821fac010f Merge "Fix flake in BubbleBarViewAnimatorTest" into main 2024-05-21 20:24:45 +00:00
Uwais Ashraf
97ee134acc Revert "Move widget picker tests to Robolectric"
This reverts commit efc24f9251.

Reason for revert: Potential cause for flakiness https://android-build.corp.google.com/test_investigate/?invocationId=I07000010279081631&testResultId=TR32129311605132927

Change-Id: I4f0154bc101b6bc840c11ff0b6bf42f4ebc5ed03
2024-05-21 19:44:41 +00:00
Uwais Ashraf
784b4f28b0 Fix some compile errors occurring as a result of robo enablement
Fix: 297950111
Test: :NexusLauncher.Robo:testGoogleWithQuickstepDebugUnitTest
Test: atest NexusLauncherRoboTests
Flag: NA
Change-Id: Ic9b09fff630d274558d09b7031d12ec28f10fbc7
2024-05-21 18:56:52 +00:00
Orhan Uysal
d061c71e66 Merge "Fix activity leak" into main 2024-05-21 18:35:34 +00:00
Treehugger Robot
1090d17651 Merge "Update DeviceProfileDumpTest to work with flag on and off." into main 2024-05-21 18:30:22 +00:00
Treehugger Robot
c0abbc9dab Merge "Move common code from DesktopTaskView and GroupedTaskView to TaskView" into main 2024-05-21 17:44:54 +00:00
Liran Binyamin
56322431ca Fix flake in BubbleBarViewAnimatorTest
The flake was probably happening because the animation end listener
has not finished running on the UI thread. This change waits for
the UI thread to become idle before proceeding.

Flag: com.android.wm.shell.enable_bubble_bar
Bug: 341161005
Test: ran BubbleBarViewAnimatorTest#animateToInitialState_inApp 100x
Change-Id: Ide3b0a34095ed01cc179534fa608aecd5d3f3a20
2024-05-21 13:19:34 -04:00
Anushree Ganjam
0167249ade Merge "Add ApiWrapper Instance to SandboxModelContext." into main 2024-05-21 16:28:12 +00:00
Luca Zuccarini
40b0b5e140 Update DeviceProfileDumpTest to work with flag on and off.
Note that the files are different only for a subset of the scenarios
because the result doesn't change for the others.

Bug: 298089923
Flag: ACONFIG com.android.launcher3.enable_scaling_reveal_home_animation DISABLED
Test: this CL
Change-Id: I16e999787265d3d9ced98af5d27a60f1549e1712
2024-05-21 16:26:14 +00:00
Andrew Cole
8fefd5d9ee Merge "AppFilterTest" into main 2024-05-21 16:03:38 +00:00
Treehugger Robot
7276277569 Merge "Fix mockito deviceless deps" into main 2024-05-21 13:56:25 +00:00
Orhan Uysal
67c807a1fe Fix activity leak
In some occasions, launcher leaks through DesktopVisibilityController
and SplitFromDesktopController. Set mDesktopVisibilityController and mSplitSelectStateController to null
after their onDestroy() methods are called.

Bug: 332339792
Test: m
Flag: ACONFIG com.android.window.flags.enable_desktop_windowing_mode TEAMFOOD
Change-Id: I66418f30ec5d2735f812ee6e4180f55f67d7b46f
2024-05-21 12:42:37 +00:00
Uwais Ashraf
029de6d10a Fix mockito deviceless deps
Bug: 334825222
Test: TasksRepositoryTest
Flag: EXEMPT build files
Change-Id: Ia682e364d56b23a2b3c3a1ef6d83044d110e14d6
2024-05-21 11:59:05 +00:00
Alex Chau
4127e460b0 Move common code from DesktopTaskView and GroupedTaskView to TaskView
- Most TaskView method will now loop through taskContainer instead of accessing the first/second
- Moved TaskThumbnailView, showWindowsView, and TaskOverlay to be part of TaskContainer. There are still some TaskOverlay access from TaskThumbnailViewDeprecated that should be remove as we start using TaskThumbnailView

Fix: 339787250
Test: Manual
Flag: EXEMPT refactor
Change-Id: Icfaa4f5eb50582faed01113465335b6d2899f781
2024-05-21 12:43:37 +01:00
Sihua Ma
5a4b813d38 Merge "Move widget picker tests to Robolectric" into main 2024-05-21 08:36:08 +00:00
Brian Isganitis
48c2690e2a Merge "Add flag for Tiny Taskbar" into main 2024-05-21 01:09:06 +00:00
Tracy Zhou
efc21994a2 Set inset in phone setup mode to setup inset am: 8355bc1a76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27420758

Change-Id: I92f5fa8a6e5d04cdf5cf33e1e8003fd88602b172
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 00:30:03 +00:00
Anushree Ganjam
6c97b05562 Add ApiWrapper Instance to SandboxModelContext.
The SystemShortcutTest is failing after ag/26708194 is submitted.

Bug: 341754469
Bug: 341754775
Test: Manual
Flag: None Bug fix TestFailure
Change-Id: I2e8af1a4913c245a2d5b6164476e240ece79ada8
2024-05-20 16:23:12 -07:00
Brian Isganitis
1a57e08d84 Add flag for Tiny Taskbar
Flag: com.android.launcher3.enable_tiny_taskbar
Test: None
Bug: 341784466
Change-Id: I84be4bed652c27c4ebfba5818c13d98acfa9aa60
2024-05-20 23:07:45 +00:00
Tracy Zhou
a2bbe1c5c8 Merge "Add folders in all apps aconfig flag" into main 2024-05-20 22:43:29 +00:00
Sihua Ma
efc24f9251 Move widget picker tests to Robolectric
Test: atest Launcher3RoboTests
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: NONE test migration
Bug: 297950111
Change-Id: I9124d4f45feb0ded74ffe2e0aabffdf98459ff4f
2024-05-20 21:20:32 +00:00
Ats Jenk
38ad424a17 Merge "Only send bubble bar top coordinate to shell" into main 2024-05-20 17:36:23 +00:00
Tracy Zhou
8355bc1a76 Set inset in phone setup mode to setup inset
- In phone setup mode, gesture mode is no button but the inset we report should be setup inset

Fixes: 340998601
Test: https://screenshot.googleplex.com/8Q4WHorpUeqWSjw
Change-Id: I84d60ecc7179008e80e7b09eda5b3a1abb24e138
(cherry picked from commit b17af6ff75)
2024-05-20 16:24:50 +00:00
Tracy Zhou
ad26390e23 Merge "Set inset in phone setup mode to setup inset" into main 2024-05-20 16:24:36 +00:00
Oli Thompson
9305badf5a Merge "Show edu card when managed profile removed" into main 2024-05-20 10:38:19 +00:00
Tracy Zhou
0bfd21fe2e Add folders in all apps aconfig flag
Bug: 341582436
Change-Id: I615d3b925dba8987c793c3e871f2aebde10ace53
Test: N/A
2024-05-19 22:19:57 +00:00
Fengjiang Li
c9efd81d57 Merge "[Launcher Jank] Move binder call of RotationChangeProvider to BG thread" into main 2024-05-17 23:06:29 +00:00
Andrew Cole
d04961f90b AppFilterTest
Adding a unit test for AppFilter. This is a simple class but it shows a good pattern of mocking resources and use that pattern in future unit tests.

Bug: 341361892
Test: AppFilterTest
Flag: None
Change-Id: Icb45ebe7791bb273860ee3fec1c5e59a76f13174
2024-05-17 14:32:26 -07:00
Fengjiang Li
01d4ca8aca Merge "Use global PackageManagerHelper for LoaderTask" into main 2024-05-17 21:02:01 +00:00
Sunny Goyal
b7cd672363 Merge "Adding support for importing/exporting launcher layout" into main 2024-05-17 18:08:25 +00:00
Ats Jenk
7383866b91 Merge "Fix bubble translation when released after dragging" into main 2024-05-17 18:04:23 +00:00
Ats Jenk
b34f8c8831 Only send bubble bar top coordinate to shell
Stop sending entire bubble bar bounds to shell.
Keeping the bounds in sync was error prone as bubble bar can expand and
collapse. Bubbles can be added/removed.
In each of these cases we had to make sure that shell gets updated.
Shell only needed the full bounds for collapse/expand animation. But
after updating the animation, shell only needs the top coordinate of the
bubble bar.

Bug: 330585402
Flag: com.android.wm.shell.enable_bubble_bar
Test: bubble bar drag
  - drag bar from right to left
  - expand the bar
  - check that expanded view scales in from left edge
  - collapse and drag bar back, check the animation
Test: selected bubble drag
  - drag expanded bubble from right to left
  - check that expanded view scales in from the left edge
  - drag the bubble back to right, check animation
Test: other bubble drag
  - drag a unselected bubble from right to left
  - check that the selected bubble expands in from left edge
  - drag the bubble back to right, check animation again
Test: drag bubble from right to left, observe that expanded view
  expand animation originates from the bubble bar

Change-Id: Ib66cef8d3c04bce54a69e30e99edd408a31f018f
2024-05-17 10:53:33 -07:00
Uwais Ashraf
e420318843 Merge "Use getter for thumbnail from converted ThumbnailData in Java" into main 2024-05-17 17:08:08 +00:00
Ats Jenk
3529ace8a1 Fix bubble translation when released after dragging
Translation for bubble after drag release was based on bubble bar translation. TranslationX was adjusted for bubble position. And translationY was reused from bubble bar.
Before ag/27284635 bubble bar translationY just copied over the input translation value. But the cl introduced a fixed translationY applied to bubble bar.
This was getting applied to the bubble as well. And resulted in bubble being out of its target position when releasing drag.

Bug: 330585402
Test: drag a bubble from bubble bar and release it, observe it animates
  to its correct position in the bar

Change-Id: I48f2a84b60a9cc6047e9841c254b4035212f3c0e
2024-05-17 15:58:24 +00:00
Alex Chau
65574f8485 Sets taskOverlayFactory to TaskThumbnailViewDeprecated even when not binding
Bug: 339787593
Test: Manual
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: I672bf7e5c0fd578974fca16272557f2ef2f218ee
2024-05-17 12:40:42 +01:00
Orhan Uysal
33967ebcea Merge "Set the listeners to null on unregister" into main 2024-05-17 08:33:03 +00:00
Kean Mariotti
c4079927f9 Merge "vc tracing: refactoring prior perfetto migration" into main 2024-05-17 07:38:33 +00:00
Fengjiang Li
a3e89b0cd2 Merge "Log warning when UserHandle in UserManagerState#allUsers get overridden" into main 2024-05-17 05:56:12 +00:00
Tracy Zhou
b17af6ff75 Set inset in phone setup mode to setup inset
- In phone setup mode, gesture mode is no button but the inset we report should be setup inset

Fixes: 340998601
Test: https://screenshot.googleplex.com/8Q4WHorpUeqWSjw
Change-Id: I84d60ecc7179008e80e7b09eda5b3a1abb24e138
2024-05-16 21:38:58 -07:00
Sunny Goyal
25f5e29418 Adding support for importing/exporting launcher layout
Bug: 338282246
Flag: None
Test: Manual, developer feature
      atest AutoInstallsLayoutTest
Change-Id: I8a5674080f3c156d97bc6118c51532c2fe8177d5
2024-05-16 15:24:41 -07:00
Fengjiang Li
6335460613 [Launcher Jank] Move binder call of RotationChangeProvider to BG thread
Fix: 333771185
Test: record prefetto trace
Flag: NONE not gated
Change-Id: I68a574cbcfed84876fe57fa5be03ca189e569f7e
2024-05-16 15:17:12 -07:00
Ats Jenk
5719808945 Merge "Rename removeBubble method to clarify it is for dismissing via drag" into main 2024-05-16 22:00:56 +00:00
Fengjiang Li
172e454e2c Log warning when UserHandle in UserManagerState#allUsers get overridden
Bug: 340362067
Test: manual
Flag: NONE
Change-Id: I123f02f52408db0f7c711ee420743ac01df04156
2024-05-16 13:59:47 -07:00
Jagrut Desai
80b1ee3747 Merge "Removing Screen Record from TaplAddWidgetTest" into main 2024-05-16 19:11:23 +00:00
Treehugger Robot
7ca8954796 Merge "Clean up some old (pre-aconfig) flags." into main 2024-05-16 18:37:43 +00:00
Liran Binyamin
013a4121be Merge "Suppress bubble animation when IME is visible" into main 2024-05-16 18:22:38 +00:00
Fengjiang Li
62f1eca9e7 Use global PackageManagerHelper for LoaderTask
This reverts ag/27303480 as we have found the root cause of workspace icons deleted by setting up private space (ag/27354841)

Fix: 340362067
Test: manual
Flag: NONE
Change-Id: I81d95e95282f09b872268ddb232ba9f092e952bc
2024-05-16 11:04:32 -07:00
Luca Zuccarini
2d3dae75be Clean up some old (pre-aconfig) flags.
These have been enabled for a long time and are safe to remove.

Fix: 270394392
Fix: 270394041
Flag: NONE removing an old flag
Test: everything still works as expected (no-op change)
Change-Id: Id5fc356a29a7e85324a8c3f922709251f371b2c5
2024-05-16 16:43:27 +00:00