diff options
| author | 2023-07-04 16:28:35 +0000 | |
|---|---|---|
| committer | 2023-07-04 16:30:04 +0000 | |
| commit | 2e8bc06a77b1a289d98a4a8707b1c01bfcd78ffc (patch) | |
| tree | 78b77a214173bd601857dae8b77780947e56369d | |
| parent | 41b1f9888744c02ec85b17df54e8008e7b249ace (diff) | |
Wait until PIP has the correct bounds before continuing
Bug: 288353930
Test: atest WMShellFlickerTestPip
Change-Id: I92ec51ea2a5e7e396ff4c618e03c6530f3257d1b
| -rw-r--r-- | tests/FlickerTests/src/com/android/server/wm/flicker/helpers/PipAppHelper.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/PipAppHelper.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/PipAppHelper.kt index 24e231c73a0f..c975a50ace02 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/PipAppHelper.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/PipAppHelper.kt @@ -250,10 +250,13 @@ open class PipAppHelper(instrumentation: Instrumentation) : waitConditions = arrayOf(ConditionsFactory.hasPipWindow()) ) + val windowRegion = wmHelper.getWindowRegion(this) + wmHelper .StateSyncBuilder() .withWindowSurfaceAppeared(this) .withPipShown() + .withSurfaceVisibleRegion(this, windowRegion) .waitForAndVerify() } |