Merge "Add logs to debug flakiness of the test" into udc-qpr-dev

This commit is contained in:
Treehugger Robot
2023-07-20 21:15:03 +00:00
committed by Android (Google) Code Review

View File

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