From 233afe98e92935e2f5cf0813994a84fdc7763b4d Mon Sep 17 00:00:00 2001 From: vadimt Date: Wed, 2 Oct 2019 17:10:02 -0700 Subject: [PATCH] Dump view hierarchy before swiping to home Bug: 141864547 Change-Id: Ifd444c4516f7f27b0dc19c0faa1d4c8716d2254a --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 2e9cb81f0c..24d4964d50 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;