From c705acbdc7e28f9215df27e56fd0b843fec4664c Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Mon, 31 Jul 2023 09:04:23 +0000 Subject: [PATCH] Empty region should cover at most any provided region Test: atest com.android.wm.shell.flicker.pip.EnterPipOnUserLeaveHintTest Bug: 293577434 Change-Id: I56b822712288c7903d0a6358573c78e1851afcef --- .../src/com/android/wm/shell/flicker/utils/CommonAssertions.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/CommonAssertions.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/CommonAssertions.kt index e5c124cbe7753..f1cb37ee12938 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/CommonAssertions.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/CommonAssertions.kt @@ -265,6 +265,7 @@ fun LayerTraceEntrySubject.splitAppLayerBoundsSnapToDivider( val dividerRegion = layer(SPLIT_SCREEN_DIVIDER_COMPONENT)?.visibleRegion?.region ?: error("$SPLIT_SCREEN_DIVIDER_COMPONENT component not found") + visibleRegion(component).isNotEmpty() visibleRegion(component) .coversAtMost( if (displayBounds.width > displayBounds.height) {