blob: 945ceed893899b8358a649a435ceeb61477dc1e1 [file] [log] [blame]
jackqdyuleiddba9662017-03-08 19:35:02 -08001<?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
jackqdyuleifd0c4722018-08-07 15:12:54 -070018<PreferenceScreen
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:settings="http://schemas.android.com/apk/res-auto">
jackqdyuleiddba9662017-03-08 19:35:02 -080021
tmfangdce94bb2018-11-26 18:41:01 +080022 <com.android.settingslib.widget.LayoutPreference
jackqdyuleiddba9662017-03-08 19:35:02 -080023 android:key="header_view"
Fan Zhang2ed0f992017-05-17 14:15:34 -070024 android:layout="@layout/settings_entity_header"
jackqdyuleiddba9662017-03-08 19:35:02 -080025 android:selectable="false"
tmfang86fcd902018-11-19 15:00:24 +080026 android:order="-10000"
27 settings:allowDividerBelow="true"/>
jackqdyuleiddba9662017-03-08 19:35:02 -080028
tmfang8ad18fb2018-11-28 16:59:15 +080029 <com.android.settingslib.widget.ActionButtonsPreference
jackqdyuleiddba9662017-03-08 19:35:02 -080030 android:key="action_buttons"
jackqdyuleiddba9662017-03-08 19:35:02 -080031 android:order="-9999"/>
32
jackqdyulei29002aa2018-01-19 17:32:23 -080033 <PreferenceCategory
34 android:title="@string/battery_detail_manage_title">
35
jackqdyuleifd0c4722018-08-07 15:12:54 -070036 <com.android.settingslib.RestrictedPreference
jackqdyulei29002aa2018-01-19 17:32:23 -080037 android:key="background_activity"
38 android:title="@string/background_activity_title"
jackqdyuleifd0c4722018-08-07 15:12:54 -070039 android:selectable="true"
40 settings:userRestriction="no_control_apps"/>
jackqdyulei29002aa2018-01-19 17:32:23 -080041
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
jackqdyuleiddba9662017-03-08 19:35:02 -080050 <PreferenceCategory
51 android:title="@string/battery_detail_info_title">
52
53 <Preference
54 android:key="app_usage_foreground"
jackqdyuleia66363a2017-06-30 11:11:16 -070055 android:title="@string/battery_detail_foreground"
56 android:selectable="false"/>
jackqdyuleiddba9662017-03-08 19:35:02 -080057
58 <Preference
59 android:key="app_usage_background"
jackqdyuleia66363a2017-06-30 11:11:16 -070060 android:title="@string/battery_detail_background"
61 android:selectable="false"/>
jackqdyuleiddba9662017-03-08 19:35:02 -080062
jackqdyuleiddba9662017-03-08 19:35:02 -080063 </PreferenceCategory>
64
jackqdyuleiddba9662017-03-08 19:35:02 -080065</PreferenceScreen>