summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Input/src/com/android/test/input/UinputRecordingIntegrationTests.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Input/src/com/android/test/input/UinputRecordingIntegrationTests.kt b/tests/Input/src/com/android/test/input/UinputRecordingIntegrationTests.kt
index c61a25021949..1811c461e23f 100644
--- a/tests/Input/src/com/android/test/input/UinputRecordingIntegrationTests.kt
+++ b/tests/Input/src/com/android/test/input/UinputRecordingIntegrationTests.kt
@@ -26,6 +26,7 @@ import android.util.Size
import android.view.InputEvent
import android.view.MotionEvent
import androidx.test.platform.app.InstrumentationRegistry
+import android.server.wm.CtsWindowInfoUtils.waitForStableWindowGeometry
import com.android.cts.input.BatchedEventSplitter
import com.android.cts.input.InputJsonParser
import com.android.cts.input.VirtualDisplayActivityScenario
@@ -36,6 +37,7 @@ import com.android.cts.input.inputeventmatchers.withMotionAction
import com.android.cts.input.inputeventmatchers.withPressure
import com.android.cts.input.inputeventmatchers.withRawCoords
import com.android.cts.input.inputeventmatchers.withSource
+import java.time.Duration
import junit.framework.Assert.fail
import org.hamcrest.Matchers.allOf
import org.junit.Before
@@ -113,6 +115,7 @@ class UinputRecordingIntegrationTests {
testName,
size = testData.displaySize
).use { scenario ->
+ waitForStableWindowGeometry(Duration.ofSeconds(5))
scenario.activity.window.decorView.requestUnbufferedDispatch(INPUT_DEVICE_SOURCE_ALL)
try {