Skip to content

Commit ca7a9ef

Browse files
Jeff BrownAndroid (Google) Code Review
authored andcommitted
Merge "Adjust auto-brightness time constants." into jb-mr1-dev
2 parents 3fee5c6 + 5f47ba4 commit ca7a9ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/java/com/android/server/power/DisplayPowerController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ final class DisplayPowerController {
100100

101101
// Brightness animation ramp rate in brightness units per second.
102102
private static final int BRIGHTNESS_RAMP_RATE_FAST = 200;
103-
private static final int BRIGHTNESS_RAMP_RATE_SLOW = 50;
103+
private static final int BRIGHTNESS_RAMP_RATE_SLOW = 40;
104104

105105
// Filter time constant in milliseconds for computing a moving
106106
// average of light samples. Different constants are used
107107
// to calculate the average light level when adapting to brighter or
108108
// dimmer environments.
109109
// This parameter only controls the filtering of light samples.
110-
private static final long BRIGHTENING_LIGHT_TIME_CONSTANT = 500;
111-
private static final long DIMMING_LIGHT_TIME_CONSTANT = 2000;
110+
private static final long BRIGHTENING_LIGHT_TIME_CONSTANT = 600;
111+
private static final long DIMMING_LIGHT_TIME_CONSTANT = 4000;
112112

113113
// Stability requirements in milliseconds for accepting a new brightness
114114
// level. This is used for debouncing the light sensor. Different constants

0 commit comments

Comments
 (0)