summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-10-03 17:35:28 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-10-03 17:35:28 -0700
commit3878d3ef095175c6c0b45d36dbfef03dda0a956d (patch)
tree757c1e489aa8648bb245326d9175407e5bc2ce7b /tests
parentf078975e9d2dfaf45a77df6361e19c8d2efc55d3 (diff)
parent233afe98e92935e2f5cf0813994a84fdc7763b4d (diff)
downloadandroid_packages_apps_Trebuchet-3878d3ef095175c6c0b45d36dbfef03dda0a956d.tar.gz
android_packages_apps_Trebuchet-3878d3ef095175c6c0b45d36dbfef03dda0a956d.tar.bz2
android_packages_apps_Trebuchet-3878d3ef095175c6c0b45d36dbfef03dda0a956d.zip
Dump view hierarchy before swiping to home
am: 233afe98e9 Change-Id: Ib67aa2247ae43f4e875deb07a9d8b53aa5e6f181
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index 2e9cb81f0..24d4964d5 100644
--- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
+++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -558,6 +558,8 @@ public final class LauncherInstrumentation {
if (hasLauncherObject(WORKSPACE_RES_ID)) {
log(action = "already at home");
} else {
+ log("Hierarchy before swiping up to home");
+ dumpViewHierarchy();
log(action = "swiping up to home from " + getVisibleStateMessage());
final int finalState = mDevice.hasObject(By.pkg(getLauncherPackageName()))
? NORMAL_STATE_ORDINAL : BACKGROUND_APP_STATE_ORDINAL;