OSDN Git Service

Settings: Don't enable proximity on wake by default
[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="camera_gesture"
84                 android:title="@string/camera_gesture_title"
85                 android:summary="@string/camera_gesture_desc"
86                 android:persistent="false" />
87
88         <!-- Prevent accidental wake-up -->
89         <com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
90                 android:key="proximity_on_wake"
91                 android:title="@string/proximity_wake_title"
92                 android:summary="@string/proximity_wake_summary" />
93
94         <!-- Seconds before sleep -->
95         <ListPreference
96                 android:key="screen_timeout"
97                 android:title="@string/screen_timeout"
98                 android:summary="@string/screen_timeout_summary"
99                 android:persistent="false"
100                 android:entries="@array/screen_timeout_entries"
101                 android:entryValues="@array/screen_timeout_values" />
102
103         <!-- Wake on plug -->
104         <SwitchPreference
105                 android:key="wake_when_plugged_or_unplugged"
106                 android:title="@string/wake_when_plugged_or_unplugged_title"
107                 android:summary="@string/wake_when_plugged_or_unplugged_summary"
108                 android:defaultValue="false"/>
109
110         <!-- Cast screen -->
111         <PreferenceScreen
112                 android:key="wifi_display"
113                 android:title="@string/wifi_display_settings_title"
114                 settings:keywords="@string/keywords_display_cast_screen"
115                 android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
116     </PreferenceCategory>
117
118     <PreferenceCategory
119             android:key="interface"
120             android:title="@string/category_interface">
121
122         <!-- Wallpaper -->
123         <PreferenceScreen
124                 android:key="wallpaper"
125                 android:title="@string/wallpaper_settings_title"
126                 settings:keywords="@string/keywords_display_wallpaper"
127                 android:fragment="com.android.settings.WallpaperTypeSettings" />
128
129         <!-- Expanded desktop -->
130         <PreferenceScreen
131                 android:key="expanded_desktop"
132                 android:title="@string/power_menu_expanded_desktop"
133                 android:fragment="com.android.settings.applications.ExpandedDesktopPreferenceFragment"/>
134
135         <!-- DPI chooser -->
136         <ListPreference
137                 android:key="lcd_density"
138                 android:title="@string/lcd_density"
139                 android:persistent="false" />
140
141         <!-- Day dream -->
142         <PreferenceScreen
143                 android:key="screensaver"
144                 android:title="@string/screensaver_settings_title"
145                 android:fragment="com.android.settings.DreamSettings" />
146
147         <!-- Font size -->
148         <com.android.settings.FontDialogPreference
149                 android:key="font_size"
150                 android:title="@string/title_font_size"
151                 settings:keywords="@string/keywords_display_font_size"
152                 android:summary="@string/summary_font_size"
153                 android:dialogTitle="@string/dialog_title_font_size" />
154
155         <!-- Search in Recents -->
156         <com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
157                 android:key="recents_show_search_bar"
158                 android:title="@string/recents_show_searchbar"
159                 settings:keywords="@string/keywords_recents_show_searchbar"
160                 android:defaultValue="true" />
161
162     </PreferenceCategory>
163
164     <PreferenceCategory
165             android:key="lights"
166             android:title="@string/category_lights">
167
168         <!-- Battery light -->
169         <PreferenceScreen
170                 android:key="battery_light"
171                 android:title="@string/battery_light_title"
172                 android:fragment="com.android.settings.notificationlight.BatteryLightSettings" />
173
174         <!-- Notification lights -->
175         <PreferenceScreen
176                 android:key="notification_light"
177                 android:title="@string/notification_light_title"
178                 android:fragment="com.android.settings.notificationlight.NotificationLightSettings" />
179
180     </PreferenceCategory>
181
182 </PreferenceScreen>