Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/PipRotationTest.kt +66 −12 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 @@ -90,21 +89,21 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that all parts of the screen are covered at the start and end of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test override fun entireScreenCovered() = testSpec.entireScreenCovered() /** * Checks the position of the navigation bar at the start and end of the transition */ @FlakyTest @FlakyTest(bugId = 240499181) @Test override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd() /** * Checks that [fixedApp] layer is within [screenBoundsStart] at the start of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun fixedAppLayer_StartingBounds() { testSpec.assertLayersStart { Loading @@ -115,7 +114,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that [fixedApp] layer is within [screenBoundsEnd] at the end of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun fixedAppLayer_EndingBounds() { testSpec.assertLayersEnd { Loading @@ -127,7 +126,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Checks that [fixedApp] plus [pipApp] layers are within [screenBoundsEnd] at the start * of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun appLayers_StartingBounds() { testSpec.assertLayersStart { Loading @@ -139,7 +138,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Checks that [fixedApp] plus [pipApp] layers are within [screenBoundsEnd] at the end * of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun appLayers_EndingBounds() { testSpec.assertLayersEnd { Loading @@ -159,7 +158,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that [pipApp] layer is within [screenBoundsStart] at the start of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipLayerRotates_StartingBounds() { pipLayerRotates_StartingBounds_internal() Loading @@ -168,7 +167,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that [pipApp] layer is within [screenBoundsEnd] at the end of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipLayerRotates_EndingBounds() { testSpec.assertLayersEnd { Loading @@ -180,7 +179,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Ensure that the [pipApp] window does not obscure the [fixedApp] at the start of the * transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipIsAboveFixedAppWindow_Start() { testSpec.assertWmStart { Loading @@ -192,7 +191,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Ensure that the [pipApp] window does not obscure the [fixedApp] at the end of the * transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipIsAboveFixedAppWindow_End() { testSpec.assertWmEnd { Loading @@ -200,6 +199,60 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS } } @FlakyTest(bugId = 240499181) @Test override fun navBarLayerIsVisibleAtStartAndEnd() { super.navBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun navBarWindowIsAlwaysVisible() { super.navBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 240499181) @Test override fun statusBarLayerIsVisibleAtStartAndEnd() { super.statusBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun statusBarLayerPositionAtStartAndEnd() { super.statusBarLayerPositionAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun statusBarWindowIsAlwaysVisible() { super.statusBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 240499181) @Test override fun taskBarLayerIsVisibleAtStartAndEnd() { super.taskBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun taskBarWindowIsAlwaysVisible() { super.taskBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 240499181) @Test override fun visibleLayersShownMoreThanOneConsecutiveEntry() { super.visibleLayersShownMoreThanOneConsecutiveEntry() } @FlakyTest(bugId = 240499181) @Test override fun visibleWindowsShownMoreThanOneConsecutiveEntry() { super.visibleWindowsShownMoreThanOneConsecutiveEntry() } companion object { /** * Creates the test configurations. Loading @@ -212,7 +265,8 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS fun getParams(): Collection<FlickerTestParameter> { return FlickerTestParameterFactory.getInstance().getConfigRotationTests( supportedRotations = listOf(Surface.ROTATION_0, Surface.ROTATION_90), repetitions = 3) repetitions = 3 ) } } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/PipRotationTest.kt +66 −12 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 @@ -90,21 +89,21 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that all parts of the screen are covered at the start and end of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test override fun entireScreenCovered() = testSpec.entireScreenCovered() /** * Checks the position of the navigation bar at the start and end of the transition */ @FlakyTest @FlakyTest(bugId = 240499181) @Test override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd() /** * Checks that [fixedApp] layer is within [screenBoundsStart] at the start of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun fixedAppLayer_StartingBounds() { testSpec.assertLayersStart { Loading @@ -115,7 +114,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that [fixedApp] layer is within [screenBoundsEnd] at the end of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun fixedAppLayer_EndingBounds() { testSpec.assertLayersEnd { Loading @@ -127,7 +126,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Checks that [fixedApp] plus [pipApp] layers are within [screenBoundsEnd] at the start * of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun appLayers_StartingBounds() { testSpec.assertLayersStart { Loading @@ -139,7 +138,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Checks that [fixedApp] plus [pipApp] layers are within [screenBoundsEnd] at the end * of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun appLayers_EndingBounds() { testSpec.assertLayersEnd { Loading @@ -159,7 +158,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that [pipApp] layer is within [screenBoundsStart] at the start of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipLayerRotates_StartingBounds() { pipLayerRotates_StartingBounds_internal() Loading @@ -168,7 +167,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS /** * Checks that [pipApp] layer is within [screenBoundsEnd] at the end of the transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipLayerRotates_EndingBounds() { testSpec.assertLayersEnd { Loading @@ -180,7 +179,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Ensure that the [pipApp] window does not obscure the [fixedApp] at the start of the * transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipIsAboveFixedAppWindow_Start() { testSpec.assertWmStart { Loading @@ -192,7 +191,7 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS * Ensure that the [pipApp] window does not obscure the [fixedApp] at the end of the * transition */ @Presubmit @FlakyTest(bugId = 240499181) @Test fun pipIsAboveFixedAppWindow_End() { testSpec.assertWmEnd { Loading @@ -200,6 +199,60 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS } } @FlakyTest(bugId = 240499181) @Test override fun navBarLayerIsVisibleAtStartAndEnd() { super.navBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun navBarWindowIsAlwaysVisible() { super.navBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 240499181) @Test override fun statusBarLayerIsVisibleAtStartAndEnd() { super.statusBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun statusBarLayerPositionAtStartAndEnd() { super.statusBarLayerPositionAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun statusBarWindowIsAlwaysVisible() { super.statusBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 240499181) @Test override fun taskBarLayerIsVisibleAtStartAndEnd() { super.taskBarLayerIsVisibleAtStartAndEnd() } @FlakyTest(bugId = 240499181) @Test override fun taskBarWindowIsAlwaysVisible() { super.taskBarWindowIsAlwaysVisible() } @FlakyTest(bugId = 240499181) @Test override fun visibleLayersShownMoreThanOneConsecutiveEntry() { super.visibleLayersShownMoreThanOneConsecutiveEntry() } @FlakyTest(bugId = 240499181) @Test override fun visibleWindowsShownMoreThanOneConsecutiveEntry() { super.visibleWindowsShownMoreThanOneConsecutiveEntry() } companion object { /** * Creates the test configurations. Loading @@ -212,7 +265,8 @@ open class PipRotationTest(testSpec: FlickerTestParameter) : PipTransition(testS fun getParams(): Collection<FlickerTestParameter> { return FlickerTestParameterFactory.getInstance().getConfigRotationTests( supportedRotations = listOf(Surface.ROTATION_0, Surface.ROTATION_90), repetitions = 3) repetitions = 3 ) } } }