summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorBernd Holzhey <googlecar+git@google.com>2010-02-10 17:39:51 +0100
committerBernd Holzhey <holzhey@google.com>2010-02-16 17:10:39 +0100
commitbfca3a0056a42bde672c8ade83f13f139149f756 (patch)
tree7ffae4a3d5593ab780b24934577ca7f941f776ef /libs/rs/rsg_ScriptJavaClass.cpp
parentbd27544098a9fd50bf7964f108d656a905216caf (diff)
Add the automatic handling of night/notnight UI modes.
The automatic switching between night/notnight is based on the calulcation of the civil twilight of the current location. The location is mainly retrieved from the NetworkLocationProvider. Automatic switching will only be available, when 1) the device is in UI_MODE_TYPE_CAR 2) the setting for the UI mode are set to 'automatic' If mode is set to automatic, the next twilight is caluclated and an alarm is set that timestamp. The alarm will trigger a new calculation of the twilight and sets the UI_MODE_NIGHT to the appropriate value. modified: services/java/com/android/server/DockObserver.java new file: services/java/com/android/server/TwilightCalculator.java
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions