Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e718249f authored by Nataniel Borges's avatar Nataniel Borges Committed by Android (Google) Code Review
Browse files

Merge "Disable failing PipRotationTest_ShellTransit"

parents 8cbef141 6473a5ef
Loading
Loading
Loading
Loading
+66 −12
Original line number Diff line number Diff line
@@ -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
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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()
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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.
@@ -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
            )
        }
    }
}