Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/EnterLegacySplitScreenTest.kt +5 −2 Original line number Diff line number Diff line Loading @@ -155,7 +155,9 @@ class EnterLegacySplitScreenTest( showsAppWindow(splitScreenApp.defaultWindowName) .and().showsAppWindow(secondaryApp.defaultWindowName) } visibleWindowsShownMoreThanOneConsecutiveEntry(listOf(LAUNCHER_PACKAGE_NAME)) visibleWindowsShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, secondaryApp.defaultWindowName)) } } } Loading Loading @@ -187,7 +189,8 @@ class EnterLegacySplitScreenTest( end { hidesAppWindow(nonResizeableApp.defaultWindowName) } visibleWindowsShownMoreThanOneConsecutiveEntry(listOf(LAUNCHER_PACKAGE_NAME)) visibleWindowsShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, nonResizeableApp.defaultWindowName)) } } } Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/ExitLegacySplitScreenFromBottomTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.wm.shell.flicker.legacysplitscreen import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import androidx.test.platform.app.InstrumentationRegistry Loading Loading @@ -45,6 +46,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:ExitLegacySplitScreenFromBottomTest` */ @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/NonResizableDismissInLegacySplitScreenTest.kt +4 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.wm.shell.flicker.legacysplitscreen import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import com.android.server.wm.flicker.dsl.runWithFlicker Loading @@ -34,6 +35,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:NonResizableDismissInLegacySplitScreenTest` */ @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading Loading @@ -64,7 +66,8 @@ class NonResizableDismissInLegacySplitScreenTest( } visibleLayersShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, nonResizeableApp.defaultWindowName, LETTER_BOX_NAME) nonResizeableApp.defaultWindowName, LETTER_BOX_NAME, TOAST_NAME, LIVE_WALLPAPER_PACKAGE_NAME) ) } windowManagerTrace { Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/NonResizableLaunchInLegacySplitScreenTest.kt +5 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.wm.shell.flicker.legacysplitscreen import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import com.android.server.wm.flicker.dsl.runWithFlicker Loading @@ -34,6 +35,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:NonResizableLaunchInLegacySplitScreenTest` */ @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading @@ -44,7 +46,7 @@ class NonResizableLaunchInLegacySplitScreenTest( @Test fun testNonResizableLaunchInLegacySplitScreenTest() { val testTag = "NonResizableLaunchInLegacySplitScreenTest" val testTag = "testNonResizableLaunchInLegacySplitScreenTest" runWithFlicker(transitionSetup) { withTestName { testTag } Loading @@ -64,7 +66,8 @@ class NonResizableLaunchInLegacySplitScreenTest( } visibleLayersShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, nonResizeableApp.defaultWindowName, LETTER_BOX_NAME) nonResizeableApp.defaultWindowName, LETTER_BOX_NAME, TOAST_NAME, LIVE_WALLPAPER_PACKAGE_NAME) ) } windowManagerTrace { Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/OpenAppToLegacySplitScreenTest.kt +21 −11 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.server.wm.flicker.dsl.runWithFlicker import com.android.server.wm.flicker.navBarLayerIsAlwaysVisible import com.android.server.wm.flicker.noUncoveredRegions import com.android.server.wm.flicker.visibleWindowsShownMoreThanOneConsecutiveEntry import com.android.server.wm.traces.parser.windowmanager.WindowManagerStateHelper import com.android.wm.shell.flicker.appPairsDividerBecomesVisible import com.android.wm.shell.flicker.helpers.SplitScreenHelper import org.junit.FixMethodOrder Loading @@ -41,8 +42,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:OpenAppToLegacySplitScreenTest` */ // TODO: Add back to pre-submit when stable. //@Presubmit @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading @@ -53,28 +53,37 @@ class OpenAppToLegacySplitScreenTest( @Test fun OpenAppToLegacySplitScreenTest() { val testTag = "OpenAppToLegacySplitScreenTest" val helper = WindowManagerStateHelper() runWithFlicker(transitionSetup) { withTestName { testTag } repeat { SplitScreenHelper.TEST_REPETITIONS } transitions { setup { eachRun { splitScreenApp.launchViaIntent() device.pressHome() this.setRotation(rotation) } } transitions { device.launchSplitScreen() helper.waitForAppTransitionIdle() } assertions { windowManagerTrace { visibleWindowsShownMoreThanOneConsecutiveEntry() visibleWindowsShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, LETTER_BOX_NAME) ) appWindowBecomesVisible(splitScreenApp.getPackage()) } layersTrace { navBarLayerIsAlwaysVisible(bugId = 140855415) navBarLayerIsAlwaysVisible() noUncoveredRegions(rotation, enabled = false) statusBarLayerIsAlwaysVisible(bugId = 140855415) statusBarLayerIsAlwaysVisible() visibleLayersShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME)) listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, LETTER_BOX_NAME)) appPairsDividerBecomesVisible() layerBecomesVisible(splitScreenApp.getPackage()) } Loading @@ -92,7 +101,8 @@ class OpenAppToLegacySplitScreenTest( @Parameterized.Parameters(name = "{0}") @JvmStatic fun getParams(): Collection<Array<Any>> { val supportedRotations = intArrayOf(Surface.ROTATION_0, Surface.ROTATION_90) // TODO(b/161435597) causes the test not to work on 90 degrees val supportedRotations = intArrayOf(Surface.ROTATION_0) return supportedRotations.map { arrayOf(Surface.rotationToString(it), it) } } } Loading Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/EnterLegacySplitScreenTest.kt +5 −2 Original line number Diff line number Diff line Loading @@ -155,7 +155,9 @@ class EnterLegacySplitScreenTest( showsAppWindow(splitScreenApp.defaultWindowName) .and().showsAppWindow(secondaryApp.defaultWindowName) } visibleWindowsShownMoreThanOneConsecutiveEntry(listOf(LAUNCHER_PACKAGE_NAME)) visibleWindowsShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, secondaryApp.defaultWindowName)) } } } Loading Loading @@ -187,7 +189,8 @@ class EnterLegacySplitScreenTest( end { hidesAppWindow(nonResizeableApp.defaultWindowName) } visibleWindowsShownMoreThanOneConsecutiveEntry(listOf(LAUNCHER_PACKAGE_NAME)) visibleWindowsShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, nonResizeableApp.defaultWindowName)) } } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/ExitLegacySplitScreenFromBottomTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.wm.shell.flicker.legacysplitscreen import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import androidx.test.platform.app.InstrumentationRegistry Loading Loading @@ -45,6 +46,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:ExitLegacySplitScreenFromBottomTest` */ @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/NonResizableDismissInLegacySplitScreenTest.kt +4 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.wm.shell.flicker.legacysplitscreen import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import com.android.server.wm.flicker.dsl.runWithFlicker Loading @@ -34,6 +35,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:NonResizableDismissInLegacySplitScreenTest` */ @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading Loading @@ -64,7 +66,8 @@ class NonResizableDismissInLegacySplitScreenTest( } visibleLayersShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, nonResizeableApp.defaultWindowName, LETTER_BOX_NAME) nonResizeableApp.defaultWindowName, LETTER_BOX_NAME, TOAST_NAME, LIVE_WALLPAPER_PACKAGE_NAME) ) } windowManagerTrace { Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/NonResizableLaunchInLegacySplitScreenTest.kt +5 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.wm.shell.flicker.legacysplitscreen import android.platform.test.annotations.Presubmit import android.view.Surface import androidx.test.filters.RequiresDevice import com.android.server.wm.flicker.dsl.runWithFlicker Loading @@ -34,6 +35,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:NonResizableLaunchInLegacySplitScreenTest` */ @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading @@ -44,7 +46,7 @@ class NonResizableLaunchInLegacySplitScreenTest( @Test fun testNonResizableLaunchInLegacySplitScreenTest() { val testTag = "NonResizableLaunchInLegacySplitScreenTest" val testTag = "testNonResizableLaunchInLegacySplitScreenTest" runWithFlicker(transitionSetup) { withTestName { testTag } Loading @@ -64,7 +66,8 @@ class NonResizableLaunchInLegacySplitScreenTest( } visibleLayersShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, nonResizeableApp.defaultWindowName, LETTER_BOX_NAME) nonResizeableApp.defaultWindowName, LETTER_BOX_NAME, TOAST_NAME, LIVE_WALLPAPER_PACKAGE_NAME) ) } windowManagerTrace { Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/OpenAppToLegacySplitScreenTest.kt +21 −11 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.server.wm.flicker.dsl.runWithFlicker import com.android.server.wm.flicker.navBarLayerIsAlwaysVisible import com.android.server.wm.flicker.noUncoveredRegions import com.android.server.wm.flicker.visibleWindowsShownMoreThanOneConsecutiveEntry import com.android.server.wm.traces.parser.windowmanager.WindowManagerStateHelper import com.android.wm.shell.flicker.appPairsDividerBecomesVisible import com.android.wm.shell.flicker.helpers.SplitScreenHelper import org.junit.FixMethodOrder Loading @@ -41,8 +42,7 @@ import org.junit.runners.Parameterized * Test open app to split screen. * To run this test: `atest WMShellFlickerTests:OpenAppToLegacySplitScreenTest` */ // TODO: Add back to pre-submit when stable. //@Presubmit @Presubmit @RequiresDevice @RunWith(Parameterized::class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) Loading @@ -53,28 +53,37 @@ class OpenAppToLegacySplitScreenTest( @Test fun OpenAppToLegacySplitScreenTest() { val testTag = "OpenAppToLegacySplitScreenTest" val helper = WindowManagerStateHelper() runWithFlicker(transitionSetup) { withTestName { testTag } repeat { SplitScreenHelper.TEST_REPETITIONS } transitions { setup { eachRun { splitScreenApp.launchViaIntent() device.pressHome() this.setRotation(rotation) } } transitions { device.launchSplitScreen() helper.waitForAppTransitionIdle() } assertions { windowManagerTrace { visibleWindowsShownMoreThanOneConsecutiveEntry() visibleWindowsShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, LETTER_BOX_NAME) ) appWindowBecomesVisible(splitScreenApp.getPackage()) } layersTrace { navBarLayerIsAlwaysVisible(bugId = 140855415) navBarLayerIsAlwaysVisible() noUncoveredRegions(rotation, enabled = false) statusBarLayerIsAlwaysVisible(bugId = 140855415) statusBarLayerIsAlwaysVisible() visibleLayersShownMoreThanOneConsecutiveEntry( listOf(LAUNCHER_PACKAGE_NAME)) listOf(LAUNCHER_PACKAGE_NAME, splitScreenApp.defaultWindowName, LETTER_BOX_NAME)) appPairsDividerBecomesVisible() layerBecomesVisible(splitScreenApp.getPackage()) } Loading @@ -92,7 +101,8 @@ class OpenAppToLegacySplitScreenTest( @Parameterized.Parameters(name = "{0}") @JvmStatic fun getParams(): Collection<Array<Any>> { val supportedRotations = intArrayOf(Surface.ROTATION_0, Surface.ROTATION_90) // TODO(b/161435597) causes the test not to work on 90 degrees val supportedRotations = intArrayOf(Surface.ROTATION_0) return supportedRotations.map { arrayOf(Surface.rotationToString(it), it) } } } Loading