Commit Graph

1491 Commits

Author SHA1 Message Date
TreeHugger Robot 73ad3abc29 Merge "Restoring generating artifacts" into sc-v2-dev 2021-08-13 00:44:57 +00:00
vadimt 303298de84 Restoring generating artifacts
Bug: 189874683
Test: presubmit
Change-Id: I82503900a8b7ce916a54437456007dec00016c47
2021-08-12 16:04:05 -07:00
vadimt 5f80e92bda Not using shell command to enable test provider
Shell command can kill app

Test: presubmit
Bug: 188806432
Change-Id: Id512eb16d26cc4b324574a2a6a15f4805e426b9f
2021-08-12 10:28:45 -07:00
TreeHugger Robot 69f2dc2b49 Merge "Even further increase FORCE_PAUSE_TIMEOUT in tests" into sc-v2-dev 2021-08-11 19:19:59 +00:00
Alex Chau c2441dffbe Even further increase FORCE_PAUSE_TIMEOUT in tests
- http://b//194114179#comment17 shows that 900ms should work for most cases

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: Ie2832d7ad25b0844121ecf626903140bfeedc5ba
2021-08-11 18:36:42 +01:00
Alex Chau 2a4c978371 Clean up ScreenRecord for AddWidgetTest
Bug: 195263971
Test: manual
Change-Id: I5880c9aa0294795d7a5827163f3f51466b67ad35
2021-08-11 10:06:05 +01:00
Alex Chau e9dbb0d952 Use windowInsets for bottomGestureSize instead of gestureInsets
- getTargetInsets will be reverted to its behavior before ag/15431427
- getBottomGestureSize will use the new getWindowInset call uses windowInsets instead of the max of windowInsets/gestureInsets, with the taskbar inset calibration

Bug: 195263971
Test: com.android.launcher3.ui.widget.AddWidgetTest#testDragCustomShortcut
Change-Id: I89368edee5252a404ef490db6540734ec4806f2b
2021-08-09 18:49:29 +01:00
TreeHugger Robot 0a39f6daec Merge "Diagnose when lab device sends fake touch screen events to test" into sc-v2-dev 2021-08-09 11:00:45 +00:00
vadimt 6b534ee54f Diagnose when lab device sends fake touch screen events to test
Bug: 189874683
Test: local
Change-Id: I8ac569ab049bafaa0a6263598f2b43a99386e6d9
2021-08-06 15:49:02 -07:00
Vadim Tryshev ed53d1c21c Revert "Revert "Removing workaround for battery defender""
This reverts commit f9ccf0175d.

Reason for revert: to see whether b/151613234 is fixed

Test: pre-, post- submit
Bug: 151613234
Change-Id: Ieda2907319d796a57494318920c22f3db4527dab
2021-08-05 20:52:58 +00:00
TreeHugger Robot 1ac67e4314 Merge "Allow Sv2 in launcher build version" into sc-v2-dev 2021-08-05 20:28:05 +00:00
Alex Chau 2994df043a Allow Sv2 in launcher build version
Bug: 195632795
Test: atest NexusLauncherTests:com.google.android.apps.nexuslauncher.wellbeing.WellbeingTests#testPauseAppFromOverview
Change-Id: If0c047bfc64e17de71e9861e27c3a1373577e398
2021-08-05 19:10:17 +01:00
Alex Chau 3a02b9ce9f Further increase FORCE_PAUSE_TIMEOUT in tests
- Test result has been improved by ag/15455154, but flakiness still exist, further increase the timeout to see if it helps

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: I0421a969a30d9c8b259aeb21059e2219f43174f7
2021-08-05 13:55:52 +01:00
Alex Chau 0dfe56cff1 Increase motion pause timeout for tests
- In cuttlefish occasionally MOTION_MOVE and MOTION_UP takes more than 300ms due to lag, increasing the motion pause timeout to avoid getting false signals in tests

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: I0a33f34b5bf96f4f7ae56020c5a27f4ef9a0ff64
2021-08-04 20:09:06 +01:00
TreeHugger Robot 1179930b74 Merge "Logging to figure out why first dump didn't result in assertion" into sc-v2-dev 2021-08-03 20:05:19 +00:00
vadimt 25f1cd94cc Logging to figure out why first dump didn't result in assertion
Bug: 195319692
Test: presubmit
Change-Id: I4a80541a58eb8f630211de4b90836c435f6d41b2
2021-08-03 11:09:30 -07:00
Alex Chau 9016e17988 Add ScreenRecord for testDragCustomShortcut
- For investigation of a failing test

Bug: 195263971
Test: manual
Change-Id: If68e678a847f70c5b891c9dbcece77333fedf846
2021-08-02 10:49:42 +01:00
Alex Chau 6951aef060 Fix Launcher3 tests for tablets
- Consider taskbar size for bottom gesture size, by using TargetInsets
- TargetInsets should substract overlapping taskbar size when it's present
- For pressHome, use the same gesture scope when context menu is present as well.
- For pressHome, GestureScope.INSIDE_TO_OUTSIDE should only be used when it's already at home screen on launcher3 tablet.

Bug: 193539246
Test: NexusLauncherTest and Launcher3Test
Change-Id: I4a20522f3b38ef326acae4b189df11a125990411
2021-07-30 20:39:05 +01:00
Alex Chau 27ee6447db Clean up screen record for tests
- Add new record and remove obsolete ones

Bug: 193440212
Bug: 193125090
Bug: 192005114
Test: manual
Change-Id: I860c42961e710e1542d9d911338dd359896b6970
2021-07-29 11:01:09 +01:00
TreeHugger Robot 4a0cd5abff Merge "Re-enabling getting stability flavor. Can parse Launcher version Tiramisu. Also removes patterns that were used in the unbundled branch." into sc-v2-dev 2021-07-26 20:45:19 +00:00
vadimt e7f064eb85 Re-enabling getting stability flavor.
Can parse Launcher version Tiramisu.
Also removes patterns that were used in
the unbundled branch.

Test: presubmit
Bug: 194528425
Change-Id: I43cca43ed1735cf8ed8845a614768bc42b1403f6
2021-07-24 01:55:50 +00:00
Vadim Tryshev 192cbbbdd3 Merge "Initial workaround for changed platform codename breakage" into sc-v2-dev 2021-07-24 00:55:57 +00:00
TreeHugger Robot 2be2590698 Merge "Diagnosing when only SysUI is visible." into sc-v2-dev 2021-07-23 22:43:12 +00:00
vadimt 8ace5d204b Initial workaround for changed platform codename breakage
Test: presubmit
Bug: 194528425
Change-Id: I703da06bbfe5cd28011f7693b16cc0cc263a23ee
2021-07-23 15:33:13 -07:00
vadimt 715dc428e3 Diagnosing when only SysUI is visible.
Test: presubmit
Bug: 187761685
Change-Id: Ia4c7305193c104db4999dfb463004165d8f8b578
2021-07-23 11:21:41 -07:00
TreeHugger Robot 8a4a99ed95 Merge "Improving diags for launching an app." into sc-v2-dev 2021-07-23 04:12:08 +00:00
TreeHugger Robot 8aac1952af Merge "Dump accessibility hierarchy on test failure" into sc-v2-dev 2021-07-23 03:42:48 +00:00
TreeHugger Robot ec4be03dd3 Merge "Improving diags when Launcher is invisible when the test fails" into sc-v2-dev 2021-07-23 03:42:39 +00:00
vadimt 771da0c00f Improving diags for launching an app.
Test: presubmit
Bug: 187761685
Change-Id: I8c304dbabc474e39aa8fe1cca234140823764099
2021-07-22 19:02:51 -07:00
vadimt cf1c28ef73 Dump accessibility hierarchy on test failure
This will allow seeing exactly what the test sees.

Test: local runs
Bug: 187761685
Change-Id: Ibf4b97bd9b99d4b40def4eb3db9a2cd1b47defb1
2021-07-22 16:00:53 -07:00
vadimt 6c1331ca42 Improving diags when Launcher is invisible when the test fails
Test: presubmit
Bug: 187761685
Change-Id: I69a930ef076dbf6cca5af516228ebe689fac91eb
2021-07-21 18:50:32 -07:00
Alex Chau 2450adf56f Always use INSIDE_TO_OUTSIDE scope when swiping to home in tablets
- In tablets user is either in home screen or there is a taskbar on screen, so swipe to home will always touches the launcher

Bug: 193653850
Test: StartLauncherViaGestureTests
Change-Id: Id1b05708324302eb4b4c2d623ca9fe27090188fc
2021-07-21 14:52:01 +01:00
Alex Chau 17e9b51e38 Merge "Wait for taskbar to become visible after closing launcher in tests" into sc-v2-dev 2021-07-20 22:59:31 +00:00
Alex Chau cd791c5c9d Wait for taskbar to become visible after closing launcher in tests
- Taskbar takes some time to appear after closing launcher and launching test app

Bug: 193653850
Test: StartLauncherViaGestureTests
Change-Id: I714e35ee855660ac28bb214386f48ddbea0e834c
2021-07-20 21:11:08 +01:00
Alex Chau dc66ec82a0 Merge "Re-enable leak detection on tablets" into sc-v2-dev 2021-07-20 20:09:38 +00:00
Vadim Tryshev 9d7cc7d59f Merge "Further improving TAPL error messages" into sc-v2-dev 2021-07-20 20:04:35 +00:00
Alex Chau c2181c2be4 Re-enable leak detection on tablets
Bug: 191449914
Test: NexustLauncherTests
Change-Id: Ia2fe0826c933e646260c16d8890aaf2a47023e6d
2021-07-20 12:27:51 +01:00
Vadim Tryshev 0e8f7098b4 Merge "Waiting for broadcasts idle in TaplInstrumentation constructor" into sc-v2-dev 2021-07-19 22:03:43 +00:00
Alex Chau 97cba26a20 Wait for dismiss animation to finish before checking task count
- See http://b/193440212#comment5, TaskView takes time after swipe gesture to finish dismiss animation, so wait for the animation to finish before checking task count

Bug: 193440212
Test: TaplTestsQuickstep#testOverview
Change-Id: I21397e68f384e956a7c9f2ee8a8161ac784b4d2e
2021-07-19 17:34:57 +01:00
vadimt b0def1ea21 Waiting for broadcasts idle in TaplInstrumentation constructor
Hoping that this will prevent Launcher restarts
during test execution.

Test: presubmit
Bug: 187761685
Change-Id: If9ba8795bcb27366dd1b2cdcad1c5329ef2e76c0
2021-07-16 19:27:44 -07:00
Alex Chau 0686931b68 Use DeviceProfile.isTwoPanels for two panels expectation in tests
Fix: 193810767
Test: TaplTestsLauncher3.testWorkspace
Change-Id: Ifec5506415b79f3effa84fe0163eb1bb2bc7cc8d
2021-07-16 15:14:34 +00:00
vadimt 7e8cda14a7 Further improving TAPL error messages
Old:
java.lang.AssertionError: http://go/tapl test failure:
Context: getting widget No Config in widgets list => resulting visible state is Widgets;
Details: Widgets container didn't become scrollable

New:
java.lang.AssertionError: http://go/tapl test failure: Widgets container didn't become scrollable;
Context: getting widget No Config in widgets list; now visible state is Widgets

Test: local runs
Bug: 187761685
Change-Id: I77a5b9133f577af27182f823e1130c371863e065
2021-07-15 17:42:09 -07:00
Sunny Goyal 711c596c86 Binding Taskbar directly from Launcher model
This allows taskbar to be loaded even in case of 3P Launchers
and removes dependency on LauncherActivity lifecycle

Bug: 187353581
Bug: 188788621
Test: Manual
Change-Id: I5a0988e0697b41677d4c58f0213aef14ec0c0972
2021-07-15 12:43:11 -07:00
Vadim Tryshev d6e33dc3ce Merge "Adding more context to swipe-to-home diags" into sc-v2-dev 2021-07-15 00:58:45 +00:00
TreeHugger Robot 6f20ec39dc Merge "Moving launcher state verification higher." into sc-v2-dev 2021-07-15 00:16:27 +00:00
vadimt b8d13d7a70 Moving launcher state verification higher.
This will result in better messages when accidentally scrolling
closes All Apps.

Test: presubmit
Bug: 187761685
Change-Id: Iadb8847ba66b1d6fe903577f67fcf3e504c2b28c
2021-07-14 22:13:11 +00:00
vadimt fa0be316df Adding more context to swipe-to-home diags
Test: presubmit
Bug: 187761685
Change-Id: I89c6bac2258e63d95971dec9a5c688125b885229
2021-07-14 22:12:31 +00:00
vadimt d0767c86ff Making it clear that the diagnosed state is the final, current one
Test: presubmit
Bug: 187761685
Change-Id: I739a0b9158518a3495b5df7010a0641ed8db8506
2021-07-14 22:11:39 +00:00
TreeHugger Robot dc955de0ea Merge "Remove press home command from AddConfigWidgetTest." into sc-dev am: 3ff0336f4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15188774

Change-Id: I33003e69aefe81ce6ec938376ceceb4c4ccd707b
2021-07-14 20:43:35 +00:00
TreeHugger Robot 3ff0336f4a Merge "Remove press home command from AddConfigWidgetTest." into sc-dev 2021-07-14 20:25:09 +00:00