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

Commit 4c800539 authored by vadimt's avatar vadimt
Browse files

Speed up tests by injecting input events asynchronously

This way, we can get a humble ~3% acceleration

Change-Id: I53705d457838ea41be9af9ae0851ee8d2e2c1c3f
parent 5ab7171b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1184,7 +1184,7 @@ public final class LauncherInstrumentation {

        final MotionEvent event = getMotionEvent(downTime, currentTime, action, point.x, point.y);
        assertTrue("injectInputEvent failed",
                mInstrumentation.getUiAutomation().injectInputEvent(event, true));
                mInstrumentation.getUiAutomation().injectInputEvent(event, false));
        event.recycle();
    }