Commit Graph

4240 Commits

Author SHA1 Message Date
fbaron 701eef07ab Add screenrecord for testDragAppIcon
Bug: 343953783
Test: TaplDragTest#testDragAppIcon
Flag: TEST_ONLY
Change-Id: I598fd1c7e153c077de0d5babb0eadf09cc10fa1f
2024-05-31 10:20:02 -07:00
Sihua Ma 3b2a136272 Run UiThreadTest in LauncherMultivalentJUnit
Additionally migrating DisplayControllerTest to multivalent

Flag: TEST_ONLY
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Change-Id: I9ff89218947b32f79b39bb0e6dd4beabec3b7369
2024-05-30 23:11:29 +00:00
Brandon Dayauon 16cb3efa1f Rename add* to update* and call setQuietMode() itself
bug: 341053089
Test: manually - presubmit
Flag: Aconfig com.android.launcher3.enable_private_space Nextfood
Change-Id: I7d88f18e08f45fc731f3122c55986a12e754d56a
2024-05-30 11:02:01 -07:00
Tracy Zhou 55308cadcf Merge "Support trackpad tapl tests in 3-button mode" into main 2024-05-30 17:59:13 +00:00
fbaron 09ac97fa39 Add screenrecord/demote TwoPanelWokrspaceTest
Flag: TEST_ONLY
Test: TaplTwoPanelWorkspaceTest#testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty
Bug: 329935119
Change-Id: I6faa8f35a2e0cd8a02d615a329baab045235ec82
2024-05-30 10:29:38 -07:00
Shamali Patwa c4c554139f Merge "Scale down the widget previews on similar scale as the spring load scale" into main 2024-05-30 14:58:41 +00:00
Uwais Ashraf 9d4f5d1cc9 Merge "Replace verifyZeroInteractions with verifyNoMoreInteractions" into main 2024-05-30 10:10:13 +00:00
Tracy Zhou acb4a3d1e8 Support trackpad tapl tests in 3-button mode
Currently we have logic to only enable input monitor when a trackpad is connected. Tapl tests need to have infrastructure to override that logic

Bug: 335146977
Test: presubmit
Change-Id: Ib7f80c828760f8b5abd7ed2788b246e47fca6e34
2024-05-29 21:58:20 -07:00
Treehugger Robot 236bb12736 Merge "Move SettingsActivityTest to multivalent" into main 2024-05-30 04:26:56 +00:00
Shamali P 3dabf391f2 Scale down the widget previews on similar scale as the spring load scale
Currently entire workspace scales down, but the original view sticks
to user's finger at same size as before. This makes the view look larger
obstructing the view of workspace behind it - specifically, when the
widgets are of larger size.

Additionally, with this scaling change, the preview images that aren't
of same aspect ratio don't break the transition to final widget as
before.

Bug: 338290585
Test: Unit test
Flag: None bugfix
Change-Id: I1d1818e60506898c7b28074f01cee91282032a94
2024-05-29 22:38:22 +00:00
Sihua Ma 9d093d5b57 Replace verifyZeroInteractions with verifyNoMoreInteractions
Also migrating LockedUserStateTest and AbstractFloatingViewHelperTest
to multivalent

Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: TEST_ONLY
Bug: 297950111
Change-Id: Ic476de791109e7892c86bf5ae77727fc0506f0b9
2024-05-29 22:03:43 +00:00
Vadim Tryshev d3ef050bc3 Merge "Removing high-level events mismatch diagnostics." into main 2024-05-29 18:42:47 +00:00
Charlie Anderson 73edd795c1 Merge "Makes testDragAppIconToMultipleWorkspaceCells more concise to avoid test timout." into main 2024-05-29 14:08:41 +00:00
Alex Chau 09ae3694e3 Merge "Address jank and memory issues with OverviewActionsView" into main 2024-05-29 09:36:37 +00:00
Vadim Tryshev 314c35c410 Removing high-level events mismatch diagnostics.
They hide actual sequences, are not necessary for Tigers who are power users and require maintenance.

Bug: 187761685
Test: presubmit
Flag: NONE for test
Change-Id: I5d4b3d80a916845fcf8c08a0ecd135527466fa5a
2024-05-28 13:36:19 -07:00
Jeremy Sim 1ab32a7942 Address jank and memory issues with OverviewActionsView
Attempt to improve jank and memory regressions by simplifying the view layout of OverviewActionsView.

Bug: 339688091
Bug: 339853741
Test: testSaveAppPairMenuItemOrActionExistsOnSplitPair()
Flag: EXEMPT bugfix
Change-Id: Ib4a7c5a813b221c0a083144e7fb1e1c5f3fedb1c
2024-05-28 13:16:52 -07:00
Kevin Liu a39a4695af Merge "Add strict_mode: false" into main 2024-05-28 20:09:05 +00:00
Sihua Ma 350c29a5f6 Move SettingsActivityTest to multivalent
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: None Test migration
Bug: 297950111
Fix: 325089136

Change-Id: I85a2ed62453088941cb12fee9067acb076819dc5
2024-05-28 18:05:14 +00:00
Xin Li 667b7f5d7a Merge 2024-06 Release (ab/AP2A.240605.024) to aosp-main-future
Bug: 343100748
Merged-In: I26f0ed9e921beac762f3f9e6aaceb1002ad4801a
Change-Id: Ib58ffbc33000d37eb9066354f217c95ca56091ac
2024-05-28 10:52:34 -07:00
Treehugger Robot f02bafdc07 Merge "Remove multivalentTestsForDeviceless symlink and make deviceless default" into main 2024-05-24 19:08:52 +00:00
Uwais Ashraf ba4fd32789 Remove multivalentTestsForDeviceless symlink and make deviceless default
Bug: 342146813
Test: Ran tests in studio
Flag: EXEMPT test build files
Change-Id: I0971a5b25a09069157bae51d518ddde502bd4e74
2024-05-24 15:51:04 +00:00
Charlie Anderson 3483b8e0cc Makes testDragAppIconToMultipleWorkspaceCells more concise to avoid test timout.
Removed part of test that is mostly covered already by testDragAppIcon

Bug: 340281870
Test: passing presubmit
Flag: NONE

Change-Id: I64f4db54ca89dedf4f8e5874bd72ae6d287a812c
2024-05-22 18:54:03 -04:00
Sihua Ma 1159c2546f Reapply "Move widget picker tests to Robolectric"
This reverts commit 97ee134acc.

Reason for revert: Fixed an issue with UI_HELPER_EXECUTOR that caused the flakiness

Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: None Test migration
Fix: 325088642
Fix: 325088805
Fix: 325089116
Fix: 325088960

Change-Id: I2f50c30d2c861e3bba8a8fa3ec547ca2ade6153a
2024-05-22 19:41:11 +00:00
Uwais Ashraf fe2107c59d Merge "Revert "Move widget picker tests to Robolectric"" into main 2024-05-21 23:05:12 +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
Treehugger Robot 1090d17651 Merge "Update DeviceProfileDumpTest to work with flag on and off." into main 2024-05-21 18:30:22 +00: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
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
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
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
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
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
Jagrut Desai 80b1ee3747 Merge "Removing Screen Record from TaplAddWidgetTest" into main 2024-05-16 19:11:23 +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
Jagrut Desai 5d3fde29bf Removing Screen Record from TaplAddWidgetTest
Test: Presubmit
Bug: 316910614
Flag: NONE
Change-Id: Ib993f047902859ffc62f313132289aa62ce18a79
2024-05-16 09:41:21 -07:00
Alex Chau ed9e3a8701 Merge "Convert TaksView to Kotlin" into main 2024-05-16 14:00:02 +00:00
Alex Chau 9565667813 Convert TaksView to Kotlin
- PS1: Android Studio conversion (unformatted, cannot compile)
- PS2: Fix compilation issues and formatting
- PS3: First pass ready for review
- PS4: Minor changes (Remove Consumer, remove unnecessary null-checks)
- PS5: Removed check() around taskContainers, which is now lateinit and should always be initiailzed. Also ensure TaskView is bound before adding to parent.
- PS6: Move a bunch of getters to use .property style
- PS8: Refacoted RecentsView.applyLoadPlan bind logic, to avoid inflating TaksView, bind, add then immediatley remove
- PS10: Turned more functions to express functions; added an extension function
- PS11: Re-order functions, no code changes
- PS12: Reverted unit express function back to {} style

Bug: 339787593
Test: Manual
Flag: NONE
Change-Id: I75c06cf29718d8f258a4124997bcb054f5eb056f
2024-05-16 12:33:28 +01:00
Treehugger Robot 91ff82f9f7 Merge "Reformatting a comment." into main 2024-05-15 16:56:55 +00:00
Pat Manning 9775908d31 Merge "Promote all apps exit search keyboard test to presubmit." into main 2024-05-15 13:55:19 +00:00
Pat Manning 9d1c002e48 Promote all apps exit search keyboard test to presubmit.
Bug: 310242894
Test: TaplKeyboardFocusTest
Change-Id: I9a803bf275b3377f0e26ea8a71c1113546a00616
2024-05-14 13:54:04 +00:00
Shamali P 4f492626bd Clean-up unused categories (follow up cleans up strings)
Bug: N/A
Test: Unit tests
Flag: N/A
Change-Id: Id3bd76858d731b9e0eb977c094ebd3b19e1338ce
2024-05-13 23:13:56 +00:00
Brandon Dayauon a4c33bfbaa Merge "Remove comment on workProfileTest" into main 2024-05-13 18:28:06 +00:00
Anushree Ganjam c7b561cec1 Merge "Verify the PrivateProfileManager.isEnabled() is called atleast once." into main 2024-05-10 23:30:27 +00:00
Brandon Dayauon d7dc05f851 Remove comment on workProfileTest
Work profile doesn't fail to create anymore. Can remove commented line

bug: 339884168
Test: presubmit
Flag: n/a
Change-Id: I1783bb35fac3dff1762af911b3cccddaec367b0c
2024-05-10 13:43:49 -07:00