Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/DisableDisplayMirroringSwitch.kt +8 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.server.display.feature.flags.Flags.FLAG_ENABLE_DISPLAY_CONTEN import com.android.systemui.shared.Flags.FLAG_STATUS_BAR_CONNECTED_DISPLAYS import com.android.window.flags.Flags.FLAG_ENABLE_TASKBAR_CONNECTED_DISPLAYS import com.android.wm.shell.Utils import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Rule Loading Loading @@ -66,6 +67,13 @@ abstract class DisableDisplayMirroringSwitch : TestScenarioBase() { wmHelper.StateSyncBuilder().withDesktopModeOnDisplay(connectedDisplayRule.addedDisplays[0]) .waitForAndVerify() } @After fun teardown() { // Ensure the mirroring switch is disabled after running the test. Settings.Secure.putInt(instrumentation.context.contentResolver, MIRROR_SETTING, 0) } private companion object { const val MIRROR_SETTING = Settings.Secure.MIRROR_BUILT_IN_DISPLAY } Loading libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/EnableDisplayMirroringSwitch.kt +7 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import com.android.systemui.shared.Flags.FLAG_STATUS_BAR_CONNECTED_DISPLAYS import com.android.window.flags.Flags.FLAG_ENABLE_TASKBAR_CONNECTED_DISPLAYS import com.android.wm.shell.Utils import org.junit.Assume import org.junit.After import org.junit.Before import org.junit.Rule import org.junit.Test Loading Loading @@ -67,6 +68,12 @@ abstract class EnableDisplayMirroringSwitch : TestScenarioBase() { .waitForAndVerify() } @After fun teardown() { // Ensure the mirroring switch is disabled after running the test. Settings.Secure.putInt(instrumentation.context.contentResolver, MIRROR_SETTING, 0) } private companion object { const val MIRROR_SETTING = Settings.Secure.MIRROR_BUILT_IN_DISPLAY } Loading Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/DisableDisplayMirroringSwitch.kt +8 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.server.display.feature.flags.Flags.FLAG_ENABLE_DISPLAY_CONTEN import com.android.systemui.shared.Flags.FLAG_STATUS_BAR_CONNECTED_DISPLAYS import com.android.window.flags.Flags.FLAG_ENABLE_TASKBAR_CONNECTED_DISPLAYS import com.android.wm.shell.Utils import org.junit.After import org.junit.Assume import org.junit.Before import org.junit.Rule Loading Loading @@ -66,6 +67,13 @@ abstract class DisableDisplayMirroringSwitch : TestScenarioBase() { wmHelper.StateSyncBuilder().withDesktopModeOnDisplay(connectedDisplayRule.addedDisplays[0]) .waitForAndVerify() } @After fun teardown() { // Ensure the mirroring switch is disabled after running the test. Settings.Secure.putInt(instrumentation.context.contentResolver, MIRROR_SETTING, 0) } private companion object { const val MIRROR_SETTING = Settings.Secure.MIRROR_BUILT_IN_DISPLAY } Loading
libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/EnableDisplayMirroringSwitch.kt +7 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import com.android.systemui.shared.Flags.FLAG_STATUS_BAR_CONNECTED_DISPLAYS import com.android.window.flags.Flags.FLAG_ENABLE_TASKBAR_CONNECTED_DISPLAYS import com.android.wm.shell.Utils import org.junit.Assume import org.junit.After import org.junit.Before import org.junit.Rule import org.junit.Test Loading Loading @@ -67,6 +68,12 @@ abstract class EnableDisplayMirroringSwitch : TestScenarioBase() { .waitForAndVerify() } @After fun teardown() { // Ensure the mirroring switch is disabled after running the test. Settings.Secure.putInt(instrumentation.context.contentResolver, MIRROR_SETTING, 0) } private companion object { const val MIRROR_SETTING = Settings.Secure.MIRROR_BUILT_IN_DISPLAY } Loading