diff options
| author | 2022-10-03 14:07:49 +0000 | |
|---|---|---|
| committer | 2022-10-03 14:07:49 +0000 | |
| commit | c65a42f8adfaba3d615dc5890e9959cfeebe6560 (patch) | |
| tree | 311bfffb8cb96c3d71a03adcf334882e01333013 | |
| parent | 0bcdf2bf2029635be71bb1abb2a2f6f4a63cfe4c (diff) | |
| parent | 157d6116420214de03fde0c8442a4b88cefddce8 (diff) | |
Merge "Demote 15%+ flaky tests on Raven from Presubmit"
14 files changed, 127 insertions, 26 deletions
diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/SetRequestedOrientationWhilePinnedTest.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/SetRequestedOrientationWhilePinnedTest.kt index 30332f6c4aaf..375a9d9d5452 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/SetRequestedOrientationWhilePinnedTest.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/SetRequestedOrientationWhilePinnedTest.kt @@ -28,6 +28,7 @@ import com.android.server.wm.flicker.FlickerTestParameterFactory  import com.android.server.wm.flicker.annotation.Group4  import com.android.server.wm.flicker.dsl.FlickerBuilder  import com.android.server.wm.flicker.helpers.WindowUtils +import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled  import com.android.server.wm.flicker.helpers.setRotation  import com.android.server.wm.flicker.helpers.wakeUpAndGoToHomeScreen  import com.android.server.wm.flicker.rules.RemoveAllTasksButHomeRule.Companion.removeAllTasksButHome @@ -144,9 +145,7 @@ open class SetRequestedOrientationWhilePinnedTest(          }      } -    @Presubmit -    @Test -    fun pipLayerInsideDisplay() { +    private fun pipLayerInsideDisplay_internal() {          testSpec.assertLayersStart {              visibleRegion(pipApp).coversAtMost(startingBounds)          } @@ -154,6 +153,20 @@ open class SetRequestedOrientationWhilePinnedTest(      @Presubmit      @Test +    fun pipLayerInsideDisplay() { +        Assume.assumeFalse(isShellTransitionsEnabled) +        pipLayerInsideDisplay_internal() +    } + +    @FlakyTest(bugId = 250527829) +    @Test +    fun pipLayerInsideDisplay_shellTransit() { +        Assume.assumeTrue(isShellTransitionsEnabled) +        pipLayerInsideDisplay_internal() +    } + +    @Presubmit +    @Test      fun pipAlwaysVisible() {          testSpec.assertWm {              this.isAppWindowVisible(pipApp) diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByDivider.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByDivider.kt index 838026fdc6a6..24db143c9bd5 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByDivider.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByDivider.kt @@ -16,6 +16,7 @@  package com.android.wm.shell.flicker.splitscreen +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.IwTest  import android.platform.test.annotations.Postsubmit  import android.platform.test.annotations.Presubmit @@ -27,6 +28,7 @@ import com.android.server.wm.flicker.FlickerTestParameterFactory  import com.android.server.wm.flicker.annotation.Group1  import com.android.server.wm.flicker.dsl.FlickerBuilder  import com.android.server.wm.flicker.helpers.WindowUtils +import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled  import com.android.wm.shell.flicker.SPLIT_SCREEN_DIVIDER_COMPONENT  import com.android.wm.shell.flicker.appWindowBecomesInvisible  import com.android.wm.shell.flicker.appWindowIsVisibleAtEnd @@ -35,6 +37,7 @@ import com.android.wm.shell.flicker.layerIsVisibleAtEnd  import com.android.wm.shell.flicker.splitAppLayerBoundsBecomesInvisible  import com.android.wm.shell.flicker.splitScreenDismissed  import com.android.wm.shell.flicker.splitScreenDividerBecomesInvisible +import org.junit.Assume  import org.junit.FixMethodOrder  import org.junit.Test  import org.junit.runner.RunWith @@ -95,9 +98,7 @@ class DismissSplitScreenByDivider (testSpec: FlickerTestParameter) : SplitScreen      fun primaryAppBoundsBecomesInvisible() = testSpec.splitAppLayerBoundsBecomesInvisible(          primaryApp, landscapePosLeft = tapl.isTablet, portraitPosTop = false) -    @Presubmit -    @Test -    fun secondaryAppBoundsIsFullscreenAtEnd() { +    private fun secondaryAppBoundsIsFullscreenAtEnd_internal() {          testSpec.assertLayers {              this.isVisible(secondaryApp)                  .isVisible(SPLIT_SCREEN_DIVIDER_COMPONENT) @@ -119,6 +120,20 @@ class DismissSplitScreenByDivider (testSpec: FlickerTestParameter) : SplitScreen      @Presubmit      @Test +    fun secondaryAppBoundsIsFullscreenAtEnd() { +        Assume.assumeFalse(isShellTransitionsEnabled) +        secondaryAppBoundsIsFullscreenAtEnd_internal() +    } + +    @FlakyTest(bugId = 250528485) +    @Test +    fun secondaryAppBoundsIsFullscreenAtEnd_shellTransit() { +        Assume.assumeTrue(isShellTransitionsEnabled) +        secondaryAppBoundsIsFullscreenAtEnd_internal() +    } + +    @Presubmit +    @Test      fun primaryAppWindowBecomesInvisible() = testSpec.appWindowBecomesInvisible(primaryApp)      @Presubmit diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByGoHome.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByGoHome.kt index 2b974d0300a1..897683a0cb75 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByGoHome.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DismissSplitScreenByGoHome.kt @@ -92,7 +92,7 @@ class DismissSplitScreenByGoHome(          portraitPosTop = false      ) -    @FlakyTest(bugId = 241525302) +    @FlakyTest(bugId = 250530241)      @Test      fun secondaryAppBoundsBecomesInvisible() = testSpec.splitAppLayerBoundsBecomesInvisible(          secondaryApp, diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DragDividerToResize.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DragDividerToResize.kt index ba0231755690..50388acf3a0b 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DragDividerToResize.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/DragDividerToResize.kt @@ -16,6 +16,7 @@  package com.android.wm.shell.flicker.splitscreen +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.IwTest  import android.platform.test.annotations.Postsubmit  import android.platform.test.annotations.Presubmit @@ -113,7 +114,7 @@ class DragDividerToResize (testSpec: FlickerTestParameter) : SplitScreenBase(tes      fun primaryAppBoundsChanges() = testSpec.splitAppLayerBoundsChanges(          primaryApp, landscapePosLeft = true, portraitPosTop = false) -    @Presubmit +    @FlakyTest(bugId = 250530664)      @Test      fun secondaryAppBoundsChanges() = testSpec.splitAppLayerBoundsChanges(          secondaryApp, landscapePosLeft = false, portraitPosTop = true) diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/EnterSplitScreenFromOverview.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/EnterSplitScreenFromOverview.kt index 23623aaf2d00..696044ac5610 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/EnterSplitScreenFromOverview.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/EnterSplitScreenFromOverview.kt @@ -16,6 +16,7 @@  package com.android.wm.shell.flicker.splitscreen +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.IwTest  import android.platform.test.annotations.Postsubmit  import android.platform.test.annotations.Presubmit @@ -25,6 +26,7 @@ import com.android.server.wm.flicker.FlickerTestParameter  import com.android.server.wm.flicker.FlickerTestParameterFactory  import com.android.server.wm.flicker.annotation.Group1  import com.android.server.wm.flicker.dsl.FlickerBuilder +import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled  import com.android.wm.shell.flicker.appWindowBecomesVisible  import com.android.wm.shell.flicker.layerBecomesVisible  import com.android.wm.shell.flicker.layerIsVisibleAtEnd @@ -32,6 +34,7 @@ import com.android.wm.shell.flicker.splitAppLayerBoundsBecomesVisible  import com.android.wm.shell.flicker.splitAppLayerBoundsIsVisibleAtEnd  import com.android.wm.shell.flicker.splitScreenDividerBecomesVisible  import com.android.wm.shell.flicker.splitScreenEntered +import org.junit.Assume  import org.junit.FixMethodOrder  import org.junit.Test  import org.junit.runner.RunWith @@ -93,8 +96,19 @@ class EnterSplitScreenFromOverview(testSpec: FlickerTestParameter) : SplitScreen      @Presubmit      @Test -    fun secondaryAppBoundsBecomesVisible() = testSpec.splitAppLayerBoundsBecomesVisible( -        secondaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true) +    fun secondaryAppBoundsBecomesVisible() { +        Assume.assumeFalse(isShellTransitionsEnabled) +        testSpec.splitAppLayerBoundsBecomesVisible( +            secondaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true) +    } + +    @FlakyTest(bugId = 244407465) +    @Test +    fun secondaryAppBoundsBecomesVisible_shellTransit() { +        Assume.assumeTrue(isShellTransitionsEnabled) +        testSpec.splitAppLayerBoundsBecomesVisible( +            secondaryApp, landscapePosLeft = !tapl.isTablet, portraitPosTop = true) +    }      @Presubmit      @Test diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/OpenActivityEmbeddingPlaceholderSplit.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/OpenActivityEmbeddingPlaceholderSplit.kt index 34544eab8e57..79654e36a888 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/OpenActivityEmbeddingPlaceholderSplit.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/OpenActivityEmbeddingPlaceholderSplit.kt @@ -16,7 +16,6 @@  package com.android.server.wm.flicker.activityembedding -import android.platform.test.annotations.Postsubmit  import android.platform.test.annotations.Presubmit  import android.view.Surface  import android.view.WindowManagerPolicyConstants @@ -87,61 +86,61 @@ class OpenActivityEmbeddingPlaceholderSplit(      }      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun entireScreenCovered() = super.entireScreenCovered()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun navBarWindowIsAlwaysVisible() = super.navBarWindowIsAlwaysVisible()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun navBarLayerIsVisibleAtStartAndEnd() = super.navBarLayerIsVisibleAtStartAndEnd()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun taskBarWindowIsAlwaysVisible() = super.taskBarWindowIsAlwaysVisible()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun taskBarLayerIsVisibleAtStartAndEnd() = super.taskBarLayerIsVisibleAtStartAndEnd()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun statusBarLayerIsVisibleAtStartAndEnd() =          super.statusBarLayerIsVisibleAtStartAndEnd()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun statusBarLayerPositionAtStartAndEnd() =          super.statusBarLayerPositionAtStartAndEnd()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun statusBarWindowIsAlwaysVisible() =          super.statusBarWindowIsAlwaysVisible()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun visibleWindowsShownMoreThanOneConsecutiveEntry() =          super.visibleWindowsShownMoreThanOneConsecutiveEntry()      /** {@inheritDoc} */ -    @Postsubmit +    @Presubmit      @Test      override fun visibleLayersShownMoreThanOneConsecutiveEntry() =          super.visibleLayersShownMoreThanOneConsecutiveEntry() diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/close/CloseAppBackButtonTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/close/CloseAppBackButtonTest.kt index ec2b4fa35c41..8a2caa582ca9 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/close/CloseAppBackButtonTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/close/CloseAppBackButtonTest.kt @@ -17,7 +17,7 @@  package com.android.server.wm.flicker.close -import android.platform.test.annotations.FlakyTest +import android.platform.test.annotations.Presubmit  import androidx.test.filters.RequiresDevice  import com.android.server.wm.flicker.FlickerParametersRunnerFactory  import com.android.server.wm.flicker.FlickerTestParameter @@ -80,7 +80,7 @@ class CloseAppBackButtonTest(testSpec: FlickerTestParameter) : CloseAppTransitio          }      /** {@inheritDoc} */ -    @FlakyTest(bugId = 206753786) +    @Presubmit      @Test      override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd() diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/OpenImeWindowAndCloseTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/OpenImeWindowAndCloseTest.kt index d42a6c3d3d80..4899db327541 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/OpenImeWindowAndCloseTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/OpenImeWindowAndCloseTest.kt @@ -16,6 +16,7 @@  package com.android.server.wm.flicker.ime +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.Presubmit  import android.view.Surface  import android.view.WindowManagerPolicyConstants @@ -28,6 +29,8 @@ import com.android.server.wm.flicker.annotation.Group2  import com.android.server.wm.flicker.dsl.FlickerBuilder  import com.android.server.wm.flicker.helpers.ImeAppHelper  import com.android.server.wm.flicker.helpers.SimpleAppHelper +import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled +import org.junit.Assume  import org.junit.FixMethodOrder  import org.junit.Test  import org.junit.runner.RunWith @@ -72,6 +75,20 @@ class OpenImeWindowAndCloseTest(testSpec: FlickerTestParameter) : BaseTest(testS      @Test      fun imeLayerBecomesInvisible() = testSpec.imeLayerBecomesInvisible() +    @Presubmit +    @Test +    override fun visibleLayersShownMoreThanOneConsecutiveEntry() { +        Assume.assumeFalse(isShellTransitionsEnabled) +        super.visibleLayersShownMoreThanOneConsecutiveEntry() +    } + +    @FlakyTest(bugId = 246284124) +    @Test +    fun visibleLayersShownMoreThanOneConsecutiveEntry_shellTransit() { +        Assume.assumeTrue(isShellTransitionsEnabled) +        super.visibleLayersShownMoreThanOneConsecutiveEntry() +    } +      companion object {          @Parameterized.Parameters(name = "{0}")          @JvmStatic diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt index b75183d063a1..0649b0186087 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt @@ -16,6 +16,7 @@  package com.android.server.wm.flicker.ime +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.Postsubmit  import android.platform.test.annotations.Presubmit  import android.view.Surface @@ -153,6 +154,7 @@ open class SwitchImeWindowsFromGestureNavTest(      override fun visibleWindowsShownMoreThanOneConsecutiveEntry() =          super.visibleWindowsShownMoreThanOneConsecutiveEntry() +    @Presubmit      @Test      fun imeAppWindowVisibility() {          testSpec.assertWm { @@ -168,6 +170,7 @@ open class SwitchImeWindowsFromGestureNavTest(          }      } +    @FlakyTest(bugId = 244414110)      @Test      open fun imeLayerIsVisibleWhenSwitchingToImeApp() {          testSpec.assertLayersStart { @@ -181,6 +184,7 @@ open class SwitchImeWindowsFromGestureNavTest(          }      } +    @Presubmit      @Test      fun imeLayerIsInvisibleWhenSwitchingToTestApp() {          testSpec.assertLayersTag(TAG_IME_INVISIBLE) { diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest.kt index a1df1df8c55c..d6942aab7475 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest.kt @@ -16,6 +16,7 @@  package com.android.server.wm.flicker.quickswitch +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.Presubmit  import android.platform.test.annotations.RequiresDevice  import android.view.Surface @@ -106,7 +107,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(       * Checks that the transition starts with [testApp2]'s layers filling/covering exactly the       * entirety of the display.       */ -    @Presubmit +    @FlakyTest(bugId = 250520840)      @Test      open fun startsWithApp2LayersCoverFullScreen() {          testSpec.assertLayersStart { @@ -263,6 +264,10 @@ open class QuickSwitchBetweenTwoAppsBackTest(      @Test      override fun taskBarLayerIsVisibleAtStartAndEnd() = super.taskBarLayerIsVisibleAtStartAndEnd() +    @FlakyTest(bugId = 250518877) +    @Test +    override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd() +      companion object {          private var startDisplayBounds = Rect.EMPTY diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest_ShellTransit.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest_ShellTransit.kt index 49dcbcf10e15..1a144b42fdfb 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest_ShellTransit.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsBackTest_ShellTransit.kt @@ -16,6 +16,7 @@  package com.android.server.wm.flicker.quickswitch +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.Presubmit  import android.platform.test.annotations.RequiresDevice  import com.android.server.wm.flicker.FlickerParametersRunnerFactory @@ -71,4 +72,9 @@ open class QuickSwitchBetweenTwoAppsBackTest_ShellTransit(          Assume.assumeFalse(testSpec.isTablet)          testSpec.navBarWindowIsVisibleAtStartAndEnd()      } + +    @FlakyTest(bugId = 246284708) +    @Test +    override fun visibleLayersShownMoreThanOneConsecutiveEntry() = +        super.visibleLayersShownMoreThanOneConsecutiveEntry()  } diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest.kt index 5ab9f1435b08..edb3113c8696 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest.kt @@ -16,6 +16,7 @@  package com.android.server.wm.flicker.quickswitch +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.Presubmit  import android.platform.test.annotations.RequiresDevice  import android.view.Surface @@ -114,7 +115,7 @@ open class QuickSwitchBetweenTwoAppsForwardTest(       * Checks that the transition starts with [testApp1]'s layers filling/covering exactly the       * entirety of the display.       */ -    @Presubmit +    @FlakyTest(bugId = 250522691)      @Test      open fun startsWithApp1LayersCoverFullScreen() {          testSpec.assertLayersStart { @@ -271,6 +272,10 @@ open class QuickSwitchBetweenTwoAppsForwardTest(      @Test      override fun taskBarLayerIsVisibleAtStartAndEnd() = super.taskBarLayerIsVisibleAtStartAndEnd() +    @FlakyTest(bugId = 250518877) +    @Test +    override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd() +      companion object {          private var startDisplayBounds = Rect.EMPTY diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest_ShellTransit.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest_ShellTransit.kt index 7c7be89f5108..2b37af14b637 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest_ShellTransit.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest_ShellTransit.kt @@ -16,6 +16,7 @@  package com.android.server.wm.flicker.quickswitch +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.Presubmit  import android.platform.test.annotations.RequiresDevice  import com.android.server.wm.flicker.FlickerParametersRunnerFactory @@ -71,4 +72,9 @@ open class QuickSwitchBetweenTwoAppsForwardTest_ShellTransit(          Assume.assumeFalse(testSpec.isTablet)          testSpec.navBarWindowIsVisibleAtStartAndEnd()      } + +    @FlakyTest(bugId = 246284708) +    @Test +    override fun visibleLayersShownMoreThanOneConsecutiveEntry() = +        super.visibleLayersShownMoreThanOneConsecutiveEntry()  } diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt index 00e60234ba77..409ce8038112 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt @@ -16,6 +16,7 @@  package com.android.server.wm.flicker.quickswitch +import android.platform.test.annotations.FlakyTest  import android.platform.test.annotations.Presubmit  import android.platform.test.annotations.RequiresDevice  import android.view.Surface @@ -27,6 +28,7 @@ import com.android.server.wm.flicker.FlickerTestParameterFactory  import com.android.server.wm.flicker.annotation.Group1  import com.android.server.wm.flicker.dsl.FlickerBuilder  import com.android.server.wm.flicker.helpers.SimpleAppHelper +import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled  import com.android.server.wm.flicker.navBarWindowIsVisibleAtStartAndEnd  import com.android.server.wm.traces.common.ComponentNameMatcher  import com.android.server.wm.traces.common.Rect @@ -294,6 +296,20 @@ class QuickSwitchFromLauncherTest(testSpec: FlickerTestParameter) : BaseTest(tes          testSpec.navBarWindowIsVisibleAtStartAndEnd()      } +    @Presubmit +    @Test +    override fun visibleLayersShownMoreThanOneConsecutiveEntry() { +        Assume.assumeFalse(isShellTransitionsEnabled) +        super.visibleLayersShownMoreThanOneConsecutiveEntry() +    } + +    @FlakyTest(bugId = 246285528) +    @Test +    fun visibleLayersShownMoreThanOneConsecutiveEntry_shellTransit() { +        Assume.assumeTrue(isShellTransitionsEnabled) +        super.visibleLayersShownMoreThanOneConsecutiveEntry() +    } +      companion object {          /** {@inheritDoc} */          private var startDisplayBounds = Rect.EMPTY  |