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

Commit 8b418b00 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Added a debug flag to turn on the AOD animation" into pi-dev

parents 80b03d22 0dd5a6b6
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -38,6 +38,8 @@ import java.io.PrintWriter;
public class DozeParameters implements TunerService.Tunable {
public class DozeParameters implements TunerService.Tunable {
    private static final int MAX_DURATION = 60 * 1000;
    private static final int MAX_DURATION = 60 * 1000;
    public static final String DOZE_SENSORS_WAKE_UP_FULLY = "doze_sensors_wake_up_fully";
    public static final String DOZE_SENSORS_WAKE_UP_FULLY = "doze_sensors_wake_up_fully";
    public static final boolean FORCE_NO_BLANKING =
            SystemProperties.getBoolean("debug.force_no_blanking", false);


    private static IntInOutMatcher sPickupSubtypePerformsProxMatcher;
    private static IntInOutMatcher sPickupSubtypePerformsProxMatcher;
    private static DozeParameters sInstance;
    private static DozeParameters sInstance;
@@ -181,7 +183,7 @@ public class DozeParameters implements TunerService.Tunable {
     * @return {@code true} if screen needs to be completely black before a power transition.
     * @return {@code true} if screen needs to be completely black before a power transition.
     */
     */
    public boolean getDisplayNeedsBlanking() {
    public boolean getDisplayNeedsBlanking() {
        return mContext.getResources().getBoolean(
        return !FORCE_NO_BLANKING && mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_displayBlanksAfterDoze);
                com.android.internal.R.bool.config_displayBlanksAfterDoze);
    }
    }