blob: c414fe15358dafbb6d88fe16fb447841857e296a [file] [log] [blame]
Bonian Chenf4213c52019-12-13 14:13:11 +08001<?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**
Jack Yued053402022-09-27 21:20:25 -07007** 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
Bonian Chenf4213c52019-12-13 14:13:11 +080010**
Jack Yued053402022-09-27 21:20:25 -070011** http://www.apache.org/licenses/LICENSE-2.0
Bonian Chenf4213c52019-12-13 14:13:11 +080012**
Jack Yued053402022-09-27 21:20:25 -070013** 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
Bonian Chenf4213c52019-12-13 14:13:11 +080017** 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 <!-- Phone index -->
29 <TextView
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:text="@string/phone_index_label"
33 style="@style/info_label"
34 />
35
36 <Spinner android:id="@+id/phoneIndex"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 />
40
41 <!-- IMEI -->
42 <LinearLayout style="@style/RadioInfo_entry_layout">
43 <TextView android:text="@string/radio_info_imei_label" style="@style/info_label" />
44 <TextView android:id="@+id/imei" style="@style/info_value" />
45 </LinearLayout>
46
47 <!-- Phone Number -->
48 <LinearLayout style="@style/RadioInfo_entry_layout">
49 <TextView android:text="@string/radio_info_phone_number_label" style="@style/info_label" />
50 <TextView android:id="@+id/number" style="@style/info_value" />
51 </LinearLayout>
52
53 <!-- Subscription ID -->
54 <LinearLayout style="@style/RadioInfo_entry_layout">
55 <TextView android:text="@string/radio_info_subid" style="@style/info_label" />
56 <TextView android:id="@+id/subid" style="@style/info_value" />
57 </LinearLayout>
58
59 <!-- Default data subscription -->
60 <LinearLayout style="@style/RadioInfo_entry_layout">
61 <TextView android:text="@string/radio_info_dds" style="@style/info_label" />
62 <TextView android:id="@+id/dds" style="@style/info_value" />
63 </LinearLayout>
64
65 <!-- IMSI -->
66 <LinearLayout style="@style/RadioInfo_entry_layout">
67 <TextView android:text="@string/radio_info_imsi_label" style="@style/info_label" />
68 <TextView android:id="@+id/imsi" style="@style/info_value" />
69 </LinearLayout>
70
71 <!-- Network Identifier -->
72 <LinearLayout style="@style/RadioInfo_entry_layout">
73 <TextView android:text="@string/radio_info_current_network_label" style="@style/info_label" />
74 <TextView android:id="@+id/operator" style="@style/info_value" />
75 </LinearLayout>
76
77 <!-- Roaming -->
78 <LinearLayout style="@style/RadioInfo_entry_layout">
79 <TextView android:text="@string/radio_info_roaming_label" style="@style/info_label" />
80 <TextView android:id="@+id/roaming" style="@style/info_value" />
81 </LinearLayout>
82
83 <!-- Data Service Status -->
84 <LinearLayout style="@style/RadioInfo_entry_layout">
85 <TextView android:text="@string/radio_info_gprs_service_label" style="@style/info_label" />
86 <TextView android:id="@+id/gprs" style="@style/info_value" />
87 </LinearLayout>
88
89 <!-- Data Network Type -->
90 <LinearLayout style="@style/RadioInfo_entry_layout">
91 <TextView android:text="@string/radio_info_data_network_type_label" style="@style/info_label" />
92 <TextView android:id="@+id/data_network" style="@style/info_value" />
93 </LinearLayout>
94
Sarah Chine2566532022-03-08 15:40:38 -080095 <!-- Override Network Type -->
96 <LinearLayout style="@style/RadioInfo_entry_layout">
97 <TextView android:text="@string/radio_info_override_network_type_label" style="@style/info_label" />
98 <TextView android:id="@+id/override_network" style="@style/info_value" />
99 </LinearLayout>
100
Bonian Chenf4213c52019-12-13 14:13:11 +0800101 <!-- Voice Service Status -->
102 <LinearLayout style="@style/RadioInfo_entry_layout">
103 <TextView android:text="@string/radio_info_gsm_service_label" style="@style/info_label" />
104 <TextView android:id="@+id/gsm" style="@style/info_value" />
105 </LinearLayout>
106
107 <!-- Voice Network Type -->
108 <LinearLayout style="@style/RadioInfo_entry_layout">
109 <TextView android:text="@string/radio_info_voice_network_type_label" style="@style/info_label" />
110 <TextView android:id="@+id/voice_network" style="@style/info_value" />
111 </LinearLayout>
112
113 <!-- Signal Strength -->
114 <LinearLayout style="@style/RadioInfo_entry_layout">
115 <TextView android:text="@string/radio_info_signal_strength_label" style="@style/info_label" />
116 <TextView android:id="@+id/dbm" style="@style/info_value" />
117 </LinearLayout>
118
119 <!-- Link Bandwidth -->
120 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
121 <TextView android:text="@string/radio_info_dl_kbps" style="@style/info_label" />
122 <TextView android:id="@+id/dl_kbps" style="@style/info_value" />
123 </LinearLayout>
124
125 <!-- Link Bandwidth -->
126 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
127 <TextView android:text="@string/radio_info_ul_kbps" style="@style/info_label" />
128 <TextView android:id="@+id/ul_kbps" style="@style/info_value" />
129 </LinearLayout>
130
Sarah Chinbf87df92020-07-09 19:23:35 -0700131
132 <!-- EN-DC Available -->
133 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
134 <TextView android:id="@+id/endc_available_label" android:text="@string/radio_info_endc_available" style="@style/info_label" />
135 <TextView android:id="@+id/endc_available" style="@style/info_value" />
136 </LinearLayout>
137
138 <!-- DCNR Restricted -->
139 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
140 <TextView android:id="@+id/dcnr_restricted_label" android:text="@string/radio_info_dcnr_restricted" style="@style/info_label" />
141 <TextView android:id="@+id/dcnr_restricted" style="@style/info_value" />
142 </LinearLayout>
143
144 <!-- NR Available -->
145 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
146 <TextView android:id="@+id/nr_available_label" android:text="@string/radio_info_nr_available" style="@style/info_label" />
147 <TextView android:id="@+id/nr_available" style="@style/info_value" />
148 </LinearLayout>
149
150 <!-- NR State -->
151 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
152 <TextView android:id="@+id/nr_state_label" android:text="@string/radio_info_nr_state" style="@style/info_label" />
153 <TextView android:id="@+id/nr_state" style="@style/info_value" />
154 </LinearLayout>
155
156 <!-- NR Frequency -->
157 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
158 <TextView android:id="@+id/nr_frequency_label" android:text="@string/radio_info_nr_frequency" style="@style/info_label" />
159 <TextView android:id="@+id/nr_frequency" style="@style/info_value" />
160 </LinearLayout>
161
Mars Lin3806f242021-04-20 16:50:23 +0800162 <!-- NR Frequency -->
163 <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
164 <TextView android:id="@+id/network_slicing_config_label" android:text="@string/radio_info_network_slicing_config" style="@style/info_label" />
165 <TextView android:id="@+id/network_slicing_config" style="@style/info_value" />
166 </LinearLayout>
167
Bonian Chenf4213c52019-12-13 14:13:11 +0800168 <!-- Horizontal Rule -->
169 <View
170 android:layout_width="fill_parent"
171 android:layout_height="1dip"
172 android:background="?android:attr/listDivider" />
173
174 <!-- Preferred Network Type -->
175 <TextView
176 android:layout_width="match_parent"
177 android:layout_height="wrap_content"
178 android:text="@string/radio_info_set_perferred_label"
179 style="@style/info_label"
180 />
181
182 <Spinner android:id="@+id/preferredNetworkType"
183 android:layout_width="match_parent"
184 android:layout_height="wrap_content"
185 />
186
187 <!-- Horizontal Rule -->
188 <View
189 android:layout_width="fill_parent"
190 android:layout_height="1dip"
191 android:background="?android:attr/listDivider" />
192
193 <!-- Radio Power -->
194 <Switch android:id="@+id/radio_power"
195 android:textSize="14sp"
196 android:layout_marginTop="8dip"
197 android:layout_width="match_parent"
198 android:layout_height="wrap_content"
199 android:text="@string/radio_info_radio_power"/>
200
Jack Yued053402022-09-27 21:20:25 -0700201 <!-- Simulate out of service -->
202 <Switch android:id="@+id/simulate_out_of_service"
203 android:textSize="14sp"
204 android:layout_marginTop="8dip"
205 android:layout_width="match_parent"
206 android:layout_height="wrap_content"
207 android:text="@string/simulate_out_of_service_string"/>
208
Bonian Chenf4213c52019-12-13 14:13:11 +0800209 <!-- VoLTE provisioned -->
210 <Switch android:id="@+id/volte_provisioned_switch"
211 android:textSize="14sp"
212 android:layout_marginTop="8dip"
213 android:layout_width="match_parent"
214 android:layout_height="wrap_content"
215 android:text="@string/volte_provisioned_switch_string"/>
216
217 <!-- VT provisioned -->
218 <Switch android:id="@+id/vt_provisioned_switch"
219 android:textSize="14sp"
220 android:layout_marginTop="8dip"
221 android:layout_width="match_parent"
222 android:layout_height="wrap_content"
223 android:text="@string/vt_provisioned_switch_string"/>
224
225 <!-- Wifi Calling provisioned -->
226 <Switch android:id="@+id/wfc_provisioned_switch"
227 android:textSize="14sp"
228 android:layout_marginTop="8dip"
229 android:layout_width="match_parent"
230 android:layout_height="wrap_content"
231 android:text="@string/wfc_provisioned_switch_string"/>
232
233 <!-- EAB/Presence provisioned -->
234 <Switch android:id="@+id/eab_provisioned_switch"
235 android:textSize="14sp"
236 android:layout_marginTop="8dip"
237 android:layout_width="match_parent"
238 android:layout_height="wrap_content"
239 android:text="@string/eab_provisioned_switch_string"/>
240
241 <!-- Horizontal Rule -->
242 <View
243 android:layout_width="fill_parent"
244 android:layout_height="1dip"
245 android:background="?android:attr/listDivider" />
246
247 <!-- Enable/Disable CBRS data -->
248 <Switch android:id="@+id/cbrs_data_switch"
249 android:textSize="14sp"
250 android:layout_marginTop="8dip"
251 android:layout_width="match_parent"
252 android:layout_height="wrap_content"
253 android:text="@string/cbrs_data_switch_string" />
254
255 <!-- Switch between SSSS(single sim single standby) and DSDS(dual sim dual standby). -->
256 <Switch android:id="@+id/dsds_switch"
257 android:textSize="14sp"
258 android:layout_marginTop="8dip"
259 android:layout_width="match_parent"
260 android:layout_height="wrap_content"
261 android:text="@string/dsds_switch_string" />
262
Muralidhar Reddy4e5a8012022-05-11 14:49:00 +0000263 <!-- Set removable eSIM as default eUICC. -->
264 <Switch android:id="@+id/removable_esim_switch"
265 android:textSize="14sp"
266 android:layout_marginTop="8dip"
267 android:layout_width="match_parent"
268 android:layout_height="wrap_content"
Muralidhar Reddy53652bf2022-05-23 06:51:08 +0000269 android:enabled="false"
Muralidhar Reddy4e5a8012022-05-11 14:49:00 +0000270 android:text="@string/removable_esim_string" />
271
Bonian Chenf4213c52019-12-13 14:13:11 +0800272 <!-- Horizontal Rule -->
273 <View
274 android:layout_width="fill_parent"
275 android:layout_height="1dip"
276 android:background="?android:attr/listDivider" />
277
278 <!-- Ping stats -->
279 <Button android:id="@+id/ping_test"
280 android:textSize="14sp"
281 android:layout_marginTop="8dip"
282 android:layout_width="wrap_content"
283 android:layout_height="wrap_content"
284 android:text="@string/ping_test_label"
285 />
Jack Yued053402022-09-27 21:20:25 -0700286
Bonian Chenf4213c52019-12-13 14:13:11 +0800287 <LinearLayout style="@style/RadioInfo_entry_layout">
288 <TextView android:text="@string/radio_info_ping_hostname_v4" style="@style/info_label" />
289 <TextView android:id="@+id/pingHostnameV4" style="@style/info_value" />
290 </LinearLayout>
291
292 <LinearLayout style="@style/RadioInfo_entry_layout">
293 <TextView android:text="@string/radio_info_ping_hostname_v6" style="@style/info_label" />
294 <TextView android:id="@+id/pingHostnameV6" style="@style/info_value" />
295 </LinearLayout>
296
297 <LinearLayout style="@style/RadioInfo_entry_layout">
298 <TextView android:text="@string/radio_info_http_client_test" style="@style/info_label" />
299 <TextView android:id="@+id/httpClientTest" style="@style/info_value" />
300 </LinearLayout>
301
302 <!-- Horizontal Rule -->
303 <View
304 android:layout_width="fill_parent"
305 android:layout_height="1dip"
306 android:background="?android:attr/listDivider" />
307
308 <!-- PPP Sent -->
309 <LinearLayout style="@style/RadioInfo_entry_layout">
310 <TextView android:text="@string/radio_info_ppp_sent_label"
311 style="@style/info_label" />
312 <TextView android:id="@+id/sent" style="@style/info_value" />
313 </LinearLayout>
314
315 <!-- PPP Received -->
316 <LinearLayout style="@style/RadioInfo_entry_layout">
317 <TextView android:text="@string/radio_info_ppp_received_label"
318 style="@style/info_label" />
319 <TextView android:id="@+id/received" style="@style/info_value" />
320 </LinearLayout>
321
322 <!-- PPP Sent since last received -->
323 <LinearLayout style="@style/RadioInfo_entry_layout">
324 <TextView android:text="@string/radio_info_ppp_resets_label"
325 style="@style/info_label" />
326 <TextView android:id="@+id/sentSinceReceived" style="@style/info_value" />
327 </LinearLayout>
328
329 <!-- Horizontal Rule -->
330 <View
331 android:layout_width="fill_parent"
332 android:layout_height="1dip"
333 android:background="?android:attr/listDivider" />
334
335 <!-- Call Status -->
336 <LinearLayout style="@style/RadioInfo_entry_layout">
337 <TextView android:text="@string/radio_info_call_status_label" style="@style/info_label" />
338 <TextView android:id="@+id/call" style="@style/info_value" />
339 </LinearLayout>
340
341 <!-- Message Waiting Indicator -->
342 <LinearLayout style="@style/RadioInfo_entry_layout">
343 <TextView android:text="@string/radio_info_message_waiting_label" style="@style/info_label" />
344 <TextView android:id="@+id/mwi" style="@style/info_value" />
345 </LinearLayout>
346
347 <!-- Call Forwarding Indicator -->
348 <LinearLayout style="@style/RadioInfo_entry_layout">
349 <TextView android:text="@string/radio_info_call_redirect_label" style="@style/info_label" />
350 <TextView android:id="@+id/cfi" style="@style/info_value" />
351 </LinearLayout>
352
353 <!-- Horizontal Rule -->
354 <View
355 android:layout_width="fill_parent"
356 android:layout_height="1dip"
357 android:background="?android:attr/listDivider" />
358
359 <!-- CellInfoListRate Selection -->
Bonian Chenf4213c52019-12-13 14:13:11 +0800360
361 <TextView
362 android:layout_width="match_parent"
363 android:layout_height="wrap_content"
364 android:text="@string/radio_info_cell_info_refresh_rate"
365 style="@style/info_label"
366 />
367
368 <Spinner android:id="@+id/cell_info_rate_select"
369 android:layout_width="match_parent"
370 android:layout_height="wrap_content"
371 />
372
Jack Yued053402022-09-27 21:20:25 -0700373 <!-- Physical Channel Config -->
374 <LinearLayout style="@style/RadioInfo_entry_layout">
375 <TextView android:text="@string/radio_info_phy_chan_config" style="@style/info_label" />
376 <TextView android:id="@+id/phy_chan_config" style="@style/info_value" />
377 </LinearLayout>
378
Bonian Chenf4213c52019-12-13 14:13:11 +0800379 <!-- CellInfo -->
380 <LinearLayout style="@style/RadioInfo_entry_layout">
381 <TextView android:text="@string/radio_info_cellinfo_label"
382 style="@style/info_label" />
383 </LinearLayout>
384 <LinearLayout style="@style/RadioInfo_entry_layout">
385 <TextView android:id="@+id/cellinfo"
386 style="@style/info_value"
387 android:minHeight="300dip"
388 android:textSize="12sp" />
389 </LinearLayout>
390
391 <!-- Horizontal Rule -->
392 <View
393 android:layout_width="fill_parent"
394 android:layout_height="1dip"
395 android:background="?android:attr/listDivider" />
396
397 <!-- Launch OEM-specific Info/Settings Activity (if any) -->
398 <!-- Carrier Provisioning -->
399 <LinearLayout style="@style/RadioInfo_entry_layout"
400 android:orientation="horizontal" >
401 <Button android:id="@+id/carrier_provisioning"
402 android:layout_marginTop="8dip"
403 android:layout_weight="1"
404 android:layout_width="0dp"
405 android:layout_height="wrap_content"
406 android:text="@string/carrier_provisioning"
407 android:textSize="14sp"/>
408 <Button android:id="@+id/trigger_carrier_provisioning"
409 android:layout_marginTop="8dip"
410 android:layout_weight="1"
411 android:layout_width="0dp"
412 android:layout_height="wrap_content"
413 android:text="@string/trigger_carrier_provisioning"
414 android:textSize="14sp"/>
415 <Button android:id="@+id/oem_info"
416 android:layout_marginTop="8dip"
417 android:layout_weight="1"
418 android:layout_width="0dp"
419 android:layout_height="wrap_content"
420 android:text="@string/oem_radio_info_label"
421 android:textSize="14sp"/>
422 </LinearLayout>
423
424 <!-- SMSC -->
425 <RelativeLayout android:layout_width="match_parent"
426 android:layout_height="wrap_content">
427 <TextView android:id="@+id/smsc_label"
428 android:text="@string/radio_info_smsc_label"
429 android:layout_alignBaseline="@+id/update_smsc"
430 style="@style/info_label" />
431 <Button android:id="@+id/refresh_smsc"
432 android:textSize="14sp"
433 android:layout_marginTop="8dip"
434 android:layout_width="wrap_content"
435 android:layout_height="wrap_content"
436 android:text="@string/radio_info_smsc_refresh_label"
437 android:layout_alignParentEnd="true"
438 />
439 <Button android:id="@+id/update_smsc"
440 android:textSize="14sp"
441 android:layout_marginTop="8dip"
442 android:layout_width="wrap_content"
443 android:layout_height="wrap_content"
444 android:text="@string/radio_info_smsc_update_label"
445 android:layout_toStartOf="@+id/refresh_smsc"
446 android:layout_alignBaseline="@+id/refresh_smsc"
447 />
448 <EditText android:id="@+id/smsc"
449 style="@style/form_value"
450 android:layout_alignBaseline="@+id/refresh_smsc"
451 android:layout_toStartOf="@id/update_smsc"
452 android:layout_toEndOf="@id/smsc_label" />
453 </RelativeLayout>
454
Bonian Chenf4213c52019-12-13 14:13:11 +0800455 <!-- Test setting to ignore bad DNS, useful in lab environments -->
456 <LinearLayout style="@style/RadioInfo_entry_layout">
457 <Button android:id="@+id/dns_check_toggle"
458 android:textSize="14sp"
459 android:layout_marginTop="8dip"
460 android:layout_width="wrap_content"
461 android:layout_height="wrap_content"
462 android:text="@string/radio_info_toggle_dns_check_label"
463 />
464 <TextView android:id="@+id/dnsCheckState" style="@style/info_value" />
465 </LinearLayout>
466
467
468 </LinearLayout>
469</ScrollView>