Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/ClickAndFocus.kt +4 −9 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -27,8 +26,8 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.After import org.junit.Before import org.junit.Ignore import org.junit.Rule import org.junit.Test Loading @@ -42,10 +41,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class ClickAndFocus() { abstract class ClickAndFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -56,10 +55,6 @@ abstract class ClickAndFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) // TODO(b/426420246): Use launchViaIntentOnDisplay testAppInExternalDisplay.launchViaIntent(wmHelper) testAppInExternalDisplay.moveToNextDisplayViaKeyboard( Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/CloseThenMoveFocus.kt +2 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -28,9 +27,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -46,10 +43,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class CloseThenMoveFocus() { abstract class CloseThenMoveFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -60,10 +57,6 @@ abstract class CloseThenMoveFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.enterDesktopMode(wmHelper, device) // TODO(b/426420246): Use launchViaIntentOnDisplay testAppInExternalDisplay.launchViaIntent(wmHelper) Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/DragAndKeepFocus.kt +2 −8 Original line number Diff line number Diff line Loading @@ -31,9 +31,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -49,10 +47,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class DragAndKeepFocus() { abstract class DragAndKeepFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -66,10 +64,6 @@ abstract class DragAndKeepFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.launchViaIntent(wmHelper) testAppInExternalDisplay.launchViaIntent(wmHelper) } Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/MoveToNextDisplayAndFocus.kt +2 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -28,9 +27,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -45,10 +42,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class MoveToNextDisplayAndFocus() { abstract class MoveToNextDisplayAndFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -59,10 +56,6 @@ abstract class MoveToNextDisplayAndFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.launchViaIntent(wmHelper) testAppInExternalDisplay.launchViaIntent(wmHelper) } Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/OpenAndFocus.kt +2 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -28,9 +27,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -45,10 +42,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class OpenAndFocus() { abstract class OpenAndFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -59,10 +56,6 @@ abstract class OpenAndFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.launchViaIntent(wmHelper) } Loading Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/ClickAndFocus.kt +4 −9 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -27,8 +26,8 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.After import org.junit.Before import org.junit.Ignore import org.junit.Rule import org.junit.Test Loading @@ -42,10 +41,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class ClickAndFocus() { abstract class ClickAndFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -56,10 +55,6 @@ abstract class ClickAndFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) // TODO(b/426420246): Use launchViaIntentOnDisplay testAppInExternalDisplay.launchViaIntent(wmHelper) testAppInExternalDisplay.moveToNextDisplayViaKeyboard( Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/CloseThenMoveFocus.kt +2 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -28,9 +27,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -46,10 +43,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class CloseThenMoveFocus() { abstract class CloseThenMoveFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -60,10 +57,6 @@ abstract class CloseThenMoveFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.enterDesktopMode(wmHelper, device) // TODO(b/426420246): Use launchViaIntentOnDisplay testAppInExternalDisplay.launchViaIntent(wmHelper) Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/DragAndKeepFocus.kt +2 −8 Original line number Diff line number Diff line Loading @@ -31,9 +31,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -49,10 +47,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class DragAndKeepFocus() { abstract class DragAndKeepFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -66,10 +64,6 @@ abstract class DragAndKeepFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.launchViaIntent(wmHelper) testAppInExternalDisplay.launchViaIntent(wmHelper) } Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/MoveToNextDisplayAndFocus.kt +2 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -28,9 +27,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -45,10 +42,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class MoveToNextDisplayAndFocus() { abstract class MoveToNextDisplayAndFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -59,10 +56,6 @@ abstract class MoveToNextDisplayAndFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.launchViaIntent(wmHelper) testAppInExternalDisplay.launchViaIntent(wmHelper) } Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/OpenAndFocus.kt +2 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.wm.shell.scenarios import android.platform.test.annotations.EnableFlags import android.tools.PlatformConsts.DEFAULT_DISPLAY import android.tools.traces.parsers.WindowManagerStateHelper import android.view.KeyEvent.KEYCODE_MINUS import android.view.KeyEvent.META_META_ON Loading @@ -28,9 +27,7 @@ import com.android.server.wm.flicker.helpers.KeyEventHelper import com.android.server.wm.flicker.helpers.MailAppHelper import com.android.server.wm.flicker.helpers.SimpleAppHelper import com.android.window.flags.Flags import com.android.wm.shell.shared.desktopmode.DesktopState import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Rule Loading @@ -45,10 +42,10 @@ import platform.test.desktop.SimulatedConnectedDisplayTestRule @EnableFlags( Flags.FLAG_ENABLE_DISPLAY_FOCUS_IN_SHELL_TRANSITIONS, ) abstract class OpenAndFocus() { abstract class OpenAndFocus() : TestScenarioBase() { private val wmHelper = WindowManagerStateHelper(getInstrumentation()) private val device = UiDevice.getInstance(getInstrumentation()) private val testAppInMainDisplay = DesktopModeAppHelper(SimpleAppHelper(getInstrumentation())) private val testAppInExternalDisplay = DesktopModeAppHelper(MailAppHelper(getInstrumentation())) Loading @@ -59,10 +56,6 @@ abstract class OpenAndFocus() { @Before fun setup() { connectedDisplayRule.setupTestDisplay() Assume.assumeTrue( DesktopState.fromContext(getInstrumentation().context) .isDesktopModeSupportedOnDisplay(DEFAULT_DISPLAY) ) testAppInMainDisplay.launchViaIntent(wmHelper) } Loading