blob: f0efc418dd7977957e1b937e33816e00c2732785 [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
Steve Kondik3281bd62016-09-09 23:55:11 -070066 </PreferenceCategory>
67
68 <PreferenceCategory
69 android:key="power_key"
70 android:title="@string/hardware_keys_power_key_title" >
71
72 <PreferenceScreen
73 android:key="power_menu"
74 android:title="@string/power_menu_title"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070075 android:fragment="org.lineageos.lineageparts.input.PowerMenuActions" />
Steve Kondik3281bd62016-09-09 23:55:11 -070076
77 <SwitchPreference
78 android:key="power_end_call"
79 android:title="@string/power_end_call_title"
80 android:summary="@string/power_end_call_summary"
81 android:persistent="false"/>
82
Sam Mortimer32a2abb2017-09-18 21:40:24 -070083 <lineageos.preference.LineageSystemSettingSwitchPreference
beanstown106f1ccf802016-01-17 14:32:33 -050084 android:key="torch_long_press_power_gesture"
85 android:title="@string/torch_long_press_power_gesture_title"
86 android:summary="@string/torch_long_press_power_gesture_desc"
87 android:defaultValue="false"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070088 lineage:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" />
beanstown106f1ccf802016-01-17 14:32:33 -050089
Sam Mortimereab1c5d2016-12-24 21:43:47 -080090 <ListPreference
91 android:key="torch_long_press_power_timeout"
92 android:dialogTitle="@string/torch_long_press_power_timeout_title"
93 android:title="@string/torch_long_press_power_timeout_title"
94 android:entries="@array/torch_long_press_power_timeout_entries"
95 android:entryValues="@array/torch_long_press_power_timeout_values"
96 android:dependency="torch_long_press_power_gesture"
97 android:persistent="false" />
98
Steve Kondik3281bd62016-09-09 23:55:11 -070099 </PreferenceCategory>
100
101 <PreferenceCategory
102 android:key="home_key"
103 android:title="@string/hardware_keys_home_key_title" >
104
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700105 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700106 android:key="home_wake_screen"
107 android:title="@string/button_wake_title"
108 android:defaultValue="true" />
109
110 <SwitchPreference
111 android:key="home_answer_call"
112 android:title="@string/home_answer_call_title"
113 android:summary="@string/home_answer_call_summary"
114 android:persistent="false"/>
115
116 <ListPreference
117 android:key="hardware_keys_home_long_press"
118 android:dialogTitle="@string/hardware_keys_long_press_title"
119 android:title="@string/hardware_keys_long_press_title"
120 android:entries="@array/hardware_keys_action_entries"
121 android:entryValues="@array/hardware_keys_action_values"
122 android:persistent="false" />
123
124 <ListPreference
125 android:key="hardware_keys_home_double_tap"
126 android:dialogTitle="@string/hardware_keys_double_tap_title"
127 android:title="@string/hardware_keys_double_tap_title"
128 android:entries="@array/hardware_keys_action_entries"
129 android:entryValues="@array/hardware_keys_action_values"
130 android:persistent="false" />
131
132 </PreferenceCategory>
133
134 <PreferenceCategory
135 android:key="back_key"
136 android:title="@string/hardware_keys_back_key_title" >
137
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700138 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700139 android:key="back_wake_screen"
140 android:title="@string/button_wake_title"
141 android:defaultValue="false" />
142
143 </PreferenceCategory>
144
145 <PreferenceCategory
146 android:key="menu_key"
147 android:title="@string/hardware_keys_menu_key_title" >
148
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700149 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700150 android:key="menu_wake_screen"
151 android:title="@string/button_wake_title"
152 android:defaultValue="false" />
153
154 <ListPreference
155 android:key="hardware_keys_menu_press"
156 android:dialogTitle="@string/hardware_keys_short_press_title"
157 android:title="@string/hardware_keys_short_press_title"
158 android:entries="@array/hardware_keys_action_entries"
159 android:entryValues="@array/hardware_keys_action_values"
160 android:persistent="false" />
161
162 <ListPreference
163 android:key="hardware_keys_menu_long_press"
164 android:dialogTitle="@string/hardware_keys_long_press_title"
165 android:title="@string/hardware_keys_long_press_title"
166 android:entries="@array/hardware_keys_action_entries"
167 android:entryValues="@array/hardware_keys_action_values"
168 android:persistent="false" />
169
170 </PreferenceCategory>
171
172 <PreferenceCategory
173 android:key="assist_key"
174 android:title="@string/hardware_keys_assist_key_title" >
175
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700176 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700177 android:key="assist_wake_screen"
178 android:title="@string/button_wake_title"
179 android:defaultValue="false" />
180
181 <ListPreference
182 android:key="hardware_keys_assist_press"
183 android:dialogTitle="@string/hardware_keys_short_press_title"
184 android:title="@string/hardware_keys_short_press_title"
185 android:entries="@array/hardware_keys_action_entries"
186 android:entryValues="@array/hardware_keys_action_values"
187 android:persistent="false" />
188
189 <ListPreference
190 android:key="hardware_keys_assist_long_press"
191 android:dialogTitle="@string/hardware_keys_long_press_title"
192 android:title="@string/hardware_keys_long_press_title"
193 android:entries="@array/hardware_keys_action_entries"
194 android:entryValues="@array/hardware_keys_action_values"
195 android:persistent="false" />
196
197 </PreferenceCategory>
198
199 <PreferenceCategory
200 android:key="app_switch_key"
201 android:title="@string/hardware_keys_appswitch_key_title" >
202
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700203 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700204 android:key="app_switch_wake_screen"
205 android:title="@string/button_wake_title"
206 android:defaultValue="false" />
207
208 <ListPreference
209 android:key="hardware_keys_app_switch_press"
210 android:dialogTitle="@string/hardware_keys_short_press_title"
211 android:title="@string/hardware_keys_short_press_title"
212 android:entries="@array/hardware_keys_action_entries"
213 android:entryValues="@array/hardware_keys_action_values"
214 android:persistent="false" />
215
216 <ListPreference
217 android:key="hardware_keys_app_switch_long_press"
218 android:dialogTitle="@string/hardware_keys_long_press_title"
219 android:title="@string/hardware_keys_long_press_title"
220 android:entries="@array/hardware_keys_action_entries"
221 android:entryValues="@array/hardware_keys_action_values"
222 android:persistent="false" />
223
224 </PreferenceCategory>
225
226 <PreferenceCategory
227 android:key="camera_key"
228 android:title="@string/hardware_keys_camera_key_title">
229
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700230 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700231 android:key="camera_wake_screen"
232 android:title="@string/button_wake_title"
233 android:defaultValue="false" />
234
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700235 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700236 android:key="camera_sleep_on_release"
237 android:title="@string/camera_sleep_on_release_title"
238 android:summary="@string/camera_sleep_on_release_summary"
239 android:defaultValue="false" />
240
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700241 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700242 android:key="camera_launch"
243 android:title="@string/camera_launch_title"
244 android:summary="@string/camera_launch_summary"
245 android:defaultValue="false" />
246
247 </PreferenceCategory>
248
249 <PreferenceCategory
250 android:key="volume_keys"
251 android:title="@string/hardware_keys_volume_keys_title" >
252
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700253 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700254 android:key="volume_wake_screen"
255 android:title="@string/button_wake_title"
256 android:defaultValue="false" />
257
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700258 <lineageos.preference.LineageSystemSettingSwitchPreference
martinczb35adf02015-04-03 03:15:41 +0800259 android:key="volume_answer_call"
260 android:title="@string/volume_answer_call_title"
261 android:summary="@string/volume_answer_call_summary"
262 android:defaultValue="false" />
263
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700264 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700265 android:key="volbtn_music_controls"
266 android:title="@string/volbtn_music_controls_title"
267 android:summary="@string/volbtn_music_controls_summary"
268 android:defaultValue="true" />
269
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700270 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700271 android:key="volume_keys_control_ring_stream"
272 android:title="@string/volume_keys_control_ring_stream_title"
273 android:summaryOn="@string/volume_keys_control_ring_stream_summary_on"
274 android:summaryOff="@string/volume_keys_control_ring_stream_summary_off"
275 android:defaultValue="true" />
276
277 <ListPreference
278 android:key="volume_key_cursor_control"
279 android:dialogTitle="@string/volbtn_cursor_control_title"
280 android:title="@string/volbtn_cursor_control_title"
281 android:entries="@array/volbtn_cursor_control_entries"
282 android:entryValues="@array/volbtn_cursor_control_values"
283 android:persistent="false" />
284
285 <SwitchPreference
286 android:key="swap_volume_buttons"
287 android:title="@string/swap_volume_buttons_title"
288 android:summary="@string/swap_volume_buttons_summary" />
289 </PreferenceCategory>
290
Bruno Martins9df2a412017-10-25 11:43:13 +0100291 <PreferenceCategory
292 android:key="extras_category"
293 android:title="@string/extras_title" >
294
295 <lineageos.preference.RemotePreference
296 android:key="additional_buttons"
297 android:title="@string/additional_buttons_title"
298 lineage:requiresAction="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS">
299 <intent
300 android:action="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS" />
301 </lineageos.preference.RemotePreference>
302
303 </PreferenceCategory>
304
Steve Kondik3281bd62016-09-09 23:55:11 -0700305</PreferenceScreen>