From 8fcf7059edc7d7ff9156d63e29a2b9a08236d311 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 31 May 2019 11:32:09 -0700 Subject: [PATCH] Annotating hierarchy dump for the error description Change-Id: I10285d451f4816b4988ce0645669b9ec9cceac81 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index f7befd1408..ee12b278cf 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -21,9 +21,9 @@ import static android.content.pm.PackageManager.DONT_KILL_APP; import static android.content.pm.PackageManager.MATCH_ALL; import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS; +import static com.android.launcher3.tapl.TestHelpers.getOverviewPackageName; import static com.android.launcher3.testing.TestProtocol.BACKGROUND_APP_STATE_ORDINAL; import static com.android.launcher3.testing.TestProtocol.NORMAL_STATE_ORDINAL; -import static com.android.launcher3.tapl.TestHelpers.getOverviewPackageName; import android.app.ActivityManager; import android.app.Instrumentation; @@ -257,6 +257,7 @@ public final class LauncherInstrumentation { } private void fail(String message) { + log("Hierarchy dump for: " + getContextDescription() + message); dumpViewHierarchy(); Assert.fail("http://go/tapl : " + getContextDescription() + message); }