summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-05-31 11:32:09 -0700
committervadimt <vadimt@google.com>2019-05-31 11:32:09 -0700
commit8fcf7059edc7d7ff9156d63e29a2b9a08236d311 (patch)
treedd19748d721bcadb395d995b1f1da55435bfb8c6 /tests
parentf07cf179dce2f07a28dab0ad51065f093f74c884 (diff)
downloadandroid_packages_apps_Trebuchet-8fcf7059edc7d7ff9156d63e29a2b9a08236d311.tar.gz
android_packages_apps_Trebuchet-8fcf7059edc7d7ff9156d63e29a2b9a08236d311.tar.bz2
android_packages_apps_Trebuchet-8fcf7059edc7d7ff9156d63e29a2b9a08236d311.zip
Annotating hierarchy dump for the error description
Change-Id: I10285d451f4816b4988ce0645669b9ec9cceac81
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index f7befd140..ee12b278c 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);
}