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