diff options
author | Daniel Sandler <dsandler@android.com> | 2013-09-23 16:05:57 -0400 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2013-10-08 17:37:06 +0000 |
commit | dea6462aab31049d1f1055314491bc33a6f16b0d (patch) | |
tree | c4c97da0bae3256459ffd3329748bd96c93986f3 /packages/SettingsProvider/res | |
parent | 46ec729a88079d3878a95a57ab703e64638dfc1a (diff) | |
download | frameworks_base-dea6462aab31049d1f1055314491bc33a6f16b0d.zip frameworks_base-dea6462aab31049d1f1055314491bc33a6f16b0d.tar.gz frameworks_base-dea6462aab31049d1f1055314491bc33a6f16b0d.tar.bz2 |
Don't wake users up with low battery sounds.
Battery sounds will always play when the screen is on, and
then for Settings.Global.LOW_BATTERY_SOUND_TIMEOUT
milliseconds after the screen goes off. After that, low
battery alerts will be pushed out the airlock until the
screen comes back on again.
If battery sounds are suppressed via this mechanism you'll
see a log line like:
V/PowerUI ( 3161): screen off too long (5779ms, limit
5000ms): not waking up the user with low battery sound
The default value of LOW_BATTERY_SOUND_TIMEOUT is a settings
provider resource: R.integer.def_low_battery_sound_timeout.
Bug: 10487557
Change-Id: Iddd42038aa630631dc8f1833f20fcc5a0c646681
Diffstat (limited to 'packages/SettingsProvider/res')
-rw-r--r-- | packages/SettingsProvider/res/values/defaults.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index bfb0931..a1d8f22 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -168,4 +168,9 @@ <!-- Default for Settings.Secure.USER_SETUP_COMPLETE --> <bool name="def_user_setup_complete">false</bool> + + <!-- Default for Settings.Global.LOW_BATTERY_SOUND_TIMEOUT. + 0 means no timeout; battery sounds will always play + >0 is milliseconds of screen-off time after which battery sounds will not play --> + <integer name="def_low_battery_sound_timeout">0</integer> </resources> |