summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-08-21 22:14:26 -0700
committerJeff Brown <jeffbrown@google.com>2012-08-22 00:02:41 -0700
commitaa202a6dc33d331cbd9e34a1bb5f74db6284dda6 (patch)
treea20a54dab159c7fb7f91e336cb0530eb85d1d1d4 /graphics/java/android/renderscript/RenderScript.java
parent2416e09649eb6ab767eba458796e126196c77a34 (diff)
Add a mechanism to adjust auto-brightness at night.
Uses the twilight service to determine the hours of sunrise and sunset. Shortly after sunset or before sunrise gradually start to apply a gamma correction factor to the auto-brightness calculations to make the screen a little dimmer at night. The effect is relatively small and is mostly noticeable in dark rooms. This is just a first pass at the algorithm, we can tweak the adjustment later to ensure that it has even less impact in moderate or bright environments. Change-Id: Idf89022a5d0bb52975e04779352d53fa63371178
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions