From faf4da386d312a7db66b31e42a19aa397e6218e6 Mon Sep 17 00:00:00 2001 From: vadimt Date: Mon, 4 May 2020 15:40:47 -0700 Subject: [PATCH] Speeding up TAPL by calling getVisibleStateMessage() less frequently The information in the message can be derived from the object dump printed anyways. Change-Id: I22ee136568b767c3218eaabc3920c77b3ceaa78f --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 085df74bc9..938be2ec9a 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -651,7 +651,7 @@ public final class LauncherInstrumentation { } else { log("Hierarchy before swiping up to home:"); dumpViewHierarchy(); - log(action = "swiping up to home from " + getVisibleStateMessage()); + action = "swiping up to home"; try (LauncherInstrumentation.Closable c = addContextLayer(action)) { swipeToState( @@ -666,7 +666,7 @@ public final class LauncherInstrumentation { } else { log("Hierarchy before clicking home:"); dumpViewHierarchy(); - log(action = "clicking home button from " + getVisibleStateMessage()); + action = "clicking home button"; try (LauncherInstrumentation.Closable c = addContextLayer(action)) { mDevice.waitForIdle();