Printing TouchInteractionService state on test failures

Change-Id: I41078238c8f49c929ccb026ca329e730ab96822c
This commit is contained in:
vadimt
2019-05-29 14:44:47 -07:00
parent 8ffa234955
commit 1b902a3128

View File

@@ -192,6 +192,14 @@ public abstract class AbstractLauncherUiTest {
", track trace is below, UI object dump is further below:\n" +
Log.getStackTraceString(e));
dumpViewHierarchy();
try {
final String dumpsysResult = mDevice.executeShellCommand(
"dumpsys activity service TouchInteractionService");
Log.d(TAG, "TouchInteractionService: " + dumpsysResult);
} catch (IOException ex) {
}
mDevice.takeScreenshot(new File(pathname));
}
};