diff options
author | 2025-01-30 13:20:46 +0000 | |
---|---|---|
committer | 2025-01-30 15:26:09 +0000 | |
commit | 855d184d2f3a5594595df95a9104dd592d7dfe12 (patch) | |
tree | cb5a7674cf517608f70036da7be959e066dd93c0 | |
parent | abef94fb4675c089a5911989eb4f5e3ec35d4ebc (diff) |
Use ADB command to disable smart auto rotate
Flag: TEST_ONLY
Fixes: 393096530
Test: atest FlickerTestsNotification
Change-Id: Ifc1739d4db8cc8bf181632155359ab4c65c5af6f
-rw-r--r-- | tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt | 10 |
1 files changed, 3 insertions, 7 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 18f44ddff086..eebe49de0010 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt @@ -18,13 +18,12 @@ 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 import android.tools.traces.component.ComponentNameMatcher +import android.tools.traces.executeShellCommand import android.util.Log import androidx.test.platform.app.InstrumentationRegistry import com.android.launcher3.tapl.LauncherInstrumentation @@ -47,11 +46,8 @@ constructor( ) { init { tapl.setExpectedRotationCheckEnabled(true) - Settings.System.putIntForUser( - instrumentation.targetContext.contentResolver, - Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, - 0, - UserHandle.USER_CURRENT_OR_SELF + executeShellCommand( + "settings put system hide_rotation_lock_toggle_for_accessibility 1" ) } |