diff options
author | John Spurlock <jspurlock@google.com> | 2014-06-10 21:36:18 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-06-10 21:36:19 +0000 |
commit | e9ee5e2cede8d7e8fd7791113903df7eff1ec75a (patch) | |
tree | 12802aad9e66d0967bf35bd5d93e2b9e66df62bb /res | |
parent | 8da48ee882825c43bce7068382ad730fbbc060e7 (diff) | |
parent | c7f8e8ce69e80ea495472aade5f8569c6583c5e8 (diff) | |
download | packages_apps_Settings-e9ee5e2cede8d7e8fd7791113903df7eff1ec75a.tar.gz packages_apps_Settings-e9ee5e2cede8d7e8fd7791113903df7eff1ec75a.tar.bz2 packages_apps_Settings-e9ee5e2cede8d7e8fd7791113903df7eff1ec75a.zip |
Merge "Settings: Battery saver settings sub-page." into lmp-preview-dev
Diffstat (limited to 'res')
-rw-r--r-- | res/values/arrays.xml | 9 | ||||
-rw-r--r-- | res/values/strings.xml | 15 | ||||
-rw-r--r-- | res/xml/battery_saver_settings.xml | 34 |
3 files changed, 58 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml index c960c8849..200bacf01 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -1218,4 +1218,13 @@ <item>1</item> <item>2</item> </string-array> + + <!-- Battery saver mode: allowable trigger threshold levels. --> + <integer-array name="battery_saver_trigger_values" translatable="false" > + <item>0</item> + <item>5</item> + <item>10</item> + <item>15</item> + <item>20</item> + </integer-array> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index fd25212f9..6b148f875 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3732,6 +3732,21 @@ <!-- Label for mediaserver process --> <string name="process_mediaserver_label">Mediaserver</string> + <!-- [CHAR_LIMIT=40] Battery saver: Label for feature, title + menu item --> + <string name="battery_saver">Battery saver</string> + + <!-- [CHAR_LIMIT=40] Battery saver: Title for automatic entry option --> + <string name="battery_saver_turn_on_automatically_title">Turn on automatically</string> + + <!-- [CHAR_LIMIT=40] Battery saver: Value for automatic entry option: Never --> + <string name="battery_saver_turn_on_automatically_never">Never</string> + + <!-- [CHAR_LIMIT=40] Battery saver: Value for automatic entry option: pct% battery --> + <string name="battery_saver_turn_on_automatically_pct">at %1$d%% battery</string> + + <!-- [CHAR_LIMIT=NONE] Battery saver: Feature description --> + <string name="battery_saver_description">To help improve battery life, Battery saver will reduce your device’s performance.\n\nBattery saver will turn off when your device is plugged in.</string> + <!-- Process Stats strings --> <skip /> diff --git a/res/xml/battery_saver_settings.xml b/res/xml/battery_saver_settings.xml new file mode 100644 index 000000000..a3729c50b --- /dev/null +++ b/res/xml/battery_saver_settings.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="@string/battery_saver" + android:key="battery_saver"> + + <!-- Turn on automatically --> + <com.android.settings.notification.DropDownPreference + android:key="turn_on_automatically" + android:title="@string/battery_saver_turn_on_automatically_title" + android:persistent="false" /> + + <!-- Feature description text --> + <Preference + android:key="description" + android:summary="@string/battery_saver_description" + android:persistent="false" + android:selectable="false" /> + +</PreferenceScreen> |