Sihua Ma
ea913b3dee
Merge "Migrate responsive tests to multivalent" into main
2024-06-13 17:13:06 +00:00
Sihua Ma
73c766d75d
Migrate responsive tests to multivalent
...
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: TEST_ONLY
Fix: 325088640
Change-Id: I32cce09ff7ef070b6c86b6440723006b5cb503cf
2024-06-13 09:48:09 +00:00
Uwais Ashraf
eecadb0432
Enable UtilitiesKtTest for multivalent. Remove test resource
...
Fix: 325088427
Test: UtilitiesKtTest in studio and presubmit
Flag: EXEMPT test-only
Change-Id: I71b77c4633b1075f643ed479f8224f9b80811f54
2024-06-11 22:38:34 +00:00
Sihua Ma
c22a8e7495
Merge "Migrate GeneratedPreviewTest to multivalent" into main
2024-06-10 20:57:00 +00:00
Sihua Ma
de5ef62967
Migrate GeneratedPreviewTest to multivalent
...
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Fix: 325088369
Flag: TEST_ONLY
Change-Id: I2c88a357c8ac5fb0171a70e850be25e8fb11de33
2024-06-10 16:49:47 +00:00
Uwais Ashraf
8e537d1ee5
Merge "Move AppFilterTest to Deviceless" into main
2024-06-10 08:22:00 +00:00
Andrew Cole
8a4af691c8
Move AppFilterTest to Deviceless
...
Bug: 297950111
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: TEST_ONLY
Change-Id: I9e12a23966017aa2136f92e84eebb216ed8525cf
2024-06-07 15:38:17 -07:00
Alex Chau
0d934c47e5
Add test for UserBadgeDrawable alpha handling
...
Fix: 316576459
Test: UserBadgeDrawableTest
Flag: EXEMPT bugfix
Change-Id: I3819855f8cac24176ea734bd6a0ac7bffd17e900
2024-06-07 11:39:21 +01:00
Treehugger Robot
e8638f4eb2
Merge "Run UiThreadTest in LauncherMultivalentJUnit" into main
2024-06-05 17:02:46 +00:00
Andrew Cole
2c3ebd71f2
Merge "First Unit Tests for Utilities.java" into main
2024-06-04 21:28:50 +00:00
Treehugger Robot
fb133bdb69
Merge "Allow DeviceProfile tests to run on TreeHugger Robolectric device" into main
2024-06-04 12:28:42 +00:00
Uwais Ashraf
801563328a
Allow DeviceProfile tests to run on TreeHugger Robolectric device
...
Bug: 325088842
Test: Presubmit passes
Flag: EXEMPT test-only
Change-Id: Id2856b2016b2e1ba467c7b8e830631f5253d6b8c
2024-06-04 11:03:34 +00:00
Uwais Ashraf
050ff39fe2
Revert flaky FolderNameProviderTest
...
Bug: 325088328
Test: Presubmit passes
Flag: EXEMPT test-only
Change-Id: I22c0bfdea32f552ffdb5dacc34038f7b1c668762
2024-06-03 15:35:13 +00:00
Shamali Patwa
8e7613e4c7
Fix test failure in post submit
...
Bug: 343937933
Change-Id: Ie989e4ce4f098a225873d13de9c6913933e5628e
Test: Unit test fix
Flag: None test fix
2024-05-31 21:59:41 +00:00
Andrew Cole
967dd54595
First Unit Tests for Utilities.java
...
Writing some initial unit tests for Utilities.java to get others started so they can easily add to the party.
Bug: 297950111
Test: Self
Flag: TEST_ONLY
Change-Id: I3323e6483790e2c2fbbd5c8db0281802abf0749b
2024-05-31 14:50:48 -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
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
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
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
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
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
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
Sihua Ma
1593bb4af2
Move cell layout tests to deviceless tests
...
Excluding Tapl tests
Also adding Launcher3 test assets to Launcher3TestResources
Bug: 297950111
Flag: None
Test: atest Launcher3RoboTests
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Change-Id: I101fc7229252016ec7e5015ed5f6a5b4dbba894d
2024-05-08 00:52:43 +00:00
Sunny Goyal
0f4bc92653
Creating a custom runner for multivalent tests with Launcher specific features
...
Bug: 338128923
Test: Verified by modifying a test
Flag: None
Change-Id: I1f04e28847ff9c0f7af3c0d952038ad24d03c17e
2024-05-06 12:10:21 -07:00
Sunny Goyal
8dec848ad2
Merge "Adding a special runner to run simulate multiple devices when running robo tests" into main
2024-05-04 03:13:27 +00:00
Sunny Goyal
86145f49fb
Adding a special runner to run simulate multiple devices when running robo tests
...
Bug: 338128923
Test: Verrified by modifying a test
Flag: None
Change-Id: I133842d68e437b971da39e2081c8859515463cd3
2024-05-03 15:54:40 -07:00
Kevin Lim
c338db0a67
[Deviceless] Move BubbleTextViewTest to multivalentTests for deviceless
...
testing.
Bug: b/297950111
Flag: NA
Test: atest Launcher3RoboTests
Test: atest NexusLauncherRoboTests
Test: Passes in SysUI Studio
Change-Id: Ib94e704836e0e21b8f8f05d987bec3e8ba633afa
2024-05-02 22:53:41 +00:00
Sunny Goyal
993893895c
Converting ModelTask to an interface instead of an abstract class
...
This allows extensibility and better use of lambdas
Bug: 338282246
Test: Presubmit
Flag: None
Change-Id: Ia41067f0068b3b631eeb4faf877dc77f8587e1f6
2024-05-01 15:43:26 -07:00
Sunny Goyal
fdae170684
Fixing robolectric tests not running on UI thread after changing looper mode
...
Bug: 297950111
Flag: None
Test: Presubmit
Change-Id: I9351474ba4d377e8e9539f9b3d22d5ba15ac6a44
2024-04-24 16:42:30 -07:00
Sunny Goyal
10fa016352
Fixing MainThreadInitializedObject
...
> Making SafeCloseable implementation mandatory, to prevent leaks during test and preview
> Removing getNoCreate method and defining executeIfCreated to avoid null pointer exceptions
> Fixing sandbox value leaking into main, by Checking sandbox against App context
> Converting sanbox to an interface instead a class
Bug: 335280439
Test: Presubmit
Flag: None
Change-Id: I951dcde871898e745ff6490a1c4f8fd1512888f5
2024-04-22 17:04:33 -07:00
Sunny Goyal
4a22ed81ea
Using resource overrides for PluginManager instead of code-swap
...
Bug: 330920490
Test: Presubmit
Flag: None
Change-Id: Ib1cd50f95873928b9ce104e8e95d21f1dca9c6e3
2024-04-12 11:38:32 -07:00
Sunny Goyal
8049369af8
Freezing legacy feature flags
...
Legacy feature flags will be locked to their current values in code.
All new feature development should use aconfig flags
Bug: 332588958
Flag: None
Test: Presubmit
Change-Id: Ie72dd8276b7135620de279835d6721a34f82ede4
2024-04-09 15:26:07 -07:00
Sunny Goyal
8ecbaa422f
Merge "Moving various nav-bar configs out of feature flags" into main
2024-04-09 05:45:21 +00:00
Uwais Ashraf
fe1a9c36b7
Merge "Use script to auto-enable all tests that are currently working" into main
2024-04-09 00:01:05 +00:00
Sunny Goyal
89931316a2
Moving various nav-bar configs out of feature flags
...
Bug: 332588958
Test: Presubmit
Flag: None
Change-Id: Ia4dc5b69bcf4d461e3444b9e37bb7334bb74aae4
2024-04-08 16:54:04 -07:00
Vadim Tryshev
47f192f3be
Merge "Restoring the full set of combinations in testDragShortcutToMultipleWorkspaceCells in presubmit" into main
2024-04-08 23:02:42 +00:00
Uwais Ashraf
7a0150d02e
Use script to auto-enable all tests that are currently working
...
Fix: 325088906
Test: presubmits passing, gradle robo run passing locally
Flag: NA
Change-Id: I481bfe9caeb8cc18b3e01ec8b7a58fb0eb36fdaa
2024-04-08 20:59:23 +00:00
Vadim Tryshev
785da8d60a
Restoring the full set of combinations in testDragShortcutToMultipleWorkspaceCells in presubmit
...
Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: Ib345c94c79c7dda72283eb03515cd254e31e7c0b
2024-04-01 18:01:54 -07:00
Jeremy Sim
742630c2f8
Reparent folders and app pairs
...
Previously, app pairs and folders shared a common data model, FolderInfo. Now we need to separate them, so a new type, CollectionInfo, will serve as the parent of both types.
Bug: 315731527
Fixes: 326664798
Flag: ACONFIG com.android.wm.shell.enable_app_pairs TRUNKFOOD
Test: Manual, unit tests to follow
Change-Id: Ia8c429cf6e6a376f2554ae1866549ef0bcab2a22
2024-03-29 15:39:28 -07:00
Sihua Ma
9b1a028bd4
Revert^2 "Move FastBitmapDrawableTest to Robolectric"
...
393477ca54
Change-Id: I051d2456c6930336c92ffe4c6101e6dd77a502c0
2024-03-21 21:50:20 +00:00
Priyanka Advani
393477ca54
Revert "Move FastBitmapDrawableTest to Robolectric"
...
Revert submission 26605558-robolectric-enable-androidx-rules
Reason for revert: Droid-monitor created revert due to build breakages in b/330752689.
Reverted changes: /q/submissionid:26605558-robolectric-enable-androidx-rules
Change-Id: I7cb746baffc9bec3315dd324173fd9bde100e4cf
2024-03-21 19:07:50 +00:00
Sihua Ma
cc54051d12
Merge "Move FastBitmapDrawableTest to Robolectric" into main
2024-03-21 17:06:45 +00:00
Sunny Goyal
5ca50490a3
Making some classess accessible in multivalent tests
...
Bug: 297950111
Flag: None
Test: Presubmit
Change-Id: I2e4b18fc279cb96b3f68d64f95703c11bb885b2a
2024-03-20 13:30:40 -07:00
Sihua Ma
4ff471c2f0
Move FastBitmapDrawableTest to Robolectric
...
Flag: N/A
Bug: 297950111
Test: atest Launcher3RoboTests
Change-Id: Icef741a1c19bb494f7b74078ce1e7f52ed55a769
2024-03-19 20:27:29 +00:00
Uwais Ashraf
cf70589921
Merge "Enable tests which do not require any modification" into main
2024-03-13 15:42:07 +00:00