preferences_dev.xml 11.5 KB
Newer Older
1 2
<?xml version="1.0" encoding="utf-8"?>
<!--
3
  Copyright 2013-2015 alladin-IT GmbH
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
    http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
    <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
        
        <PreferenceCategory android:title="@string/preferences_category_developer" android:layout="@layout/preferences_category">
            
            <CheckBoxPreference
                android:key="no_gps"
                android:title="@string/preferences_no_gps" 
                android:summary="@string/preferences_no_gps_sum" 
25
                android:layout="@layout/preferences_checkbox_item"/>
26 27 28 29 30 31

            <Preference
                android:key="user_server_selection_button"
                android:title="@string/preferences_user_server_selection"
                android:layout="@layout/preferences_item" />

32 33 34 35 36 37 38
            <EditTextPreference
                android:key="tag"
                android:title="@string/preferences_tag"
                android:summary="@string/preferences_tag_sum"
                android:layout="@layout/preferences_item"
                />
            
39 40 41 42 43 44 45 46
        </PreferenceCategory>
            
        <PreferenceCategory android:title="@string/preferences_category_loop_mode" android:layout="@layout/preferences_category">
            
            <CheckBoxPreference
                android:key="loop_mode"
                android:title="@string/preferences_loop_mode" 
                android:summary="@string/preferences_loop_mode_sum"
47
                android:layout="@layout/preferences_checkbox_item"/>
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
            
            <EditTextPreference
                android:key="loop_mode_max_tests"
                android:title="@string/preferences_loop_mode_max_tests"
                android:summary="@string/preferences_loop_mode_max_tests_sum"
                android:layout="@layout/preferences_item"
                android:inputType="number"
                android:defaultValue="@integer/default_loop_max_tests"
                />
            
            <EditTextPreference
                android:key="loop_mode_min_delay"
                android:title="@string/preferences_loop_mode_min_delay"
                android:summary="@string/preferences_loop_mode_min_delay_sum"
                android:layout="@layout/preferences_item"
                android:inputType="number"
                android:defaultValue="@integer/default_loop_min_delay"
                />
            
            <EditTextPreference
                android:key="loop_mode_max_delay"
                android:title="@string/preferences_loop_mode_max_delay"
                android:summary="@string/preferences_loop_mode_max_delay_sum"
                android:layout="@layout/preferences_item"
                android:inputType="number"
                android:defaultValue="@integer/default_loop_max_delay"
                />
            
            <EditTextPreference
                android:key="loop_mode_movement"
                android:title="@string/preferences_loop_mode_movement"
                android:summary="@string/preferences_loop_mode_movement_sum"
                android:layout="@layout/preferences_item"
                android:inputType="number"
                android:defaultValue="@integer/default_loop_max_movement"
                />
            
            <CheckBoxPreference
                android:key="loop_mode_gps"
                android:title="@string/preferences_loop_mode_gps"
                android:summary="@string/preferences_loop_mode_gps_sum"
                android:defaultValue="true"
90
                android:layout="@layout/preferences_checkbox_item"
91 92
                />
            
93 94
        </PreferenceCategory>
        
95 96 97 98 99
            <!-- 
            <CheckBoxPreference
                android:key="dev_no_control_server"
                android:title="@string/preferences_dev_no_control_server"
                android:summary="@string/preferences_dev_no_control_server_sum"
100
                android:layout="@layout/preferences_checkbox_item"
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
                />
            -->
            
            <!--
            <EditTextPreference
                android:key="dev_test_hostname"
                android:title="@string/preferences_dev_test_host"
                android:summary="@string/preferences_dev_test_host_sum"
                android:layout="@layout/preferences_item"
                />
            
            <EditTextPreference
                android:key="dev_test_port"
                android:title="@string/preferences_dev_test_port"
                android:summary="@string/preferences_dev_test_port_sum"
                android:inputType="number"
                android:layout="@layout/preferences_item"
                />
            
            <CheckBoxPreference
                android:key="dev_test_ssl"
                android:title="@string/preferences_dev_test_ssl"
                android:summary="@string/preferences_dev_test_ssl_sum"
                android:defaultValue="false"
125
                android:layout="@layout/preferences_checkbox_item"/>
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
            
            <EditTextPreference
                android:key="dev_num_threads"
                android:title="@string/preferences_dev_num_threads"
                android:summary="@string/preferences_dev_num_threads_sum"
                android:inputType="number"
                android:layout="@layout/preferences_item"/>
            
            <EditTextPreference
                android:key="dev_test_duration"
                android:title="@string/preferences_dev_test_duration"
                android:summary="@string/preferences_dev_test_duration_sum"
                android:inputType="number"
                android:layout="@layout/preferences_item"/>
            -->
            
142 143 144 145 146 147
        <PreferenceCategory android:title="@string/preferences_category_developer_control_server" android:layout="@layout/preferences_category">
            
            <CheckBoxPreference
                android:key="dev_control_override"
                android:title="@string/preferences_dev_control_override"
                android:summary="@string/preferences_dev_control_override_sum"
148
                android:layout="@layout/preferences_checkbox_item"/>
149 150 151 152 153
            
            <EditTextPreference
                android:key="dev_control_hostname"
                android:title="@string/preferences_dev_control_host"
                android:summary="@string/preferences_dev_control_host_sum"
154
                android:defaultValue="develop"
155 156 157 158 159 160 161 162
                android:layout="@layout/preferences_item"
                />
            
            <EditTextPreference
                android:key="dev_control_port"
                android:title="@string/preferences_dev_control_port"
                android:summary="@string/preferences_dev_control_port_sum"
                android:inputType="number"
163
                android:defaultValue="443"
164 165 166 167 168 169 170
                android:layout="@layout/preferences_item"
                />
            
            <CheckBoxPreference
                android:key="dev_control_ssl"
                android:title="@string/preferences_dev_control_ssl"
                android:summary="@string/preferences_dev_control_ssl_sum"
171
                android:defaultValue="true"
172
                android:layout="@layout/preferences_checkbox_item"
173 174 175 176 177 178 179 180 181
                />
        </PreferenceCategory>
        
        <PreferenceCategory android:title="@string/preferences_category_developer_map_server" android:layout="@layout/preferences_category">
            
            <CheckBoxPreference
                android:key="dev_map_override"
                android:title="@string/preferences_dev_map_override"
                android:summary="@string/preferences_dev_map_override_sum"
182
                android:layout="@layout/preferences_checkbox_item"/>
183 184 185 186 187
            
            <EditTextPreference
                android:key="dev_map_hostname"
                android:title="@string/preferences_dev_map_host"
                android:summary="@string/preferences_dev_map_host_sum"
188
                android:defaultValue="develop"
189 190 191 192 193 194 195 196
                android:layout="@layout/preferences_item"
                />
            
            <EditTextPreference
                android:key="dev_map_port"
                android:title="@string/preferences_dev_map_port"
                android:summary="@string/preferences_dev_map_port_sum"
                android:inputType="number"
197
                android:defaultValue="443"
198 199 200 201 202 203 204
                android:layout="@layout/preferences_item"
                />
            
            <CheckBoxPreference
                android:key="dev_map_ssl"
                android:title="@string/preferences_dev_map_ssl"
                android:summary="@string/preferences_dev_map_ssl_sum"
205
                android:defaultValue="true"
206
                android:layout="@layout/preferences_checkbox_item"
207 208 209 210 211 212 213 214
                />
        </PreferenceCategory>
        
		<PreferenceCategory android:title="@string/preferences_category_developer_qos_server" android:layout="@layout/preferences_category">
			<CheckBoxPreference
                android:key="dev_debug_qos_ssl"
                android:title="@string/preferences_dev_qos_ssl"
                android:summary="@string/preferences_dev_qos_ssl_sum"
215
                android:defaultValue="false"
216
                android:layout="@layout/preferences_checkbox_item"
217 218 219 220 221 222 223 224 225 226
                />
		</PreferenceCategory>
		
		<PreferenceCategory android:title="@string/preferences_category_developer_debug" android:layout="@layout/preferences_category">
		    
		    <CheckBoxPreference
                android:key="dev_debug_output"
                android:title="@string/preferences_dev_debug_sysout"
                android:summary="@string/preferences_dev_debug_sysout_sum"
                android:defaultValue="false"
227
                android:layout="@layout/preferences_checkbox_item"
228 229 230 231 232 233 234
                />
		    
            <!--  
            <CheckBoxPreference 
                android:key="dev_debug_ip_method"
                android:title="@string/preferences_dev_debug_ip_method"
                android:summary="@string/preferences_dev_debug_ip_method_sum"
235
                android:defaultValue="false"
236
                android:layout="@layout/preferences_checkbox_item"
237
                />
238 239 240 241 242 243
            
            <CheckBoxPreference
                android:key="dev_debug_ip_retry_on_socket_timeout"
                android:title="@string/preferences_dev_debug_ip_retry_on_socket_timeout"
                android:summary="@string/preferences_dev_debug_ip_retry_on_socket_timeout_sum"
                android:defaultValue="false"
244
                android:layout="@layout/preferences_checkbox_item"
245 246 247 248 249 250 251
                />

            <CheckBoxPreference
                android:key="dev_debug_ip_poll"
                android:title="@string/preferences_dev_debug_ip_poll"
                android:summary="@string/preferences_dev_debug_ip_poll_sum"
                android:defaultValue="true"
252
                android:layout="@layout/preferences_checkbox_item"
253 254
                />
            -->
255
        </PreferenceCategory>
256
    </PreferenceScreen>