aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2017-08-16 22:35:09 +0100
committerdoc HD <doc.divxm@gmail.com>2017-12-18 13:37:05 +0300
commit44d2fd02371dc86bccccd1bbc7beef47b5175f44 (patch)
tree8ad1c9caa526fb181450dcbc9f6a295f1a5fc8c5
parent64a54bbdd853256033851cbbfdca84090dddea63 (diff)
overlay: Make default brightness ramp rates multiples of 60.HEADn7.1
If ramp rates aren't even multiple of 60 then we're more likely to get brightness changes that differ each frame, which can show up as a stuttering in the animation. Bug: 64514692 Test: made change, took systrace, saw smooth ramping Change-Id: Iada2f1de684d94fe790ab8d5cf03bea5ba1a2ca5
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 30b137b..355f168 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -167,8 +167,11 @@
config to 7. -->
<integer name="config_deviceHardwareWakeKeys">65</integer>
+ <!-- Fast brightness animation ramp rate in brightness units per second-->
+ <integer translatable="false" name="config_brightness_ramp_rate_fast">180</integer>
+
<!-- Slow brightness animation ramp rate in brightness units per second-->
- <integer translatable="false" name="config_brightness_ramp_rate_slow">80</integer>
+ <integer translatable="false" name="config_brightness_ramp_rate_slow">60</integer>
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
for debouncing the light sensor. Different constants are used to debounce the light sensor