Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/SetRequestedOrientationWhilePinnedTest.kt +45 −5 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled import com.android.wm.shell.flicker.pip.PipTransition.BroadcastActionTrigger.Companion.ORIENTATION_LANDSCAPE import com.android.wm.shell.flicker.testapp.Components.FixedActivity.EXTRA_FIXED_ORIENTATION import com.android.wm.shell.flicker.testapp.Components.PipActivity.EXTRA_ENTER_PIP import org.junit.Assert.assertEquals import org.junit.Assume.assumeFalse import org.junit.FixMethodOrder import org.junit.Test Loading Loading @@ -79,13 +78,42 @@ class SetRequestedOrientationWhilePinnedTest( pipApp.launchViaIntent(wmHelper) wmHelper.waitForFullScreenApp(pipApp.component) wmHelper.waitForRotation(Surface.ROTATION_90) assertEquals(Surface.ROTATION_90, device.displayRotation) } } @Presubmit @Test fun displayEndsAt90Degrees() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { hasRotation(Surface.ROTATION_90) } } @Presubmit @Test override fun navBarLayerIsVisible() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) super.navBarLayerIsVisible() } @Presubmit @Test override fun statusBarLayerIsVisible() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) super.statusBarLayerIsVisible() } @FlakyTest @Test override fun navBarLayerRotatesAndScales() = super.navBarLayerRotatesAndScales() override fun navBarLayerRotatesAndScales() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) super.navBarLayerRotatesAndScales() } @Presubmit @Test Loading @@ -98,6 +126,8 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipWindowInsideDisplay() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWmStart { frameRegion(pipApp.component).coversAtMost(startingBounds) } Loading @@ -106,6 +136,8 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipAppShowsOnTop() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { isAppWindowOnTop(pipApp.component) } Loading @@ -114,6 +146,8 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipLayerInsideDisplay() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersStart { visibleRegion(pipApp.component).coversAtMost(startingBounds) } Loading @@ -121,13 +155,19 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipAlwaysVisible() = testSpec.assertWm { fun pipAlwaysVisible() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowVisible(pipApp.component) } } @Presubmit @Test fun pipAppLayerCoversFullScreen() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersEnd { visibleRegion(pipApp.component).coversExactly(endingBounds) } Loading tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppColdTest.kt +5 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,11 @@ class OpenAppColdTest(testSpec: FlickerTestParameter) : OpenAppTransition(testSp /** {@inheritDoc} */ @Presubmit @Test override fun appLayerReplacesLauncher() = super.appLayerReplacesLauncher() override fun appLayerReplacesLauncher() { // This test doesn't work in shell transitions because of b/206094140 assumeFalse(isShellTransitionsEnabled) super.appLayerReplacesLauncher() } /** {@inheritDoc} */ @Presubmit Loading tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppWarmTest.kt +5 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,11 @@ class OpenAppWarmTest(testSpec: FlickerTestParameter) : OpenAppTransition(testSp /** {@inheritDoc} */ @Presubmit @Test override fun appLayerReplacesLauncher() = super.appLayerReplacesLauncher() override fun appLayerReplacesLauncher() { // This test doesn't work in shell transitions because of b/206094140 assumeFalse(isShellTransitionsEnabled) super.appLayerReplacesLauncher() } /** {@inheritDoc} */ @Presubmit Loading tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest.kt +51 −5 Original line number Diff line number Diff line Loading @@ -32,12 +32,14 @@ import com.android.server.wm.flicker.dsl.FlickerBuilder import com.android.server.wm.flicker.helpers.NonResizeableAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.server.wm.flicker.helpers.WindowUtils import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled import com.android.server.wm.flicker.navBarLayerIsVisible import com.android.server.wm.flicker.navBarLayerRotatesAndScales import com.android.server.wm.flicker.navBarWindowIsVisible import com.android.server.wm.flicker.statusBarLayerIsVisible import com.android.server.wm.flicker.statusBarWindowIsVisible import com.android.server.wm.traces.common.FlickerComponentName import org.junit.Assume import org.junit.FixMethodOrder import org.junit.Test import org.junit.runner.RunWith Loading Loading @@ -128,6 +130,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun startsWithApp1WindowsCoverFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmStart { this.frameRegion(testApp1.component).coversExactly(startDisplayBounds) } Loading @@ -140,6 +144,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun startsWithApp1LayersCoverFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersStart { this.visibleRegion(testApp1.component).coversExactly(startDisplayBounds) } Loading @@ -151,6 +157,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun startsWithApp1WindowBeingOnTop() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmStart { this.isAppWindowOnTop(testApp1.component) } Loading @@ -163,6 +171,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun endsWithApp2WindowsCoveringFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { this.frameRegion(testApp2.component).coversExactly(startDisplayBounds) } Loading @@ -175,6 +185,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun endsWithApp2LayersCoveringFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersEnd { this.visibleRegion(testApp2.component).coversExactly(startDisplayBounds) } Loading @@ -187,6 +199,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun endsWithApp2BeingOnTop() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { this.isAppWindowOnTop(testApp2.component) } Loading @@ -199,6 +213,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2WindowBecomesAndStaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowInvisible(testApp2.component) .then() Loading @@ -215,6 +231,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2LayerBecomesAndStaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayers { this.isInvisible(testApp2.component) .then() Loading @@ -229,6 +247,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app1WindowBecomesAndStaysInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowVisible(testApp1.component) .then() Loading @@ -243,6 +263,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app1LayerBecomesAndStaysInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayers { this.isVisible(testApp1.component) .then() Loading @@ -258,6 +280,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2WindowIsVisibleOnceApp1WindowIsInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowVisible(testApp1.component) .then() Loading @@ -277,6 +301,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2LayerIsVisibleOnceApp1LayerIsInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayers { this.isVisible(testApp1.component) .then() Loading @@ -293,14 +319,22 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara */ @Presubmit @Test fun navBarWindowIsAlwaysVisible() = testSpec.navBarWindowIsVisible() fun navBarWindowIsAlwaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.navBarWindowIsVisible() } /** * Checks that the navbar layer is visible throughout the entire transition. */ @Presubmit @Test fun navBarLayerAlwaysIsVisible() = testSpec.navBarLayerIsVisible() fun navBarLayerAlwaysIsVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.navBarLayerIsVisible() } /** * Checks that the navbar is always in the right position and covers the expected region. Loading @@ -309,21 +343,33 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara */ @Presubmit @Test fun navbarIsAlwaysInRightPosition() = testSpec.navBarLayerRotatesAndScales() fun navbarIsAlwaysInRightPosition() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.navBarLayerRotatesAndScales() } /** * Checks that the status bar window is visible throughout the entire transition. */ @Presubmit @Test fun statusBarWindowIsAlwaysVisible() = testSpec.statusBarWindowIsVisible() fun statusBarWindowIsAlwaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.statusBarWindowIsVisible() } /** * Checks that the status bar layer is visible throughout the entire transition. */ @Presubmit @Test fun statusBarLayerIsAlwaysVisible() = testSpec.statusBarLayerIsVisible() fun statusBarLayerIsAlwaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.statusBarLayerIsVisible() } companion object { @Parameterized.Parameters(name = "{0}") Loading Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/SetRequestedOrientationWhilePinnedTest.kt +45 −5 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled import com.android.wm.shell.flicker.pip.PipTransition.BroadcastActionTrigger.Companion.ORIENTATION_LANDSCAPE import com.android.wm.shell.flicker.testapp.Components.FixedActivity.EXTRA_FIXED_ORIENTATION import com.android.wm.shell.flicker.testapp.Components.PipActivity.EXTRA_ENTER_PIP import org.junit.Assert.assertEquals import org.junit.Assume.assumeFalse import org.junit.FixMethodOrder import org.junit.Test Loading Loading @@ -79,13 +78,42 @@ class SetRequestedOrientationWhilePinnedTest( pipApp.launchViaIntent(wmHelper) wmHelper.waitForFullScreenApp(pipApp.component) wmHelper.waitForRotation(Surface.ROTATION_90) assertEquals(Surface.ROTATION_90, device.displayRotation) } } @Presubmit @Test fun displayEndsAt90Degrees() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { hasRotation(Surface.ROTATION_90) } } @Presubmit @Test override fun navBarLayerIsVisible() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) super.navBarLayerIsVisible() } @Presubmit @Test override fun statusBarLayerIsVisible() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) super.statusBarLayerIsVisible() } @FlakyTest @Test override fun navBarLayerRotatesAndScales() = super.navBarLayerRotatesAndScales() override fun navBarLayerRotatesAndScales() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) super.navBarLayerRotatesAndScales() } @Presubmit @Test Loading @@ -98,6 +126,8 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipWindowInsideDisplay() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWmStart { frameRegion(pipApp.component).coversAtMost(startingBounds) } Loading @@ -106,6 +136,8 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipAppShowsOnTop() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { isAppWindowOnTop(pipApp.component) } Loading @@ -114,6 +146,8 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipLayerInsideDisplay() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersStart { visibleRegion(pipApp.component).coversAtMost(startingBounds) } Loading @@ -121,13 +155,19 @@ class SetRequestedOrientationWhilePinnedTest( @Presubmit @Test fun pipAlwaysVisible() = testSpec.assertWm { fun pipAlwaysVisible() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowVisible(pipApp.component) } } @Presubmit @Test fun pipAppLayerCoversFullScreen() { // This test doesn't work in shell transitions because of b/208576418 assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersEnd { visibleRegion(pipApp.component).coversExactly(endingBounds) } Loading
tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppColdTest.kt +5 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,11 @@ class OpenAppColdTest(testSpec: FlickerTestParameter) : OpenAppTransition(testSp /** {@inheritDoc} */ @Presubmit @Test override fun appLayerReplacesLauncher() = super.appLayerReplacesLauncher() override fun appLayerReplacesLauncher() { // This test doesn't work in shell transitions because of b/206094140 assumeFalse(isShellTransitionsEnabled) super.appLayerReplacesLauncher() } /** {@inheritDoc} */ @Presubmit Loading
tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppWarmTest.kt +5 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,11 @@ class OpenAppWarmTest(testSpec: FlickerTestParameter) : OpenAppTransition(testSp /** {@inheritDoc} */ @Presubmit @Test override fun appLayerReplacesLauncher() = super.appLayerReplacesLauncher() override fun appLayerReplacesLauncher() { // This test doesn't work in shell transitions because of b/206094140 assumeFalse(isShellTransitionsEnabled) super.appLayerReplacesLauncher() } /** {@inheritDoc} */ @Presubmit Loading
tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchBetweenTwoAppsForwardTest.kt +51 −5 Original line number Diff line number Diff line Loading @@ -32,12 +32,14 @@ import com.android.server.wm.flicker.dsl.FlickerBuilder import com.android.server.wm.flicker.helpers.NonResizeableAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.server.wm.flicker.helpers.WindowUtils import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled import com.android.server.wm.flicker.navBarLayerIsVisible import com.android.server.wm.flicker.navBarLayerRotatesAndScales import com.android.server.wm.flicker.navBarWindowIsVisible import com.android.server.wm.flicker.statusBarLayerIsVisible import com.android.server.wm.flicker.statusBarWindowIsVisible import com.android.server.wm.traces.common.FlickerComponentName import org.junit.Assume import org.junit.FixMethodOrder import org.junit.Test import org.junit.runner.RunWith Loading Loading @@ -128,6 +130,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun startsWithApp1WindowsCoverFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmStart { this.frameRegion(testApp1.component).coversExactly(startDisplayBounds) } Loading @@ -140,6 +144,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun startsWithApp1LayersCoverFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersStart { this.visibleRegion(testApp1.component).coversExactly(startDisplayBounds) } Loading @@ -151,6 +157,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun startsWithApp1WindowBeingOnTop() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmStart { this.isAppWindowOnTop(testApp1.component) } Loading @@ -163,6 +171,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun endsWithApp2WindowsCoveringFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { this.frameRegion(testApp2.component).coversExactly(startDisplayBounds) } Loading @@ -175,6 +185,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun endsWithApp2LayersCoveringFullScreen() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayersEnd { this.visibleRegion(testApp2.component).coversExactly(startDisplayBounds) } Loading @@ -187,6 +199,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun endsWithApp2BeingOnTop() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWmEnd { this.isAppWindowOnTop(testApp2.component) } Loading @@ -199,6 +213,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2WindowBecomesAndStaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowInvisible(testApp2.component) .then() Loading @@ -215,6 +231,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2LayerBecomesAndStaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayers { this.isInvisible(testApp2.component) .then() Loading @@ -229,6 +247,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app1WindowBecomesAndStaysInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowVisible(testApp1.component) .then() Loading @@ -243,6 +263,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app1LayerBecomesAndStaysInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayers { this.isVisible(testApp1.component) .then() Loading @@ -258,6 +280,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2WindowIsVisibleOnceApp1WindowIsInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertWm { this.isAppWindowVisible(testApp1.component) .then() Loading @@ -277,6 +301,8 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara @Presubmit @Test fun app2LayerIsVisibleOnceApp1LayerIsInvisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.assertLayers { this.isVisible(testApp1.component) .then() Loading @@ -293,14 +319,22 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara */ @Presubmit @Test fun navBarWindowIsAlwaysVisible() = testSpec.navBarWindowIsVisible() fun navBarWindowIsAlwaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.navBarWindowIsVisible() } /** * Checks that the navbar layer is visible throughout the entire transition. */ @Presubmit @Test fun navBarLayerAlwaysIsVisible() = testSpec.navBarLayerIsVisible() fun navBarLayerAlwaysIsVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.navBarLayerIsVisible() } /** * Checks that the navbar is always in the right position and covers the expected region. Loading @@ -309,21 +343,33 @@ class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTestPara */ @Presubmit @Test fun navbarIsAlwaysInRightPosition() = testSpec.navBarLayerRotatesAndScales() fun navbarIsAlwaysInRightPosition() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.navBarLayerRotatesAndScales() } /** * Checks that the status bar window is visible throughout the entire transition. */ @Presubmit @Test fun statusBarWindowIsAlwaysVisible() = testSpec.statusBarWindowIsVisible() fun statusBarWindowIsAlwaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.statusBarWindowIsVisible() } /** * Checks that the status bar layer is visible throughout the entire transition. */ @Presubmit @Test fun statusBarLayerIsAlwaysVisible() = testSpec.statusBarLayerIsVisible() fun statusBarLayerIsAlwaysVisible() { // This test doesn't work in shell transitions because of b/209936664 Assume.assumeFalse(isShellTransitionsEnabled) testSpec.statusBarLayerIsVisible() } companion object { @Parameterized.Parameters(name = "{0}") Loading