blob: ee94d374b87668d36f97689ec7f3759d1cf4f779 [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 Mortimerf83ce0e2017-09-13 15:31:56 -070028 <!--
Sam Mortimer32a2abb2017-09-18 21:40:24 -070029 <org.lineageos.lineageparts.input.ButtonBacklightBrightness
Steve Kondik3281bd62016-09-09 23:55:11 -070030 android:key="button_backlight"
31 android:title="@string/button_backlight_title"
32 android:dialogTitle="@string/button_backlight_title"
33 android:persistent="false" />
Sam Mortimerf83ce0e2017-09-13 15:31:56 -070034 -->
Steve Kondik3281bd62016-09-09 23:55:11 -070035
36 <PreferenceCategory
37 android:key="navigation_bar_category"
38 android:title="@string/navigation_bar_category" >
39
Sam Mortimer32a2abb2017-09-18 21:40:24 -070040 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -070041 android:key="navigation_bar_menu_arrow_keys"
42 android:title="@string/navigation_bar_arrow_keys_title"
43 android:summary="@string/navigation_bar_arrow_keys_summary"
44 android:defaultValue="false" />
45
46 <PreferenceScreen
47 android:key="navigation_bar"
48 android:title="@string/navigation_bar_title">
49 <intent android:action="com.android.settings.action.NAV_BAR_TUNER" />
50 </PreferenceScreen>
51
52 <ListPreference
Sam Mortimerc1be6042016-10-29 12:25:19 -070053 android:key="navigation_home_long_press"
54 android:dialogTitle="@string/navigation_bar_home_long_press_title"
55 android:title="@string/navigation_bar_home_long_press_title"
56 android:entries="@array/hardware_keys_action_entries"
57 android:entryValues="@array/hardware_keys_action_values"
58 android:persistent="false" />
59
60 <ListPreference
61 android:key="navigation_home_double_tap"
62 android:dialogTitle="@string/navigation_bar_home_double_tap_title"
63 android:title="@string/navigation_bar_home_double_tap_title"
64 android:entries="@array/hardware_keys_action_entries"
65 android:entryValues="@array/hardware_keys_action_values"
66 android:persistent="false" />
67
Steve Kondik3281bd62016-09-09 23:55:11 -070068 </PreferenceCategory>
69
70 <PreferenceCategory
71 android:key="power_key"
72 android:title="@string/hardware_keys_power_key_title" >
73
Simon Shields196aaa42017-11-24 16:38:47 +110074 <!--
Steve Kondik3281bd62016-09-09 23:55:11 -070075 <PreferenceScreen
76 android:key="power_menu"
77 android:title="@string/power_menu_title"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070078 android:fragment="org.lineageos.lineageparts.input.PowerMenuActions" />
Simon Shields196aaa42017-11-24 16:38:47 +110079 -->
Steve Kondik3281bd62016-09-09 23:55:11 -070080
81 <SwitchPreference
82 android:key="power_end_call"
83 android:title="@string/power_end_call_title"
84 android:summary="@string/power_end_call_summary"
85 android:persistent="false"/>
86
Sam Mortimer32a2abb2017-09-18 21:40:24 -070087 <lineageos.preference.LineageSystemSettingSwitchPreference
beanstown106f1ccf802016-01-17 14:32:33 -050088 android:key="torch_long_press_power_gesture"
89 android:title="@string/torch_long_press_power_gesture_title"
90 android:summary="@string/torch_long_press_power_gesture_desc"
91 android:defaultValue="false"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070092 lineage:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" />
beanstown106f1ccf802016-01-17 14:32:33 -050093
Sam Mortimereab1c5d2016-12-24 21:43:47 -080094 <ListPreference
95 android:key="torch_long_press_power_timeout"
96 android:dialogTitle="@string/torch_long_press_power_timeout_title"
97 android:title="@string/torch_long_press_power_timeout_title"
98 android:entries="@array/torch_long_press_power_timeout_entries"
99 android:entryValues="@array/torch_long_press_power_timeout_values"
100 android:dependency="torch_long_press_power_gesture"
101 android:persistent="false" />
102
Steve Kondik3281bd62016-09-09 23:55:11 -0700103 </PreferenceCategory>
104
105 <PreferenceCategory
106 android:key="home_key"
107 android:title="@string/hardware_keys_home_key_title" >
108
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700109 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700110 android:key="home_wake_screen"
111 android:title="@string/button_wake_title"
112 android:defaultValue="true" />
113
114 <SwitchPreference
115 android:key="home_answer_call"
116 android:title="@string/home_answer_call_title"
117 android:summary="@string/home_answer_call_summary"
118 android:persistent="false"/>
119
120 <ListPreference
121 android:key="hardware_keys_home_long_press"
122 android:dialogTitle="@string/hardware_keys_long_press_title"
123 android:title="@string/hardware_keys_long_press_title"
124 android:entries="@array/hardware_keys_action_entries"
125 android:entryValues="@array/hardware_keys_action_values"
126 android:persistent="false" />
127
128 <ListPreference
129 android:key="hardware_keys_home_double_tap"
130 android:dialogTitle="@string/hardware_keys_double_tap_title"
131 android:title="@string/hardware_keys_double_tap_title"
132 android:entries="@array/hardware_keys_action_entries"
133 android:entryValues="@array/hardware_keys_action_values"
134 android:persistent="false" />
135
136 </PreferenceCategory>
137
138 <PreferenceCategory
139 android:key="back_key"
140 android:title="@string/hardware_keys_back_key_title" >
141
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700142 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700143 android:key="back_wake_screen"
144 android:title="@string/button_wake_title"
145 android:defaultValue="false" />
146
147 </PreferenceCategory>
148
149 <PreferenceCategory
150 android:key="menu_key"
151 android:title="@string/hardware_keys_menu_key_title" >
152
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700153 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700154 android:key="menu_wake_screen"
155 android:title="@string/button_wake_title"
156 android:defaultValue="false" />
157
158 <ListPreference
159 android:key="hardware_keys_menu_press"
160 android:dialogTitle="@string/hardware_keys_short_press_title"
161 android:title="@string/hardware_keys_short_press_title"
162 android:entries="@array/hardware_keys_action_entries"
163 android:entryValues="@array/hardware_keys_action_values"
164 android:persistent="false" />
165
166 <ListPreference
167 android:key="hardware_keys_menu_long_press"
168 android:dialogTitle="@string/hardware_keys_long_press_title"
169 android:title="@string/hardware_keys_long_press_title"
170 android:entries="@array/hardware_keys_action_entries"
171 android:entryValues="@array/hardware_keys_action_values"
172 android:persistent="false" />
173
174 </PreferenceCategory>
175
176 <PreferenceCategory
177 android:key="assist_key"
178 android:title="@string/hardware_keys_assist_key_title" >
179
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700180 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700181 android:key="assist_wake_screen"
182 android:title="@string/button_wake_title"
183 android:defaultValue="false" />
184
185 <ListPreference
186 android:key="hardware_keys_assist_press"
187 android:dialogTitle="@string/hardware_keys_short_press_title"
188 android:title="@string/hardware_keys_short_press_title"
189 android:entries="@array/hardware_keys_action_entries"
190 android:entryValues="@array/hardware_keys_action_values"
191 android:persistent="false" />
192
193 <ListPreference
194 android:key="hardware_keys_assist_long_press"
195 android:dialogTitle="@string/hardware_keys_long_press_title"
196 android:title="@string/hardware_keys_long_press_title"
197 android:entries="@array/hardware_keys_action_entries"
198 android:entryValues="@array/hardware_keys_action_values"
199 android:persistent="false" />
200
201 </PreferenceCategory>
202
203 <PreferenceCategory
204 android:key="app_switch_key"
205 android:title="@string/hardware_keys_appswitch_key_title" >
206
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700207 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700208 android:key="app_switch_wake_screen"
209 android:title="@string/button_wake_title"
210 android:defaultValue="false" />
211
212 <ListPreference
213 android:key="hardware_keys_app_switch_press"
214 android:dialogTitle="@string/hardware_keys_short_press_title"
215 android:title="@string/hardware_keys_short_press_title"
216 android:entries="@array/hardware_keys_action_entries"
217 android:entryValues="@array/hardware_keys_action_values"
218 android:persistent="false" />
219
220 <ListPreference
221 android:key="hardware_keys_app_switch_long_press"
222 android:dialogTitle="@string/hardware_keys_long_press_title"
223 android:title="@string/hardware_keys_long_press_title"
224 android:entries="@array/hardware_keys_action_entries"
225 android:entryValues="@array/hardware_keys_action_values"
226 android:persistent="false" />
227
228 </PreferenceCategory>
229
230 <PreferenceCategory
231 android:key="camera_key"
232 android:title="@string/hardware_keys_camera_key_title">
233
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700234 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700235 android:key="camera_wake_screen"
236 android:title="@string/button_wake_title"
237 android:defaultValue="false" />
238
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700239 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700240 android:key="camera_sleep_on_release"
241 android:title="@string/camera_sleep_on_release_title"
242 android:summary="@string/camera_sleep_on_release_summary"
243 android:defaultValue="false" />
244
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700245 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700246 android:key="camera_launch"
247 android:title="@string/camera_launch_title"
248 android:summary="@string/camera_launch_summary"
249 android:defaultValue="false" />
250
251 </PreferenceCategory>
252
253 <PreferenceCategory
254 android:key="volume_keys"
255 android:title="@string/hardware_keys_volume_keys_title" >
256
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700257 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700258 android:key="volume_wake_screen"
259 android:title="@string/button_wake_title"
260 android:defaultValue="false" />
261
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700262 <lineageos.preference.LineageSystemSettingSwitchPreference
martinczb35adf02015-04-03 03:15:41 +0800263 android:key="volume_answer_call"
264 android:title="@string/volume_answer_call_title"
265 android:summary="@string/volume_answer_call_summary"
266 android:defaultValue="false" />
267
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700268 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700269 android:key="volbtn_music_controls"
270 android:title="@string/volbtn_music_controls_title"
271 android:summary="@string/volbtn_music_controls_summary"
272 android:defaultValue="true" />
273
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700274 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700275 android:key="volume_keys_control_ring_stream"
276 android:title="@string/volume_keys_control_ring_stream_title"
277 android:summaryOn="@string/volume_keys_control_ring_stream_summary_on"
278 android:summaryOff="@string/volume_keys_control_ring_stream_summary_off"
279 android:defaultValue="true" />
280
281 <ListPreference
282 android:key="volume_key_cursor_control"
283 android:dialogTitle="@string/volbtn_cursor_control_title"
284 android:title="@string/volbtn_cursor_control_title"
285 android:entries="@array/volbtn_cursor_control_entries"
286 android:entryValues="@array/volbtn_cursor_control_values"
287 android:persistent="false" />
288
289 <SwitchPreference
290 android:key="swap_volume_buttons"
291 android:title="@string/swap_volume_buttons_title"
292 android:summary="@string/swap_volume_buttons_summary" />
293 </PreferenceCategory>
294
Bruno Martins9df2a412017-10-25 11:43:13 +0100295 <PreferenceCategory
296 android:key="extras_category"
297 android:title="@string/extras_title" >
298
299 <lineageos.preference.RemotePreference
300 android:key="additional_buttons"
301 android:title="@string/additional_buttons_title"
302 lineage:requiresAction="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS">
303 <intent
304 android:action="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS" />
305 </lineageos.preference.RemotePreference>
306
307 </PreferenceCategory>
308
Steve Kondik3281bd62016-09-09 23:55:11 -0700309</PreferenceScreen>