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
18<PreferenceScreen
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:settings="http://schemas.android.com/apk/res-auto">
21
22    <com.android.settingslib.widget.LayoutPreference
23        android:key="header_view"
24        android:layout="@layout/settings_entity_header"
25        android:selectable="false"
26        android:order="-10000"
27        settings:allowDividerBelow="true"/>
28
29    <com.android.settingslib.widget.ActionButtonsPreference
30        android:key="action_buttons"
31        android:order="-9999"/>
32
33    <PreferenceCategory
34        android:title="@string/battery_detail_manage_title">
35
36        <com.android.settingslib.RestrictedPreference
37            android:key="background_activity"
38            android:title="@string/background_activity_title"
39            android:selectable="true"
40            settings:userRestriction="no_control_apps"/>
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
50    <PreferenceCategory
51        android:title="@string/battery_detail_info_title">
52
53        <Preference
54            android:key="app_usage_foreground"
55            android:title="@string/battery_detail_foreground"
56            android:selectable="false"/>
57
58        <Preference
59            android:key="app_usage_background"
60            android:title="@string/battery_detail_background"
61            android:selectable="false"/>
62
63    </PreferenceCategory>
64
65</PreferenceScreen>