diff options
author | vadimt <vadimt@google.com> | 2019-05-31 11:32:09 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-05-31 11:32:09 -0700 |
commit | 8fcf7059edc7d7ff9156d63e29a2b9a08236d311 (patch) | |
tree | dd19748d721bcadb395d995b1f1da55435bfb8c6 /tests | |
parent | f07cf179dce2f07a28dab0ad51065f093f74c884 (diff) | |
download | android_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.java | 3 |
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); } |