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

Commit 111d6fef authored by Michael Wright's avatar Michael Wright Committed by Android (Google) Code Review
Browse files

Merge changes I8f4249da,I012bd99f

* changes:
  Extract automatic brightness strategy
  New ambient light level filtering for automatic brightness
parents c1d388fa 639c8bec
Loading
Loading
Loading
Loading
+687 −0

File added.

Preview size limit exceeded, changes collapsed.

+70 −504

File changed.

Preview size limit exceeded, changes collapsed.

+9 −0
Original line number Diff line number Diff line
@@ -114,4 +114,13 @@ final class DisplayPowerRequest {
                + ", useAutoBrightness=" + useAutoBrightness
                + ", blockScreenOn=" + blockScreenOn;
    }

    public static boolean wantScreenOn(int state) {
        switch(state) {
            case SCREEN_STATE_DIM:
            case SCREEN_STATE_BRIGHT:
                return true;
        }
        return false;
    }
}