Merge "Logging UPs and DOWNs that TAPL injects" into sc-dev

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2021-06-14 20:55:48 +00:00
commit b32c61a6cc
1 file changed
+7
@@ -1248,6 +1248,13 @@ public final class LauncherInstrumentation {
}
final MotionEvent event = getMotionEvent(downTime, currentTime, action, point.x, point.y);
// b/190748682
switch (action) {
case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_UP:
log("b/190748682: injecting " + event);
break;
}
assertTrue("injectInputEvent failed",
mInstrumentation.getUiAutomation().injectInputEvent(event, true, false));
event.recycle();