summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nataniel Borges <natanieljr@google.com> 2025-01-29 10:12:50 +0000
committer Nataniel Borges <natanieljr@google.com> 2025-01-29 02:38:17 -0800
commit9edc627a7a507d6d7ac347f106e257c3bee95eba (patch)
tree12da3cc1af8025af447c72570fb5dfa657e82c1e
parent406336989d7ed25475afbb7a5585ad69c0122349 (diff)
Disable smart auto rotate
Flag: TEST_ONLY Fixes: 390710551 Test: atest FlickerTestsNotification Change-Id: I2b3933387ad4a1afbb50590f177f87c6d3ea534d
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt
index 851ce022bd81..03d6ce88ac0c 100644
--- a/tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt
+++ b/tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt
@@ -18,7 +18,9 @@ package com.android.server.wm.flicker
import android.app.Instrumentation
import android.content.Intent
+import android.os.UserHandle
import android.platform.test.annotations.Presubmit
+import android.provider.Settings
import android.tools.flicker.junit.FlickerBuilderProvider
import android.tools.flicker.legacy.FlickerBuilder
import android.tools.flicker.legacy.LegacyFlickerTest
@@ -45,6 +47,12 @@ constructor(
) {
init {
tapl.setExpectedRotationCheckEnabled(true)
+ Settings.System.putIntForUser(
+ instrumentation.targetContext.contentResolver,
+ Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY,
+ 0,
+ UserHandle.USER_CURRENT
+ );
}
private val logTag = this::class.java.simpleName