Skip to content

Commit 5f47ba4

Browse files
author
Jeff Brown
committed
Adjust auto-brightness time constants.
Specifically, dim a little more slowly. Change-Id: I10d66a83ddc3a63f8c93d740a0cb116e6c974d10
1 parent 6307a15 commit 5f47ba4

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)