blob: f7f19cc58605aa21d540128fd750836ffbbd93c7 [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_left"
40 android:title="@string/navigation_bar_left_title"
41 android:summary="@string/navigation_bar_left_summary"
42 android:defaultValue="false" />
43
Sam Mortimer32a2abb2017-09-18 21:40:24 -070044 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -070045 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"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070087 android:fragment="org.lineageos.lineageparts.input.PowerMenuActions" />
Steve Kondik3281bd62016-09-09 23:55:11 -070088
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
Sam Mortimer32a2abb2017-09-18 21:40:24 -070095 <lineageos.preference.LineageSystemSettingSwitchPreference
beanstown106f1ccf802016-01-17 14:32:33 -050096 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"
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700100 lineage:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" />
beanstown106f1ccf802016-01-17 14:32:33 -0500101
Sam Mortimereab1c5d2016-12-24 21:43:47 -0800102 <ListPreference
103 android:key="torch_long_press_power_timeout"
104 android:dialogTitle="@string/torch_long_press_power_timeout_title"
105 android:title="@string/torch_long_press_power_timeout_title"
106 android:entries="@array/torch_long_press_power_timeout_entries"
107 android:entryValues="@array/torch_long_press_power_timeout_values"
108 android:dependency="torch_long_press_power_gesture"
109 android:persistent="false" />
110
Steve Kondik3281bd62016-09-09 23:55:11 -0700111 </PreferenceCategory>
112
113 <PreferenceCategory
114 android:key="home_key"
115 android:title="@string/hardware_keys_home_key_title" >
116
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700117 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700118 android:key="home_wake_screen"
119 android:title="@string/button_wake_title"
120 android:defaultValue="true" />
121
122 <SwitchPreference
123 android:key="home_answer_call"
124 android:title="@string/home_answer_call_title"
125 android:summary="@string/home_answer_call_summary"
126 android:persistent="false"/>
127
128 <ListPreference
129 android:key="hardware_keys_home_long_press"
130 android:dialogTitle="@string/hardware_keys_long_press_title"
131 android:title="@string/hardware_keys_long_press_title"
132 android:entries="@array/hardware_keys_action_entries"
133 android:entryValues="@array/hardware_keys_action_values"
134 android:persistent="false" />
135
136 <ListPreference
137 android:key="hardware_keys_home_double_tap"
138 android:dialogTitle="@string/hardware_keys_double_tap_title"
139 android:title="@string/hardware_keys_double_tap_title"
140 android:entries="@array/hardware_keys_action_entries"
141 android:entryValues="@array/hardware_keys_action_values"
142 android:persistent="false" />
143
144 </PreferenceCategory>
145
146 <PreferenceCategory
147 android:key="back_key"
148 android:title="@string/hardware_keys_back_key_title" >
149
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700150 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700151 android:key="back_wake_screen"
152 android:title="@string/button_wake_title"
153 android:defaultValue="false" />
154
155 </PreferenceCategory>
156
157 <PreferenceCategory
158 android:key="menu_key"
159 android:title="@string/hardware_keys_menu_key_title" >
160
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700161 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700162 android:key="menu_wake_screen"
163 android:title="@string/button_wake_title"
164 android:defaultValue="false" />
165
166 <ListPreference
167 android:key="hardware_keys_menu_press"
168 android:dialogTitle="@string/hardware_keys_short_press_title"
169 android:title="@string/hardware_keys_short_press_title"
170 android:entries="@array/hardware_keys_action_entries"
171 android:entryValues="@array/hardware_keys_action_values"
172 android:persistent="false" />
173
174 <ListPreference
175 android:key="hardware_keys_menu_long_press"
176 android:dialogTitle="@string/hardware_keys_long_press_title"
177 android:title="@string/hardware_keys_long_press_title"
178 android:entries="@array/hardware_keys_action_entries"
179 android:entryValues="@array/hardware_keys_action_values"
180 android:persistent="false" />
181
182 </PreferenceCategory>
183
184 <PreferenceCategory
185 android:key="assist_key"
186 android:title="@string/hardware_keys_assist_key_title" >
187
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700188 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700189 android:key="assist_wake_screen"
190 android:title="@string/button_wake_title"
191 android:defaultValue="false" />
192
193 <ListPreference
194 android:key="hardware_keys_assist_press"
195 android:dialogTitle="@string/hardware_keys_short_press_title"
196 android:title="@string/hardware_keys_short_press_title"
197 android:entries="@array/hardware_keys_action_entries"
198 android:entryValues="@array/hardware_keys_action_values"
199 android:persistent="false" />
200
201 <ListPreference
202 android:key="hardware_keys_assist_long_press"
203 android:dialogTitle="@string/hardware_keys_long_press_title"
204 android:title="@string/hardware_keys_long_press_title"
205 android:entries="@array/hardware_keys_action_entries"
206 android:entryValues="@array/hardware_keys_action_values"
207 android:persistent="false" />
208
209 </PreferenceCategory>
210
211 <PreferenceCategory
212 android:key="app_switch_key"
213 android:title="@string/hardware_keys_appswitch_key_title" >
214
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700215 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700216 android:key="app_switch_wake_screen"
217 android:title="@string/button_wake_title"
218 android:defaultValue="false" />
219
220 <ListPreference
221 android:key="hardware_keys_app_switch_press"
222 android:dialogTitle="@string/hardware_keys_short_press_title"
223 android:title="@string/hardware_keys_short_press_title"
224 android:entries="@array/hardware_keys_action_entries"
225 android:entryValues="@array/hardware_keys_action_values"
226 android:persistent="false" />
227
228 <ListPreference
229 android:key="hardware_keys_app_switch_long_press"
230 android:dialogTitle="@string/hardware_keys_long_press_title"
231 android:title="@string/hardware_keys_long_press_title"
232 android:entries="@array/hardware_keys_action_entries"
233 android:entryValues="@array/hardware_keys_action_values"
234 android:persistent="false" />
235
236 </PreferenceCategory>
237
238 <PreferenceCategory
239 android:key="camera_key"
240 android:title="@string/hardware_keys_camera_key_title">
241
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700242 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700243 android:key="camera_wake_screen"
244 android:title="@string/button_wake_title"
245 android:defaultValue="false" />
246
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700247 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700248 android:key="camera_sleep_on_release"
249 android:title="@string/camera_sleep_on_release_title"
250 android:summary="@string/camera_sleep_on_release_summary"
251 android:defaultValue="false" />
252
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700253 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700254 android:key="camera_launch"
255 android:title="@string/camera_launch_title"
256 android:summary="@string/camera_launch_summary"
257 android:defaultValue="false" />
258
259 </PreferenceCategory>
260
261 <PreferenceCategory
262 android:key="volume_keys"
263 android:title="@string/hardware_keys_volume_keys_title" >
264
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700265 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700266 android:key="volume_wake_screen"
267 android:title="@string/button_wake_title"
268 android:defaultValue="false" />
269
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700270 <lineageos.preference.LineageSystemSettingSwitchPreference
martinczb35adf02015-04-03 03:15:41 +0800271 android:key="volume_answer_call"
272 android:title="@string/volume_answer_call_title"
273 android:summary="@string/volume_answer_call_summary"
274 android:defaultValue="false" />
275
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700276 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700277 android:key="volbtn_music_controls"
278 android:title="@string/volbtn_music_controls_title"
279 android:summary="@string/volbtn_music_controls_summary"
280 android:defaultValue="true" />
281
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700282 <lineageos.preference.LineageSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700283 android:key="volume_keys_control_ring_stream"
284 android:title="@string/volume_keys_control_ring_stream_title"
285 android:summaryOn="@string/volume_keys_control_ring_stream_summary_on"
286 android:summaryOff="@string/volume_keys_control_ring_stream_summary_off"
287 android:defaultValue="true" />
288
289 <ListPreference
290 android:key="volume_key_cursor_control"
291 android:dialogTitle="@string/volbtn_cursor_control_title"
292 android:title="@string/volbtn_cursor_control_title"
293 android:entries="@array/volbtn_cursor_control_entries"
294 android:entryValues="@array/volbtn_cursor_control_values"
295 android:persistent="false" />
296
297 <SwitchPreference
298 android:key="swap_volume_buttons"
299 android:title="@string/swap_volume_buttons_title"
300 android:summary="@string/swap_volume_buttons_summary" />
301 </PreferenceCategory>
302
303</PreferenceScreen>