OSDN Git Service

Merge tag 'android-6.0.1_r74' into HEAD
[android-x86/packages-apps-Settings.git] / res / xml / display.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright (C) 2015 The CyanogenMod 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 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18     xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
19     android:title="@string/display_and_lights"
20     settings:keywords="@string/keywords_display">
21
22     <PreferenceCategory
23         android:key="display"
24         android:title="@string/display_label">
25
26         <!-- Brightness slider -->
27         <PreferenceScreen
28                 android:key="brightness"
29                 android:title="@string/brightness"
30                 settings:keywords="@string/keywords_display_brightness_level">
31             <intent android:action="android.intent.action.SHOW_BRIGHTNESS_DIALOG" />
32         </PreferenceScreen>
33
34         <!-- Adaptive brightness -->
35         <SwitchPreference
36                 android:key="auto_brightness"
37                 android:title="@string/auto_brightness_title"
38                 settings:keywords="@string/keywords_display_auto_brightness"
39                 android:summary="@string/auto_brightness_summary"
40                 android:persistent="false" />
41
42         <!-- LiveDisplay -->
43         <PreferenceScreen
44                 android:key="live_display"
45                 android:title="@string/live_display_title"
46                 android:summary="@string/live_display_summary"
47                 android:fragment="com.android.settings.livedisplay.LiveDisplay" />
48
49         <!-- Rotation modes -->
50         <PreferenceScreen
51                 android:key="display_rotation"
52                 android:title="@string/display_rotation_title"
53                 android:fragment="com.android.settings.cyanogenmod.DisplayRotation"/>
54
55         <!-- Doze // Ambient display -->
56         <SwitchPreference
57                 android:key="doze"
58                 android:title="@string/doze_title"
59                 android:summary="@string/doze_summary"
60                 android:persistent="false" />
61
62         <!-- Lift to wake -->
63         <SwitchPreference
64                 android:key="lift_to_wake"
65                 android:title="@string/lift_to_wake_title"
66                 android:persistent="false" />
67
68         <!-- Double tap to wake -->
69         <SwitchPreference
70                 android:key="tap_to_wake"
71                 android:title="@string/double_tap_to_wake_title"
72                 android:summary="@string/double_tap_to_wake_summary"
73                 android:persistent="false" />
74
75         <!-- Double tap to sleep -->
76         <com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
77                 android:key="double_tap_sleep_gesture"
78                 android:title="@string/double_tap_to_sleep_title"
79                 android:summary="@string/double_tap_to_sleep_summary"
80                 android:defaultValue="true" />
81
82         <SwitchPreference
83                 android:key="high_touch_sensitivity"
84                 android:title="@string/high_touch_sensitivity_title"
85                 android:summary="@string/high_touch_sensitivity_summary"
86                 android:defaultValue="false" />
87
88         <SwitchPreference
89                 android:key="camera_gesture"
90                 android:title="@string/camera_gesture_title"
91                 android:summary="@string/camera_gesture_desc"
92                 android:persistent="false" />
93
94         <!-- Prevent accidental wake-up -->
95         <com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
96                 android:key="proximity_on_wake"
97                 android:title="@string/proximity_wake_title"
98                 android:summary="@string/proximity_wake_summary" />
99
100         <!-- Seconds before sleep -->
101         <ListPreference
102                 android:key="screen_timeout"
103                 android:title="@string/screen_timeout"
104                 android:summary="@string/screen_timeout_summary"
105                 android:persistent="false"
106                 android:entries="@array/screen_timeout_entries"
107                 android:entryValues="@array/screen_timeout_values" />
108
109         <!-- Wake on plug -->
110         <SwitchPreference
111                 android:key="wake_when_plugged_or_unplugged"
112                 android:title="@string/wake_when_plugged_or_unplugged_title"
113                 android:summary="@string/wake_when_plugged_or_unplugged_summary"
114                 android:defaultValue="false"/>
115
116         <!-- Cast screen -->
117         <PreferenceScreen
118                 android:key="wifi_display"
119                 android:title="@string/wifi_display_settings_title"
120                 settings:keywords="@string/keywords_display_cast_screen"
121                 android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
122     </PreferenceCategory>
123
124     <PreferenceCategory
125             android:key="interface"
126             android:title="@string/category_interface">
127
128         <!-- Wallpaper -->
129         <PreferenceScreen
130                 android:key="wallpaper"
131                 android:title="@string/wallpaper_settings_title"
132                 settings:keywords="@string/keywords_display_wallpaper"
133                 android:fragment="com.android.settings.WallpaperTypeSettings" />
134
135         <!-- Expanded desktop -->
136         <PreferenceScreen
137                 android:key="expanded_desktop"
138                 android:title="@string/power_menu_expanded_desktop"
139                 android:fragment="com.android.settings.applications.ExpandedDesktopPreferenceFragment"/>
140
141         <!-- DPI chooser -->
142         <ListPreference
143                 android:key="lcd_density"
144                 android:title="@string/lcd_density"
145                 android:persistent="false" />
146
147         <!-- Day dream -->
148         <PreferenceScreen
149                 android:key="screensaver"
150                 android:title="@string/screensaver_settings_title"
151                 android:fragment="com.android.settings.DreamSettings" />
152
153         <!-- Font size -->
154         <com.android.settings.FontDialogPreference
155                 android:key="font_size"
156                 android:title="@string/title_font_size"
157                 settings:keywords="@string/keywords_display_font_size"
158                 android:summary="@string/summary_font_size"
159                 android:dialogTitle="@string/dialog_title_font_size" />
160
161         <!-- Search in Recents -->
162         <com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
163                 android:key="recents_show_search_bar"
164                 android:title="@string/recents_show_searchbar"
165                 settings:keywords="@string/keywords_recents_show_searchbar"
166                 android:defaultValue="true" />
167
168     </PreferenceCategory>
169
170     <PreferenceCategory
171             android:key="lights"
172             android:title="@string/category_lights">
173
174         <!-- Battery light -->
175         <PreferenceScreen
176                 android:key="battery_light"
177                 android:title="@string/battery_light_title"
178                 android:fragment="com.android.settings.notificationlight.BatteryLightSettings" />
179
180         <!-- Notification lights -->
181         <PreferenceScreen
182                 android:key="notification_light"
183                 android:title="@string/notification_light_title"
184                 android:fragment="com.android.settings.notificationlight.NotificationLightSettings" />
185
186     </PreferenceCategory>
187
188 </PreferenceScreen>