• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 xmlns:android="http://schemas.android.com/apk/res/android">
19
20    <com.android.settings.applications.LayoutPreference
21        android:key="header_view"
22        android:layout="@layout/settings_entity_header"
23        android:selectable="false"
24        android:order="-10000"/>
25
26    <com.android.settings.widget.ActionButtonPreference
27        android:key="action_buttons"
28        android:order="-9999"/>
29
30    <PreferenceCategory
31        android:title="@string/battery_detail_manage_title">
32
33        <Preference
34            android:key="background_activity"
35            android:title="@string/background_activity_title"
36            android:selectable="true"/>
37
38        <Preference
39            android:key="battery_optimization"
40            android:title="@string/high_power_apps"
41            android:summary="@string/high_power_off"
42            android:selectable="true"/>
43
44    </PreferenceCategory>
45
46    <Preference
47        android:key="high_usage"
48        android:icon="@drawable/ic_battery_alert_24dp"
49        android:title="@string/power_high_usage_title"/>
50
51    <PreferenceCategory
52        android:title="@string/battery_detail_info_title">
53
54        <Preference
55            android:key="app_usage_foreground"
56            android:title="@string/battery_detail_foreground"
57            android:selectable="false"/>
58
59        <Preference
60            android:key="app_usage_background"
61            android:title="@string/battery_detail_background"
62            android:selectable="false"/>
63
64    </PreferenceCategory>
65
66</PreferenceScreen>