OSDN Git Service

DO NOT MERGE: Use a linear spline if there's a non-monotonic brightness curve
authorMichael Wright <michaelwr@google.com>
Fri, 29 Aug 2014 00:42:16 +0000 (17:42 -0700)
committerSean Wan <swan@google.com>
Tue, 2 Sep 2014 21:47:37 +0000 (14:47 -0700)
commitda3b43633fe86d69aab5cab52826e76e01f18d63
tree520d6563be7b45e8c998eacbead50576eb9a967e
parent6208e7b56080956ffc48ade8d0b0f038b901cb23
DO NOT MERGE: Use a linear spline if there's a non-monotonic brightness curve

Some devices may contain things like transflective displays where
they actually want the backlight brightness to decrease in the face
of high ambient light scenarios. In the interest of time, just use a
linear interpolation based on the brightness control points for these
cases but in the future we should consider adding a non-monotonic
cubic spline.

Bug: 15611140
Change-Id: I308ad00943d916866ee8d2507a41b7032e6b524e
core/java/android/util/Spline.java
services/core/java/com/android/server/display/DisplayPowerController.java