diff options
| author | 2023-11-28 20:47:16 +0000 | |
|---|---|---|
| committer | 2023-11-28 20:47:16 +0000 | |
| commit | 8c63d694be1efdb39f2993b2e62a827e4a581649 (patch) | |
| tree | c93b5fb1627cfc590a26543a86aea9134c4dd0a5 | |
| parent | a29375a5fcc9bb14cfbbfcb7255eaf7a901a4804 (diff) | |
Dismiss immersive dialog when running test
Test runs in immsersive mode which will show a user dialog. Run the
shell command to dismiss at the start of the test
Bug: 313674425
Test: SurfaceControlViewHostTests#requestFocusWithMultipleWindows
Change-Id: Ieae68a2ebd798483f5e0d600361baad96d053592
| -rw-r--r-- | services/tests/wmtests/AndroidTest.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/tests/wmtests/AndroidTest.xml b/services/tests/wmtests/AndroidTest.xml index f8ebeaddcb7e..46e87dceb8d4 100644 --- a/services/tests/wmtests/AndroidTest.xml +++ b/services/tests/wmtests/AndroidTest.xml @@ -30,4 +30,8 @@ <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> <option name="hidden-api-checks" value="false" /> </test> + + <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> + <option name="run-command" value="settings put secure immersive_mode_confirmations confirmed" /> + </target_preparer> </configuration> |