1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* //device/apps/Settings/assets/res/any/layout/radio_info.xml 4** 5** Copyright 2006, The Android Open Source Project 6** 7** Licensed under the Apache License, Version 2.0 (the "License"); 8** you may not use this file except in compliance with the License. 9** You may obtain a copy of the License at 10** 11** http://www.apache.org/licenses/LICENSE-2.0 12** 13** Unless required by applicable law or agreed to in writing, software 14** distributed under the License is distributed on an "AS IS" BASIS, 15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16** See the License for the specific language governing permissions and 17** limitations under the License. 18*/ 19--> 20<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <LinearLayout style="@style/info_layout" 25 android:descendantFocusability="beforeDescendants" 26 android:focusableInTouchMode="true"> 27 28 <!-- IMEI --> 29 <LinearLayout style="@style/entry_layout"> 30 <TextView android:text="@string/radio_info_imei_label" style="@style/info_label" /> 31 <TextView android:id="@+id/imei" style="@style/info_value" /> 32 </LinearLayout> 33 34 <!-- Phone Number --> 35 <LinearLayout style="@style/entry_layout"> 36 <TextView android:text="@string/radio_info_phone_number_label" style="@style/info_label" /> 37 <TextView android:id="@+id/number" style="@style/info_value" /> 38 </LinearLayout> 39 40 <!-- IMSI --> 41 <LinearLayout style="@style/entry_layout"> 42 <TextView android:text="@string/radio_info_imsi_label" style="@style/info_label" /> 43 <TextView android:id="@+id/imsi" style="@style/info_value" /> 44 </LinearLayout> 45 46 <!-- Network Identifier --> 47 <LinearLayout style="@style/entry_layout"> 48 <TextView android:text="@string/radio_info_current_network_label" style="@style/info_label" /> 49 <TextView android:id="@+id/operator" style="@style/info_value" /> 50 </LinearLayout> 51 52 <!-- Roaming --> 53 <LinearLayout style="@style/entry_layout"> 54 <TextView android:text="@string/radio_info_roaming_label" style="@style/info_label" /> 55 <TextView android:id="@+id/roaming" style="@style/info_value" /> 56 </LinearLayout> 57 58 <!-- Data Service Status --> 59 <LinearLayout style="@style/entry_layout"> 60 <TextView android:text="@string/radio_info_gprs_service_label" style="@style/info_label" /> 61 <TextView android:id="@+id/gprs" style="@style/info_value" /> 62 </LinearLayout> 63 64 <!-- Data Network Type --> 65 <LinearLayout style="@style/entry_layout"> 66 <TextView android:text="@string/radio_info_data_network_type_label" style="@style/info_label" /> 67 <TextView android:id="@+id/data_network" style="@style/info_value" /> 68 </LinearLayout> 69 70 <!-- Voice Service Status --> 71 <LinearLayout style="@style/entry_layout"> 72 <TextView android:text="@string/radio_info_gsm_service_label" style="@style/info_label" /> 73 <TextView android:id="@+id/gsm" style="@style/info_value" /> 74 </LinearLayout> 75 76 <!-- Voice Network Type --> 77 <LinearLayout style="@style/entry_layout"> 78 <TextView android:text="@string/radio_info_voice_network_type_label" style="@style/info_label" /> 79 <TextView android:id="@+id/voice_network" style="@style/info_value" /> 80 </LinearLayout> 81 82 <!-- Signal Strength --> 83 <LinearLayout style="@style/entry_layout"> 84 <TextView android:text="@string/radio_info_signal_strength_label" style="@style/info_label" /> 85 <TextView android:id="@+id/dbm" style="@style/info_value" /> 86 </LinearLayout> 87 88 <!-- Link Bandwidth --> 89 <LinearLayout style="@style/entry_layout" android:orientation="horizontal"> 90 <TextView android:text="@string/radio_info_dl_kbps" style="@style/info_label" /> 91 <TextView android:id="@+id/dl_kbps" style="@style/info_value" /> 92 </LinearLayout> 93 94 <!-- Link Bandwidth --> 95 <LinearLayout style="@style/entry_layout" android:orientation="horizontal"> 96 <TextView android:text="@string/radio_info_ul_kbps" style="@style/info_label" /> 97 <TextView android:id="@+id/ul_kbps" style="@style/info_value" /> 98 </LinearLayout> 99 100 <!-- Physical Channel Config --> 101 <LinearLayout style="@style/entry_layout"> 102 <TextView android:text="@string/radio_info_phy_chan_config" style="@style/info_label" /> 103 <TextView android:id="@+id/phy_chan_config" style="@style/info_value" /> 104 </LinearLayout> 105 106 <!-- Horizontal Rule --> 107 <View 108 android:layout_width="fill_parent" 109 android:layout_height="1dip" 110 android:background="?android:attr/listDivider" /> 111 112 <!-- Preferred Network Type --> 113 <TextView 114 android:layout_width="match_parent" 115 android:layout_height="wrap_content" 116 android:text="@string/radio_info_set_perferred_label" 117 style="@style/info_label" 118 /> 119 120 <Spinner android:id="@+id/preferredNetworkType" 121 android:layout_width="match_parent" 122 android:layout_height="wrap_content" 123 /> 124 125 <!-- Horizontal Rule --> 126 <View 127 android:layout_width="fill_parent" 128 android:layout_height="1dip" 129 android:background="?android:attr/listDivider" /> 130 131 <!-- Radio Power --> 132 <Switch android:id="@+id/radio_power" 133 android:textSize="14sp" 134 android:layout_marginTop="8dip" 135 android:layout_width="match_parent" 136 android:layout_height="wrap_content" 137 android:text="@string/radio_info_radio_power"/> 138 139 <!-- VoLTE provisioned --> 140 <Switch android:id="@+id/volte_provisioned_switch" 141 android:textSize="14sp" 142 android:layout_marginTop="8dip" 143 android:layout_width="match_parent" 144 android:layout_height="wrap_content" 145 android:text="@string/volte_provisioned_switch_string"/> 146 147 <!-- VT provisioned --> 148 <Switch android:id="@+id/vt_provisioned_switch" 149 android:textSize="14sp" 150 android:layout_marginTop="8dip" 151 android:layout_width="match_parent" 152 android:layout_height="wrap_content" 153 android:text="@string/vt_provisioned_switch_string"/> 154 155 <!-- Wifi Calling provisioned --> 156 <Switch android:id="@+id/wfc_provisioned_switch" 157 android:textSize="14sp" 158 android:layout_marginTop="8dip" 159 android:layout_width="match_parent" 160 android:layout_height="wrap_content" 161 android:text="@string/wfc_provisioned_switch_string"/> 162 163 <!-- EAB/Presence provisioned --> 164 <Switch android:id="@+id/eab_provisioned_switch" 165 android:textSize="14sp" 166 android:layout_marginTop="8dip" 167 android:layout_width="match_parent" 168 android:layout_height="wrap_content" 169 android:text="@string/eab_provisioned_switch_string"/> 170 171 <!-- Horizontal Rule --> 172 <View 173 android:layout_width="fill_parent" 174 android:layout_height="1dip" 175 android:background="?android:attr/listDivider" /> 176 177 <!-- Enable/Disable CBRS data --> 178 <Switch android:id="@+id/cbrs_data_switch" 179 android:textSize="14sp" 180 android:layout_marginTop="8dip" 181 android:layout_width="match_parent" 182 android:layout_height="wrap_content" 183 android:text="@string/cbrs_data_switch_string" /> 184 185 <!-- Switch between SSSS(single sim single standby) and DSDS(dual sim dual standby). --> 186 <Switch android:id="@+id/dsds_switch" 187 android:textSize="14sp" 188 android:layout_marginTop="8dip" 189 android:layout_width="match_parent" 190 android:layout_height="wrap_content" 191 android:text="@string/dsds_switch_string" /> 192 193 <!-- Horizontal Rule --> 194 <View 195 android:layout_width="fill_parent" 196 android:layout_height="1dip" 197 android:background="?android:attr/listDivider" /> 198 199 <!-- Ping stats --> 200 <Button android:id="@+id/ping_test" 201 android:textSize="14sp" 202 android:layout_marginTop="8dip" 203 android:layout_width="wrap_content" 204 android:layout_height="wrap_content" 205 android:text="@string/ping_test_label" 206 /> 207 208 <LinearLayout style="@style/entry_layout"> 209 <TextView android:text="@string/radio_info_ping_hostname_v4" style="@style/info_label" /> 210 <TextView android:id="@+id/pingHostnameV4" style="@style/info_value" /> 211 </LinearLayout> 212 213 <LinearLayout style="@style/entry_layout"> 214 <TextView android:text="@string/radio_info_ping_hostname_v6" style="@style/info_label" /> 215 <TextView android:id="@+id/pingHostnameV6" style="@style/info_value" /> 216 </LinearLayout> 217 218 <LinearLayout style="@style/entry_layout"> 219 <TextView android:text="@string/radio_info_http_client_test" style="@style/info_label" /> 220 <TextView android:id="@+id/httpClientTest" style="@style/info_value" /> 221 </LinearLayout> 222 223 <!-- Horizontal Rule --> 224 <View 225 android:layout_width="fill_parent" 226 android:layout_height="1dip" 227 android:background="?android:attr/listDivider" /> 228 229 <!-- PPP Sent --> 230 <LinearLayout style="@style/entry_layout"> 231 <TextView android:text="@string/radio_info_ppp_sent_label" 232 style="@style/info_label" /> 233 <TextView android:id="@+id/sent" style="@style/info_value" /> 234 </LinearLayout> 235 236 <!-- PPP Received --> 237 <LinearLayout style="@style/entry_layout"> 238 <TextView android:text="@string/radio_info_ppp_received_label" 239 style="@style/info_label" /> 240 <TextView android:id="@+id/received" style="@style/info_value" /> 241 </LinearLayout> 242 243 <!-- PPP Sent since last received --> 244 <LinearLayout style="@style/entry_layout"> 245 <TextView android:text="@string/radio_info_ppp_resets_label" 246 style="@style/info_label" /> 247 <TextView android:id="@+id/sentSinceReceived" style="@style/info_value" /> 248 </LinearLayout> 249 250 <!-- Horizontal Rule --> 251 <View 252 android:layout_width="fill_parent" 253 android:layout_height="1dip" 254 android:background="?android:attr/listDivider" /> 255 256 <!-- Call Status --> 257 <LinearLayout style="@style/entry_layout"> 258 <TextView android:text="@string/radio_info_call_status_label" style="@style/info_label" /> 259 <TextView android:id="@+id/call" style="@style/info_value" /> 260 </LinearLayout> 261 262 <!-- Message Waiting Indicator --> 263 <LinearLayout style="@style/entry_layout"> 264 <TextView android:text="@string/radio_info_message_waiting_label" style="@style/info_label" /> 265 <TextView android:id="@+id/mwi" style="@style/info_value" /> 266 </LinearLayout> 267 268 <!-- Call Forwarding Indicator --> 269 <LinearLayout style="@style/entry_layout"> 270 <TextView android:text="@string/radio_info_call_redirect_label" style="@style/info_label" /> 271 <TextView android:id="@+id/cfi" style="@style/info_value" /> 272 </LinearLayout> 273 274 <!-- Horizontal Rule --> 275 <View 276 android:layout_width="fill_parent" 277 android:layout_height="1dip" 278 android:background="?android:attr/listDivider" /> 279 280 <!-- CellInfoListRate Selection --> 281 <!-- Location --> 282 <LinearLayout style="@style/entry_layout"> 283 <TextView android:text="@string/radio_info_signal_location_label" style="@style/info_label" /> 284 <TextView android:id="@+id/location" style="@style/info_value" /> 285 </LinearLayout> 286 287 <TextView 288 android:layout_width="match_parent" 289 android:layout_height="wrap_content" 290 android:text="@string/radio_info_cell_info_refresh_rate" 291 style="@style/info_label" 292 /> 293 294 <Spinner android:id="@+id/cell_info_rate_select" 295 android:layout_width="match_parent" 296 android:layout_height="wrap_content" 297 /> 298 299 <!-- CellInfo --> 300 <LinearLayout style="@style/entry_layout"> 301 <TextView android:text="@string/radio_info_cellinfo_label" 302 style="@style/info_label" /> 303 </LinearLayout> 304 <LinearLayout style="@style/entry_layout"> 305 <TextView android:id="@+id/cellinfo" 306 style="@style/info_value" 307 android:minHeight="300dip" 308 android:textSize="12sp" /> 309 </LinearLayout> 310 311 <!-- Horizontal Rule --> 312 <View 313 android:layout_width="fill_parent" 314 android:layout_height="1dip" 315 android:background="?android:attr/listDivider" /> 316 317 <!-- Launch OEM-specific Info/Settings Activity (if any) --> 318 <!-- Carrier Provisioning --> 319 <LinearLayout style="@style/entry_layout" 320 android:orientation="horizontal" > 321 <Button android:id="@+id/carrier_provisioning" 322 android:layout_marginTop="8dip" 323 android:layout_weight="1" 324 android:layout_width="0dp" 325 android:layout_height="wrap_content" 326 android:text="@string/carrier_provisioning" 327 android:textSize="14sp"/> 328 <Button android:id="@+id/trigger_carrier_provisioning" 329 android:layout_marginTop="8dip" 330 android:layout_weight="1" 331 android:layout_width="0dp" 332 android:layout_height="wrap_content" 333 android:text="@string/trigger_carrier_provisioning" 334 android:textSize="14sp"/> 335 <Button android:id="@+id/oem_info" 336 android:layout_marginTop="8dip" 337 android:layout_weight="1" 338 android:layout_width="0dp" 339 android:layout_height="wrap_content" 340 android:text="@string/oem_radio_info_label" 341 android:textSize="14sp"/> 342 </LinearLayout> 343 344 <!-- SMSC --> 345 <RelativeLayout android:layout_width="match_parent" 346 android:layout_height="wrap_content"> 347 <TextView android:id="@+id/smsc_label" 348 android:text="@string/radio_info_smsc_label" 349 android:layout_alignBaseline="@+id/update_smsc" 350 style="@style/info_label" /> 351 <Button android:id="@+id/refresh_smsc" 352 android:textSize="14sp" 353 android:layout_marginTop="8dip" 354 android:layout_width="wrap_content" 355 android:layout_height="wrap_content" 356 android:text="@string/radio_info_smsc_refresh_label" 357 android:layout_alignParentEnd="true" 358 /> 359 <Button android:id="@+id/update_smsc" 360 android:textSize="14sp" 361 android:layout_marginTop="8dip" 362 android:layout_width="wrap_content" 363 android:layout_height="wrap_content" 364 android:text="@string/radio_info_smsc_update_label" 365 android:layout_toStartOf="@+id/refresh_smsc" 366 android:layout_alignBaseline="@+id/refresh_smsc" 367 /> 368 <EditText android:id="@+id/smsc" 369 style="@style/form_value" 370 android:layout_alignBaseline="@+id/refresh_smsc" 371 android:layout_toStartOf="@id/update_smsc" 372 android:layout_toEndOf="@id/smsc_label" /> 373 </RelativeLayout> 374 375 <!-- Test setting to ignore bad DNS, useful in lab environments --> 376 <LinearLayout style="@style/entry_layout"> 377 <Button android:id="@+id/dns_check_toggle" 378 android:textSize="14sp" 379 android:layout_marginTop="8dip" 380 android:layout_width="wrap_content" 381 android:layout_height="wrap_content" 382 android:text="@string/radio_info_toggle_dns_check_label" 383 /> 384 <TextView android:id="@+id/dnsCheckState" style="@style/info_value" /> 385 </LinearLayout> 386 387 388 </LinearLayout> 389</ScrollView> 390