Merge "Add logs to debug flakiness of the test" into udc-qpr-dev am: 83cb8256c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24135250 Change-Id: I495145015207bd82e156b373180bc3bd90075a74 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -386,8 +386,11 @@ open class PipAppHelper(instrumentation: Instrumentation) :
|
|||||||
it.wmState.visibleWindows.firstOrNull { window ->
|
it.wmState.visibleWindows.firstOrNull { window ->
|
||||||
this.windowMatchesAnyOf(window)
|
this.windowMatchesAnyOf(window)
|
||||||
}
|
}
|
||||||
?: return@add false
|
Log.d(TAG, "window " + pipAppWindow)
|
||||||
|
if (pipAppWindow == null) return@add false
|
||||||
val pipRegion = pipAppWindow.frameRegion
|
val pipRegion = pipAppWindow.frameRegion
|
||||||
|
Log.d(TAG, "region " + pipRegion +
|
||||||
|
" covers " + windowRect.coversMoreThan(pipRegion))
|
||||||
return@add windowRect.coversMoreThan(pipRegion)
|
return@add windowRect.coversMoreThan(pipRegion)
|
||||||
}
|
}
|
||||||
.waitForAndVerify()
|
.waitForAndVerify()
|
||||||
|
|||||||
Reference in New Issue
Block a user