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
177 lines
9.0 KiB
XML
177 lines
9.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/**
|
|
* Copyright (c) 2009, 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>
|
|
<bool name="def_dim_screen">true</bool>
|
|
<integer name="def_screen_off_timeout">60000</integer>
|
|
<bool name="def_airplane_mode_on">false</bool>
|
|
<!-- Comma-separated list of bluetooth, wifi, and cell. -->
|
|
<string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>
|
|
<string name="airplane_mode_toggleable_radios" translatable="false">bluetooth,wifi,nfc</string>
|
|
<bool name="def_auto_time">true</bool>
|
|
<bool name="def_auto_time_zone">true</bool>
|
|
<bool name="def_accelerometer_rotation">true</bool>
|
|
<!-- Default screen brightness, from 0 to 255. 102 is 40%. -->
|
|
<integer name="def_screen_brightness">102</integer>
|
|
<bool name="def_screen_brightness_automatic_mode">false</bool>
|
|
<fraction name="def_window_animation_scale">100%</fraction>
|
|
<fraction name="def_window_transition_scale">100%</fraction>
|
|
<bool name="def_haptic_feedback">true</bool>
|
|
|
|
<bool name="def_bluetooth_on">false</bool>
|
|
<bool name="def_wifi_display_on">false</bool>
|
|
<bool name="def_install_non_market_apps">false</bool>
|
|
<bool name="def_package_verifier_enable">true</bool>
|
|
<!-- Comma-separated list of location providers.
|
|
Network location is off by default because it requires
|
|
user opt-in via Setup Wizard or Settings.
|
|
-->
|
|
<string name="def_location_providers_allowed" translatable="false">gps</string>
|
|
<bool name="assisted_gps_enabled">true</bool>
|
|
<bool name="def_netstats_enabled">true</bool>
|
|
<bool name="def_usb_mass_storage_enabled">true</bool>
|
|
<bool name="def_wifi_on">false</bool>
|
|
<!-- 0 == never, 1 == only when plugged in, 2 == always -->
|
|
<integer name="def_wifi_sleep_policy">2</integer>
|
|
<bool name="def_networks_available_notification_on">true</bool>
|
|
|
|
<bool name="def_backup_enabled">false</bool>
|
|
<string name="def_backup_transport" translatable="false">android/com.android.internal.backup.LocalTransport</string>
|
|
|
|
<!-- Default value for whether or not to pulse the notification LED when there is a
|
|
pending notification -->
|
|
<bool name="def_notification_pulse">true</bool>
|
|
|
|
<bool name="def_mount_play_notification_snd">true</bool>
|
|
<bool name="def_mount_ums_autostart">false</bool>
|
|
<bool name="def_mount_ums_prompt">true</bool>
|
|
<bool name="def_mount_ums_notify_enabled">true</bool>
|
|
|
|
<!-- user interface sound effects -->
|
|
<integer name="def_power_sounds_enabled">1</integer>
|
|
<string name="def_low_battery_sound" translatable="false">/system/media/audio/ui/LowBattery.ogg</string>
|
|
<integer name="def_dock_sounds_enabled">0</integer>
|
|
<string name="def_desk_dock_sound" translatable="false">/system/media/audio/ui/Dock.ogg</string>
|
|
<string name="def_desk_undock_sound" translatable="false">/system/media/audio/ui/Undock.ogg</string>
|
|
<string name="def_car_dock_sound" translatable="false">/system/media/audio/ui/Dock.ogg</string>
|
|
<string name="def_car_undock_sound" translatable="false">/system/media/audio/ui/Undock.ogg</string>
|
|
<integer name="def_lockscreen_sounds_enabled">1</integer>
|
|
<string name="def_lock_sound" translatable="false">/system/media/audio/ui/Lock.ogg</string>
|
|
<string name="def_unlock_sound" translatable="false">/system/media/audio/ui/Unlock.ogg</string>
|
|
<string name="def_wireless_charging_started_sound" translatable="false">/system/media/audio/ui/WirelessChargingStarted.ogg</string>
|
|
|
|
<bool name="def_lockscreen_disabled">false</bool>
|
|
<bool name="def_device_provisioned">false</bool>
|
|
<integer name="def_dock_audio_media_enabled">1</integer>
|
|
|
|
<!-- Notifications use ringer volume -->
|
|
<bool name="def_notifications_use_ring_volume">true</bool>
|
|
|
|
<!-- Default for Settings.System.VIBRATE_IN_SILENT -->
|
|
<bool name="def_vibrate_in_silent">true</bool>
|
|
|
|
<!-- Default for Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION -->
|
|
<bool name="def_accessibility_script_injection">false</bool>
|
|
|
|
<!-- Default for Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD -->
|
|
<bool name="def_accessibility_speak_password">false</bool>
|
|
|
|
<!-- Default for Settings.Secure.ACCESSIBILITY_WEB_CONTENT_KEY_BINDINGS -->
|
|
<string name="def_accessibility_web_content_key_bindings" translatable="false">
|
|
<!-- DPAD/Trackball UP - traverse previous on current axis and send an event. -->
|
|
0x13=0x01000100;
|
|
<!-- DPAD/Trackball DOWN - traverse next on current axis and send an event. -->
|
|
0x14=0x01010100;
|
|
<!-- DPAD/Trackball LEFT - traverse previous on the character navigation axis and send event. -->
|
|
0x15=0x02000001;
|
|
<!-- DPAD/Trackball RIGHT - traverse next on the character navigation axis end send event. -->
|
|
0x16=0x02010001;
|
|
<!-- Alt+DPAD/Trackball UP - go to the top of the document. -->
|
|
0x200000013=0x02000601;
|
|
<!-- Alt+DPAD/Trackball DOWN - go to the bottom of the document. -->
|
|
0x200000014=0x02010601;
|
|
<!-- Alt+DPAD/Trackball LEFT - transition from an axis to another and sends an event.-->
|
|
<!-- Axis transitions: 2 -> 1; -->
|
|
0x200000015=0x03020101;
|
|
<!-- Alt+DPAD/Trackball RIGHT - transition from an axis to another and sends an event. -->
|
|
<!-- Axis transitions: 1 -> 2; -->
|
|
0x200000016=0x03010201;
|
|
<!-- Alt+g - go to the previous heading and send an event. -->
|
|
0x200000023=0x02000301;
|
|
<!-- Alt+h - go to the next heading and send an event. -->
|
|
0x200000024=0x02010301;
|
|
<!-- Alt+COMMA - transition to sentence navigation axis and send an event. -->
|
|
<!-- Axis transitions: 7 -> 2; -->
|
|
0x200000037=0x03070201;
|
|
<!-- Alt+PERIOD - transition to default web view behavior axis and send an event. -->
|
|
<!-- Axis transitions: 0 -> 7; 1 - > 7; 2 -> 7; -->
|
|
0x200000038=0x03000701:0x03010701:0x03020701;
|
|
</string>
|
|
|
|
<!-- Default for Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION_URL -->
|
|
<string name="def_accessibility_screen_reader_url" translatable="false">
|
|
https://ssl.gstatic.com/accessibility/javascript/android/AndroidVox_v1.js
|
|
</string>
|
|
|
|
<!-- Default for Settings.Secure.TOUCH_EXPLORATION_ENABLED -->
|
|
<bool name="def_touch_exploration_enabled">false</bool>
|
|
|
|
<!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE -->
|
|
<fraction name="def_accessibility_display_magnification_scale">200%</fraction>
|
|
|
|
<!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED -->
|
|
<bool name="def_accessibility_display_magnification_enabled">false</bool>
|
|
|
|
<!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE -->
|
|
<bool name="def_accessibility_display_magnification_auto_update">true</bool>
|
|
|
|
<!-- Default for Settings.System.USER_ROTATION -->
|
|
<integer name="def_user_rotation">0</integer>
|
|
|
|
<!-- Default for Settings.Secure.DOWNLOAD_MAX_BYTES_OVER_MOBILE. <=0 if no limit -->
|
|
<integer name="def_download_manager_max_bytes_over_mobile">-1</integer>
|
|
<!-- Default for Settings.Secure.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE. <=0 if no limit -->
|
|
<integer name="def_download_manager_recommended_max_bytes_over_mobile">-1</integer>
|
|
|
|
<!-- Default for Settings.Secure.LONG_PRESS_TIMEOUT_MILLIS -->
|
|
<integer name="def_long_press_timeout_millis">500</integer>
|
|
|
|
<!-- Default for Settings.System.POINTER_SPEED -->
|
|
<integer name="def_pointer_speed">0</integer>
|
|
|
|
<!-- Default for DTMF tones enabled -->
|
|
<bool name="def_dtmf_tones_enabled">true</bool>
|
|
<!-- Default for UI touch sounds enabled -->
|
|
<bool name="def_sound_effects_enabled">true</bool>
|
|
|
|
<!-- Development settings -->
|
|
<bool name="def_stay_on_while_plugged_in">false</bool>
|
|
|
|
<!-- Number of retries for connecting to DHCP.
|
|
Value here is the same as WifiStateMachine.DEFAULT_MAX_DHCP_RETRIES -->
|
|
<integer name="def_max_dhcp_retries">9</integer>
|
|
|
|
<!-- 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>
|