summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nataniel Borges <natanieljr@google.com> 2023-04-20 16:20:27 +0000
committer Nataniel Borges <natanieljr@google.com> 2023-04-20 16:20:27 +0000
commit2c6492d62b6e9bb6d452affe1756e6bb57427922 (patch)
tree543e9a4dc763642e571fbaede0cb655780fe9769
parent0f4533372b17df56fc0167a247dc1af8688c686f (diff)
Wait for both window and layer to be visible and window to be pinned before considering the app in pip mode
Bug: 277761298 Test: atest WMShellFlickerTests Change-Id: I2334a7bb8eecc9542f5201f5c8aff8457d26459f
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/helpers/PipAppHelper.kt5
1 files changed, 4 insertions, 1 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 a72c12dcb463..c5a21a80d8d0 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,7 +250,10 @@ open class PipAppHelper(instrumentation: Instrumentation) :
waitConditions = arrayOf(ConditionsFactory.hasPipWindow())
)
- wmHelper.StateSyncBuilder().withPipShown().waitForAndVerify()
+ wmHelper.StateSyncBuilder()
+ .withWindowSurfaceAppeared(this)
+ .withPipShown()
+ .waitForAndVerify()
}
/** Expand the PIP window back to full screen via intent and wait until the app is visible */