Commit b6257bf6 authored by Gregory Mierzwinski's avatar Gregory Mierzwinski
Browse files

Bug 1572862 - Disable adaptive brightness when running power tests on android....

Bug 1572862 - Disable adaptive brightness when running power tests on android. r=perftest-reviewers,stephendonner

This patch disables adaptive brightness on any android device that runs power tests. It is not restored because it should always be disabled.

Differential Revision: https://phabricator.services.mozilla.com/D41444

--HG--
extra : moz-landing-system : lando
parent 22dbda5b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,6 +21,10 @@ def init_android_power_test(raptor):
            "%s power test ignored; MOZ_UPLOAD_DIR unset" % raptor.config["app"]
        )
        return
    # Disable adaptive brightness - do not restore the value since this setting
    # should always be disabled.
    raptor.device.shell_output("settings put system screen_brightness_mode 0")

    # Set the screen-off timeout to two (2) hours, since the device will be running
    # disconnected, and would otherwise turn off the screen, thereby halting
    # execution of the test. Save the current value so we can restore it later