Alex Chau
5837a4628c
Add Repository for RecentOrientedState and DeviceProfile
...
- DeviceProfile have java fields that cannot be mocked, nor can be freely instantiated, so I've to use FakeInvariantDeviceProfileTest to give me some predefined DeviceProfile for testing
Bug: 343101424
Test: RecentsOrientedStateRepositoryTest
Test: RecentsDeviceProfileRepositoryTest
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: Iaa34ef60a418eb336859d260f5808b263de6b4f7
2024-07-17 11:29:20 +01:00
Fengjiang Li
7f81733666
Merge "[Test Week] Add RunnableListTest" into main
2024-07-17 07:10:24 +00:00
Treehugger Robot
984ea0b9d8
Merge "Adding screen record for the bug where Play Store is not present on the workspace" into main
2024-07-17 03:33:12 +00:00
Vadim Tryshev
1b540e7a99
Adding screen record for the bug where Play Store is not present on the workspace
...
Bug: 330232490
Test: presubmit
Flag: TEST_ONLY
Change-Id: I147cd0b45298a9b34c3dfb331af80e1253c013c4
2024-07-16 18:45:05 -07:00
Treehugger Robot
52f7fc5ef6
Merge "Unit tests for ListenableHostView" into main
2024-07-17 01:17:57 +00:00
Vadim Tryshev
243650e2cb
Adding screen record for the bug where we can't find a folder after dragging
...
Bug: 353600888
Test: presubmit
Flag: TEST_ONLY
Change-Id: Idc26dc294aa05a88ce590f9466e60adf2d2f4898
2024-07-16 17:40:17 -07:00
Stefan Andonian
3e28e9c829
Merge "[Test Week] Unit test for WidgetAddFlowHandlerTest." into main
2024-07-16 23:25:57 +00:00
Stefan Andonian
f50dca1138
Merge "[Test Week] Unit test for WidgetManagerHelperTest." into main
2024-07-16 23:07:40 +00:00
Jagrut Desai
c6c95c8381
Merge "Remove getWorkspaceIconsPositions()" into main
2024-07-16 22:37:29 +00:00
Fengjiang Li
9569f54008
[Test Week] Add RunnableListTest
...
Number of new tested methods: 5
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I546a775530cdf61424f1047e81e79c28fa7c63e4
2024-07-16 15:26:36 -07:00
Vadim Tryshev
78e9ef2b12
Merge "Increase clearPackageData timeout" into main
2024-07-16 21:52:28 +00:00
Stefan Andonian
2e1bb929ba
Unit tests for ListenableHostView
...
3 public methods.
Bug: 353303621
Test: unit test CL.
Flag: EXEMPT unit test
Change-Id: If5e3b4f8e6f2fa2c2e44907a1a8080215f231ca2
2024-07-16 21:03:56 +00:00
Stefan Andonian
35b584d0ef
[Test Week] Unit test for WidgetAddFlowHandlerTest.
...
8 public methods covered.
Bug: 353303621
Test: Unit Test
Flag: EXEMPT unit test
Change-Id: I5dd20de33b64de561ee8845beaa513b4e08c3a31
2024-07-16 20:58:39 +00:00
Stefan Andonian
19c5f7ae71
[Test Week] Unit test for WidgetManagerHelperTest.
...
6 public methods covered.
Bug: 353303621
Test: Unit Test
Flag: EXEMPT unit test
Change-Id: I549d97f5b57f0e6e9af44bd1695d94ebfa0538f2
2024-07-16 20:58:11 +00:00
Jagrut Desai
6276f1797b
Remove getWorkspaceIconsPositions()
...
This cl addresses
- removing of getWorkspaceIconsPositions()
- addition of getWorkspaceIconPosition()
getWorkspaceIconsPositions() was not reliable as it was getting any icon selector and not actually waiting for the icon of intereset.
now we wait for specific icon of interest and tests are change accordingly.
Test: Presubmit
Bug: 319501259
Flag: TEST_ONLY
Change-Id: Ia65b9d51520763a7fbbb8d5cd3bc129496e443cc
2024-07-16 13:48:27 -07:00
Vadim Tryshev
be508f4aa1
Adding screen record for the bug where com.google.android.apps.nexuslauncher:id/popup_container is not present
...
Bug: 349439239
Test: presubmit
Flag: TEST_ONLY
Change-Id: I177080040244462c8d1ca36ec433d36a7fbd7897
2024-07-16 13:24:33 -07:00
Vadim Tryshev
eeeaa6da56
Increase clearPackageData timeout
...
Apparently, on slow devices the operation may time out.
Bug: 353541583
Test: presubmit
Flag: TEST_ONLY
Change-Id: I6a569810d47452012f597e412311066c33aec7bb
2024-07-16 12:31:52 -07:00
Fengjiang Li
6cd7630504
[Test Week] Move ViewCacheTest.kt to multivalentTests folder
...
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: Ie969e9bffecf61bbcfd7b2132ef7a5df1d97cbed
2024-07-16 11:36:31 -07:00
Fengjiang Li
3f5e44e0cc
[Test Week] Add ViewOnDrawExecutorTest
...
Number of new tested methods: 7
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: Ic89984fac515924cf9a16ebc6fc7028325bed386
2024-07-16 11:32:54 -07:00
Fengjiang Li
f04eeb5eee
Merge "[Test Week] Add ViewCacheTest" into main
2024-07-16 16:36:28 +00:00
Fengjiang Li
7c8f90f04a
[Test Week] Add ViewCacheTest
...
Number of new tested methods: 3
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I235ba375db12b9f3fac6f204018b32e692835eab
2024-07-15 16:51:10 -07:00
Sihua Ma
7098ba260f
Add test for LauncherWidgetHolder
...
Number of new tested methods: 8
Test: atest NexusLauncherRoboTests:LauncherWidgetHolderTest
Test: SysUI studio
Flag: TEST_ONLY
Bug: 353303621
Change-Id: I8751c8de8d719e567775368d988794b2d7abc37e
2024-07-15 22:51:04 +00:00
Andrew Cole
d798e6d1f9
Test Week - Deleting NexusTestInformationHandler
...
NexusTestInformationHandler only relied on one boolean switch that is not currently used so I am deleting it.
Bug: 353303621
Test: TAPL
Flag: TEST_ONLY
Change-Id: I6181d47561b318d1eb1bd632d4ae042e126cfdb9
2024-07-15 11:57:47 -07:00
Sebastian Franco
e84cdcc468
Promote test testAddDeleteShortcutOnHotseat
...
Flag: TEST_ONLY
Test: testAddDeleteShortcutOnHotseat
Bug: 338869019
Change-Id: Ib3dd4fec0e8e6b4ac9e4233172197b557890ab15
2024-07-11 17:56:44 -07:00
Treehugger Robot
21b2215968
Merge "Add debug logs to print stack trace for Private space flaky test." into main
2024-07-11 21:48:41 +00:00
Fengjiang Li
dd7471f3bf
Merge "[Launcher Jank] Improve SimpleBroadcastReceiver.java" into main
2024-07-11 20:22:22 +00:00
Treehugger Robot
01b577432a
Merge "Add screenrecord to testDragIconToPage2" into main
2024-07-11 19:27:59 +00:00
Fengjiang Li
b87ad6f945
[Launcher Jank] Improve SimpleBroadcastReceiver.java
...
Bug: 348649441
Flag: NONE - jank fix
Test: manual - presubmit
Change-Id: I17bd7e4d7f0640522476e94edae691f983835f62
2024-07-11 11:12:29 -07:00
fbaron
cf55a30dcf
Add screenrecord to testDragIconToPage2
...
Flag: TEST_ONLY
Bug: 352130094
Test: TaplTwoPanelWorkspaceTest#testDragIconToPage2
Change-Id: I0358e4da22afc19a8d976d529c68f09529247ca7
2024-07-11 10:49:58 -07:00
Johannes Gallmann
82f7b5ad44
Fix onUserInteraction not called with 3-button-nav and enableOnBackInvokedCallback=true
...
We should ignore KeyEvents with the FLAG_CANCELED flag in log analysis for Launcher tests as these KeyEvents should not have any effect.
Bug: 346943119
Flag: com.android.window.flags.predictive_back_system_anims
Test: atest BackNavigationTests
Test: atest OnBackInvokedCallbackGestureTest
Test: Manual, i.e. verifying in a test app that onUserInteraction is called when pressing back key in 3-button-nav and when enableOnBackInvokedCallback=true
Change-Id: Icff47009757c49cdd8998244dd3e9459cc6ee085
2024-07-11 08:25:13 +00:00
Anushree Ganjam
f828683fa8
Add debug logs to print stack trace for Private space flaky test.
...
From the failure test videos, it looks like scrollToTop gets called https://b.corp.google.com/issues/339737008#comment15 .
Bug: 339737008
Test: Manual
Flag: TEST_ONLY
Change-Id: I61a95ff45fa4409f8f1b243ac435002556a16677
2024-07-10 13:44:11 -07:00
Sebastián Franco
6e43c6aadf
Merge "Moving ReorderWidgetsTest to an integration test instead of E2E" into main
2024-07-10 18:28:08 +00:00
Federico Baron
f30a5a3ca1
Merge "Revert "Add screenrecord/demote TwoPanelWokrspaceTest"" into main
2024-07-10 18:16:50 +00:00
Federico Baron
89414e403c
Revert "Add screenrecord/demote TwoPanelWokrspaceTest"
...
This reverts commit 09ac97fa39 .
Reason for revert: fixed issue
Change-Id: I269fbcedc161ff340eaa17d6a37c18cba7ce0848
2024-07-10 16:40:05 +00:00
Sebastian Franco
224f67a046
Moving ReorderWidgetsTest to an integration test instead of E2E
...
Flag: TEST_ONLY
Test: IntegrationReorderWidgetsTest
Bug: 324261526
Fix: 343761044
Change-Id: I9bfe8b587e1024260ddeeb48157c3d204f2d58f2
2024-07-10 04:20:41 +00:00
Treehugger Robot
c16efda876
Merge "Re-promote fixed test openPrivateSpaceSettings_triggersCorrectIntent to presubmit" into main
2024-07-09 21:53:16 +00:00
Federico Baron
44faf4cc9e
Merge "Add screenrecord to TaplThemeIconsTest#testShortcutIconWithTheme" into main
2024-07-09 17:09:46 +00:00
Federico Baron
501e4ab75a
Merge "Revert "Fix attempt for TaplTwoPanelWorkspaceTest#testSinglePageDragIconWhenMultiplePageScrollingIsPossible"" into main
2024-07-09 16:47:18 +00:00
fbaron
fd2fc06d69
Add screenrecord to TaplThemeIconsTest#testShortcutIconWithTheme
...
Flag: TEST_ONLY
Test: TaplThemeIconsTest#testShortcutIconWithTheme
Bug: 350557998
Change-Id: I38eb6558ece4cc23272a813d52ea677b8d9ad2cb
2024-07-08 15:41:06 -07:00
Federico Baron
20e7a59bff
Revert "Fix attempt for TaplTwoPanelWorkspaceTest#testSinglePageDragIconWhenMultiplePageScrollingIsPossible"
...
This reverts commit 347b408f90 .
Reason for revert: didn't resolve the issue
Change-Id: I05563ffd3c83b4633007407953e2050ee2c87866
2024-07-08 22:32:48 +00:00
Federico Baron
651448cb98
Merge "Demote TaplThemeIconsTest#testShortcutIconWithTheme" into main
2024-07-03 22:43:39 +00:00
fbaron
7672f320e8
Demote TaplThemeIconsTest#testShortcutIconWithTheme
...
Bug: 350557998
Test: TaplThemeIconsTest#testShortcutIconWithTheme
Flag: TEST_ONLY
Change-Id: I236fdd0bab678a385553d40f8a0dabbe78f92b5b
2024-07-03 13:51:53 -07:00
Federico Baron
025c8a0cc0
Merge "Add test for Folder undoing behavior" into main
2024-07-02 23:57:21 +00:00
fbaron
df62b6ffd7
Add test for Folder undoing behavior
...
Fix: 341799410
Test: FolderTest#undoFolder
Flag: TEST_ONLY
Change-Id: I8bfb3fc9348290274b33f4b5b6531126c658037c
2024-07-02 15:02:09 -07:00
Federico Baron
f4aa900009
Merge "Fix attempt for TaplTwoPanelWorkspaceTest#testSinglePageDragIconWhenMultiplePageScrollingIsPossible" into main
2024-07-02 15:31:50 +00:00
fbaron
347b408f90
Fix attempt for TaplTwoPanelWorkspaceTest#testSinglePageDragIconWhenMultiplePageScrollingIsPossible
...
Bug: 344982276
Test: TaplTwoPanelWorkspaceTest#testSinglePageDragIconWhenMultiplePageScrollingIsPossible
Flag: TEST_ONLY
Change-Id: I2f02b769aaae353d48501b8e3551a8d0939064c6
2024-07-01 10:25:27 -07:00
Kevin Lim
188202f927
[E2E] Re-enable stable widget tests.
...
Bug: b/310242894
Flag: EXEMPT E2E test re-enabling
Test: http://android-build/test_hub/search/?filter=lowFailureRate&invfilter=unhealthyInvocations&invfilter=staleInvocations&query=branch%3Agit_main+target%3A%28cf_x86_64_phone-trunk_food-userdebug%7Ccf_x86_64_phone-trunk_staging-userdebug%29+testsub%3A%28testPendingWidget_withConfigScreen%7CtestPendingWidget_notRestored_brokenInstall%29
Change-Id: I25c48e07d6cebcc3b5bb61f1583a3859c4c0eb80
2024-06-28 21:11:59 +00:00
Vadim Tryshev
09011fcd07
Re-promote fixed test openPrivateSpaceSettings_triggersCorrectIntent to presubmit
...
Bug: 339109319
Test: presubmit
Flag: TEST_ONLY
Change-Id: I4873ac3eb258dba30136534e3df6a1a378a3c29a
2024-06-27 15:30:06 -07:00
Federico Baron
33f2e36ee4
Merge "Promote test testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty" into main
2024-06-27 20:30:45 +00:00
fbaron
f408badf13
Promote test testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty
...
Flag: TEST_ONLY
Test: TaplTwoPanelWorkspaceTest#testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty
Bug: 329935119
Change-Id: I4fe2967924dd9ef083ed711802eadd277d1164e5
2024-06-27 09:09:06 -07:00