diff options
| author | 2023-07-19 20:51:54 +0000 | |
|---|---|---|
| committer | 2023-07-19 20:56:43 +0000 | |
| commit | ded9258e3b8d80449128cb6bd37a190a1d2a3218 (patch) | |
| tree | dc2fffa804e8af491a6a08ad82181627759a8716 | |
| parent | 62adc5ad67217cb5689bd181e1dad1b30e1529dd (diff) | |
Add logs to debug flakiness of the test
Bug: 270677470
Test: n/a, adding logs to debug raven specific flakiness in the lab
Change-Id: I5a12a08d7b804e04144f6473f8e3348ea9e9d339
| -rw-r--r-- | tests/FlickerTests/src/com/android/server/wm/flicker/helpers/PipAppHelper.kt | 5 |
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 c975a50ace02..c6b86f2689f0 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 @@ -386,8 +386,11 @@ open class PipAppHelper(instrumentation: Instrumentation) : it.wmState.visibleWindows.firstOrNull { window -> this.windowMatchesAnyOf(window) } - ?: return@add false + Log.d(TAG, "window " + pipAppWindow) + if (pipAppWindow == null) return@add false val pipRegion = pipAppWindow.frameRegion + Log.d(TAG, "region " + pipRegion + + " covers " + windowRect.coversMoreThan(pipRegion)) return@add windowRect.coversMoreThan(pipRegion) } .waitForAndVerify() |