1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:key="power_usage_summary_screen"
21    android:title="@string/power_usage_summary_title"
22    settings:keywords="@string/keywords_battery">
23
24    <com.android.settingslib.widget.LayoutPreference
25        android:key="battery_header"
26        android:title="@string/summary_placeholder"
27        android:selectable="false"
28        android:layout="@layout/battery_header"
29        settings:controller="com.android.car.developeroptions.fuelgauge.BatteryHeaderPreferenceController" />
30
31    <com.android.car.developeroptions.widget.CardPreference
32        android:key="battery_tip"
33        android:title="@string/summary_placeholder"
34        settings:controller="com.android.car.developeroptions.fuelgauge.batterytip.BatteryTipPreferenceController" />
35
36    <Preference
37        android:fragment="com.android.car.developeroptions.fuelgauge.batterysaver.BatterySaverSettings"
38        android:key="battery_saver_summary"
39        android:title="@string/battery_saver"
40        settings:controller="com.android.car.developeroptions.fuelgauge.BatterySaverController"
41        settings:platform_slice="true" />
42
43    <Preference
44        android:fragment="com.android.car.developeroptions.fuelgauge.SmartBatterySettings"
45        android:key="smart_battery_manager"
46        android:title="@string/smart_battery_manager_title"
47        settings:controller="com.android.car.developeroptions.fuelgauge.batterytip.BatteryManagerPreferenceController" />
48
49    <SwitchPreference
50        android:key="battery_percentage"
51        android:title="@string/battery_percentage"
52        android:summary="@string/battery_percentage_description"
53        settings:controller="com.android.car.developeroptions.display.BatteryPercentagePreferenceController" />
54
55
56    <com.android.car.developeroptions.fuelgauge.PowerGaugePreference
57        android:key="last_full_charge"
58        android:title="@string/battery_last_full_charge"
59        android:selectable="false"
60        settings:allowDividerAbove="true" />
61
62    <com.android.car.developeroptions.fuelgauge.PowerGaugePreference
63        android:key="screen_usage"
64        android:title="@string/device_screen_usage"
65        android:selectable="false" />
66
67    <com.android.settingslib.widget.FooterPreference
68        android:key="power_usage_footer"
69        android:title="@string/battery_footer_summary"
70        android:selectable="false"
71        settings:searchable="false"/>
72</PreferenceScreen>
73