summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2011-01-07 11:19:07 -0800
committerAmith Yamasani <yamasani@google.com>2011-01-07 13:45:55 -0800
commit64779e71e3713cdfd8c1f90b150fea2198dcdfa9 (patch)
tree21355ae909eb59639584dddadcc785a7b4e79287 /overlay
parent064fedc94ae94392368ff278d9aa6f3d4d62603f (diff)
downloadstingray-64779e71e3713cdfd8c1f90b150fea2198dcdfa9.tar.gz
Turn on auto-brightness mode by default to help with battery life.
Bug: 3297046 Also disable the power control widget. Bug: 3248740 Change-Id: Ic5ab82ec1efeadcef75dd1c867794bace09de8fd
Diffstat (limited to 'overlay')
-rw-r--r--overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml3
-rw-r--r--overlay/packages/apps/Settings/res/values/bools.xml20
2 files changed, 23 insertions, 0 deletions
diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
index 29fa23b..73bd4b2 100644
--- a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
+++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -17,5 +17,8 @@
*/
-->
<resources>
+ <!-- 5 minutes for default screen timeout -->
<integer name="def_screen_off_timeout">300000</integer>
+ <!-- Set the automatic brightness mode on by default -->
+ <bool name="def_screen_brightness_automatic_mode">true</bool>
</resources>
diff --git a/overlay/packages/apps/Settings/res/values/bools.xml b/overlay/packages/apps/Settings/res/values/bools.xml
new file mode 100644
index 0000000..55f496a
--- /dev/null
+++ b/overlay/packages/apps/Settings/res/values/bools.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <!-- Whether or not the Power Control widget is enabled -->
+ <bool name="has_powercontrol_widget">false</bool>
+</resources>