1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 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_advanced_screen" 21 android:title="@string/advanced_battery_title" 22 settings:keywords="@string/keywords_battery_usage"> 23 24 <PreferenceCategory 25 android:key="battery_tips_category" 26 android:layout="@layout/preference_category_no_label" 27 settings:controller= 28 "com.android.settings.fuelgauge.batteryusage.BatteryTipsController" 29 settings:isPreferenceVisible="false"> 30 31 <com.android.settings.widget.TipCardPreference 32 android:key="battery_tips_card" 33 settings:isPreferenceVisible="false" /> 34 35 </PreferenceCategory> 36 37 <com.android.settings.fuelgauge.batteryusage.BatteryHistoryPreference 38 android:key="battery_chart" 39 settings:controller= 40 "com.android.settings.fuelgauge.batteryusage.BatteryChartPreferenceController" /> 41 42 <PreferenceCategory 43 android:key="screen_on_time_category" 44 settings:controller= 45 "com.android.settings.fuelgauge.batteryusage.ScreenOnTimeController" 46 settings:isPreferenceVisible="false"> 47 48 <com.android.settings.fuelgauge.batteryusage.TextViewPreference 49 android:key="screen_on_time_text" 50 settings:isPreferenceVisible="false" /> 51 52 </PreferenceCategory> 53 54 <PreferenceCategory 55 android:key="battery_usage_breakdown" 56 settings:controller= 57 "com.android.settings.fuelgauge.batteryusage.BatteryUsageBreakdownController" 58 settings:isPreferenceVisible="false"> 59 60 <com.android.settingslib.widget.SettingsSpinnerPreference 61 android:key="battery_usage_spinner" 62 android:order="0" 63 settings:isPreferenceVisible="false" /> 64 65 <!-- App usage preference list will be added here with the order in range [100, 1000). --> 66 67 <com.android.settingslib.widget.FooterPreference 68 android:key="battery_usage_footer" 69 android:selectable="false" 70 android:order="1000" 71 settings:isPreferenceVisible="false" 72 settings:searchable="false" /> 73 74 </PreferenceCategory> 75</PreferenceScreen> 76