Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/MinimizeWindowOnAppOpen.kt +4 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ import com.android.server.wm.flicker.helpers.DesktopModeAppHelper 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.DesktopModeStatus import com.android.wm.shell.shared.desktopmode.DesktopConfig import org.junit.After import org.junit.Assume import org.junit.Before Loading @@ -38,8 +38,7 @@ import org.junit.Test * is 4. */ @Ignore("Test Base Class") abstract class MinimizeWindowOnAppOpen() : TestScenarioBase() { abstract class MinimizeWindowOnAppOpen() : TestScenarioBase() { private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() private val tapl = LauncherInstrumentation() private val wmHelper = WindowManagerStateHelper(instrumentation) Loading @@ -47,8 +46,9 @@ abstract class MinimizeWindowOnAppOpen() : TestScenarioBase() private val testApp = DesktopModeAppHelper(SimpleAppHelper(instrumentation)) private val mailApp = DesktopModeAppHelper(MailAppHelper(instrumentation)) private val desktopConfig = DesktopConfig.fromContext(instrumentation.context) private val maxNum = DesktopModeStatus.getMaxTaskLimit(instrumentation.context) private val maxNum = desktopConfig.maxTaskLimit @Before fun setup() { Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/OpenUnlimitedApps.kt +4 −2 Original line number Diff line number Diff line Loading @@ -27,12 +27,13 @@ import com.android.server.wm.flicker.helpers.DesktopModeAppHelper 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.DesktopModeStatus import com.android.wm.shell.shared.desktopmode.DesktopConfig import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Test /** * Base scenario test for opening many apps on the device without the window limit. */ Loading @@ -46,8 +47,9 @@ abstract class OpenUnlimitedApps() : TestScenarioBase() private val testApp = DesktopModeAppHelper(SimpleAppHelper(instrumentation)) private val mailApp = MailAppHelper(instrumentation) private val desktopConfig = DesktopConfig.fromContext(instrumentation.context) private val maxNum = DesktopModeStatus.getMaxTaskLimit(instrumentation.context) private val maxNum = desktopConfig.maxTaskLimit @Before fun setup() { Loading Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/MinimizeWindowOnAppOpen.kt +4 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ import com.android.server.wm.flicker.helpers.DesktopModeAppHelper 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.DesktopModeStatus import com.android.wm.shell.shared.desktopmode.DesktopConfig import org.junit.After import org.junit.Assume import org.junit.Before Loading @@ -38,8 +38,7 @@ import org.junit.Test * is 4. */ @Ignore("Test Base Class") abstract class MinimizeWindowOnAppOpen() : TestScenarioBase() { abstract class MinimizeWindowOnAppOpen() : TestScenarioBase() { private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() private val tapl = LauncherInstrumentation() private val wmHelper = WindowManagerStateHelper(instrumentation) Loading @@ -47,8 +46,9 @@ abstract class MinimizeWindowOnAppOpen() : TestScenarioBase() private val testApp = DesktopModeAppHelper(SimpleAppHelper(instrumentation)) private val mailApp = DesktopModeAppHelper(MailAppHelper(instrumentation)) private val desktopConfig = DesktopConfig.fromContext(instrumentation.context) private val maxNum = DesktopModeStatus.getMaxTaskLimit(instrumentation.context) private val maxNum = desktopConfig.maxTaskLimit @Before fun setup() { Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/OpenUnlimitedApps.kt +4 −2 Original line number Diff line number Diff line Loading @@ -27,12 +27,13 @@ import com.android.server.wm.flicker.helpers.DesktopModeAppHelper 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.DesktopModeStatus import com.android.wm.shell.shared.desktopmode.DesktopConfig import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Ignore import org.junit.Test /** * Base scenario test for opening many apps on the device without the window limit. */ Loading @@ -46,8 +47,9 @@ abstract class OpenUnlimitedApps() : TestScenarioBase() private val testApp = DesktopModeAppHelper(SimpleAppHelper(instrumentation)) private val mailApp = MailAppHelper(instrumentation) private val desktopConfig = DesktopConfig.fromContext(instrumentation.context) private val maxNum = DesktopModeStatus.getMaxTaskLimit(instrumentation.context) private val maxNum = desktopConfig.maxTaskLimit @Before fun setup() { Loading