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

Commit a70bb2d7 authored by Erica Chang's avatar Erica Chang Committed by Gerrit Code Review
Browse files

frameworks: display: shorten automatic brightness debounce

Change-Id: I950fcd29cacf3b165451b59c9a04127290d50296
parent 786b4963
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -66,8 +66,8 @@ class AutomaticBrightnessController {
    // brightness changes occur in response to an observed change in light level that exceeds the
    // hysteresis threshold.
    private static final long BRIGHTENING_LIGHT_FAST_DEBOUNCE = 500;
    private static final long BRIGHTENING_LIGHT_DEBOUNCE = 4000;
    private static final long DARKENING_LIGHT_DEBOUNCE = 8000;
    private static final long BRIGHTENING_LIGHT_DEBOUNCE = 3000;
    private static final long DARKENING_LIGHT_DEBOUNCE = 4000;

    // Hysteresis constraints for brightening or darkening.
    // The recent lux must have changed by at least this fraction relative to the