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.IntroPreference
23        android:key="header_view"
24        android:selectable="false"/>
25
26    <com.android.settingslib.widget.ActionButtonsPreference
27        android:key="action_buttons"/>
28
29    <PreferenceCategory
30        android:key="battery_usage_time_category"
31        settings:isPreferenceVisible="false"
32        settings:selectable="false"
33        settings:controller=
34            "com.android.settings.fuelgauge.PowerUsageTimeController">
35
36        <com.android.settings.fuelgauge.PowerUsageTimePreference
37            settings:isPreferenceVisible="false"
38            settings:selectable="false"
39            android:key="battery_usage_screen_time"/>
40
41        <com.android.settings.fuelgauge.PowerUsageTimePreference
42            settings:isPreferenceVisible="false"
43            settings:selectable="false"
44            android:key="battery_usage_background_time"/>
45
46    </PreferenceCategory>
47
48    <PreferenceCategory
49        android:title="@string/manager_battery_usage_category_title"
50        android:key="background_usage_allowability_category"
51        settings:controller="com.android.settings.fuelgauge.BackgroundUsageAllowabilityPreferenceController">
52
53        <com.android.settingslib.PrimarySwitchPreference
54            android:key="background_usage_allowability_switch"
55            android:title="@string/manager_battery_usage_allow_background_usage_title"/>
56
57    </PreferenceCategory>
58
59</PreferenceScreen>