Commit Graph

638 Commits

Author SHA1 Message Date
Winson Chung
58030642b0 Add tmp buffer to rounded corners
- Testing if this actually moves the gesture out of the screen decor area

Bug: 197326121
Test: Pre/postsubmit
Change-Id: I3c46ed3860ba6ba1fb605242b4f7242aaabc5672
2021-09-13 20:01:56 +00:00
Winson Chung
b42265861b Use max of corners when deciding gestures and add logs for corners
Bug: 197326121
Test: Pre/postsubmit
Change-Id: I1c083dc9234354f66cf1537f0cfe8c21f1e1be3b
2021-09-04 02:23:53 +00:00
Android Build Prod User
435e6a0443 Merge "Not using stale object to diagnose stale object" into sc-v2-dev 2021-08-27 02:48:56 +00:00
Android Build Prod User
50f928c388 Merge "Waiting for Launcher to settle after enabling test provider" into sc-v2-dev 2021-08-25 09:29:39 +00:00
vadimt
67a11ff6a5 Waiting for Launcher to settle after enabling test provider
I suspect that something happens in Launcher after enabling the provider
that causes "mismatched event sequence" errors.

This CL is to verify that.

Bug: 195031154
Test: presubmit
Change-Id: Ic22df5fa631b287b580f0aaf00c84cd408cb60b0
2021-08-25 01:30:45 +00:00
Android Build Prod User
497a6ad826 Merge "Improving diags for containers disappearing while getting children" into sc-v2-dev 2021-08-24 21:28:23 +00:00
TreeHugger Robot
907c22ca14 Merge "Not checking for some anomalies when switching nav modes" into sc-v2-dev 2021-08-24 19:49:41 +00:00
vadimt
51ae38304b Not checking for some anomalies when switching nav modes
Test: presubmit
Bug: 196820244
Change-Id: I3e9554d3deb453625cde5003ccf132f21253f58a
2021-08-24 17:23:12 +00:00
vadimt
767f02b809 Not using stale object to diagnose stale object
Test: presubmit
Bug: 187761685
Change-Id: Ifbe7f48515f575bfe08373592891e745112ac2a6
2021-08-23 17:49:59 -07:00
Vadim Tryshev
543f73a09d Merge "Waiting for Launcher to restart after enabling test provider" into sc-v2-dev 2021-08-18 18:48:52 +00:00
vadimt
272d622bc4 Improving diags for containers disappearing while getting children
Bug: 184609576
Test: presubmit
Change-Id: I7f527a9991a58fd148b17783078b5ac80979a5b3
2021-08-17 18:47:12 -07:00
vadimt
fa56d3ed27 Waiting for Launcher to restart after enabling test provider
Bug: 188806432
Test: presubmit
Change-Id: Ie821c7641c351e0926fff1b7218c4ed745d2dd8f
2021-08-16 18:37:28 -07:00
Tracy Zhou
180a7d97d7 Merge "Update LauncherInstrumentation to consider tablet w/o nav bar" into sc-v2-dev 2021-08-17 01:01:49 +00:00
TreeHugger Robot
32e573162d Merge "Removing unnecessary logging" into sc-v2-dev 2021-08-16 10:22:34 +00:00
TreeHugger Robot
a4937b2270 Merge "Revert "Not using shell command to enable test provider"" into sc-v2-dev 2021-08-13 23:27:18 +00:00
Vadim Tryshev
169c4e88cd Revert "Not using shell command to enable test provider"
This reverts commit 5f80e92bda.

Reason for revert: We need to see if this has caused b/196586808

Bug: 196586808
Test: presubmit
Change-Id: I078f0d4e83f5f1db19e9e0a5afec4f3058156745
2021-08-13 21:56:07 +00:00
TreeHugger Robot
87cf3efe06 Merge "Removing some instrumentation for a workarounded bug" into sc-v2-dev 2021-08-13 18:42:22 +00:00
Tracy Zhou
2bb92ba49d Update LauncherInstrumentation to consider tablet w/o nav bar
Bug: 191660313
Test: TaplTestsLauncher3
Change-Id: I7bbcc2f9c3eb7b62dc2abd94b63df22b7168bf15
2021-08-13 08:54:35 -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
vadimt
4381c3a343 Removing unnecessary logging
Test: presubmit
Bug: 190748682
Change-Id: I3a280b4f351098cf256d276baced6e13eb771eb3
2021-08-11 14:24:06 -07: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
vadimt
a1e0b01a44 Removing some instrumentation for a workarounded bug
Bug: 187080582
Test: Local, presubmit
Change-Id: I2334072bebc9d4e40d632fe068943bf5560f02e4
2021-08-10 18:43:40 -07: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
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
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
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
TreeHugger Robot
2be2590698 Merge "Diagnosing when only SysUI is visible." into sc-v2-dev 2021-07-23 22:43:12 +00: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
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
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
Vadim Tryshev
9d7cc7d59f Merge "Further improving TAPL error messages" into sc-v2-dev 2021-07-20 20:04:35 +00: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
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
13a423c327 Merge "Expect state transition to overview while holding the swipe from home" into sc-v2-dev 2021-07-14 19:11:55 +00:00
Alex Chau
58a11ac91b Expect state transition to overview while holding the swipe from home
- When swiping from home to overview, overview launches while the finger is still holding the gesture, which is different from swiping from app to overview

Bug: 193440212
Test: TaplTestQuickStep.testOverview and TaplTestQuickStep.testBackground
Change-Id: Ie45e9cb5e599175a56ed368bef107b84db919a34
2021-07-14 17:59:12 +01:00
Alex Chau
6168de06e5 Add logs for pressHome for isLauncherVisible
- Log isLauncherVisble right before the swipe gesture to see if it's a more accurate indicator compared to reading isLauncherVisble earlier

Bug: 193653850
Test: StartLauncherViaGestureTests#testStressPressHome
Change-Id: I4a8303a82f1106c0d1345f561ab469aa4ed59e51
2021-07-14 17:51:08 +01:00