1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2021 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 28 <com.android.settingslib.widget.ActionButtonsPreference 29 android:key="action_buttons" 30 android:order="-9999"/> 31 32 <PreferenceCategory 33 android:title="@string/battery_detail_manage_title"> 34 35 <com.android.settingslib.RestrictedPreference 36 android:key="background_activity" 37 android:title="@string/background_activity_title" 38 android:selectable="true" 39 settings:userRestriction="no_control_apps"/> 40 41 <Preference 42 android:key="battery_optimization" 43 android:title="@string/high_power_apps" 44 android:summary="@string/high_power_off" 45 android:selectable="true"/> 46 47 </PreferenceCategory> 48 49 <PreferenceCategory 50 android:title="@string/battery_detail_info_title"> 51 52 <Preference 53 android:key="app_usage_foreground" 54 android:title="@string/battery_detail_foreground" 55 android:selectable="false"/> 56 57 <Preference 58 android:key="app_usage_background" 59 android:title="@string/battery_detail_background" 60 android:selectable="false"/> 61 62 </PreferenceCategory> 63 64</PreferenceScreen>