• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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/com.android.settings"
20    android:title="@string/power_usage_summary_title"
21    settings:keywords="@string/keywords_battery">
22
23    <com.android.settings.applications.LayoutPreference
24        android:key="battery_header"
25        android:selectable="true"
26        android:layout="@layout/battery_header"/>
27
28    <PreferenceCategory
29        android:key="device_usage_list">
30
31        <com.android.settings.fuelgauge.PowerGaugePreference
32            android:key="last_full_charge"
33            android:title="@string/battery_last_full_charge"
34            android:selectable="false"/>
35
36        <com.android.settings.fuelgauge.PowerGaugePreference
37            android:key="screen_usage"
38            android:title="@string/device_screen_usage"
39            android:selectable="false"/>
40
41    </PreferenceCategory>
42
43    <PreferenceCategory
44        android:key="power_management"
45        android:title="@string/battery_power_management">
46
47        <com.android.settings.widget.MasterSwitchPreference
48            android:fragment="com.android.settings.fuelgauge.BatterySaverSettings"
49            android:key="battery_saver_summary"
50            android:title="@string/battery_saver"/>
51
52        <SwitchPreference
53            android:key="battery_percentage"
54            android:title="@string/battery_percentage"
55            android:summary="@string/battery_percentage_description"/>
56
57        <!-- Cross-listed item, if you change this, also change it in ia_display_settings.xml -->
58        <SwitchPreference
59            android:key="auto_brightness_battery"
60            android:title="@string/auto_brightness_title"
61            android:summary="@string/auto_brightness_summary"
62            settings:keywords="@string/keywords_display_auto_brightness"/>
63
64        <!-- Cross-listed item, if you change this, also change it in ia_display_settings.xml -->
65        <com.android.settings.TimeoutListPreference
66            android:key="screen_timeout_battery"
67            android:title="@string/screen_timeout"
68            android:summary="@string/screen_timeout_summary"
69            android:entries="@array/screen_timeout_entries"
70            android:entryValues="@array/screen_timeout_values"/>
71
72    </PreferenceCategory>
73
74    <PreferenceCategory
75        android:key="app_list"
76        android:title="@string/power_usage_list_summary"/>
77
78</PreferenceScreen>
79