• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 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.UsageProgressBarPreference
25        android:key="battery_header"
26        android:title="@string/summary_placeholder"
27        android:selectable="false"
28        settings:controller="com.android.settings.fuelgauge.BatteryHeaderPreferenceController" />
29
30    <com.android.settingslib.widget.LayoutPreference
31        android:key="battery_help_message"
32        android:layout="@layout/preference_battery_error"
33        android:selectable="false"
34        settings:searchable="false" />
35
36    <com.android.settings.widget.CardPreference
37        android:key="battery_tip"
38        android:title="@string/summary_placeholder"
39        settings:controller="com.android.settings.fuelgauge.batterytip.BatteryTipPreferenceController" />
40
41    <Preference
42        android:fragment="com.android.settings.fuelgauge.PowerUsageAdvanced"
43        android:key="battery_usage_summary"
44        android:title="@string/advanced_battery_preference_title"
45        settings:keywords="@string/keywords_battery_usage" />
46
47    <Preference
48        android:fragment="com.android.settings.fuelgauge.batterysaver.BatterySaverSettings"
49        android:key="battery_saver_summary"
50        android:title="@string/battery_saver"
51        settings:keywords="@string/keywords_battery_saver"
52        settings:controller="com.android.settings.fuelgauge.BatterySaverController" />
53
54    <Preference
55        android:fragment="com.android.settings.fuelgauge.SmartBatterySettings"
56        android:key="smart_battery_manager"
57        android:title="@string/smart_battery_manager_title"
58        settings:controller="com.android.settings.fuelgauge.batterytip.BatteryManagerPreferenceController"
59        settings:keywords="@string/keywords_battery_adaptive_preferences" />
60
61    <SwitchPreference
62        android:key="battery_percentage"
63        android:title="@string/battery_percentage"
64        android:summary="@string/battery_percentage_description"
65        settings:controller="com.android.settings.display.BatteryPercentagePreferenceController" />
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