Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExpandPipOnDoubleClickTest.kt +74 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.flicker.pip import android.platform.test.annotations.FlakyTest import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import com.android.server.wm.flicker.FlickerParametersRunnerFactory Loading Loading @@ -66,7 +65,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition * Checks that the pip app window remains inside the display bounds throughout the whole * animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipWindowRemainInsideVisibleBounds() { testSpec.assertWmVisibleRegion(pipApp) { Loading @@ -78,7 +77,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition * Checks that the pip app layer remains inside the display bounds throughout the whole * animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipLayerRemainInsideVisibleBounds() { testSpec.assertLayersVisibleRegion(pipApp) { Loading @@ -89,7 +88,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [pipApp] window remains visible throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipWindowIsAlwaysVisible() { testSpec.assertWm { Loading @@ -100,7 +99,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [pipApp] layer remains visible throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipLayerIsAlwaysVisible() { testSpec.assertLayers { Loading @@ -111,7 +110,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks that the visible region of [pipApp] always expands during the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipLayerExpands() { testSpec.assertLayers { Loading @@ -122,7 +121,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition } } @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipSameAspectRatio() { testSpec.assertLayers { Loading @@ -136,7 +135,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [pipApp] window remains pinned throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun windowIsAlwaysPinned() { testSpec.assertWm { Loading @@ -147,7 +146,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [ComponentMatcher.LAUNCHER] layer remains visible throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun launcherIsAlwaysVisible() { testSpec.assertLayers { Loading @@ -166,6 +165,72 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition } } @FlakyTest(bugId = 216306753) @Test override fun navBarLayerIsVisibleAtStartAndEnd() { super.navBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun navBarWindowIsAlwaysVisible() { super.navBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 216306753) @Test override fun statusBarLayerIsVisibleAtStartAndEnd() { super.statusBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun statusBarLayerPositionAtStartAndEnd() { super.statusBarLayerPositionAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun taskBarLayerIsVisibleAtStartAndEnd() { super.taskBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun taskBarWindowIsAlwaysVisible() { super.taskBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 216306753) @Test override fun visibleLayersShownMoreThanOneConsecutiveEntry() { super.visibleLayersShownMoreThanOneConsecutiveEntry() } @FlakyTest(bugId = 216306753) @Test override fun statusBarWindowIsAlwaysVisible() { super.statusBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 216306753) @Test override fun visibleWindowsShownMoreThanOneConsecutiveEntry() { super.visibleWindowsShownMoreThanOneConsecutiveEntry() } @FlakyTest(bugId = 216306753) @Test override fun entireScreenCovered() { super.entireScreenCovered() } @FlakyTest(bugId = 216306753) @Test override fun navBarLayerPositionAtStartAndEnd() { super.navBarLayerPositionAtStartAndEnd() } companion object { /** * Creates the test configurations. Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByGoHome.kt +12 −5 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class DismissSplitScreenByGoHome( @Test fun splitScreenDividerBecomesInvisible() = testSpec.splitScreenDividerBecomesInvisible() @Presubmit @FlakyTest(bugId = 241525302) @Test fun primaryAppLayerBecomesInvisible() = testSpec.layerBecomesInvisible(primaryApp) Loading @@ -87,12 +87,18 @@ class DismissSplitScreenByGoHome( @FlakyTest(bugId = 245472831) @Test fun primaryAppBoundsBecomesInvisible() = testSpec.splitAppLayerBoundsBecomesInvisible( primaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false) primaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false ) @Presubmit @FlakyTest(bugId = 241525302) @Test fun secondaryAppBoundsBecomesInvisible() = testSpec.splitAppLayerBoundsBecomesInvisible( secondaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true) secondaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true ) @Presubmit @Test Loading Loading @@ -175,7 +181,8 @@ class DismissSplitScreenByGoHome( return FlickerTestParameterFactory.getInstance().getConfigNonRotationTests( // TODO(b/176061063):The 3 buttons of nav bar do not exist in the hierarchy. supportedNavigationModes = listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY)) listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY) ) } } } libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/SwitchAppByDoubleTapDivider.kt +18 −11 Original line number Diff line number Diff line Loading @@ -127,35 +127,41 @@ class SwitchAppByDoubleTapDivider(testSpec: FlickerTestParameter) : SplitScreenB // robust enough to get the correct end state. } @Presubmit @FlakyTest(bugId = 241524174) @Test fun splitScreenDividerKeepVisible() = testSpec.layerKeepVisible(SPLIT_SCREEN_DIVIDER_COMPONENT) @Presubmit @FlakyTest(bugId = 241524174) @Test fun primaryAppLayerIsVisibleAtEnd() = testSpec.layerIsVisibleAtEnd(primaryApp) @Presubmit @FlakyTest(bugId = 241524174) @Test fun secondaryAppLayerIsVisibleAtEnd() = testSpec.layerIsVisibleAtEnd(secondaryApp) @Presubmit @FlakyTest(bugId = 241524174) @Test fun primaryAppBoundsIsVisibleAtEnd() = testSpec.splitAppLayerBoundsIsVisibleAtEnd( primaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true) primaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true ) // TODO(b/246490534): Move back to presubmit after withAppTransitionIdle is robust enough to // get the correct end state. @FlakyTest(bugId = 246490534) @Test fun secondaryAppBoundsIsVisibleAtEnd() = testSpec.splitAppLayerBoundsIsVisibleAtEnd( secondaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false) secondaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false ) @Presubmit @FlakyTest(bugId = 241524174) @Test fun primaryAppWindowIsVisibleAtEnd() = testSpec.appWindowIsVisibleAtEnd(primaryApp) @Presubmit @FlakyTest(bugId = 241524174) @Test fun secondaryAppWindowIsVisibleAtEnd() = testSpec.appWindowIsVisibleAtEnd(secondaryApp) Loading Loading @@ -232,7 +238,8 @@ class SwitchAppByDoubleTapDivider(testSpec: FlickerTestParameter) : SplitScreenB return FlickerTestParameterFactory.getInstance().getConfigNonRotationTests( // TODO(b/176061063):The 3 buttons of nav bar do not exist in the hierarchy. supportedNavigationModes = listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY)) listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY) ) } } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExpandPipOnDoubleClickTest.kt +74 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.flicker.pip import android.platform.test.annotations.FlakyTest import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import com.android.server.wm.flicker.FlickerParametersRunnerFactory Loading Loading @@ -66,7 +65,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition * Checks that the pip app window remains inside the display bounds throughout the whole * animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipWindowRemainInsideVisibleBounds() { testSpec.assertWmVisibleRegion(pipApp) { Loading @@ -78,7 +77,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition * Checks that the pip app layer remains inside the display bounds throughout the whole * animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipLayerRemainInsideVisibleBounds() { testSpec.assertLayersVisibleRegion(pipApp) { Loading @@ -89,7 +88,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [pipApp] window remains visible throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipWindowIsAlwaysVisible() { testSpec.assertWm { Loading @@ -100,7 +99,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [pipApp] layer remains visible throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipLayerIsAlwaysVisible() { testSpec.assertLayers { Loading @@ -111,7 +110,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks that the visible region of [pipApp] always expands during the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipLayerExpands() { testSpec.assertLayers { Loading @@ -122,7 +121,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition } } @Presubmit @FlakyTest(bugId = 249308003) @Test fun pipSameAspectRatio() { testSpec.assertLayers { Loading @@ -136,7 +135,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [pipApp] window remains pinned throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun windowIsAlwaysPinned() { testSpec.assertWm { Loading @@ -147,7 +146,7 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition /** * Checks [ComponentMatcher.LAUNCHER] layer remains visible throughout the animation */ @Presubmit @FlakyTest(bugId = 249308003) @Test fun launcherIsAlwaysVisible() { testSpec.assertLayers { Loading @@ -166,6 +165,72 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition } } @FlakyTest(bugId = 216306753) @Test override fun navBarLayerIsVisibleAtStartAndEnd() { super.navBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun navBarWindowIsAlwaysVisible() { super.navBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 216306753) @Test override fun statusBarLayerIsVisibleAtStartAndEnd() { super.statusBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun statusBarLayerPositionAtStartAndEnd() { super.statusBarLayerPositionAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun taskBarLayerIsVisibleAtStartAndEnd() { super.taskBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 216306753) @Test override fun taskBarWindowIsAlwaysVisible() { super.taskBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 216306753) @Test override fun visibleLayersShownMoreThanOneConsecutiveEntry() { super.visibleLayersShownMoreThanOneConsecutiveEntry() } @FlakyTest(bugId = 216306753) @Test override fun statusBarWindowIsAlwaysVisible() { super.statusBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 216306753) @Test override fun visibleWindowsShownMoreThanOneConsecutiveEntry() { super.visibleWindowsShownMoreThanOneConsecutiveEntry() } @FlakyTest(bugId = 216306753) @Test override fun entireScreenCovered() { super.entireScreenCovered() } @FlakyTest(bugId = 216306753) @Test override fun navBarLayerPositionAtStartAndEnd() { super.navBarLayerPositionAtStartAndEnd() } companion object { /** * Creates the test configurations. Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByGoHome.kt +12 −5 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class DismissSplitScreenByGoHome( @Test fun splitScreenDividerBecomesInvisible() = testSpec.splitScreenDividerBecomesInvisible() @Presubmit @FlakyTest(bugId = 241525302) @Test fun primaryAppLayerBecomesInvisible() = testSpec.layerBecomesInvisible(primaryApp) Loading @@ -87,12 +87,18 @@ class DismissSplitScreenByGoHome( @FlakyTest(bugId = 245472831) @Test fun primaryAppBoundsBecomesInvisible() = testSpec.splitAppLayerBoundsBecomesInvisible( primaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false) primaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false ) @Presubmit @FlakyTest(bugId = 241525302) @Test fun secondaryAppBoundsBecomesInvisible() = testSpec.splitAppLayerBoundsBecomesInvisible( secondaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true) secondaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true ) @Presubmit @Test Loading Loading @@ -175,7 +181,8 @@ class DismissSplitScreenByGoHome( return FlickerTestParameterFactory.getInstance().getConfigNonRotationTests( // TODO(b/176061063):The 3 buttons of nav bar do not exist in the hierarchy. supportedNavigationModes = listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY)) listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY) ) } } }
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/SwitchAppByDoubleTapDivider.kt +18 −11 Original line number Diff line number Diff line Loading @@ -127,35 +127,41 @@ class SwitchAppByDoubleTapDivider(testSpec: FlickerTestParameter) : SplitScreenB // robust enough to get the correct end state. } @Presubmit @FlakyTest(bugId = 241524174) @Test fun splitScreenDividerKeepVisible() = testSpec.layerKeepVisible(SPLIT_SCREEN_DIVIDER_COMPONENT) @Presubmit @FlakyTest(bugId = 241524174) @Test fun primaryAppLayerIsVisibleAtEnd() = testSpec.layerIsVisibleAtEnd(primaryApp) @Presubmit @FlakyTest(bugId = 241524174) @Test fun secondaryAppLayerIsVisibleAtEnd() = testSpec.layerIsVisibleAtEnd(secondaryApp) @Presubmit @FlakyTest(bugId = 241524174) @Test fun primaryAppBoundsIsVisibleAtEnd() = testSpec.splitAppLayerBoundsIsVisibleAtEnd( primaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true) primaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true ) // TODO(b/246490534): Move back to presubmit after withAppTransitionIdle is robust enough to // get the correct end state. @FlakyTest(bugId = 246490534) @Test fun secondaryAppBoundsIsVisibleAtEnd() = testSpec.splitAppLayerBoundsIsVisibleAtEnd( secondaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false) secondaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false ) @Presubmit @FlakyTest(bugId = 241524174) @Test fun primaryAppWindowIsVisibleAtEnd() = testSpec.appWindowIsVisibleAtEnd(primaryApp) @Presubmit @FlakyTest(bugId = 241524174) @Test fun secondaryAppWindowIsVisibleAtEnd() = testSpec.appWindowIsVisibleAtEnd(secondaryApp) Loading Loading @@ -232,7 +238,8 @@ class SwitchAppByDoubleTapDivider(testSpec: FlickerTestParameter) : SplitScreenB return FlickerTestParameterFactory.getInstance().getConfigNonRotationTests( // TODO(b/176061063):The 3 buttons of nav bar do not exist in the hierarchy. supportedNavigationModes = listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY)) listOf(WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY) ) } } }