diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-08-21 22:14:26 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-08-22 00:02:41 -0700 |
commit | aa202a6dc33d331cbd9e34a1bb5f74db6284dda6 (patch) | |
tree | a20a54dab159c7fb7f91e336cb0530eb85d1d1d4 /graphics/java/android/renderscript/RenderScript.java | |
parent | 2416e09649eb6ab767eba458796e126196c77a34 (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