blob: 0df9650b81f51c4d88ab71fbde6429be8bc1b9c4 [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"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070018 xmlns:lineage="http://schemas.android.com/apk/res/lineageos.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
Sam Mortimer32a2abb2017-09-18 21:40:24 -070028 <org.lineageos.lineageparts.input.ButtonBacklightBrightness
Steve Kondik3281bd62016-09-09 23:55:11 -070029 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
Sam Mortimer32a2abb2017-09-18 21:40:24 -070038 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -070039 android:key="navigation_bar_menu_arrow_keys"
40 android:title="@string/navigation_bar_arrow_keys_title"
41 android:summary="@string/navigation_bar_arrow_keys_summary"
42 android:defaultValue="false" />
43
44 <PreferenceScreen
45 android:key="navigation_bar"
46 android:title="@string/navigation_bar_title">
47 <intent android:action="com.android.settings.action.NAV_BAR_TUNER" />
48 </PreferenceScreen>
49
50 <ListPreference
Sam Mortimerc1be6042016-10-29 12:25:19 -070051 android:key="navigation_home_long_press"
52 android:dialogTitle="@string/navigation_bar_home_long_press_title"
53 android:title="@string/navigation_bar_home_long_press_title"
54 android:entries="@array/hardware_keys_action_entries"
55 android:entryValues="@array/hardware_keys_action_values"
56 android:persistent="false" />
57
58 <ListPreference
59 android:key="navigation_home_double_tap"
60 android:dialogTitle="@string/navigation_bar_home_double_tap_title"
61 android:title="@string/navigation_bar_home_double_tap_title"
62 android:entries="@array/hardware_keys_action_entries"
63 android:entryValues="@array/hardware_keys_action_values"
64 android:persistent="false" />
65
Sam Mortimer88288e02018-01-25 19:15:06 -080066 <ListPreference
67 android:key="navigation_app_switch_long_press"
68 android:dialogTitle="@string/navigation_bar_app_switch_long_press_title"
69 android:title="@string/navigation_bar_app_switch_long_press_title"
70 android:entries="@array/hardware_keys_action_entries"
71 android:entryValues="@array/hardware_keys_action_values"
72 android:persistent="false" />
73
Steve Kondik3281bd62016-09-09 23:55:11 -070074 </PreferenceCategory>
75
76 <PreferenceCategory
77 android:key="power_key"
78 android:title="@string/hardware_keys_power_key_title" >
79
80 <PreferenceScreen
81 android:key="power_menu"
82 android:title="@string/power_menu_title"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070083 android:fragment="org.lineageos.lineageparts.input.PowerMenuActions" />
Steve Kondik3281bd62016-09-09 23:55:11 -070084
85 <SwitchPreference
86 android:key="power_end_call"
87 android:title="@string/power_end_call_title"
88 android:summary="@string/power_end_call_summary"
89 android:persistent="false"/>
90
Sam Mortimer32a2abb2017-09-18 21:40:24 -070091 <lineageos.preference.LineageSystemSettingSwitchPreference
beanstown106f1ccf802016-01-17 14:32:33 -050092 android:key="torch_long_press_power_gesture"
93 android:title="@string/torch_long_press_power_gesture_title"
94 android:summary="@string/torch_long_press_power_gesture_desc"
95 android:defaultValue="false"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070096 lineage:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" />
beanstown106f1ccf802016-01-17 14:32:33 -050097
Sam Mortimereab1c5d2016-12-24 21:43:47 -080098 <ListPreference
99 android:key="torch_long_press_power_timeout"
100 android:dialogTitle="@string/torch_long_press_power_timeout_title"
101 android:title="@string/torch_long_press_power_timeout_title"
102 android:entries="@array/torch_long_press_power_timeout_entries"
103 android:entryValues="@array/torch_long_press_power_timeout_values"
104 android:dependency="torch_long_press_power_gesture"
105 android:persistent="false" />
106
Steve Kondik3281bd62016-09-09 23:55:11 -0700107 </PreferenceCategory>
108
109 <PreferenceCategory
110 android:key="home_key"
111 android:title="@string/hardware_keys_home_key_title" >
112
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700113 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700114 android:key="home_wake_screen"
115 android:title="@string/button_wake_title"
116 android:defaultValue="true" />
117
118 <SwitchPreference
119 android:key="home_answer_call"
120 android:title="@string/home_answer_call_title"
121 android:summary="@string/home_answer_call_summary"
122 android:persistent="false"/>
123
124 <ListPreference
125 android:key="hardware_keys_home_long_press"
126 android:dialogTitle="@string/hardware_keys_long_press_title"
127 android:title="@string/hardware_keys_long_press_title"
128 android:entries="@array/hardware_keys_action_entries"
129 android:entryValues="@array/hardware_keys_action_values"
130 android:persistent="false" />
131
132 <ListPreference
133 android:key="hardware_keys_home_double_tap"
134 android:dialogTitle="@string/hardware_keys_double_tap_title"
135 android:title="@string/hardware_keys_double_tap_title"
136 android:entries="@array/hardware_keys_action_entries"
137 android:entryValues="@array/hardware_keys_action_values"
138 android:persistent="false" />
139
140 </PreferenceCategory>
141
142 <PreferenceCategory
143 android:key="back_key"
144 android:title="@string/hardware_keys_back_key_title" >
145
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700146 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700147 android:key="back_wake_screen"
148 android:title="@string/button_wake_title"
149 android:defaultValue="false" />
150
151 </PreferenceCategory>
152
153 <PreferenceCategory
154 android:key="menu_key"
155 android:title="@string/hardware_keys_menu_key_title" >
156
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700157 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700158 android:key="menu_wake_screen"
159 android:title="@string/button_wake_title"
160 android:defaultValue="false" />
161
162 <ListPreference
163 android:key="hardware_keys_menu_press"
164 android:dialogTitle="@string/hardware_keys_short_press_title"
165 android:title="@string/hardware_keys_short_press_title"
166 android:entries="@array/hardware_keys_action_entries"
167 android:entryValues="@array/hardware_keys_action_values"
168 android:persistent="false" />
169
170 <ListPreference
171 android:key="hardware_keys_menu_long_press"
172 android:dialogTitle="@string/hardware_keys_long_press_title"
173 android:title="@string/hardware_keys_long_press_title"
174 android:entries="@array/hardware_keys_action_entries"
175 android:entryValues="@array/hardware_keys_action_values"
176 android:persistent="false" />
177
178 </PreferenceCategory>
179
180 <PreferenceCategory
181 android:key="assist_key"
182 android:title="@string/hardware_keys_assist_key_title" >
183
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700184 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700185 android:key="assist_wake_screen"
186 android:title="@string/button_wake_title"
187 android:defaultValue="false" />
188
189 <ListPreference
190 android:key="hardware_keys_assist_press"
191 android:dialogTitle="@string/hardware_keys_short_press_title"
192 android:title="@string/hardware_keys_short_press_title"
193 android:entries="@array/hardware_keys_action_entries"
194 android:entryValues="@array/hardware_keys_action_values"
195 android:persistent="false" />
196
197 <ListPreference
198 android:key="hardware_keys_assist_long_press"
199 android:dialogTitle="@string/hardware_keys_long_press_title"
200 android:title="@string/hardware_keys_long_press_title"
201 android:entries="@array/hardware_keys_action_entries"
202 android:entryValues="@array/hardware_keys_action_values"
203 android:persistent="false" />
204
205 </PreferenceCategory>
206
207 <PreferenceCategory
208 android:key="app_switch_key"
209 android:title="@string/hardware_keys_appswitch_key_title" >
210
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700211 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700212 android:key="app_switch_wake_screen"
213 android:title="@string/button_wake_title"
214 android:defaultValue="false" />
215
216 <ListPreference
217 android:key="hardware_keys_app_switch_press"
218 android:dialogTitle="@string/hardware_keys_short_press_title"
219 android:title="@string/hardware_keys_short_press_title"
220 android:entries="@array/hardware_keys_action_entries"
221 android:entryValues="@array/hardware_keys_action_values"
222 android:persistent="false" />
223
224 <ListPreference
225 android:key="hardware_keys_app_switch_long_press"
226 android:dialogTitle="@string/hardware_keys_long_press_title"
227 android:title="@string/hardware_keys_long_press_title"
228 android:entries="@array/hardware_keys_action_entries"
229 android:entryValues="@array/hardware_keys_action_values"
230 android:persistent="false" />
231
232 </PreferenceCategory>
233
234 <PreferenceCategory
235 android:key="camera_key"
236 android:title="@string/hardware_keys_camera_key_title">
237
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700238 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700239 android:key="camera_wake_screen"
240 android:title="@string/button_wake_title"
241 android:defaultValue="false" />
242
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700243 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700244 android:key="camera_sleep_on_release"
245 android:title="@string/camera_sleep_on_release_title"
246 android:summary="@string/camera_sleep_on_release_summary"
247 android:defaultValue="false" />
248
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700249 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700250 android:key="camera_launch"
251 android:title="@string/camera_launch_title"
252 android:summary="@string/camera_launch_summary"
253 android:defaultValue="false" />
254
255 </PreferenceCategory>
256
257 <PreferenceCategory
258 android:key="volume_keys"
259 android:title="@string/hardware_keys_volume_keys_title" >
260
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700261 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700262 android:key="volume_wake_screen"
263 android:title="@string/button_wake_title"
264 android:defaultValue="false" />
265
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700266 <lineageos.preference.LineageSystemSettingSwitchPreference
martinczb35adf02015-04-03 03:15:41 +0800267 android:key="volume_answer_call"
268 android:title="@string/volume_answer_call_title"
269 android:summary="@string/volume_answer_call_summary"
270 android:defaultValue="false" />
271
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700272 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700273 android:key="volbtn_music_controls"
274 android:title="@string/volbtn_music_controls_title"
275 android:summary="@string/volbtn_music_controls_summary"
276 android:defaultValue="true" />
277
Steve Kondik3281bd62016-09-09 23:55:11 -0700278 <ListPreference
279 android:key="volume_key_cursor_control"
280 android:dialogTitle="@string/volbtn_cursor_control_title"
281 android:title="@string/volbtn_cursor_control_title"
282 android:entries="@array/volbtn_cursor_control_entries"
283 android:entryValues="@array/volbtn_cursor_control_values"
284 android:persistent="false" />
285
286 <SwitchPreference
287 android:key="swap_volume_buttons"
288 android:title="@string/swap_volume_buttons_title"
289 android:summary="@string/swap_volume_buttons_summary" />
Sam Mortimerd7252932019-06-06 00:39:17 -0700290
291 <SwitchPreference
292 android:key="volume_panel_on_left"
293 android:title="@string/volume_panel_on_left_title"
294 android:summary="@string/volume_panel_on_left_summary" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700295 </PreferenceCategory>
296
Bruno Martins9df2a412017-10-25 11:43:13 +0100297 <PreferenceCategory
298 android:key="extras_category"
299 android:title="@string/extras_title" >
300
301 <lineageos.preference.RemotePreference
302 android:key="additional_buttons"
303 android:title="@string/additional_buttons_title"
304 lineage:requiresAction="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS">
305 <intent
306 android:action="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS" />
307 </lineageos.preference.RemotePreference>
308
309 </PreferenceCategory>
310
Steve Kondik3281bd62016-09-09 23:55:11 -0700311</PreferenceScreen>