Wait until PIP has the correct bounds before continuing

Bug: 288353930
Test: atest WMShellFlickerTestPip
Change-Id: I92ec51ea2a5e7e396ff4c618e03c6530f3257d1b
This commit is contained in:
Nataniel Borges
2023-07-04 16:28:35 +00:00
parent 41b1f98887
commit 2e8bc06a77

View File

@@ -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()
}