Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e1ad449 authored by vadimt's avatar vadimt
Browse files

Logging UPs and DOWNs that TAPL injects

Test: presubmit
Bug: 190748682
Change-Id: I82e792724bab178a9c3ca190609af913fbaf4a87
parent 65c20f4a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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();