From 288960b5ba3923af3cd1ece5ae92e452ecc3d0e4 Mon Sep 17 00:00:00 2001 From: vadimt Date: Thu, 11 Mar 2021 19:11:19 -0800 Subject: [PATCH] Disable waiting for animation from event injection This will avoid taking locks from it, and stop TAPL from introducing jank under lock contention. Bug: 173469230 Test: presubmit Change-Id: Ifeba2dc7528b573ffaba2aa94dfdae6b8a14a7b3 --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index f279a82475..6bf676fb5d 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -1215,7 +1215,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, true, false)); event.recycle(); }