Commit Graph

4539 Commits

Author SHA1 Message Date
Treehugger Robot f42f516621 Merge "Remove unused spec in device_profiles.xml" into main 2025-03-03 17:24:20 -08:00
Treehugger Robot 19e93afd91 Merge "Test all apps -> workspace drag for taskbar on home" into main 2025-03-03 11:59:21 -08:00
David Saff e7c9940df4 Merge "Rename to uiautomatorhelpers" into main 2025-03-03 10:48:03 -08:00
Federico Baron d8f0bed596 Remove unused spec in device_profiles.xml
Bug: 395912263
Flag: com.android.launcher3.one_grid_specs
Test: n/a, code cleanup
Change-Id: Ifd1ecf905427902f895a1b4e16711874fd52ddf3
2025-03-03 18:35:10 +00:00
Treehugger Robot c032512a82 Merge "Add screenrecord for uninstallWorkspaceIcon" into main 2025-02-28 17:19:37 -08:00
Treehugger Robot dad3394772 Merge "Fix LauncherPrefs crash by allowing sub-types of Set" into main 2025-02-28 16:49:02 -08:00
Toni Barzic a5c5536d7d Test all apps -> workspace drag for taskbar on home
Adds TAPL test that verifies users are able to drag app items from all
apps to workspace when all apps is opened on from a pinned taskbar shown
on the home screen, as may be the case when a desktop mode taskbar is
shown on home screen.

Adapts LauncherInstrumentation to handle the case where taskbar is shown
on home - when verifying launcher states, it sets taskbar visibility
expectations to account for a posibility that taskbar is visible in
home, or workspace states. Adds a request to the test protocol to
determine whether taskbar should be visible on home.

Bug: 392118517
Flag: com.android.window.flags.enter_desktop_by_default_on_freeform_displays
Test: Ran TaplTestLockedTaskbar tests
Change-Id: I40b06da70aaa49b0a3e0673797e6c18773a72238
2025-03-01 00:31:46 +00:00
Sihua Ma 2e964781ad Merge "Enable forced theme icon in Launcher3 tests" into main 2025-02-28 16:06:04 -08:00
Brian Isganitis fbe72436c8 Merge "Remove TYPE_TASKBAR_OVERLAY_PROXY from TYPE_ACCESSIBLE." into main 2025-02-28 14:58:30 -08:00
Charlie Anderson 4e4ad89696 Fix LauncherPrefs crash by allowing sub-types of Set
Bug: 396616795
Test: LauncherPrefsTest
Flag: EXEMPT bugfix
Change-Id: Id380a6e4bb5eb809978070ff1b523c9e98e6b869
2025-02-28 21:57:43 +00:00
Federico Baron 66999f0a19 Add screenrecord for uninstallWorkspaceIcon
Bug: 399756302
Flag: EXEMPT TEST_ONLY
Test: TaplUninstallRemoveTest
Change-Id: I4bdf8087276a93f8f736c23ba95f35acb7f05c3a
2025-02-28 21:27:07 +00:00
Brian Isganitis 8bab8eb171 Remove TYPE_TASKBAR_OVERLAY_PROXY from TYPE_ACCESSIBLE.
The invisible proxy view was preventing anything below it from being
accessible.

Flag: EXEMPT bugfix
Fix: 377526512
Test: #14 in bug.
Change-Id: I9d4596ebbbc4317a9ff7ded37b43b5fa1885e6ea
2025-02-27 19:41:48 -05:00
Treehugger Robot 1e8125c76b Merge "Merging some notification dots implementation" into main 2025-02-27 16:08:10 -08:00
Treehugger Robot 9a5cd11da5 Merge "Move MainThreadInitializedObject to Launcher3 Go." into main 2025-02-27 13:03:12 -08:00
Charlie Anderson f22128e5f4 Merge "Make ModelTestExtensions default to process userhandle for HSUM" into main 2025-02-27 12:59:26 -08:00
David Saff b9fabb10dd Rename to uiautomatorhelpers
Bug: 376676853
Change-Id: I2d3f4e259da721336b0736abc45d393f0dd9145a
Test: AppWidgetsRestoredReceiverTest
Flag: TEST_ONLY
2025-02-27 11:26:52 -08:00
Sunny Goyal 39063bf167 Merging some notification dots implementation
Bug: 393703968
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Ie02311afba85f06fbafd265a5015cd23bd356a36
2025-02-27 08:50:26 -08:00
Anushree Ganjam e6065f5a94 Move MainThreadInitializedObject to Launcher3 Go.
Move SandboxContext to a separate class.
Remove all MainThreadInitializedObject references in Launcher3 and tests.
Remove ObjectSandbox interface and make RoboApplication extend
SandboxContext

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I1a8af5e6ae59df44d8ad6732b4d6e949ac402d6c
2025-02-26 16:49:08 -08:00
Vadim Tryshev 684233e257 resolve merge conflicts of 6df1743d23 to main
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I92c19785709187592c5aaa9f5ee8141d3af0e194
2025-02-26 11:08:36 -08:00
Owner Cleanup Bot cd33516a5c [owners] Remove mateuszc@google.com from tests/multivalentTests/shared/com/android/launcher3/testing/OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.

Please approve this change and vote the highest CR. This will keep the OWNERs
file tidy.  We ask that you do not ignore this change and approve it
unless you know a reason the OWNER should remain.  It can always be
reverted if needed.

If this change is in error, vote the lowest CR value (i.e. reject the CL)
and the bot will abandon it.

See the owner's recent review activity for context:
https://android-review.googlesource.com/q/mateuszc@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: Ib310e8949235516783ea820d35fa113e06cd34c3
2025-02-26 09:44:59 -08:00
Charlie Anderson 87ed2ec7dd Make ModelTestExtensions default to process userhandle for HSUM
Bug: 398857280
Test: BackupAndRestoreTest
Flag: EXEMPT test fix
Change-Id: I1781ffd0a04c31ee01108fb5802278051cdff4dc
2025-02-26 11:00:18 -05:00
Alex Chau 865982c634 Merge "Pulling secondary user artifacts from tests" into main 2025-02-26 02:47:54 -08:00
Charlie Anderson dfb45d9c03 Simplify ShapesProvider and use constants
Bug: 398689048
Bug: 372884380
Test: presubmit and locally
Flag: com.android.launcher3.enable_launcher_icon_shapes

Change-Id: I102265ef4b25d84bb7a0b1f9642a9c19a7200e22
2025-02-25 20:17:54 -08:00
Vadim Tryshev 52bf5cd945 Pulling secondary user artifacts from tests
Bug: 396447643
Test: abtd run
Flag: NONE Not production code
Change-Id: I884a787f350ffb646827a32749c45fde8e93f53f
2025-02-25 19:20:15 -08:00
Owner Cleanup Bot c383866630 Merge "[owners] Remove zakcohen@google.com from tests/multivalentTests/src/com/android/launcher3/widget/picker/OWNERS" into main am: bbda0821a6 am: c8abc144b7
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3490671

Change-Id: I9a0698da781bae7365ed46bc52fee13f46aaba2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-25 15:37:31 -08:00
Owner Cleanup Bot bbda0821a6 Merge "[owners] Remove zakcohen@google.com from tests/multivalentTests/src/com/android/launcher3/widget/picker/OWNERS" into main 2025-02-25 14:47:00 -08:00
Pat Manning 11f50b01c7 Adding events check to TAPL method for flinging to clear all.
Clear all impl separate from public method, as nested events checking fails assertions.

Fix: 398771634
Test: TaplTestsQuickstep#testDismissLastGridRow
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I7f86c0667034c95b4b21dd0fd75307ca0f8cf48d
2025-02-25 15:46:45 +00:00
Jagrut Desai 269fb15e97 Merge "Desktop Mode Taskbar Recreate Animation" into main 2025-02-24 16:00:48 -08:00
Treehugger Robot 087e54c81c Merge "Removing temporary debug tracing" into main 2025-02-24 14:55:05 -08:00
Sihua Ma 8587b2916e Enable forced theme icon in Launcher3 tests
Test: atest --start-avd Launcher3Tests:MonoIconThemeControllerTest
Bug: 398039548
Flag: com.android.launcher3.force_monochrome_app_icons
Change-Id: I629e36f77726c22b83e284beb218d8e804e0499f
2025-02-24 22:02:37 +00:00
Jagrut Desai 8b2e5eff9b Desktop Mode Taskbar Recreate Animation
This Cl includes
       - addition of entry/exit callback methods in DesktopVisibilityController.
       - taskbar manager now listens to desktop mode changes.
       - TaskbarBackrgroundRedererer can now individually animation backgrounds for transient and persistent taskbars
       - new channel for taskbar icon alpha added to TaskbarViewController
       - new animated float to handle background alpha while we are recreating taskbar with animation.

Solution:

we use the callabck we get from DekstopVisibilty for entry/exit to first change logic of when we are considered inDesktopMode. Upon entry/exit we notify display controller for info change.
we also at notify taskbar manager who is now a listener to the desktop mode change and start the recreate process. TaskbarManager first animates existing taskbar out of user view and then follows the original recreate flow.

Test: Presubmit
Bug: 343882478
Flag: com.android.window.flags.enable_desktop_windowing_mode
Change-Id: Ib827564cacd194f499e7d9b1965e2bb13e3548ab
2025-02-24 11:59:53 -08:00
Sunny Goyal b1fab90e26 Enforcing grid customization permission in manifest instead of code
Bug: 389173244
Test: Updated tests
Flag: EXEMPT manifest change
Change-Id: I0fee57f935156da6b2b5a612259db2c4b3605846
2025-02-24 10:40:43 -08:00
Sunny Goyal 7629bc4dcd Merge "Converting LauncherAppState to Dagger" into main 2025-02-21 10:06:01 -08:00
Treehugger Robot b38ab564be Merge "Close gap between grid and clear all for expressive dismiss." into main 2025-02-21 04:01:11 -08:00
Sunny Goyal c9f697aeb5 Converting LauncherAppState to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I336a233d2703c23a7e9065474bde471786886144
2025-02-20 19:13:49 -08:00
Shamali Patwa e532fc86b4 Merge "Update widgetsModel to return pickable vs all widgets separately." into main 2025-02-20 17:42:32 -08:00
Shamali P f6efa25a49 Update widgetsModel to return pickable vs all widgets separately.
Earlier wallpaper preview was reading widgets that were eligible for
displaying in picker, which means widgets that are marked as hidden in
picker wouldn't show up in wallpaper preview.

This fix updates widgets model to maintain map of all widgets (instead of just pickable widgets like before), so that the existing `getWidgetsByComponentKey` function used by wallpaper preview can see all widgets. And, updates picker specific methods to use separate functions (suffixed `forPicker` that filter out picker ineligible widgets when read by picker code).

Bug: 385695615
Test: WidgetsModelTest, WidgetsPredictionUpdateTaskTest and demo
Flag: EXEMPT BUGFIX
Change-Id: I59efe38be0ce1f8a956ba4be42fb6e8b48b5d323
2025-02-20 14:13:16 -08:00
Sunny Goyal db724a010c Removing temporary debug tracing
Bug: 378167329
Flag: EXEMPT bugfix
Test: Presubmit
Change-Id: I06ed0d96a83c13b1bce9aff8e2e21fa1510bc4c2
2025-02-20 12:26:35 -08:00
Pat Manning 2caae623a6 Close gap between grid and clear all for expressive dismiss.
Fix: 397891454
Test: TaplTestsQuickstep#testDismissLastGridRow
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Id49447819c38f307f05cd4ecc3d501bd51766443
2025-02-20 18:06:52 +00:00
Charlie Anderson b982bfede0 Merge "Removing Sunny shape option" into main 2025-02-20 06:40:12 -08:00
Charlie Anderson 96fa7a4c79 Removing Sunny shape option
Bug: 397683324
Test: selecting shapes, and presubmit
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I3d9ea0096674c07a860ba3d7dcc8074c4342a299
2025-02-19 17:46:27 +00:00
Sebastián Franco dbec5640de Merge "Add DeviceProfile dump files into artifacts" into main 2025-02-19 09:37:38 -08:00
Sebastian Franco 190f3263a2 Add DeviceProfile dump files into artifacts
Artifacts are collected from:

    <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
        <option name="directory-keys" value="/data/user/0/com.google.android.apps.nexuslauncher/files" />
        <option name="collect-on-run-ended-only" value="true" />
    </metrics_collector>

Defined in NexusLauncherTests.xml, by writing the files into that
directory the files should show in the artifacts section when a
test fails.

Bug: 390496167
Flag: TEST_ONLY
Test: all dumpTest
Test: dump files should now be available in test artifacts
Change-Id: I046b1482afaea647351462983c4cbab5f3bc29bc
2025-02-18 18:56:48 -08:00
Treehugger Robot e99943f092 Merge "Moving LauncherModel initialization to a separate class" into main 2025-02-18 16:56:02 -08:00
Owner Cleanup Bot a5d9e8a600 Merge "[owners] Remove zakcohen@google.com from tests/src/com/android/launcher3/widget/picker/OWNERS" into main am: c3a2e87058 am: aa4f86641c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3490672

Change-Id: Ic91f4281f7e12f23046a7e739830c5d76dbeccb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-18 14:33:03 -08:00
Charlie Anderson 7a7fcf5394 Merge "Fix WorkspaceItemProcessorTest for HSUM" into main 2025-02-18 13:39:05 -08:00
Sunny Goyal b82394758f Moving LauncherModel initialization to a separate class
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: Ie210473a9e158faa421c00f115ffcca680f84ae4
2025-02-18 13:11:50 -08:00
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
Charlie Anderson 3487ef52f2 Merge "Temporarily disable shapes flag in image and device dump tests." into main 2025-02-18 10:14:11 -08:00
Treehugger Robot c7e545674d Merge "Fix issue where hotseat apps don't migrate to the new grid" into main 2025-02-14 17:40:51 -08:00