diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-08-20 14:02:12 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-08-20 14:02:12 -0700 |
commit | 5f47ba4db739d0db6feb8ce899764dbf87855901 (patch) | |
tree | 3f772ae1d57fd67d60290038f098ecd6c1d36adf /services/java/com/android/server/power/DisplayPowerController.java | |
parent | 6307a150d374cec7b20f80a68800bbf69f495839 (diff) |
Adjust auto-brightness time constants.
Specifically, dim a little more slowly.
Change-Id: I10d66a83ddc3a63f8c93d740a0cb116e6c974d10
Diffstat (limited to 'services/java/com/android/server/power/DisplayPowerController.java')
-rw-r--r-- | services/java/com/android/server/power/DisplayPowerController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/java/com/android/server/power/DisplayPowerController.java b/services/java/com/android/server/power/DisplayPowerController.java index 3e8f45763bac..9d04a0cd111f 100644 --- a/services/java/com/android/server/power/DisplayPowerController.java +++ b/services/java/com/android/server/power/DisplayPowerController.java @@ -100,15 +100,15 @@ final class DisplayPowerController { // Brightness animation ramp rate in brightness units per second. private static final int BRIGHTNESS_RAMP_RATE_FAST = 200; - private static final int BRIGHTNESS_RAMP_RATE_SLOW = 50; + private static final int BRIGHTNESS_RAMP_RATE_SLOW = 40; // Filter time constant in milliseconds for computing a moving // average of light samples. Different constants are used // to calculate the average light level when adapting to brighter or // dimmer environments. // This parameter only controls the filtering of light samples. - private static final long BRIGHTENING_LIGHT_TIME_CONSTANT = 500; - private static final long DIMMING_LIGHT_TIME_CONSTANT = 2000; + private static final long BRIGHTENING_LIGHT_TIME_CONSTANT = 600; + private static final long DIMMING_LIGHT_TIME_CONSTANT = 4000; // Stability requirements in milliseconds for accepting a new brightness // level. This is used for debouncing the light sensor. Different constants |