Loading tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +3 −7 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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" ) } Loading Loading
tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +3 −7 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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" ) } Loading