From bb6f5f5242ecb5c8df64320ff3b2e247ad5528f4 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 15 May 2020 13:11:36 -0700 Subject: [PATCH] Add dumpsys input where it was missing Bug: 156287114 Change-Id: Ie0a71e8dc261abfde4eec3ce882786d77a870c32 --- .../launcher3/tapl/LauncherInstrumentation.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index b333100393..4493279782 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -1323,6 +1323,16 @@ public final class LauncherInstrumentation { if (mCheckEventsForSuccessfulGestures) { final String message = sEventChecker.verify(WAIT_TIME_MS, true); if (message != null) { + try { + Log.e("b/156287114", "Input:"); + for (String line : mDevice.executeShellCommand("dumpsys input").split( + "\\n")) { + Log.d("b/156287114", line); + } + } catch (IOException e) { + e.printStackTrace(); + } + checkForAnomaly(); Assert.fail(formatSystemHealthMessage( "http://go/tapl : successful gesture produced " + message));