Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9edc627a authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Disable smart auto rotate

Flag: TEST_ONLY
Fixes: 390710551
Test: atest FlickerTestsNotification
Change-Id: I2b3933387ad4a1afbb50590f177f87c6d3ea534d
parent 40633698
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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