Merge "Printing TouchInteractionService state on test failures" into ub-launcher3-qt-dev

This commit is contained in:
Vadim Tryshev
2019-05-30 01:34:54 +00:00
committed by Android (Google) Code Review
@@ -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));
}
};