Commit Graph

666 Commits

Author SHA1 Message Date
TreeHugger Robot 4f51725717 Merge "Adding waiting for Launcher initialization" into ub-launcher3-rvc-dev 2020-05-08 21:26:30 +00:00
vadimt 2794f563a0 Adding tracing for switching to overview instead of all apps
Bug: 156095088
Change-Id: I1257617192e913d06edd0879396957b1e40524b7
2020-05-08 10:39:29 -07:00
vadimt 60d3333ff0 Adding waiting for Launcher initialization
This may fix or ease TIS sometimes not receiving events.

Bug: 154157191
Change-Id: I5db9e88397788014dbba9716d777a2b97347828c
2020-05-08 09:29:08 -07:00
Vadim Tryshev 340e68219e Merge "Restarting event reader after reaching the end of stream" into ub-launcher3-rvc-dev 2020-05-07 21:29:46 +00:00
vadimt 3e089e8a26 Restarting event reader after reaching the end of stream
This should'n happen, but happens. The best we can do is to re-run the
logcat command.

Change-Id: I471d9f0188243c81585b75f81dd03450c1f7ad9b
2020-05-07 12:29:19 -07:00
TreeHugger Robot d4f87007b6 Merge "Likely, fixing view hierarchy changing during pressHome." into ub-launcher3-rvc-dev 2020-05-07 17:41:22 +00:00
vadimt 29896284a8 Likely, fixing view hierarchy changing during pressHome.
Test RequestPinItemTest.testPinShortcut doesn't wait for the add-to-home
prompt to disappear before proceeding to pressHome. So sometimes
pressHome still sees that prompt that disappears while pressHome is
executing.

Now waiting for the prompt to disappear.

Bug: 155926212
Change-Id: I2c7bfe26839ae406da592e81de8836666c373756
2020-05-06 19:08:59 -07:00
vadimt fbfe79d8a1 Debug tracing for view hierarchy changing during pressHome
Bug: 155926212
Change-Id: Ie9e8470c23b954890ae41fc9a442422f21093855
2020-05-06 16:41:13 -07:00
TreeHugger Robot fc9ea9b0fc Merge "Speeding up TAPL by calling getVisibleStateMessage() less frequently" into ub-launcher3-rvc-dev 2020-05-04 23:18:04 +00:00
TreeHugger Robot 7bb915ba8e Merge "Remove unnecessary waitForIdle calls" into ub-launcher3-rvc-dev 2020-05-04 22:44:21 +00:00
vadimt faf4da386d Speeding up TAPL by calling getVisibleStateMessage() less frequently
The information in the message can be derived from the object dump
printed anyways.

Change-Id: I22ee136568b767c3218eaabc3920c77b3ceaa78f
2020-05-04 15:40:47 -07:00
vadimt 357e5499a2 Remove unnecessary waitForIdle calls
They were added back in times when the
code was very different, and we don't need them now.

Change-Id: Ie96b081a4f2319c7b58d22ffc410f74e9ab56d94
2020-05-04 18:57:52 +00:00
vadimt 55495201e0 Avoiding cascading "nested events checking" failure after timed-out wait
Bug: 155656943
Change-Id: I0f11552349a9f6b3b14bd1bebb37904d5dfa9c55
2020-05-04 10:52:08 -07:00
vadimt 9fd3a943ba Don't do full anomaly check after every gesture
This call is relatively expensive. Perform only cheap launcher crash
test, and do anomaly only if there are problems.

Change-Id: If45567bcedf8d177970739e9de95cbb29add744c
2020-04-30 19:31:21 -07:00
TreeHugger Robot dfd8c4806f Merge "More logging for LogEventChecker appearing to skip events" into ub-launcher3-rvc-dev 2020-04-30 20:24:21 +00:00
vadimt 232737c854 More logging for LogEventChecker appearing to skip events
Bug: 155347466
Change-Id: I6598bcf36c1f7ae76e9bb6b2eccefbd00899de2e
2020-04-30 10:19:10 -07:00
vadimt a1f0a10662 Removing tracking activity start/stop events
They were not especially useful in investigations; besides, these events
can be sent by the system asynchronously for actions that happened
before entering TAPL, causing flakes.

Change-Id: I72b5aad5521c6c0969f5b657b3db3e4d855f1d64
2020-04-29 14:23:53 -07:00
vadimt 2e6fdd7d93 Optimization: reducing number of getNavigationModeMismatchError calls
They are relatively expensive

Change-Id: I34de56884ec3f88e69c709026d3b72e62c787681
2020-04-27 13:08:50 -07:00
TreeHugger Robot 11e36db88a Merge "Cleanup code related to ag/11035582" into ub-launcher3-rvc-dev 2020-04-16 22:04:45 +00:00
TreeHugger Robot 64abef8ca1 Merge "Choosing better points to output "start" events for TAPL" into ub-launcher3-rvc-dev 2020-04-16 21:58:47 +00:00
Vinit Nayak 916456bb5f Cleanup code related to ag/11035582
Fixes: 154235554
Change-Id: I114d1e1b9e446e15a774a5a51bdf988070091523
2020-04-16 14:16:56 -07:00
vadimt cf275c1bd7 Choosing better points to output "start" events for TAPL
Now doing this before branching points, thus avoiding flakes when the
execution can go to an unexpected branch and not produce an event.

Bug: 153824894
Change-Id: If117da0498eaf2d94c9610552724981be34c6569
2020-04-15 12:45:11 -07:00
Vinit Nayak 770cc42685 Revert "Cleanup code related to ag/11035582"
This reverts commit a2a1f86dff.

Reason for revert: b/154068414

Change-Id: I1db0018fa97d5a5380651cf7d04a05a0abd62857
2020-04-15 05:24:10 +00:00
Vinit Nayak a2a1f86dff Cleanup code related to ag/11035582
Bug: 153443049
Change-Id: I2a9e46fa4ffc613751c9f427ce892ddad3878b35
2020-04-14 14:02:49 -07:00
Vinit Nayak 1a09958626 Disable sensor manager for tests in platform
Bug: 153443049
Change-Id: Ieaa4b8144eba11c5d3025a1bcca42a8552d1c702
2020-04-13 15:47:02 -07:00
vadimt 8cb2f9ce08 Adding tracing for apparently skipping verifiable events
Bug: 153670015
Change-Id: I481c095f1245ba4252eb07e08b4130c857dd6e72
2020-04-09 13:02:48 -07:00
TreeHugger Robot e8fade9140 Merge "Adding diags to getWidget" into ub-launcher3-rvc-dev 2020-04-09 04:47:09 +00:00
vadimt 9915a7c60f TAPL waits for widgets recycler to become scrollable
On the Launcher side, moving setLayoutFrozen from the posted action to
avoid a possible short scrollable period just after the view is shown.

Bug: 152354290
Change-Id: I7319236d8a6e49a7e017fd54d593ee131dff10a9
2020-04-08 18:56:52 -07:00
vadimt 180c2e10fc Adding diags to getWidget
Also avoiding scrolling widgets horizontally when the gesture could
happen in the lower system gesture area.

Change-Id: I80192db7e407f8c1715aad3b96178c00b5710e71
2020-04-08 21:12:20 +00:00
Vinit Nayak b9cb1e3c8f Merge "Re-enable orientation sensor for Overview animation" into ub-launcher3-master 2020-04-02 19:02:30 +00:00
Vinit Nayak 6b7cc3fdc2 Re-enable orientation sensor for Overview animation
Slight revert of ag/10668129 with adjustment
of disabling it for tests.

Fixes: 151456795
Test: Ran the labtest command for OOP
tests for crosshatch (where this issue
was first detected)

Change-Id: I315d138c2e4a6d4068304e9b5fb2e1b7feb34e63
2020-04-02 11:07:10 -07:00
TreeHugger Robot 639aca6142 Merge "Catching StaleObjectException (and everything else) from get bounds" into ub-launcher3-master 2020-04-01 22:16:08 +00:00
TreeHugger Robot 7b4a1f5b3c Merge "Events checking for long press events" into ub-launcher3-master 2020-04-01 18:33:24 +00:00
TreeHugger Robot f1939f6f54 Merge "Including full diags from system alerts" into ub-launcher3-master 2020-04-01 18:20:32 +00:00
vadimt e277fec466 Events checking for long press events
Also fixing duplicate long press events resulting from both framework
and Launcher own detection reporting long presses.

Change-Id: Ib46de5bd60850f1c5578992c8c1172ddbc0961f3
2020-03-31 19:08:17 -07:00
vadimt 486744b173 Including full diags from system alerts
Change-Id: I779d3ccb683aea46e7e1b58ed088933d5685c183
2020-03-31 18:36:38 -07:00
vadimt bb3f515690 Catching StaleObjectException (and everything else) from get bounds
This will improve diags because fail() adds useful info to the message

Change-Id: I0a27f80c71a900078c94d9dd44d431fc206a37a0
2020-03-31 14:03:00 -07:00
vadimt 5486970e31 Improving events checks diags
Printing matching sequences and making putput more readable.

Change-Id: I3325aa2a8291096017533372f9da0f7550f39313
2020-03-30 13:21:19 -07:00
TreeHugger Robot 349e95f1e4 Merge "TAPL: Verifying activity start/stop events" into ub-launcher3-master 2020-03-28 03:45:24 +00:00
TreeHugger Robot f64cef8ee6 Merge "Adding more tracing for a widgets test flake" into ub-launcher3-master 2020-03-28 01:37:17 +00:00
vadimt 926ed41fab Adding more tracing for a widgets test flake
Bug: 152354290
Change-Id: Ie3ed8430e3f3d5c93f1bea698be46f2ddd22dea0
2020-03-27 17:40:32 -07:00
vadimt 75add7cef5 Debug tracing for "widget not present" flake
Bug: 152645831
Change-Id: I1e318650e45ab8e2a60eccef2f4f3c247b2a6b5b
2020-03-27 15:08:36 -07:00
vadimt 0dd1bd1113 TAPL: Verifying activity start/stop events
It also turned out that Pilfer event seems to come in a
non-deterministic order relative to the events from the Main and TIS
sequences. So I moved it to its own sequence.

Change-Id: Ie4ea5865afd900bebbd8287dad2372c94dce8ad5
2020-03-27 10:23:33 -07:00
TreeHugger Robot e6df7da2a2 Merge "Enabling event verification for Launcher3" into ub-launcher3-master 2020-03-07 07:19:13 +00:00
vadimt 16eca5500d Enabling event verification for Launcher3
Will help investigating otherwise mysterious failures.

Change-Id: I805ed136baf6d86921fdb4782304fcdafbd3af5c
2020-03-05 19:02:18 -08:00
vadimt 3abc8511a5 Enabling widget config tests after fixing flakiness
Bug: 148867106
Change-Id: I8bbd9ef9b1ca574f79f3f76869051495b59734ce
2020-03-05 15:01:38 -08:00
Sreyas 321bfae905 OverviewActions: Creating single view instance.
Makes use of there being a single instance of OverviewActionsView
rather than each Task having it's own.

Change-Id: I881121f84de99cade3cd8f07fa8510a557b28f57
2020-03-04 11:38:59 -08:00
Vadim Tryshev 1f2182683e Merge "Not failing when getSystemAnomaly fails" into ub-launcher3-master 2020-03-02 19:41:35 +00:00
Vadim Tryshev d8995a6fda Merge "Revert "TAPL: Verifying activity start/stop events"" into ub-launcher3-master 2020-02-28 22:29:47 +00:00
Vadim Tryshev 3dd64ca3a8 Revert "TAPL: Verifying activity start/stop events"
This reverts commit 1186700c9a.

Reason for revert: Fails in the lab

Change-Id: I6715a058c76d96752b904331968b46a07ce93f85
2020-02-28 22:28:16 +00:00
Zak Cohen 23ceafe3d5 Merge "TAPL tests - make all apps in overview checks less fragile." into ub-launcher3-master 2020-02-28 21:21:36 +00:00
vadimt 18b9f396d6 Not failing when getSystemAnomaly fails
It's a supplemental method, and mysterious glitches that happen during
its work shouldn't cause the whole test to crash.

Example:
java.lang.NullPointerException: Attempt to read from field 'com.android.server.appwidget.AppWidgetServiceImpl$ProviderId com.android.server.appwidget.AppWidgetServiceImpl$Provider.id' on a null object reference
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2291)
	at android.os.Parcel.createException(Parcel.java:2269)
	at android.os.Parcel.readException(Parcel.java:2252)
	at android.os.Parcel.readException(Parcel.java:2194)
	at android.accessibilityservice.IAccessibilityServiceConnection$Stub$Proxy.findAccessibilityNodeInfoByAccessibilityId(IAccessibilityServiceConnection.java:875)
	at android.view.accessibility.AccessibilityInteractionClient.findAccessibilityNodeInfoByAccessibilityId(AccessibilityInteractionClient.java:430)
	at android.view.accessibility.AccessibilityInteractionClient.getRootInActiveWindow(AccessibilityInteractionClient.java:214)
	at android.app.UiAutomation.getRootInActiveWindow(UiAutomation.java:607)
	at androidx.test.uiautomator.UiDevice.getWindowRoots(UiDevice.java:1102)
	at androidx.test.uiautomator.UiDevice.findObject(UiDevice.java:150)
	at com.android.launcher3.tapl.LauncherInstrumentation.getSystemAnomalyMessage(LauncherInstrumentation.java:334)
	at com.android.launcher3.tapl.LauncherInstrumentation.getAnomalyMessage(LauncherInstrumentation.java:359)
	at com.android.launcher3.tapl.LauncherInstrumentation.checkForAnomaly(LauncherInstrumentation.java:369)
	at com.android.launcher3.tapl.LauncherInstrumentation.lambda$eventsCheck$11(LauncherInstrumentation.java:1269)
	at com.android.launcher3.tapl.LauncherInstrumentation.lambda$eventsCheck$11$LauncherInstrumentation(Unknown Source:0)
	at com.android.launcher3.tapl.-$$Lambda$LauncherInstrumentation$3iFY1gd72Tm3mPf31PMij-eBaBk.close(Unknown Source:2)
	at com.android.launcher3.tapl.AddToHomeScreenPrompt.addAutomatically(AddToHomeScreenPrompt.java:53)
	at com.android.launcher3.ui.widget.RequestPinItemTest.runTest(RequestPinItemTest.java:163)
	at com.android.launcher3.ui.widget.RequestPinItemTest.testPinWidgetNoConfig_customPreview(RequestPinItemTest.java:95)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:52)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:148)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:142)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:923)
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.server.appwidget.AppWidgetServiceImpl$AppWidgetManagerLocal.getHostedWidgetPackages(AppWidgetServiceImpl.java:4887)
	at com.android.server.accessibility.AccessibilitySecurityPolicy.computeValidReportedPackages(AccessibilitySecurityPolicy.java:229)
	at com.android.server.accessibility.AbstractAccessibilityServiceConnection.findAccessibilityNodeInfoByAccessibilityId(AbstractAccessibilityServiceConnection.java:621)
	at android.accessibilityservice.IAccessibilityServiceConnection$Stub.onTransact(IAccessibilityServiceConnection.java:372)
	at android.os.Binder.execTransactInternal(Binder.java:1138)

Change-Id: If7ae23d07b69d524c3f300607f0866cce6405416
2020-02-28 12:08:19 -08:00
Zak Cohen dc24231e4f TAPL tests - make all apps in overview checks less fragile.
Tests that check for all apps in overview mode were only checking for
actions being enabled. This isn't sufficient logic, two button mode also
uses all apps.

Centralize the check for all apps.

Test: local tapl tests
Change-Id: If1bf98019e6f1aea8f7967883aba6780743e9d6b
2020-02-28 11:59:33 -08:00
Vadim Tryshev 64a932ed2a Merge "TAPL: Verifying activity start/stop events" into ub-launcher3-master 2020-02-28 19:22:32 +00:00
Zak Cohen eecb258cc7 Merge changes from topic "enable" into ub-launcher3-master
* changes:
  Overview Actions - Enable by default.
  TAPL test update - don't run all apps in overview tests with actions.
2020-02-27 19:48:51 +00:00
Vadim Tryshev 0e0b176361 Merge "Not showing "mismatched events" and other diags after Launcher crashes" into ub-launcher3-master 2020-02-27 19:45:39 +00:00
vadimt 1186700c9a TAPL: Verifying activity start/stop events
It also turned out that Pilfer event seems to come in a
non-deterministic order relative to the events from the Main and TIS
sequences. So I moved it to its own sequence.

Change-Id: I5851aafb6d04398c5727712eaf8561916a30c4c5
2020-02-27 11:12:35 -08:00
vadimt da12b805cc Not showing "mismatched events" and other diags after Launcher crashes
Change-Id: Iee5f8813c3610314d486589bc361466a05da0ecb
2020-02-26 12:19:32 -08:00
vadimt dbc7583054 Remove unnecessary PilferPointer events and enable testPressHomeOnAllAppsContextMenu
Change-Id: I04199f46024b05f05d04ba2be7a797842bb48527
2020-02-25 18:17:04 -08:00
Zak Cohen fe935dfbc1 TAPL test update - don't run all apps in overview tests with actions.
Overview actions removes the all apps from overview. Don't run the tests
that depend on these.
Ultimately need to add more tests for the actions.

Test: tapl local
Change-Id: I2471d10af7bc03a40a94f99aa16354b85bdb3ad7
2020-02-25 15:09:12 -08:00
Sreyas a241df66df OverviewActions: Creating parent view to house RecentsView and Overview Actions.
Creating RecentsViewHolder to be contain LauncherRecentsView in OverviewPanel so Overview Actions View can be created only once.

Change-Id: I111f88903d2ff80275cc2e07b761577260073c17
2020-02-21 16:14:51 -08:00
vadimt 2f41808e9b Updating logcat reading logic
Start a thread to read logcat synchronusly instead
of back-tracking at the end of the test

Also:
* Reusing the same logcat process for all checks. This eliminates
reading the log from its start for every gesture. We don’t kill that
process at the end, and don’t stop the thread. I’ve verified that
“am instrument” doesn’t hang, and the logcat process gets automatically
killed after the test process exits.
* Not using mStarted latch, as there is no need to wait until the reader
reaches the start mark.

Bug: 149422395
Change-Id: Ide4ed19ad8d099c41918f38c2b073b8b2e143b69
2020-02-20 22:02:52 +00:00
TreeHugger Robot 2c87fb99f6 Merge "Revert "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause"" into ub-launcher3-master 2020-02-15 07:02:24 +00:00
Vadim Tryshev 47b3588ba5 Revert "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause"
This reverts commit c2842d8f4a.

Reason for revert: CL broke TaplTestsLauncher3.testDevicePressMenu in 2-button mode

Change-Id: Idebda69a36b94686415434e8e3f158a8a7abc5bb
2020-02-15 02:25:35 +00:00
TreeHugger Robot fa19162a0c Merge "Starting querying logcat events 1 min before start of the gesture" into ub-launcher3-master 2020-02-15 01:31:42 +00:00
vadimt c2842d8f4a Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause
Change-Id: I012d5144651f5e7fb362caaef6eec8cee7622fb4
2020-02-14 14:50:28 -08:00
vadimt 05f3a21fca Starting querying logcat events 1 min before start of the gesture
This is a temporary attempt to solve the supposed unreliability of the
"-t" parameter of logcat while the permanent solution (ag/10290062) is
being reviewed.

Bug: 149422395
Change-Id: I327a94de4349bb6cea32f9b8f66bb6e292725b8f
2020-02-14 11:30:14 -08:00
Vadim Tryshev 47a73672db Merge "Verifying events from TouchInteractionService" into ub-launcher3-master 2020-02-11 01:46:53 +00:00
vadimt 1006f73a95 TAPL: Start getting events 10 sec ahead of the first expected one
This is a workaround for -t param skipping 4 first sec of recording.

Change-Id: I834d83f5f4ba760171209ab2e06ae40ea4aa9e25
2020-02-10 13:49:29 -08:00
TreeHugger Robot ee205a0292 Merge "Making some TAPL members public so that tests could use them directly" into ub-launcher3-master 2020-02-08 09:35:35 +00:00
vadimt 359cc2a5e5 Making some TAPL members public so that tests could use them directly
Change-Id: I508d25d404a073f5bf76762e0b129e09b46b1582
2020-02-07 18:06:01 -08:00
TreeHugger Robot 93d3117295 Merge "Events: moving logcat filter 1 sec back" into ub-launcher3-master 2020-02-08 00:56:04 +00:00
vadimt f81dc291ba Events: moving logcat filter 1 sec back
I saw flakes when logcat didn't return records that are 300ms after the
specified time. I hope that moving the start time 1 sec back will
workaround this.

Change-Id: I6a4b66094d38f555d10284f19a71152a8be47b2e
2020-02-07 14:00:54 -08:00
TreeHugger Robot 958995a771 Merge "Fixing race condition on test information provider" into ub-launcher3-master 2020-02-07 21:09:11 +00:00
Sunny Goyal 5fffa47cac Fixing race condition on test information provider
Activity tracker is accessed on a non-UI thread, which can cause a non-initialized
Launcher to be treated as initialized

Bug: 149022794
Change-Id: I6634a6aff891592369c16469bbe95a9ea611819c
2020-02-07 12:37:44 -08:00
vadimt d633c9c7da Verifying events from TouchInteractionService
There is a guaranteed order in which TIS events will be registered
relative to other TIS events. However, relative to the touch events
arriving to the activity, TIS events can come in any order.

Now the event checker verifies 2 independent ordered event sequences:
from TIS, and “the rest” (Main).

Change-Id: I5872e0e3b0b498050a91c67105fbe4a29411375a
2020-02-07 11:46:03 -08:00
vadimt c71db98747 Increasing nav mode settlement timeout as an attempt to workaround nav
mode mismatch bug.

Bug: 148422894
Change-Id: I1295c1415a308ec461d302c9973309f4de77f984
2020-02-07 10:34:59 -08:00
TreeHugger Robot 70607cfe0a Merge "Attempt to workaround navigation mode mismatch errors" into ub-launcher3-master 2020-02-07 01:10:23 +00:00
TreeHugger Robot b2c5eb3ad0 Merge "Investigator: adding "Screen is empty" as another sign of crashed sysui" into ub-launcher3-master 2020-02-06 23:53:29 +00:00
vadimt ec9c109c46 Attempt to workaround navigation mode mismatch errors
Assuming that the nav mode state needs to "settle", adding waiting for
this.

This might be a temporary solution.

Bug: 149024111
Change-Id: Ifbd874546a4cb6b07ad3d3825c95d19bc5836b38
2020-02-06 23:14:49 +00:00
TreeHugger Robot c3b8ff4448 Merge "TAPL: Verifying pilferPointers events" into ub-launcher3-master 2020-02-05 19:28:20 +00:00
vadimt ae701bfcc4 Investigator: adding "Screen is empty" as another sign of crashed sysui
Also generating recognizable anomaly message in more cases

Change-Id: Ia4d4d87a1a46291f3ea1057e00acbd98d9ccb3a5
2020-02-04 12:06:18 -08:00
vadimt db185f6b3e Enabling quick switch test
Now that 2 underlying bugs are fixed

Bug: 143285809
Change-Id: Ie85177830def6e6ee72688f7dbb15ebef9c5ae48
2020-01-31 17:27:46 -08:00
vadimt 7505222183 TAPL: Verifying pilferPointers events
Change-Id: Ie825beb4b3adf7fea28959b460e99a44bc471063
2020-01-31 11:22:43 -08:00
Sunny Goyal 9c2b96090b Adding SecondaryDisplayLauncher in Launcher using common listener
Bug: 141596722
Change-Id: I480bfadf592f7d0309f17c33a3fe14bb77fb5586
2020-01-30 08:27:27 +00:00
vadimt 8196e7984a Verifying the event for pressing square button
Change-Id: If7e3cf29e3a069a295f2612800ddbbfc27653c32
2020-01-28 18:23:05 -08:00
vadimt 0fad650610 Additionally filtering events by time
Logcat may return records before the time requested via -t.
Filtering them out.

Also using year in date, to avoid failing during new year night.

Change-Id: I3c84d5fdf7882b3f551a1d430aa906fe1ae67aa7
2020-01-24 14:20:46 -08:00
TreeHugger Robot 8f76378bf5 Merge "Adding events checking for Launcher starting apps" into ub-launcher3-master 2020-01-24 20:23:39 +00:00
vadimt 6098a8c8c0 Adding events checking for Launcher starting apps
Change-Id: Id651397f643280a9f99a470df029479bd1b41e5c
2020-01-23 19:12:19 -08:00
vadimt 8bcabc02c3 Logging the time that we use for the current events range
It appears that sometimes logcat -d returns events that are earlier than
that time, but we need to be sure.

Example:
ACTION_UP from the previous TAPL method:
https://sponge.corp.google.com/target?show=FAILED&sortBy=STATUS&id=1aceab23-6d2a-4b2d-9630-47a74cafe7b9&target=com.google.android.apps.nexuslauncher.tests

Change-Id: Ib83e1cc01402ef638f8ac8a0862e16c5773b82cd
2020-01-23 17:44:38 -08:00
vadimt ff7cd03d43 More readable formatting for events mismatch message
This helps for longer event lists.

Change-Id: Ie3565d2ccdde27d23770d01b4f9d4680bd8e229b
2020-01-23 13:40:54 -08:00
vadimt 29d8b54957 Disabling events checks for successful gestures by default
Launcher tests will still perform checks upon every gesture completion.

All tests using tapl will still use events for diagnostics if the
gesture fails.

The benefit is that system health and other platform tests won't have to
use expensive logcat, and moreover, wait seconds for the events to
appear in logcat because of buffering in logcat.

Change-Id: I3b5a0965d9432144d0c4a8b40ebe2fa89b19a689
2020-01-22 19:16:32 -08:00
TreeHugger Robot 51ee9cf03e Merge "TAPL: verify input events" into ub-launcher3-master 2020-01-22 22:45:51 +00:00
vadimt 9af34a7b13 TAPL: verify input events
This will catch cases, for example, when the platform stops delivering
injected events to Launcher, or injects unexpected events, like Back
Button.

Also optimizing and fixing incorrect behavior of calculating the start
time for the event collection.

Change-Id: I2ba0108e6bfa112f2905a05bcb327b148ec08f77
2020-01-22 14:10:53 -08:00
TreeHugger Robot 1348e44378 Merge "TAPL: Optimization: avoid getting actual events twice" into ub-launcher3-master 2020-01-22 01:15:44 +00:00
TreeHugger Robot 9311785daf Merge "Better diags and a small correction for scrolling in AllApps" into ub-launcher3-master 2020-01-17 21:48:52 +00:00
vadimt 299aaf3a8a TAPL: performing event verification for all gestures
+ missed comments from earlier CLs

Change-Id: Iec84de66a3ff9c2aa59a11566560fa6f169190d0
2020-01-17 12:25:40 -08:00
vadimt 2ea348ff87 Removing flake when 2 long-press events happened on single long press
There is some unknown to me logic in Launcher that sometimes duplicates
the long-press event . This causes flakes whenTAPL expects one long
press, but the actual sequence is 2 events.

That duplication logic seems to be related to race conditions is is hard
to repro. For now, just removing long-press verification. I'll start
with more deterministic events.

Bug: 147806932
Change-Id: I03841131bf8cae88011824f660f2c7b1906592f4
2020-01-16 17:10:55 -08:00
vadimt f6c1a167d9 TAPL: Optimization: avoid getting actual events twice
Getting events is an expensive operation involving reading logcat. We
did this al least twice even if the number of events was already
sufficient. Fixing this.

Change-Id: I5bfb57e3b573c4fc3f0327512327750dbb35af2f
2020-01-16 14:44:51 -08:00
Vadim Tryshev f7b2d40347 Merge "TAPL: Verifying some interactions with system" into ub-launcher3-master 2020-01-15 22:32:13 +00:00
vadimt 252d012ed0 TAPL: Verifying some interactions with system
Investigation of TAPL failures, especially flakes is complex, partially
because it’s hard to tell whether it’s Launcher who is wrong or the
system.

We need to introduce a framework that looks at Launcher interaction with
the system and reports when interactions deviate from the expected
course, and who made the first wrong step.

This is first, proof-of-concept CL.

It analyzes long-press events. We had multiple cases when long-presses
didn’t happen or happened unexpectedly.

Launcher registers the events, TAPL retrieves and compares against the
sequence of expected regular expressions. This diagnostic is used when
something fails and at the end of public methods.

Change-Id: I07aa3a027267c03422c99c73ccd8808445c55fe8
2020-01-15 13:31:18 -08:00
vadimt 9675452c2f Better diags and a small correction for scrolling in AllApps
Change-Id: I48dbba26139f42350831fb707bea847b7c76129f
2020-01-14 19:39:35 -08:00
TreeHugger Robot d4ec31a51a Merge "TAPL: Tracing only changed part of the context for diags" into ub-launcher3-master 2020-01-13 22:39:20 +00:00
TreeHugger Robot d068f1cf66 Merge "integration test for open settings menu from workspace." into ub-launcher3-master 2020-01-09 04:17:03 +00:00
Pinyao Ting 654adf657e integration test for open settings menu from workspace.
compare pid of launcher process after test execution to verify launcher isn't crashed when running in oop test.

Bug: 147235759
Change-Id: Id13c47f5c4e388cc8e95b19d099e94a2e540bf3f
Test: fun flake locally
2020-01-08 17:01:39 -08:00
Vadim Tryshev 466bf5538d Merge "Using grantRuntimePermission()" into ub-launcher3-master 2020-01-08 22:27:30 +00:00
vadimt aad54ab686 Using grantRuntimePermission()
"pm grant" is considered obsolete

Bug: 145686584
Change-Id: Ieeec76b2fdb666f89957a0a3039956bd69e9f315
2020-01-08 12:01:34 -08:00
TreeHugger Robot 3748443bfc Merge "Delete code that became dead after moving tests to robolectric" into ub-launcher3-master 2020-01-08 19:27:53 +00:00
TreeHugger Robot 2e0b8e39c7 Merge "Revert "include integration test for open settings menu from workspace"" into ub-launcher3-master 2020-01-08 18:46:01 +00:00
TreeHugger Robot d6eed66f86 Merge "Not crash when UI objects disappear during visible objects verification" into ub-launcher3-master 2020-01-08 15:27:02 +00:00
vadimt b856e48594 Not crash when UI objects disappear during visible objects verification
Bug: 146785144
Change-Id: I5ccac4871c683413c27753774adc432e5e654e27
2020-01-07 17:45:32 -08:00
Pinyao Ting cd1cc0efc1 Revert "include integration test for open settings menu from workspace"
This reverts commit e94baee999.

Reason for revert: Test failing

Change-Id: Icb5d27488618a9b70b83d7ab582082c396578700
2020-01-08 01:15:29 +00:00
vadimt b5087c45aa Delete code that became dead after moving tests to robolectric
Change-Id: I454ba9d4c8d04aae192523322a2ee8c505da5ed5
2020-01-07 12:23:57 -08:00
vadimt 2c4e3187e7 TAPL: Tracing only changed part of the context for diags
Printing the whole context stack has proven to be harder to decipher.

Change-Id: Ic11981884491fc96b939f4736ec974a1640c0304
2020-01-07 11:16:54 -08:00
TreeHugger Robot 108cc51e03 Merge "include integration test for open settings menu from workspace" into ub-launcher3-master 2020-01-06 23:22:45 +00:00
vadimt a8523300da Temporary workaround for long failure messages when running from AS
AS installs tests in such a way that they don't get necessary
permissions; the result is a long message starting with "Failed to get
system health diags" when a test fails.

While I'm looking for a good solution, removing this annoyance.

Change-Id: I9e439c3aefb9dd365c841c98d530b9346d7ccd10
2019-12-20 19:15:20 -08:00
Pinyao Ting e94baee999 include integration test for open settings menu from workspace
Bug: 146432215
Change-Id: I2d42984dd77506385230744361ae74944cc9b3bd
2019-12-20 15:37:36 -08:00
vadimt 97d7b9024d Fixing typo
Change-Id: Ifba10c3d804f6c009b9ce40732c08ea17ee7b559
2019-12-17 14:58:10 -08:00
TreeHugger Robot 45657afdde Merge "Adding diagnostics for failing click-to-home" into ub-launcher3-master 2019-12-16 22:49:21 +00:00
TreeHugger Robot c9a907bec1 Merge "Removing temporary workarounds to make tests pass on Cuttlefish" into ub-launcher3-master 2019-12-16 22:37:09 +00:00
TreeHugger Robot 0f58b63445 Merge "Diagnosing visible windows' packages for Background mode" into ub-launcher3-master 2019-12-16 22:36:48 +00:00
vadimt 44e697b0a3 Adding diagnostics for failing click-to-home
Bug: 133010698
Change-Id: Id887543f65812bb5607043a1cfcb2e95cf97ccb5
2019-12-16 13:38:27 -08:00
Vadim Tryshev f4b5bcac43 Merge "Starting swipe-to-all-apps outside of areas triggering long-press" into ub-launcher3-master 2019-12-13 18:50:22 +00:00
vadimt 08eca2fa2e Removing temporary workarounds to make tests pass on Cuttlefish
Bug: 136278866
Change-Id: Ie537a578bb871921c0cbea1f197261e703de98f5
2019-12-12 18:15:48 -08:00
vadimt 03cd58e575 Diagnosing visible windows' packages for Background mode
Change-Id: I3caeef4cd890500585f033024b1b6c3521b9e39d
2019-12-12 18:07:42 -08:00
vadimt a45ee97074 Recycling accessibility event as the docs require
Change-Id: I94a2ea7ab93690d0216110b5f77f0116177788a7
2019-12-12 17:43:38 -08:00
vadimt f0c80528ab Starting swipe-to-all-apps outside of areas triggering long-press
I suspect that some tests using TAPL run under pressure (mem or CPU,
created either intentionally or as a result of a leak somewhere)
where test process may generate a pause between DOWN and MOVE events
enough to be recognized as a long tap, which opens a context menu
instead of swiping.

While the clean solution is b/140252325, this is a workaround.

Bug: 144853809
Change-Id: I135eaee608270b7e60bb072cb360632763cbe5c5
2019-12-12 16:27:25 -08:00
vadimt 526c630500 Simplify diagnosing of the context menu being present when not expected
Change-Id: I3550a724665f908ef70570e2e151c53fc7fa1844
2019-12-11 18:09:39 -08:00
vadimt bdaa179b92 Consistently checking state change messages
Checking for events whenever Launcher sends them.
Checking for correct events (final events, not for events from
intermediate state changes).

This should simplify diagnosing of bugs involving TAPL.
This is also supposed to fix Fallback overview tests.

Bug: 143488140
Change-Id: If053ed808ec71bf2b652ab680be5bdfe9ff8cbb9
2019-12-09 12:33:39 -08:00
Tony Wickham 8a50a6d858 Send home intent after reaching 3P launcher on swipe up
Also keep the 3P launcher's alpha at 0 during the gesture, and
don't send the home intent if user touches during the transition.

Bug: 139682945
Change-Id: Ie758f0b337bb173b34f5585ec1915b7ea1145094
2019-12-05 14:40:13 -08:00
TreeHugger Robot 0868d999f1 Merge "Improving error messages when swiping up to home" into ub-launcher3-master 2019-11-22 18:40:56 +00:00
vadimt 7d6e7add97 Improving error messages when swiping up to home
Change-Id: I7c230d657eacb7a386a906e1f5470a15e1fe5868
2019-11-21 19:12:19 -08:00
vadimt 83b7a6d8bf Accelerating dragging to workspace by using pause at the end of the
gesture

Change-Id: Ib14b9519e23aa34156dab9eff75cd2609ad57e14
2019-11-19 15:00:29 -08:00
vadimt 4d627f09c0 Staring swipe-to-all-apps gesture from above bottom gesture area
Bug: 139682945
Change-Id: I2fe8929c1dea8448c23394afd6f9d711b73f2562
2019-11-19 21:48:55 +00:00
vadimt 73cd121122 When scrolling in All apps, scroll to last clickable row
Not the last row. This fixes tests broken after some assumption broke in
platform at an unknown moment.

Since the gesture distance became smaller in some cases, the speed of
the gesture became slower, and on some devices, the scroll gesture
triggers icon dragging.

To prevent this, I reduced the number of steps in the gesture to 10, but
added a slow-down at the end of the gesture to avoid inertia.

Also made some names and calculations clearer.

Bug: 144180777
Change-Id: Ie6c5776606ecff64d553fa836bdb3d90f32c5d9e
2019-11-15 13:40:29 -08:00
Vadim Tryshev d82d667194 Merge "Revert "When scrolling in All apps, scroll to last clickable row"" into ub-launcher3-master 2019-11-15 00:58:22 +00:00
Vadim Tryshev a354835c6e Revert "When scrolling in All apps, scroll to last clickable row"
This reverts commit 7afd271a17.

Reason for revert: b/144522058

Bug: 144522058

Change-Id: Ie104b092a44e3a2fee0803fa83f1af7f8fd0afdf
2019-11-14 22:34:08 +00:00
vadimt fa6f56761b Improving error message
The old one could be misunderstood as "the whole Launcher is missing".

Change-Id: I91cad52ee297b0250cba23215743a47c24757ae1
2019-11-13 18:26:28 -08:00
vadimt 480083490f Tapl: AllApps: ensuring a minimal vertical size of an icon
Clicking an icon within its padding area is ignored by Launcher. Hence,
ensuring that the whole icon is visible.

Bug: 141770616
Change-Id: I19e3ba7cfa25de75a47202845d0838bea46af92c
2019-11-13 20:20:57 +00:00
vadimt 7afd271a17 When scrolling in All apps, scroll to last clickable row
Not the last row.

Also scrolling in the middle of All Apps, not at the top, because
otherwise the scroll can start on search box.

Bug: 144180777
Change-Id: I219faec165b8b403530a9c09d419cc453aea6039
2019-11-11 10:46:28 -08:00
vadimt 137f5b62ac Improve diags when system errors cause failing Launcher tests
Now, for example, we won't diagnose a locked phone as a
"home button not showing in 3-button mode", even though it's technically
correct.

Change-Id: Ibdfa0741af7ff8545a811f6702dda74dc6c31c2e
2019-11-04 14:50:22 -08:00
Winson Chung ef558648e6 Bump time to scroll to last visible row (affects jank/perf tests)
- Regression from ag/9592395, bump the time of scrolling to the
  last visible row slightly to prevent a fling

Bug: 141484300
Change-Id: I41c041fe591aceebc63b7e869a705164babb09ea
2019-10-24 15:31:34 -07:00
Winson Chung 82b2ef27c8 Reduce animation time for some common TAPL actions (affects jank/perf tests)
- All apps swipe up 1s -> 200ms (doesn't matter if it's a fling)
- Scroll to last visible row 2.5s -> 1.25s (seems sufficient to not be a fling)
- Drag icon to workspace 2s -> 500ms (seems sufficient to not be a fling)
- This changes the total frames produced for the jank tests, but should not
  change the jank proportion or the individual frame drawing times

Bug: 141484300
Change-Id: I9f2e647ebc2c27c6269238daa4c3e6ad314c8161
Signed-off-by: Winson Chung <winsonc@google.com>
2019-10-23 23:31:20 +00:00
vadimt 3a13366e00 Restoring 10-sec wait for model initialization
Will see if ag/9573576 fixed long model loading

Bug: 136278866
Bug: 142514365
Change-Id: If0dc61faff00683cf3248c127a64ff5b065f9ae4
2019-10-18 12:43:10 -07:00
vadimt af317c7821 More preparation for enabling inproc presubmits
Bug: 136278866
Change-Id: Icc4a0d935acf76950197bc184f8dba5d07ee85c5
2019-10-17 12:07:10 -07:00
vadimt 6332b7d73c Reducing the time for expected launcher initialization back to 10 sec
It was temporarily raised to 60 sec.

https://googleplex-android-review.git.corp.google.com/9563509
should've fixed some problems with loading time, but likely not all.

We need to observe whether this test starts flaking again.

testDragIcon will run only in Launcher postsubmit, and won't block
merges to platform if it fails.

Bug: 142514365
Change-Id: I2b9a9d043346ebda721221cefd6118a1a799501f
2019-10-16 17:49:29 -07:00
Tony Wickham 6b62f28ef9 Fix quick switch test gesture in landscape 2-button mode
am: a0f77c4449

Change-Id: I998081a53a94ff3b1559a7e77d4d470056cfab00
2019-10-15 21:20:24 -07:00
Tony Wickham a0f77c4449 Fix quick switch test gesture in landscape 2-button mode
It should swipe from the bottom right to top right when the nav bar is
on the right, rather than from the bottom left to bottom right.

For now, disable testQuickSwitchFromApp() because it seems to have
other failures as well.

Bug: 140252765
Change-Id: I1f4989f3ea5456c18bb9cbf42ea4b157cee500d7
2019-10-15 17:30:47 -07:00
vadimt 4565739fb7 Increasing wait time for loading model to 60s
Bug: 142514365
Change-Id: I15e0ff8e2a721f7ffdefdf2eb02e114212dded3b
2019-10-15 17:06:41 -07:00
Tony Wickham 2f767469ae Merge "Add tests for quick switch from an app and home" into ub-launcher3-qt-future-dev
am: 7a2076e3ab

Change-Id: Id525dae6616757688ccf0e203fefeb9bd6ef08ff
2019-10-14 12:20:37 -07:00
Tony Wickham 1e73e320b7 Add tests for quick switch from an app and home
Bug: 140252765
Change-Id: I5621b614ae2d8cd3db03cae818cf8b8c1c6cb20f
2019-10-14 11:51:19 -07:00
Winson Chung c062580b5a Wait for the task to be in recents before validation
- There are two issues:
  1) Currently the system does not add the task to the task list until
     the activity starting the task has been resumed (to be fixed in a
     follow up platform CL). When the three activities are started in
     sequence, it's possible for one of the activities to not reach the
     resumed state leading to an unexpected number of recent tasks the
     next time it's fetched.
  2) When swiping up, it may take time for getTasks to return and call
     applyLoadPlan, so try and wait until the task views have had a
     chance to be applied before continuing.
  3) Use the launcher activity tracker instead of activity rule since it
     will return the same activity even after the activity is destroyed
- Move the margin handling to the caller instead of the scroll method

Bug: 141580748
Change-Id: I2b7634f5ac6869ba4b369b3bd60e0f63747c0f0b
2019-10-11 17:10:38 -07:00
Winson Chung c039634c25 Workaround for failing test & fix scrolling in tests
- Workaround issue where instrumentation will fail to finish an activity
  causing the activity to linger longer than expected (leading to issues
  with ordering of static resources like the app widget host registration)
- Fix calculation for scrolling the screen, the previous calculation
  would result in the gesture starting at the left gesture margin due
  to rounding which can trigger a back action instead of the desired
  scroll

Bug: 142351228
Change-Id: I34bdb471030518d2b983cac2badd4d8b0e7d571b
2019-10-10 17:31:38 -07:00
vadimt 4b5c1ef71b Adding support for intentionally leaking views.
Bug: 139137636
Change-Id: I923d1781daee9ae47eb306ee8fa3c44790c6993f
2019-10-08 17:04:26 +00:00
TreeHugger Robot 86017c9611 Merge "Removing access to LauncherModel.getCallbacks" into ub-launcher3-master 2019-10-08 16:26:12 +00:00
Vadim Tryshev 7949c5a7e4 Merge "Diagnosing anomalies prior to swiping up to Home" into ub-launcher3-qt-qpr1-dev am: c3a4819b8c
am: af754b9a9a

Change-Id: I9a65f1c85623f801adbd380c85a039b5c55526bf
2019-10-03 18:18:33 -07:00
Vadim Tryshev af754b9a9a Merge "Diagnosing anomalies prior to swiping up to Home" into ub-launcher3-qt-qpr1-dev
am: c3a4819b8c

Change-Id: Ifc6a781cea4dc38b58435314b8760e89b327446a
2019-10-03 18:11:32 -07:00
Vadim Tryshev c3a4819b8c Merge "Diagnosing anomalies prior to swiping up to Home" into ub-launcher3-qt-qpr1-dev 2019-10-04 00:48:34 +00:00
vadimt f4255c6c1b Dump view hierarchy before swiping to home am: 233afe98e9
am: 3878d3ef09

Change-Id: Ief39f3c713dd94b93b6dfa2f1e0732c810ba5d3a
2019-10-03 17:41:35 -07:00
vadimt 3878d3ef09 Dump view hierarchy before swiping to home
am: 233afe98e9

Change-Id: Ib67aa2247ae43f4e875deb07a9d8b53aa5e6f181
2019-10-03 17:35:28 -07:00
vadimt 43c3d2d40a Diagnosing anomalies prior to swiping up to Home
Bug: 141864547
Change-Id: I5f3814c6a90df85136484813ca4ee684da101016
2019-10-03 17:09:16 -07:00
Vadim Tryshev 35d9ac924c Merge "Logging the initial state for swiping up to home" into ub-launcher3-qt-qpr1-dev am: c49ec38140
am: f078975e9d

Change-Id: I7cff417f917643adb1835eb4b7ccad0e75cb22ce
2019-10-03 14:40:14 -07:00
Vadim Tryshev aef50a5985 Merge "Waiting until context menu goes away after attempting to close it." into ub-launcher3-qt-qpr1-dev am: 7c09214298
am: 12de08a3b1

Change-Id: I34cf6e29d2ed39efabca6d43eaccf62763e67693
2019-10-03 14:39:58 -07:00
Vadim Tryshev f078975e9d Merge "Logging the initial state for swiping up to home" into ub-launcher3-qt-qpr1-dev
am: c49ec38140

Change-Id: If74c630902a212270bae1a58b2085d8a30d2343f
2019-10-03 14:33:31 -07:00
Vadim Tryshev 12de08a3b1 Merge "Waiting until context menu goes away after attempting to close it." into ub-launcher3-qt-qpr1-dev
am: 7c09214298

Change-Id: If209a43004a41ca682473232789810a4d1828521
2019-10-03 14:33:04 -07:00
vadimt 233afe98e9 Dump view hierarchy before swiping to home
Bug: 141864547
Change-Id: Ifd444c4516f7f27b0dc19c0faa1d4c8716d2254a
2019-10-02 17:10:02 -07:00
Sunny Goyal b0adac23e0 Removing access to LauncherModel.getCallbacks
Bug: 137568159
Change-Id: Ic074dec6a8981a4b9aabf028cf3b878b532abb11
2019-10-02 14:27:40 -07:00
Vadim Tryshev c49ec38140 Merge "Logging the initial state for swiping up to home" into ub-launcher3-qt-qpr1-dev 2019-10-02 17:43:00 +00:00
vadimt 7458d4aa4a Logging the initial state for swiping up to home
Change-Id: Iff2003f7e6dfe4072613b775722166dc5fec9e02
2019-10-01 18:40:24 -07:00
vadimt 8ecf1b3dd3 Waiting until context menu goes away after attempting to close it.
Bug: 141770616
Change-Id: I528072e830627d825906ce7c1e3dbb914e2c814e
2019-10-01 18:28:46 -07:00
Pinyao Ting d843673434 Merge "removed extra test protocol for unit test" into ub-launcher3-qt-future-dev
am: d8aef47393

Change-Id: I0d69c2ec0e3d693d4556314fd1b74dabd0a8cbd2
2019-09-30 13:54:36 -07:00
TreeHugger Robot d8aef47393 Merge "removed extra test protocol for unit test" into ub-launcher3-qt-future-dev 2019-09-30 20:46:15 +00:00
vadimt 38763eca5d fixingtypo am: 5d58d25ea3
am: 5500f3513e

Change-Id: Ie5e6f944167552c13de1320fdd161067b93a3e01
2019-09-30 13:26:32 -07:00
vadimt 5500f3513e fixingtypo
am: 5d58d25ea3

Change-Id: I7785e6162a79743b2a8c3f6851ade7bea31c1058
2019-09-30 13:19:32 -07:00
vadimt 5d58d25ea3 fixingtypo
Change-Id: I0d9d9f3f712fc90e82e7660c14ea31779648614a
2019-09-30 12:22:01 -07:00
Pinyao Ting ea38c25854 removed extra test protocol for unit test
Bug: 140406263
Test: run TaplTestsLauncher3
Change-Id: I73b3098bd3aa92fed41d22a94cb58fd07263d26a
2019-09-30 18:34:49 +00:00
Vadim Tryshev cc4a9725a9 Merge "Removing a too noisy dropbox diag" into ub-launcher3-qt-qpr1-dev am: 7cb5b73dfb
am: 75b713c71e

Change-Id: Ibd07e3d018145a2717f6e29600b8edef32045368
2019-09-27 16:27:51 -07:00
Vadim Tryshev 75b713c71e Merge "Removing a too noisy dropbox diag" into ub-launcher3-qt-qpr1-dev
am: 7cb5b73dfb

Change-Id: Iae6af5771238f8b6c13714e1e43b7a21ad38acee
2019-09-27 16:21:21 -07:00
Vadim Tryshev 7cb5b73dfb Merge "Removing a too noisy dropbox diag" into ub-launcher3-qt-qpr1-dev 2019-09-27 23:11:36 +00:00
vadimt 41390b8eea Removing a too noisy dropbox diag
Change-Id: Ia4dee0b3f20533754b24a91a4a8d2a837bb8e60f
2019-09-27 14:24:46 -07:00
Vadim Tryshev 6254e5e246 Merge "Deprecating LauncherInstrumentation constructor with parameter" into ub-launcher3-qt-qpr1-dev am: dd079691c1
am: 1430f132f3

Change-Id: If494e30957893c4e3414ebdbd274601d16a66a98
2019-09-27 13:28:18 -07:00
Vadim Tryshev 1430f132f3 Merge "Deprecating LauncherInstrumentation constructor with parameter" into ub-launcher3-qt-qpr1-dev
am: dd079691c1

Change-Id: I7419be6416f26274bf03abfd84eedef20fd6f084
2019-09-27 13:21:46 -07:00
Vadim Tryshev dd079691c1 Merge "Deprecating LauncherInstrumentation constructor with parameter" into ub-launcher3-qt-qpr1-dev 2019-09-27 19:57:00 +00:00
vadimt 2611d79f69 Deprecating LauncherInstrumentation constructor with parameter
Change-Id: I779b4a8fde2db73cced8133f12d1356ad0b8729e
2019-09-27 12:00:09 -07:00
vadimt 8bb74d4214 Removing a 'percent' parameter for scroll am: 83b03b08de
am: 79e9d0adba

Change-Id: I0b882af2be3eb961684b90385c954922151d9a20
2019-09-26 18:47:07 -07:00
vadimt 79e9d0adba Removing a 'percent' parameter for scroll
am: 83b03b08de

Change-Id: I7d082d145f211f984982d73fb3a81b8fde21fd19
2019-09-26 18:40:59 -07:00
vadimt aaa5fcf4da Removing magic constant 0.8f from AllApps
am: 7028b10c54

Change-Id: Ifb5c044f0297f2944efd348b6dff97e02ddbfb91
2019-09-26 17:57:31 -07:00
vadimt 83b03b08de Removing a 'percent' parameter for scroll
It's an invitation to use magic constants.

Bug: 123904290
Change-Id: I485abbbb868c41949dddd6e2c4cf363cc44a5ccd
2019-09-26 17:52:32 -07:00
vadimt 7028b10c54 Removing magic constant 0.8f from AllApps
Bug: 123904290
Change-Id: I52aeb3c0452175ba37b2524d632e8069ba0911c9
Merged-in: I91ff4d4f962eefea787989362c32d987f546e84d
2019-09-26 23:54:30 +00:00
vadimt 22c4b3c91d Removing magic constant 0.8f from AllApps
Bug: 123904290
Change-Id: I91ff4d4f962eefea787989362c32d987f546e84d
2019-09-26 16:35:24 -07:00
Vadim Tryshev 880d233bb4 Merge "Removing magic constants from TAPL/Widgets" into ub-launcher3-qt-qpr1-dev am: 77f045b607
am: 12db478e46

Change-Id: I1e4329b456819e02b072595a192e64b964ed1329
2019-09-26 14:47:11 -07:00
Vadim Tryshev 12db478e46 Merge "Removing magic constants from TAPL/Widgets" into ub-launcher3-qt-qpr1-dev
am: 77f045b607

Change-Id: I8ea519aca0ef3830f506c91c2086e1eb31b4b6f2
2019-09-26 14:40:40 -07:00
Vadim Tryshev 77f045b607 Merge "Removing magic constants from TAPL/Widgets" into ub-launcher3-qt-qpr1-dev 2019-09-26 21:15:00 +00:00
vadimt aca7e6da5b Removing magic constants from TAPL/Widgets
Bug: 123904290
Change-Id: I8abc6cde6be8a51b38782f5c94749fe0c33384c1
2019-09-26 13:45:42 -07:00
vadimt fac899b489 Avoiding swiping down from the from the extended touchable region around the notch in Widgets am: 46f3999fb3
am: 7601d12a91

Change-Id: Iaef68417c256cef8a73e9b7ac47df78f17dec02a
2019-09-26 13:27:38 -07:00
vadimt 7601d12a91 Avoiding swiping down from the from the extended touchable region around the notch in Widgets
am: 46f3999fb3

Change-Id: I59ad5cd711326caa64deb819083a77174338ef71
2019-09-26 13:22:10 -07:00
vadimt 46f3999fb3 Avoiding swiping down from the from the extended touchable region around the notch in Widgets
Bug: 141697444
Change-Id: I8edd6a05e34c8a7e91dab1757938d40efffb766f
2019-09-26 19:43:05 +00:00
Vadim Tryshev 4357da3cf3 Merge "Reducing usage of magic constants in TAPL's widgets (fling back)" into ub-launcher3-qt-qpr1-dev am: 8a2cb67d07
am: 79a4c590c5

Change-Id: I5d37faa3ff2a19db924329c9eb09b4493897fbd8
2019-09-25 21:30:20 -07:00
Vadim Tryshev c64c4d95c8 Merge "Reducing usage of magic constants in TAPL's widgets" into ub-launcher3-qt-qpr1-dev am: 92e3cec417
am: 137e3c28b0

Change-Id: I4a8e7b462704c906bbcc3a841821fee82e90fc90
2019-09-25 21:30:02 -07:00
Vadim Tryshev 79a4c590c5 Merge "Reducing usage of magic constants in TAPL's widgets (fling back)" into ub-launcher3-qt-qpr1-dev
am: 8a2cb67d07

Change-Id: Ib3a8cd665238acdc03f45be5326399a526d52e39
2019-09-25 21:19:15 -07:00
Vadim Tryshev 137e3c28b0 Merge "Reducing usage of magic constants in TAPL's widgets" into ub-launcher3-qt-qpr1-dev
am: 92e3cec417

Change-Id: Iac12e2303e000791687ae56187b9988e50796245
2019-09-25 21:18:58 -07:00
Vadim Tryshev 8a2cb67d07 Merge "Reducing usage of magic constants in TAPL's widgets (fling back)" into ub-launcher3-qt-qpr1-dev 2019-09-26 02:18:57 +00:00
vadimt 3887500f8e Reducing usage of magic constants in TAPL's widgets (fling back)
Bug: 123904290
Change-Id: I398ff2ebd418551e3fed825edf79398e32025859
2019-09-25 18:31:36 -07:00
vadimt 7bd93b1639 Reducing usage of magic constants in TAPL's widgets
Bug: 123904290
Change-Id: I5f158eb06ab5d40825cc975e798296ab06fc1f1f
2019-09-25 18:15:10 -07:00
Vadim Tryshev 93f36ca868 Merge "Removing unused method isAvd" into ub-launcher3-qt-qpr1-dev am: 1a706cd538
am: 0b72d6a891

Change-Id: I830b5d86342c85b7f4d39ac72022b25cc6f0b766
2019-09-24 19:23:30 -07:00
Vadim Tryshev 0b72d6a891 Merge "Removing unused method isAvd" into ub-launcher3-qt-qpr1-dev
am: 1a706cd538

Change-Id: I0791eef6d1d10ed8b2779591c4ad75c38b7f84b3
2019-09-24 19:15:30 -07:00
vadimt b899787811 Remove unused getDisplayDensity am: 5f660f40c7
am: c3dfd4ef2b

Change-Id: I16f84721a05ca7b5770744263d1a268212602ed0
2019-09-24 19:07:43 -07:00
Vadim Tryshev 1a706cd538 Merge "Removing unused method isAvd" into ub-launcher3-qt-qpr1-dev 2019-09-25 02:03:35 +00:00
vadimt c3dfd4ef2b Remove unused getDisplayDensity
am: 5f660f40c7

Change-Id: I126ce4fa342f5d89c6e7f0d83b059479854a08aa
2019-09-24 19:00:42 -07:00
Vadim Tryshev c86abf0ed0 Merge "Removing temporary checks that tests are running on AVD" into ub-launcher3-qt-qpr1-dev am: 6929199c8a
am: ec1ae481d4

Change-Id: I3cf67561ae50575486db5360d0139ff916c5dfaf
2019-09-24 18:24:50 -07:00
vadimt 5f660f40c7 Remove unused getDisplayDensity
Change-Id: I4c63f4f8c0b0d8596e6b2db9839af059961157a8
2019-09-24 18:18:35 -07:00
Vadim Tryshev ec1ae481d4 Merge "Removing temporary checks that tests are running on AVD" into ub-launcher3-qt-qpr1-dev
am: 6929199c8a

Change-Id: Iaa6200f0371a4deca630194ac8ecfcfc04313750
2019-09-24 18:18:19 -07:00
vadimt 39eb7ec877 Removing unused method isAvd
Bug: 136278866
Change-Id: I06396a60e44d25cd2b532f6ce31c2ce965263817
2019-09-24 18:13:45 -07:00
vadimt 926e29f8b6 Removing temporary checks that tests are running on AVD
Bug: 136278866
Change-Id: I2b7b63b7745936ea84b7cba599e21d954b682ba5
2019-09-24 17:19:51 -07:00
TreeHugger Robot 86634e19f0 Merge "Fixing some tests" into ub-launcher3-master 2019-09-24 22:28:37 +00:00
Sunny Goyal 599e95bdde Fixing some tests
> Adding retry to fallback recents tests
> Fixing provider test after provider name change
> Fixing AllApps icon detection when there is no more scroll available

Bug: 141390432
Bug: 141523101
Bug: 141517004
Bug: 141524555
Bug: 141522764
Change-Id: I425638d20c053206134835dabde819f16160f035
2019-09-24 15:10:06 -07:00
Pinyao Ting 30414c5699 Merge changes from topic "a11y-minus-one" into ub-launcher3-qt-future-dev
am: ff4977d42d

Change-Id: I5c565a2d67274240dcd06e41ad03564526d486ce
2019-09-24 14:58:53 -07:00
Pinyao Ting 7752023c08 fix test for a11y change in supporting -1 page
Bug: 140406263
Change-Id: I0a39db135a5e5b0fe570ace55a368a7f4b6cb453
Test: run TaplTestLauncher3 locally
2019-09-23 13:06:36 -07:00
vadimt 3bdba61542 Not using dropbox entries before the test start for diagnostics
Change-Id: Ieb48d969d86a855c91109f4ace0d636fa01aafc7
Merged-in: Ia060b5d2b98ea9ea3b6e61ae11d610f1a888d7a0
2019-09-21 01:37:56 +00:00
vadimt 6a585df8d1 Not using dropbox entries before the test start for diagnostics
Change-Id: Ia060b5d2b98ea9ea3b6e61ae11d610f1a888d7a0
2019-09-20 18:12:05 -07:00
Sunny Goyal 3d56046ff8 Fixing some tests for 2-button mode
Bug: 141315387
Change-Id: I66db3e790f5fbe6bc30999ed599cce03874509be
2019-09-20 10:40:14 -07:00
Sunny Goyal ed83cf6df0 Adding recents test for 3P Launcher
Bug: 140749967
Change-Id: I3644822accfd229d1e46ca5e43ad827aef776787
2019-09-17 13:41:10 -07:00
Vadim Tryshev a24ed7267c Merge "Support for tests that a leak is detected" into ub-launcher3-qt-qpr1-dev 2019-09-17 19:16:00 +00:00
vadimt 8c2ae545cf Support for tests that a leak is detected
Bug: 139137636
Change-Id: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5
Merged-in: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5
2019-09-17 18:49:42 +00:00
vadimt 4e4e4da66a Support for tests that a leak is detected
Bug: 139137636
Change-Id: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5
2019-09-17 18:17:10 +00:00
vadimt 6b3cbf116d Fixing widget tests
Bug: 140837771
Change-Id: If5dcf455b1a87b06c883dd1f0d46c6748e6d1a94
2019-09-12 12:49:59 -07:00
vadimt 599b1fc4d3 Reenabling some widget tests
Bug: 140837771
Change-Id: I437f39b4a7f4b518551a157858c9b1a4812ee65d
2019-09-10 18:37:28 -07:00
vadimt 2bad570b40 Support for getting Launcher Pss by tests
Bug: 139137636
Change-Id: I8cad7dec07ce400cf927e3fc2ba9904fef942d9a
2019-09-06 16:50:51 -07:00
vadimt 758a1d983d Removing flinging via UI Automator
UI Automator loses events. Switching to the homemade scrolling.

Bug: 138729157
Change-Id: Ib09bd5714e83eadfc65b54202867bf375e6b47c5
2019-09-04 16:35:19 -07:00
vadimt 849cdc803d Removing numbers from error message
They interfere with flake clustering

Change-Id: I845b6e080824e00b9442070d53a0a3b448670d67
2019-09-03 17:01:27 -07:00
vadimt 47144ca73c Logging to catch INJECT PERMISSION problem
Bug: 139498375
Change-Id: Ib7b8e1997bae9d4ff9cce7cf8690e42b6fdaaf38
2019-08-15 16:06:58 -07:00
vadimt 849b201de0 Temporary workaround for UIAutomator not recognizing a new window
Bug: 112282235
Change-Id: I145bb88d72689f8c6d61ba3481f25d8978933ab2
2019-08-14 15:38:34 -07:00
vadimt c1a2764a6e Support for memory tests
Change-Id: I867a232a293f7bddbc630f563f18c0db94ac4b6e
2019-08-08 12:03:09 -07:00
Vadim Tryshev bfff1c80df Merge "Improving getWorkspaceAppIcon()" into ub-launcher3-qt-qpr1-dev 2019-07-31 21:13:13 +00:00
vadimt 49a28a725a Improving getWorkspaceAppIcon()
Change-Id: I71093b6c03b96ef608be9c8b847a372834b79d64
2019-07-31 13:48:39 -07:00
vadimt 8a35c5cf94 Improving system health diags
Change-Id: Id3de46c48421051bc5680e05bcf77492aa793000
2019-07-31 11:37:00 -07:00
vadimt 7d2795e185 Not throwing NPE when can't resolve test provider
Change-Id: I22fa6dc5de94ffa02e0121b4f929adffcb9c1ce9
2019-07-30 12:33:20 -07:00
vadimt 98193241c3 Tuning system health diags
Change-Id: Ib437c07e7e6e766621af435f75198b55dafd13c4
2019-07-25 15:15:30 -07:00
Vadim Tryshev 7b0520afe4 Merge "Checking Launcher internal integrity from tests" into ub-launcher3-qt-r1-dev 2019-07-24 01:30:06 +00:00
vadimt 0dd1c782f0 Checking Launcher internal integrity from tests
In particular, we check that the stable Launcher state equals its
current state. This can help detect Launcher being in a corrupted state
as in b/133867119.

The check gets called by tests when the Launcher is not transitioning
from state to state.

Bug: 137307838
Change-Id: I3d36edff35e42d14be6b9a52351bd6f709be75e8
2019-07-23 18:07:25 -07:00
TreeHugger Robot 8578309f1b Merge "Adding debug tracing" into ub-launcher3-qt-r1-dev 2019-07-24 00:01:25 +00:00
vadimt cd7b00853b Adding debug tracing
Bug: 138251824
Change-Id: Ibe3de964aeacbf83fd46cc53fda7d15c9401fe4d
2019-07-23 16:49:48 -07:00
Vadim Tryshev 068f4bde88 Merge "TAPL: adding 1 to gesture margins to avoid accidentally triggering back" into ub-launcher3-qt-r1-dev 2019-07-23 23:17:08 +00:00
vadimt a505381980 TAPL: adding 1 to gesture margins to avoid accidentally triggering back
Change-Id: I7152d60dffc2085313dc1466693b599e4efe0394
2019-07-23 15:48:02 -07:00
vadimt 34828b1942 Improving "Add automatically" recognition
Bug: 138152531
Change-Id: I204233f06a80d2d17b24dd9622c7a2152b1303a0
2019-07-23 13:54:05 -07:00
vadimt 44515f42c0 Allowing both normal-case and uppercase versions of widget prompt
The prompt is "Add automatically"

Bug: 138152531
Change-Id: I5f1a15563e1e11768579711108a28070b72b4454
2019-07-23 12:41:13 -07:00
vadimt 20aa2e4f51 Logging start and end of linear gesture
Change-Id: Ie0756c89e3871b3f4e12849ef52c44f84a5ceeee
2019-07-22 16:54:29 -07:00
Vadim Tryshev a7b3de9e45 Merge "Improving system health diags" into ub-launcher3-qt-r1-dev 2019-07-19 17:59:14 +00:00
vadimt 76d2a6fcc3 Improving system health diags
Change-Id: I207c5b9c9ad9e99646419b7a4bd77b59a067f26d
2019-07-19 10:40:25 -07:00
vadimt c8d496fe00 Fix waiting for launcher initialization
Bug: 137836033

Change-Id: Ifc8ce867abd85eaeacd09a2b39636ecc4109c046
2019-07-18 18:31:49 -07:00