Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/CommonAssertions.kt +8 −4 Original line number Diff line number Diff line Loading @@ -73,7 +73,8 @@ fun FlickerTestParameter.dockedStackDividerIsInvisible() { fun FlickerTestParameter.appPairsPrimaryBoundsIsVisible(rotation: Int, primaryLayerName: String) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) this.coversExactly(getPrimaryRegion(dividerRegion, rotation), primaryLayerName) visibleRegion(primaryLayerName) .coversExactly(getPrimaryRegion(dividerRegion, rotation)) } } Loading @@ -83,7 +84,8 @@ fun FlickerTestParameter.dockedStackPrimaryBoundsIsVisible( ) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER) this.coversExactly(getPrimaryRegion(dividerRegion, rotation), primaryLayerName) visibleRegion(primaryLayerName) .coversExactly(getPrimaryRegion(dividerRegion, rotation)) } } Loading @@ -93,7 +95,8 @@ fun FlickerTestParameter.appPairsSecondaryBoundsIsVisible( ) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) this.coversExactly(getSecondaryRegion(dividerRegion, rotation), secondaryLayerName) visibleRegion(secondaryLayerName) .coversExactly(getSecondaryRegion(dividerRegion, rotation)) } } Loading @@ -103,7 +106,8 @@ fun FlickerTestParameter.dockedStackSecondaryBoundsIsVisible( ) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER) this.coversExactly(getSecondaryRegion(dividerRegion, rotation), secondaryLayerName) visibleRegion(secondaryLayerName) .coversExactly(getSecondaryRegion(dividerRegion, rotation)) } } Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/apppairs/AppPairsTestPairPrimaryAndSecondaryApps.kt +4 −4 Original line number Diff line number Diff line Loading @@ -82,10 +82,10 @@ class AppPairsTestPairPrimaryAndSecondaryApps( fun appsEndingBounds() { testSpec.assertLayersEnd { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) this.coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion), primaryApp.defaultWindowName) .coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion), secondaryApp.defaultWindowName) visibleRegion(primaryApp.defaultWindowName) .coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion)) visibleRegion(secondaryApp.defaultWindowName) .coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion)) } } Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/apppairs/AppPairsTestUnpairPrimaryAndSecondaryApps.kt +4 −4 Original line number Diff line number Diff line Loading @@ -87,10 +87,10 @@ class AppPairsTestUnpairPrimaryAndSecondaryApps( fun appsStartingBounds() { testSpec.assertLayersStart { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion), primaryApp.defaultWindowName) coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion), secondaryApp.defaultWindowName) visibleRegion(primaryApp.defaultWindowName) .coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion)) visibleRegion(secondaryApp.defaultWindowName) .coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion)) } } Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/ResizeLegacySplitScreen.kt +4 −4 Original line number Diff line number Diff line Loading @@ -183,8 +183,8 @@ class ResizeLegacySplitScreen( dividerBounds.bottom - WindowUtils.dockedStackDividerInset, displayBounds.right, displayBounds.bottom - WindowUtils.navigationBarHeight) this.coversExactly(topAppBounds, "SimpleActivity") .coversExactly(bottomAppBounds, "ImeActivity") visibleRegion("SimpleActivity").coversExactly(topAppBounds) visibleRegion("ImeActivity").coversExactly(bottomAppBounds) } } Loading @@ -203,8 +203,8 @@ class ResizeLegacySplitScreen( displayBounds.right, displayBounds.bottom - WindowUtils.navigationBarHeight) this.coversExactly(topAppBounds, sSimpleActivity) .coversExactly(bottomAppBounds, sImeActivity) visibleRegion(sSimpleActivity).coversExactly(topAppBounds) visibleRegion(sImeActivity).coversExactly(bottomAppBounds) } } Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/EnterExitPipTest.kt +3 −3 Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ class EnterExitPipTest( @Test fun testAppCoversFullScreenWithPipOnDisplay() { testSpec.assertLayersStart { coversExactly(displayBounds, testApp.defaultWindowName) coversAtMost(displayBounds, pipApp.defaultWindowName) visibleRegion(testApp.defaultWindowName).coversExactly(displayBounds) visibleRegion(pipApp.defaultWindowName).coversAtMost(displayBounds) } } Loading @@ -99,7 +99,7 @@ class EnterExitPipTest( @Test fun pipAppCoversFullScreen() { testSpec.assertLayersEnd { coversExactly(displayBounds, pipApp.defaultWindowName) visibleRegion(pipApp.defaultWindowName).coversExactly(displayBounds) } } Loading Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/CommonAssertions.kt +8 −4 Original line number Diff line number Diff line Loading @@ -73,7 +73,8 @@ fun FlickerTestParameter.dockedStackDividerIsInvisible() { fun FlickerTestParameter.appPairsPrimaryBoundsIsVisible(rotation: Int, primaryLayerName: String) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) this.coversExactly(getPrimaryRegion(dividerRegion, rotation), primaryLayerName) visibleRegion(primaryLayerName) .coversExactly(getPrimaryRegion(dividerRegion, rotation)) } } Loading @@ -83,7 +84,8 @@ fun FlickerTestParameter.dockedStackPrimaryBoundsIsVisible( ) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER) this.coversExactly(getPrimaryRegion(dividerRegion, rotation), primaryLayerName) visibleRegion(primaryLayerName) .coversExactly(getPrimaryRegion(dividerRegion, rotation)) } } Loading @@ -93,7 +95,8 @@ fun FlickerTestParameter.appPairsSecondaryBoundsIsVisible( ) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) this.coversExactly(getSecondaryRegion(dividerRegion, rotation), secondaryLayerName) visibleRegion(secondaryLayerName) .coversExactly(getSecondaryRegion(dividerRegion, rotation)) } } Loading @@ -103,7 +106,8 @@ fun FlickerTestParameter.dockedStackSecondaryBoundsIsVisible( ) { assertLayersEnd { val dividerRegion = entry.getVisibleBounds(DOCKED_STACK_DIVIDER) this.coversExactly(getSecondaryRegion(dividerRegion, rotation), secondaryLayerName) visibleRegion(secondaryLayerName) .coversExactly(getSecondaryRegion(dividerRegion, rotation)) } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/apppairs/AppPairsTestPairPrimaryAndSecondaryApps.kt +4 −4 Original line number Diff line number Diff line Loading @@ -82,10 +82,10 @@ class AppPairsTestPairPrimaryAndSecondaryApps( fun appsEndingBounds() { testSpec.assertLayersEnd { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) this.coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion), primaryApp.defaultWindowName) .coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion), secondaryApp.defaultWindowName) visibleRegion(primaryApp.defaultWindowName) .coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion)) visibleRegion(secondaryApp.defaultWindowName) .coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion)) } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/apppairs/AppPairsTestUnpairPrimaryAndSecondaryApps.kt +4 −4 Original line number Diff line number Diff line Loading @@ -87,10 +87,10 @@ class AppPairsTestUnpairPrimaryAndSecondaryApps( fun appsStartingBounds() { testSpec.assertLayersStart { val dividerRegion = entry.getVisibleBounds(APP_PAIR_SPLIT_DIVIDER) coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion), primaryApp.defaultWindowName) coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion), secondaryApp.defaultWindowName) visibleRegion(primaryApp.defaultWindowName) .coversExactly(appPairsHelper.getPrimaryBounds(dividerRegion)) visibleRegion(secondaryApp.defaultWindowName) .coversExactly(appPairsHelper.getSecondaryBounds(dividerRegion)) } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/ResizeLegacySplitScreen.kt +4 −4 Original line number Diff line number Diff line Loading @@ -183,8 +183,8 @@ class ResizeLegacySplitScreen( dividerBounds.bottom - WindowUtils.dockedStackDividerInset, displayBounds.right, displayBounds.bottom - WindowUtils.navigationBarHeight) this.coversExactly(topAppBounds, "SimpleActivity") .coversExactly(bottomAppBounds, "ImeActivity") visibleRegion("SimpleActivity").coversExactly(topAppBounds) visibleRegion("ImeActivity").coversExactly(bottomAppBounds) } } Loading @@ -203,8 +203,8 @@ class ResizeLegacySplitScreen( displayBounds.right, displayBounds.bottom - WindowUtils.navigationBarHeight) this.coversExactly(topAppBounds, sSimpleActivity) .coversExactly(bottomAppBounds, sImeActivity) visibleRegion(sSimpleActivity).coversExactly(topAppBounds) visibleRegion(sImeActivity).coversExactly(bottomAppBounds) } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/EnterExitPipTest.kt +3 −3 Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ class EnterExitPipTest( @Test fun testAppCoversFullScreenWithPipOnDisplay() { testSpec.assertLayersStart { coversExactly(displayBounds, testApp.defaultWindowName) coversAtMost(displayBounds, pipApp.defaultWindowName) visibleRegion(testApp.defaultWindowName).coversExactly(displayBounds) visibleRegion(pipApp.defaultWindowName).coversAtMost(displayBounds) } } Loading @@ -99,7 +99,7 @@ class EnterExitPipTest( @Test fun pipAppCoversFullScreen() { testSpec.assertLayersEnd { coversExactly(displayBounds, pipApp.defaultWindowName) visibleRegion(pipApp.defaultWindowName).coversExactly(displayBounds) } } Loading