From f5e98ead9d348ccf72f75d737e3dad9cc252c675 Mon Sep 17 00:00:00 2001 From: vadimt Date: Thu, 21 May 2020 12:42:32 -0700 Subject: [PATCH] Insert delays in dumping input state Hpoing to avoid overwhelming logcat Bug: 156287114 Change-Id: Ia0e95ade205a2c5cd6d7a27b59c9896fb78370af --- .../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 79008a76f3..c59e982bc9 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -440,6 +440,7 @@ public final class LauncherInstrumentation { try { Log.e("b/156287114", "Input:"); for (String line : mDevice.executeShellCommand("dumpsys input").split("\\n")) { + SystemClock.sleep(10); Log.d("b/156287114", line); } } catch (IOException e) { @@ -1321,6 +1322,7 @@ public final class LauncherInstrumentation { Log.e("b/156287114", "Input:"); for (String line : mDevice.executeShellCommand("dumpsys input").split( "\\n")) { + SystemClock.sleep(10); Log.d("b/156287114", line); } } catch (IOException e) {