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

Commit 1a6a0c8a authored by Kean Mariotti's avatar Kean Mariotti
Browse files

shell tests: add EnsureDeviceSettingsRule

Mainly to make sure that Settings.Global.STAY_ON_WHILE_PLUGGED_IN
is enabled to avoid turning off the screen and increasing jank
metrics during long tests.

Flag: EXEMPT minor change
Bug: 323165543
Test: presubmit
Change-Id: I22df997d9657400a268818146e53b0d81e9127fa
parent fddff9e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.wm.shell

import android.app.Instrumentation
import android.platform.test.rule.EnsureDeviceSettingsRule
import android.platform.test.rule.NavigationModeRule
import android.platform.test.rule.PressHomeRule
import android.platform.test.rule.UnlockScreenRule
@@ -49,5 +50,6 @@ object Utils {
                )
            )
            .around(PressHomeRule())
            .around(EnsureDeviceSettingsRule())
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ java_defaults {
        "flickerlib-helpers",
        "flickerlib-trace_processor_shell",
        "platform-test-annotations",
        "platform-test-rules",
        "wm-flicker-common-app-helpers",
        "wm-flicker-common-assertions",
        "launcher-helper-lib",