blob: 2b63ee5ab4922ff42ed4cc2a428437b12521006e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
settings:keywords="@string/keywords_display">
<PreferenceCategory
android:key="display"
android:title="@string/display_label">
<!-- Brightness slider -->
<PreferenceScreen
android:key="brightness"
android:title="@string/brightness"
settings:keywords="@string/keywords_display_brightness_level">
<intent android:action="android.intent.action.SHOW_BRIGHTNESS_DIALOG" />
</PreferenceScreen>
<!-- Adaptive brightness -->
<SwitchPreference
android:key="auto_brightness"
android:title="@string/auto_brightness_title"
settings:keywords="@string/keywords_display_auto_brightness"
android:summary="@string/auto_brightness_summary"
android:persistent="false" />
<!-- LiveDisplay -->
<PreferenceScreen
android:key="live_display"
android:title="@string/live_display_title"
android:summary="@string/live_display_summary"
android:fragment="com.android.settings.livedisplay.LiveDisplay" />
<!-- Rotation modes -->
<PreferenceScreen
android:key="display_rotation"
android:title="@string/display_rotation_title"
android:fragment="com.android.settings.cyanogenmod.DisplayRotation"/>
<!-- Doze // Ambient display -->
<SwitchPreference
android:key="doze"
android:title="@string/doze_title"
android:summary="@string/doze_summary"
android:persistent="false" />
<!-- Lift to wake -->
<SwitchPreference
android:key="lift_to_wake"
android:title="@string/lift_to_wake_title"
android:persistent="false" />
<!-- Double tap to wake -->
<SwitchPreference
android:key="tap_to_wake"
android:title="@string/tap_to_wake"
android:summary="@string/tap_to_wake_summary"
android:persistent="false" />
<!-- Double tap to sleep -->
<com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
android:key="double_tap_sleep_gesture"
android:title="@string/double_tap_to_sleep_title"
android:summary="@string/double_tap_to_sleep_summary"
android:defaultValue="true" />
<SwitchPreference
android:key="camera_gesture"
android:title="@string/camera_gesture_title"
android:summary="@string/camera_gesture_desc"
android:persistent="false" />
<!-- Prevent accidental wake-up -->
<com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
android:key="proximity_on_wake"
android:title="@string/proximity_wake_title"
android:summary="@string/proximity_wake_summary"
android:defaultValue="true" />
<!-- Seconds before sleep -->
<ListPreference
android:key="screen_timeout"
android:title="@string/screen_timeout"
android:summary="@string/screen_timeout_summary"
android:persistent="false"
android:entries="@array/screen_timeout_entries"
android:entryValues="@array/screen_timeout_values" />
<!-- Wake on plug -->
<SwitchPreference
android:key="wake_when_plugged_or_unplugged"
android:title="@string/wake_when_plugged_or_unplugged_title"
android:summary="@string/wake_when_plugged_or_unplugged_summary"
android:defaultValue="false"/>
<!-- Cast screen -->
<PreferenceScreen
android:key="wifi_display"
android:title="@string/wifi_display_settings_title"
settings:keywords="@string/keywords_display_cast_screen"
android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
</PreferenceCategory>
<PreferenceCategory
android:key="interface"
android:title="@string/category_interface">
<!-- Wallpaper -->
<PreferenceScreen
android:key="wallpaper"
android:title="@string/wallpaper_settings_title"
settings:keywords="@string/keywords_display_wallpaper"
android:fragment="com.android.settings.WallpaperTypeSettings" />
<!-- Expanded desktop -->
<PreferenceScreen
android:key="expanded_desktop"
android:title="@string/power_menu_expanded_desktop"
android:fragment="com.android.settings.applications.ExpandedDesktopPreferenceFragment"/>
<!-- DPI chooser -->
<ListPreference
android:key="lcd_density"
android:title="@string/lcd_density"
android:persistent="false" />
<!-- Day dream -->
<PreferenceScreen
android:key="screensaver"
android:title="@string/screensaver_settings_title"
android:fragment="com.android.settings.DreamSettings" />
<!-- Font size -->
<com.android.settings.FontDialogPreference
android:key="font_size"
android:title="@string/title_font_size"
settings:keywords="@string/keywords_display_font_size"
android:summary="@string/summary_font_size"
android:dialogTitle="@string/dialog_title_font_size" />
<!-- Search in Recents -->
<com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
android:key="recents_show_search_bar"
android:title="@string/recents_show_searchbar"
settings:keywords="@string/keywords_recents_show_searchbar"
android:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
android:key="lights"
android:title="@string/category_lights">
<!-- Battery light -->
<PreferenceScreen
android:key="battery_light"
android:title="@string/battery_light_title"
android:fragment="com.android.settings.notificationlight.BatteryLightSettings" />
<!-- Notification lights -->
<PreferenceScreen
android:key="notification_light"
android:title="@string/notification_light_title"
android:fragment="com.android.settings.notificationlight.NotificationLightSettings" />
</PreferenceCategory>
</PreferenceScreen>
|