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        <!-- 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
95        <!-- Voice Service Status -->
96        <LinearLayout style="@style/RadioInfo_entry_layout">
97            <TextView android:text="@string/radio_info_gsm_service_label" style="@style/info_label" />
98            <TextView android:id="@+id/gsm" style="@style/info_value" />
99        </LinearLayout>
100
101        <!-- Voice Network Type -->
102        <LinearLayout style="@style/RadioInfo_entry_layout">
103            <TextView android:text="@string/radio_info_voice_network_type_label" style="@style/info_label" />
104            <TextView android:id="@+id/voice_network" style="@style/info_value" />
105        </LinearLayout>
106
107        <!-- Signal Strength -->
108        <LinearLayout style="@style/RadioInfo_entry_layout">
109            <TextView android:text="@string/radio_info_signal_strength_label" style="@style/info_label" />
110            <TextView android:id="@+id/dbm" style="@style/info_value" />
111        </LinearLayout>
112
113        <!-- Link Bandwidth -->
114        <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
115            <TextView android:text="@string/radio_info_dl_kbps" style="@style/info_label" />
116            <TextView android:id="@+id/dl_kbps" 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_ul_kbps" style="@style/info_label" />
122            <TextView android:id="@+id/ul_kbps" style="@style/info_value" />
123        </LinearLayout>
124
125
126        <!-- EN-DC Available -->
127        <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
128            <TextView android:id="@+id/endc_available_label" android:text="@string/radio_info_endc_available" style="@style/info_label" />
129            <TextView android:id="@+id/endc_available" style="@style/info_value" />
130        </LinearLayout>
131
132        <!-- DCNR Restricted -->
133        <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
134            <TextView android:id="@+id/dcnr_restricted_label" android:text="@string/radio_info_dcnr_restricted" style="@style/info_label" />
135            <TextView android:id="@+id/dcnr_restricted" style="@style/info_value" />
136        </LinearLayout>
137
138        <!-- NR Available -->
139        <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
140            <TextView android:id="@+id/nr_available_label" android:text="@string/radio_info_nr_available" style="@style/info_label" />
141            <TextView android:id="@+id/nr_available" style="@style/info_value" />
142        </LinearLayout>
143
144        <!-- NR State -->
145        <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
146            <TextView android:id="@+id/nr_state_label" android:text="@string/radio_info_nr_state" style="@style/info_label" />
147            <TextView android:id="@+id/nr_state" style="@style/info_value" />
148        </LinearLayout>
149
150        <!-- NR Frequency -->
151        <LinearLayout style="@style/RadioInfo_entry_layout" android:orientation="horizontal">
152            <TextView android:id="@+id/nr_frequency_label" android:text="@string/radio_info_nr_frequency" style="@style/info_label" />
153            <TextView android:id="@+id/nr_frequency" 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/network_slicing_config_label" android:text="@string/radio_info_network_slicing_config" style="@style/info_label" />
159            <TextView android:id="@+id/network_slicing_config" style="@style/info_value" />
160        </LinearLayout>
161
162        <!-- Physical Channel Config -->
163        <LinearLayout style="@style/RadioInfo_entry_layout">
164            <TextView android:text="@string/radio_info_phy_chan_config" style="@style/info_label" />
165            <TextView android:id="@+id/phy_chan_config" style="@style/info_value" />
166        </LinearLayout>
167
168        <!-- 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
201        <!-- VoLTE provisioned -->
202        <Switch android:id="@+id/volte_provisioned_switch"
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/volte_provisioned_switch_string"/>
208
209        <!-- VT provisioned -->
210        <Switch android:id="@+id/vt_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/vt_provisioned_switch_string"/>
216
217        <!-- Wifi Calling provisioned -->
218        <Switch android:id="@+id/wfc_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/wfc_provisioned_switch_string"/>
224
225        <!-- EAB/Presence provisioned -->
226        <Switch android:id="@+id/eab_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/eab_provisioned_switch_string"/>
232
233        <!-- Horizontal Rule -->
234        <View
235            android:layout_width="fill_parent"
236            android:layout_height="1dip"
237            android:background="?android:attr/listDivider" />
238
239        <!-- Enable/Disable CBRS data -->
240        <Switch android:id="@+id/cbrs_data_switch"
241                android:textSize="14sp"
242                android:layout_marginTop="8dip"
243                android:layout_width="match_parent"
244                android:layout_height="wrap_content"
245                android:text="@string/cbrs_data_switch_string" />
246
247        <!-- Switch between SSSS(single sim single standby) and DSDS(dual sim dual standby). -->
248        <Switch android:id="@+id/dsds_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/dsds_switch_string" />
254
255        <!-- Horizontal Rule -->
256        <View
257            android:layout_width="fill_parent"
258            android:layout_height="1dip"
259            android:background="?android:attr/listDivider" />
260
261        <!-- Ping stats -->
262        <Button android:id="@+id/ping_test"
263                android:textSize="14sp"
264                android:layout_marginTop="8dip"
265                android:layout_width="wrap_content"
266                android:layout_height="wrap_content"
267                android:text="@string/ping_test_label"
268                />
269
270        <LinearLayout style="@style/RadioInfo_entry_layout">
271            <TextView android:text="@string/radio_info_ping_hostname_v4" style="@style/info_label" />
272            <TextView android:id="@+id/pingHostnameV4" style="@style/info_value" />
273        </LinearLayout>
274
275        <LinearLayout style="@style/RadioInfo_entry_layout">
276            <TextView android:text="@string/radio_info_ping_hostname_v6" style="@style/info_label" />
277            <TextView android:id="@+id/pingHostnameV6" style="@style/info_value" />
278        </LinearLayout>
279
280        <LinearLayout style="@style/RadioInfo_entry_layout">
281            <TextView android:text="@string/radio_info_http_client_test" style="@style/info_label" />
282            <TextView android:id="@+id/httpClientTest" style="@style/info_value" />
283        </LinearLayout>
284
285        <!-- Horizontal Rule -->
286        <View
287            android:layout_width="fill_parent"
288            android:layout_height="1dip"
289            android:background="?android:attr/listDivider" />
290
291        <!-- PPP Sent -->
292        <LinearLayout style="@style/RadioInfo_entry_layout">
293            <TextView android:text="@string/radio_info_ppp_sent_label"
294                style="@style/info_label" />
295            <TextView android:id="@+id/sent" style="@style/info_value" />
296        </LinearLayout>
297
298        <!-- PPP Received -->
299        <LinearLayout style="@style/RadioInfo_entry_layout">
300            <TextView android:text="@string/radio_info_ppp_received_label"
301                style="@style/info_label" />
302            <TextView android:id="@+id/received" style="@style/info_value" />
303        </LinearLayout>
304
305        <!-- PPP Sent since last received -->
306        <LinearLayout style="@style/RadioInfo_entry_layout">
307            <TextView android:text="@string/radio_info_ppp_resets_label"
308                style="@style/info_label" />
309            <TextView android:id="@+id/sentSinceReceived" style="@style/info_value" />
310        </LinearLayout>
311
312        <!-- Horizontal Rule -->
313        <View
314            android:layout_width="fill_parent"
315            android:layout_height="1dip"
316            android:background="?android:attr/listDivider" />
317
318        <!-- Call Status -->
319        <LinearLayout style="@style/RadioInfo_entry_layout">
320            <TextView android:text="@string/radio_info_call_status_label" style="@style/info_label" />
321            <TextView android:id="@+id/call" style="@style/info_value" />
322        </LinearLayout>
323
324        <!-- Message Waiting Indicator -->
325        <LinearLayout style="@style/RadioInfo_entry_layout">
326            <TextView android:text="@string/radio_info_message_waiting_label" style="@style/info_label" />
327            <TextView android:id="@+id/mwi" style="@style/info_value" />
328        </LinearLayout>
329
330        <!-- Call Forwarding Indicator -->
331        <LinearLayout style="@style/RadioInfo_entry_layout">
332            <TextView android:text="@string/radio_info_call_redirect_label" style="@style/info_label" />
333            <TextView android:id="@+id/cfi" style="@style/info_value" />
334        </LinearLayout>
335
336        <!-- Horizontal Rule -->
337        <View
338            android:layout_width="fill_parent"
339            android:layout_height="1dip"
340            android:background="?android:attr/listDivider" />
341
342        <!-- CellInfoListRate Selection -->
343
344        <TextView
345                android:layout_width="match_parent"
346                android:layout_height="wrap_content"
347                android:text="@string/radio_info_cell_info_refresh_rate"
348                style="@style/info_label"
349                />
350
351        <Spinner android:id="@+id/cell_info_rate_select"
352                 android:layout_width="match_parent"
353                 android:layout_height="wrap_content"
354                />
355
356        <!-- CellInfo -->
357        <LinearLayout style="@style/RadioInfo_entry_layout">
358            <TextView android:text="@string/radio_info_cellinfo_label"
359                      style="@style/info_label" />
360        </LinearLayout>
361        <LinearLayout style="@style/RadioInfo_entry_layout">
362            <TextView android:id="@+id/cellinfo"
363                      style="@style/info_value"
364                      android:minHeight="300dip"
365                      android:textSize="12sp" />
366        </LinearLayout>
367
368        <!-- Horizontal Rule -->
369        <View
370            android:layout_width="fill_parent"
371            android:layout_height="1dip"
372            android:background="?android:attr/listDivider" />
373
374        <!-- Launch OEM-specific Info/Settings Activity (if any) -->
375        <!-- Carrier Provisioning -->
376        <LinearLayout style="@style/RadioInfo_entry_layout"
377                      android:orientation="horizontal" >
378            <Button android:id="@+id/carrier_provisioning"
379                    android:layout_marginTop="8dip"
380                    android:layout_weight="1"
381                    android:layout_width="0dp"
382                    android:layout_height="wrap_content"
383                    android:text="@string/carrier_provisioning"
384                    android:textSize="14sp"/>
385            <Button android:id="@+id/trigger_carrier_provisioning"
386                    android:layout_marginTop="8dip"
387                    android:layout_weight="1"
388                    android:layout_width="0dp"
389                    android:layout_height="wrap_content"
390                    android:text="@string/trigger_carrier_provisioning"
391                    android:textSize="14sp"/>
392            <Button android:id="@+id/oem_info"
393                    android:layout_marginTop="8dip"
394                    android:layout_weight="1"
395                    android:layout_width="0dp"
396                    android:layout_height="wrap_content"
397                    android:text="@string/oem_radio_info_label"
398                    android:textSize="14sp"/>
399        </LinearLayout>
400
401        <!-- SMSC -->
402        <RelativeLayout android:layout_width="match_parent"
403                        android:layout_height="wrap_content">
404            <TextView android:id="@+id/smsc_label"
405                      android:text="@string/radio_info_smsc_label"
406                      android:layout_alignBaseline="@+id/update_smsc"
407                      style="@style/info_label" />
408            <Button android:id="@+id/refresh_smsc"
409                    android:textSize="14sp"
410                    android:layout_marginTop="8dip"
411                    android:layout_width="wrap_content"
412                    android:layout_height="wrap_content"
413                    android:text="@string/radio_info_smsc_refresh_label"
414                    android:layout_alignParentEnd="true"
415                    />
416            <Button android:id="@+id/update_smsc"
417                    android:textSize="14sp"
418                    android:layout_marginTop="8dip"
419                    android:layout_width="wrap_content"
420                    android:layout_height="wrap_content"
421                    android:text="@string/radio_info_smsc_update_label"
422                    android:layout_toStartOf="@+id/refresh_smsc"
423                    android:layout_alignBaseline="@+id/refresh_smsc"
424                    />
425            <EditText android:id="@+id/smsc"
426                      style="@style/form_value"
427                      android:layout_alignBaseline="@+id/refresh_smsc"
428                      android:layout_toStartOf="@id/update_smsc"
429                      android:layout_toEndOf="@id/smsc_label" />
430        </RelativeLayout>
431
432        <!-- Test setting to ignore bad DNS, useful in lab environments -->
433        <LinearLayout style="@style/RadioInfo_entry_layout">
434            <Button android:id="@+id/dns_check_toggle"
435                    android:textSize="14sp"
436                    android:layout_marginTop="8dip"
437                    android:layout_width="wrap_content"
438                    android:layout_height="wrap_content"
439                    android:text="@string/radio_info_toggle_dns_check_label"
440                    />
441            <TextView android:id="@+id/dnsCheckState" style="@style/info_value" />
442        </LinearLayout>
443
444
445    </LinearLayout>
446</ScrollView>
447