OSDN Git Service

Make default brightness ramp rates multiples of 60.
authorMichael Wright <michaelwr@google.com>
Wed, 16 Aug 2017 21:35:09 +0000 (22:35 +0100)
committerMichael Wright <michaelwr@google.com>
Wed, 16 Aug 2017 21:36:02 +0000 (22:36 +0100)
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

core/res/res/values/config.xml

index 95aa264..98147e7 100644 (file)
     <bool name="config_automatic_brightness_available">false</bool>
 
     <!-- Fast brightness animation ramp rate in brightness units per second-->
-    <integer translatable="false" name="config_brightness_ramp_rate_fast">200</integer>
+    <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">40</integer>
+    <integer translatable="false" name="config_brightness_ramp_rate_slow">60</integer>
 
     <!-- Don't name config resources like this.  It should look like config_annoyDianne -->
     <bool name="config_annoy_dianne">true</bool>