jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2017 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
jackqdyulei | fd0c472 | 2018-08-07 15:12:54 -0700 | [diff] [blame] | 18 | <PreferenceScreen |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | xmlns:settings="http://schemas.android.com/apk/res-auto"> |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 21 | |
tmfang | dce94bb | 2018-11-26 18:41:01 +0800 | [diff] [blame] | 22 | <com.android.settingslib.widget.LayoutPreference |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 23 | android:key="header_view" |
Fan Zhang | 2ed0f99 | 2017-05-17 14:15:34 -0700 | [diff] [blame] | 24 | android:layout="@layout/settings_entity_header" |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 25 | android:selectable="false" |
tmfang | 86fcd90 | 2018-11-19 15:00:24 +0800 | [diff] [blame] | 26 | android:order="-10000" |
| 27 | settings:allowDividerBelow="true"/> |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 28 | |
tmfang | 8ad18fb | 2018-11-28 16:59:15 +0800 | [diff] [blame] | 29 | <com.android.settingslib.widget.ActionButtonsPreference |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 30 | android:key="action_buttons" |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 31 | android:order="-9999"/> |
| 32 | |
jackqdyulei | 29002aa | 2018-01-19 17:32:23 -0800 | [diff] [blame] | 33 | <PreferenceCategory |
| 34 | android:title="@string/battery_detail_manage_title"> |
| 35 | |
jackqdyulei | fd0c472 | 2018-08-07 15:12:54 -0700 | [diff] [blame] | 36 | <com.android.settingslib.RestrictedPreference |
jackqdyulei | 29002aa | 2018-01-19 17:32:23 -0800 | [diff] [blame] | 37 | android:key="background_activity" |
| 38 | android:title="@string/background_activity_title" |
jackqdyulei | fd0c472 | 2018-08-07 15:12:54 -0700 | [diff] [blame] | 39 | android:selectable="true" |
| 40 | settings:userRestriction="no_control_apps"/> |
jackqdyulei | 29002aa | 2018-01-19 17:32:23 -0800 | [diff] [blame] | 41 | |
| 42 | <Preference |
| 43 | android:key="battery_optimization" |
| 44 | android:title="@string/high_power_apps" |
| 45 | android:summary="@string/high_power_off" |
| 46 | android:selectable="true"/> |
| 47 | |
| 48 | </PreferenceCategory> |
| 49 | |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 50 | <PreferenceCategory |
| 51 | android:title="@string/battery_detail_info_title"> |
| 52 | |
| 53 | <Preference |
| 54 | android:key="app_usage_foreground" |
jackqdyulei | a66363a | 2017-06-30 11:11:16 -0700 | [diff] [blame] | 55 | android:title="@string/battery_detail_foreground" |
| 56 | android:selectable="false"/> |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 57 | |
| 58 | <Preference |
| 59 | android:key="app_usage_background" |
jackqdyulei | a66363a | 2017-06-30 11:11:16 -0700 | [diff] [blame] | 60 | android:title="@string/battery_detail_background" |
| 61 | android:selectable="false"/> |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 62 | |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 63 | </PreferenceCategory> |
| 64 | |
jackqdyulei | ddba966 | 2017-03-08 19:35:02 -0800 | [diff] [blame] | 65 | </PreferenceScreen> |