blob: ad28e0c3026a70f0bfd46026d35674bf68a207e7 [file] [log] [blame]
Steve Kondik3281bd62016-09-09 23:55:11 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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
Steve Kondik165ebdf2016-10-07 00:17:49 -070017<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
beanstown106f1ccf802016-01-17 14:32:33 -050018 xmlns:cm="http://schemas.android.com/apk/res/cyanogenmod.platform"
Steve Kondik165ebdf2016-10-07 00:17:49 -070019 android:key="button_settings"
20 android:title="@string/button_pref_title">
Steve Kondik3281bd62016-09-09 23:55:11 -070021
22 <SwitchPreference
23 android:key="disable_nav_keys"
24 android:title="@string/disable_navkeys_title"
25 android:summary="@string/disable_navkeys_summary"
26 android:defaultValue="false" />
27
28 <org.cyanogenmod.cmparts.input.ButtonBacklightBrightness
29 android:key="button_backlight"
30 android:title="@string/button_backlight_title"
31 android:dialogTitle="@string/button_backlight_title"
32 android:persistent="false" />
33
34 <PreferenceCategory
35 android:key="navigation_bar_category"
36 android:title="@string/navigation_bar_category" >
37
38 <cyanogenmod.preference.CMSystemSettingSwitchPreference
39 android:key="navigation_bar_left"
40 android:title="@string/navigation_bar_left_title"
41 android:summary="@string/navigation_bar_left_summary"
42 android:defaultValue="false" />
43
44 <cyanogenmod.preference.CMSystemSettingSwitchPreference
45 android:key="navigation_bar_menu_arrow_keys"
46 android:title="@string/navigation_bar_arrow_keys_title"
47 android:summary="@string/navigation_bar_arrow_keys_summary"
48 android:defaultValue="false" />
49
50 <PreferenceScreen
51 android:key="navigation_bar"
52 android:title="@string/navigation_bar_title">
53 <intent android:action="com.android.settings.action.NAV_BAR_TUNER" />
54 </PreferenceScreen>
55
56 <ListPreference
Sam Mortimerc1be6042016-10-29 12:25:19 -070057 android:key="navigation_home_long_press"
58 android:dialogTitle="@string/navigation_bar_home_long_press_title"
59 android:title="@string/navigation_bar_home_long_press_title"
60 android:entries="@array/hardware_keys_action_entries"
61 android:entryValues="@array/hardware_keys_action_values"
62 android:persistent="false" />
63
64 <ListPreference
65 android:key="navigation_home_double_tap"
66 android:dialogTitle="@string/navigation_bar_home_double_tap_title"
67 android:title="@string/navigation_bar_home_double_tap_title"
68 android:entries="@array/hardware_keys_action_entries"
69 android:entryValues="@array/hardware_keys_action_values"
70 android:persistent="false" />
71
72 <ListPreference
Steve Kondik3281bd62016-09-09 23:55:11 -070073 android:key="navigation_recents_long_press"
74 android:dialogTitle="@string/navigation_bar_recents_title"
75 android:title="@string/navigation_bar_recents_title"
76 android:persistent="false" />
77
78 </PreferenceCategory>
79
80 <PreferenceCategory
81 android:key="power_key"
82 android:title="@string/hardware_keys_power_key_title" >
83
84 <PreferenceScreen
85 android:key="power_menu"
86 android:title="@string/power_menu_title"
87 android:fragment="org.cyanogenmod.cmparts.input.PowerMenuActions" />
88
89 <SwitchPreference
90 android:key="power_end_call"
91 android:title="@string/power_end_call_title"
92 android:summary="@string/power_end_call_summary"
93 android:persistent="false"/>
94
beanstown106f1ccf802016-01-17 14:32:33 -050095 <cyanogenmod.preference.CMSystemSettingSwitchPreference
96 android:key="torch_long_press_power_gesture"
97 android:title="@string/torch_long_press_power_gesture_title"
98 android:summary="@string/torch_long_press_power_gesture_desc"
99 android:defaultValue="false"
100 cm:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" />
101
Steve Kondik3281bd62016-09-09 23:55:11 -0700102 </PreferenceCategory>
103
104 <PreferenceCategory
105 android:key="home_key"
106 android:title="@string/hardware_keys_home_key_title" >
107
108 <cyanogenmod.preference.CMSystemSettingSwitchPreference
109 android:key="home_wake_screen"
110 android:title="@string/button_wake_title"
111 android:defaultValue="true" />
112
113 <SwitchPreference
114 android:key="home_answer_call"
115 android:title="@string/home_answer_call_title"
116 android:summary="@string/home_answer_call_summary"
117 android:persistent="false"/>
118
119 <ListPreference
120 android:key="hardware_keys_home_long_press"
121 android:dialogTitle="@string/hardware_keys_long_press_title"
122 android:title="@string/hardware_keys_long_press_title"
123 android:entries="@array/hardware_keys_action_entries"
124 android:entryValues="@array/hardware_keys_action_values"
125 android:persistent="false" />
126
127 <ListPreference
128 android:key="hardware_keys_home_double_tap"
129 android:dialogTitle="@string/hardware_keys_double_tap_title"
130 android:title="@string/hardware_keys_double_tap_title"
131 android:entries="@array/hardware_keys_action_entries"
132 android:entryValues="@array/hardware_keys_action_values"
133 android:persistent="false" />
134
135 </PreferenceCategory>
136
137 <PreferenceCategory
138 android:key="back_key"
139 android:title="@string/hardware_keys_back_key_title" >
140
141 <cyanogenmod.preference.CMSystemSettingSwitchPreference
142 android:key="back_wake_screen"
143 android:title="@string/button_wake_title"
144 android:defaultValue="false" />
145
146 </PreferenceCategory>
147
148 <PreferenceCategory
149 android:key="menu_key"
150 android:title="@string/hardware_keys_menu_key_title" >
151
152 <cyanogenmod.preference.CMSystemSettingSwitchPreference
153 android:key="menu_wake_screen"
154 android:title="@string/button_wake_title"
155 android:defaultValue="false" />
156
157 <ListPreference
158 android:key="hardware_keys_menu_press"
159 android:dialogTitle="@string/hardware_keys_short_press_title"
160 android:title="@string/hardware_keys_short_press_title"
161 android:entries="@array/hardware_keys_action_entries"
162 android:entryValues="@array/hardware_keys_action_values"
163 android:persistent="false" />
164
165 <ListPreference
166 android:key="hardware_keys_menu_long_press"
167 android:dialogTitle="@string/hardware_keys_long_press_title"
168 android:title="@string/hardware_keys_long_press_title"
169 android:entries="@array/hardware_keys_action_entries"
170 android:entryValues="@array/hardware_keys_action_values"
171 android:persistent="false" />
172
173 </PreferenceCategory>
174
175 <PreferenceCategory
176 android:key="assist_key"
177 android:title="@string/hardware_keys_assist_key_title" >
178
179 <cyanogenmod.preference.CMSystemSettingSwitchPreference
180 android:key="assist_wake_screen"
181 android:title="@string/button_wake_title"
182 android:defaultValue="false" />
183
184 <ListPreference
185 android:key="hardware_keys_assist_press"
186 android:dialogTitle="@string/hardware_keys_short_press_title"
187 android:title="@string/hardware_keys_short_press_title"
188 android:entries="@array/hardware_keys_action_entries"
189 android:entryValues="@array/hardware_keys_action_values"
190 android:persistent="false" />
191
192 <ListPreference
193 android:key="hardware_keys_assist_long_press"
194 android:dialogTitle="@string/hardware_keys_long_press_title"
195 android:title="@string/hardware_keys_long_press_title"
196 android:entries="@array/hardware_keys_action_entries"
197 android:entryValues="@array/hardware_keys_action_values"
198 android:persistent="false" />
199
200 </PreferenceCategory>
201
202 <PreferenceCategory
203 android:key="app_switch_key"
204 android:title="@string/hardware_keys_appswitch_key_title" >
205
206 <cyanogenmod.preference.CMSystemSettingSwitchPreference
207 android:key="app_switch_wake_screen"
208 android:title="@string/button_wake_title"
209 android:defaultValue="false" />
210
211 <ListPreference
212 android:key="hardware_keys_app_switch_press"
213 android:dialogTitle="@string/hardware_keys_short_press_title"
214 android:title="@string/hardware_keys_short_press_title"
215 android:entries="@array/hardware_keys_action_entries"
216 android:entryValues="@array/hardware_keys_action_values"
217 android:persistent="false" />
218
219 <ListPreference
220 android:key="hardware_keys_app_switch_long_press"
221 android:dialogTitle="@string/hardware_keys_long_press_title"
222 android:title="@string/hardware_keys_long_press_title"
223 android:entries="@array/hardware_keys_action_entries"
224 android:entryValues="@array/hardware_keys_action_values"
225 android:persistent="false" />
226
227 </PreferenceCategory>
228
229 <PreferenceCategory
230 android:key="camera_key"
231 android:title="@string/hardware_keys_camera_key_title">
232
233 <cyanogenmod.preference.CMSystemSettingSwitchPreference
234 android:key="camera_wake_screen"
235 android:title="@string/button_wake_title"
236 android:defaultValue="false" />
237
238 <cyanogenmod.preference.CMSystemSettingSwitchPreference
239 android:key="camera_sleep_on_release"
240 android:title="@string/camera_sleep_on_release_title"
241 android:summary="@string/camera_sleep_on_release_summary"
242 android:defaultValue="false" />
243
244 <cyanogenmod.preference.CMSystemSettingSwitchPreference
245 android:key="camera_launch"
246 android:title="@string/camera_launch_title"
247 android:summary="@string/camera_launch_summary"
248 android:defaultValue="false" />
249
250 </PreferenceCategory>
251
252 <PreferenceCategory
253 android:key="volume_keys"
254 android:title="@string/hardware_keys_volume_keys_title" >
255
256 <cyanogenmod.preference.CMSystemSettingSwitchPreference
257 android:key="volume_wake_screen"
258 android:title="@string/button_wake_title"
259 android:defaultValue="false" />
260
261 <cyanogenmod.preference.CMSystemSettingSwitchPreference
martinczb35adf02015-04-03 03:15:41 +0800262 android:key="volume_answer_call"
263 android:title="@string/volume_answer_call_title"
264 android:summary="@string/volume_answer_call_summary"
265 android:defaultValue="false" />
266
267 <cyanogenmod.preference.CMSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700268 android:key="volbtn_music_controls"
269 android:title="@string/volbtn_music_controls_title"
270 android:summary="@string/volbtn_music_controls_summary"
271 android:defaultValue="true" />
272
273 <cyanogenmod.preference.CMSystemSettingSwitchPreference
274 android:key="volume_keys_control_ring_stream"
275 android:title="@string/volume_keys_control_ring_stream_title"
276 android:summaryOn="@string/volume_keys_control_ring_stream_summary_on"
277 android:summaryOff="@string/volume_keys_control_ring_stream_summary_off"
278 android:defaultValue="true" />
279
280 <ListPreference
281 android:key="volume_key_cursor_control"
282 android:dialogTitle="@string/volbtn_cursor_control_title"
283 android:title="@string/volbtn_cursor_control_title"
284 android:entries="@array/volbtn_cursor_control_entries"
285 android:entryValues="@array/volbtn_cursor_control_values"
286 android:persistent="false" />
287
288 <SwitchPreference
289 android:key="swap_volume_buttons"
290 android:title="@string/swap_volume_buttons_title"
291 android:summary="@string/swap_volume_buttons_summary" />
292 </PreferenceCategory>
293
294</PreferenceScreen>