Home | History | Annotate | Download | only in layout
      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         <!-- Network Identifier -->
     41         <LinearLayout style="@style/entry_layout">
     42             <TextView android:text="@string/radio_info_current_network_label" style="@style/info_label" />
     43             <TextView android:id="@+id/operator" style="@style/info_value" />
     44         </LinearLayout>
     45 
     46         <!-- Signal Strength -->
     47         <LinearLayout style="@style/entry_layout">
     48             <TextView android:text="@string/radio_info_signal_strength_label" style="@style/info_label" />
     49             <TextView android:id="@+id/dbm" style="@style/info_value" />
     50         </LinearLayout>
     51 
     52         <!-- Voice Service Status -->
     53         <LinearLayout style="@style/entry_layout">
     54             <TextView android:text="@string/radio_info_gsm_service_label" style="@style/info_label" />
     55             <TextView android:id="@+id/gsm" 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         <!-- Network Type -->
     65         <LinearLayout style="@style/entry_layout">
     66             <TextView android:text="@string/radio_info_voice_network_type_label" style="@style/info_label" />
     67             <TextView android:id="@+id/voice_network" style="@style/info_value" />
     68         </LinearLayout>
     69 
     70         <!-- Network Type -->
     71         <LinearLayout style="@style/entry_layout">
     72             <TextView android:text="@string/radio_info_data_network_type_label" style="@style/info_label" />
     73             <TextView android:id="@+id/data_network" style="@style/info_value" />
     74         </LinearLayout>
     75 
     76         <!-- Call Status -->
     77         <LinearLayout style="@style/entry_layout">
     78             <TextView android:text="@string/radio_info_call_status_label" style="@style/info_label" />
     79             <TextView android:id="@+id/call" style="@style/info_value" />
     80         </LinearLayout>
     81 
     82         <!-- Roaming -->
     83         <LinearLayout style="@style/entry_layout">
     84             <TextView android:text="@string/radio_info_roaming_label" style="@style/info_label" />
     85             <TextView android:id="@+id/roaming" style="@style/info_value" />
     86         </LinearLayout>
     87 
     88         <!-- Preferred Network Type -->
     89         <TextView
     90                 android:layout_width="match_parent"
     91                 android:layout_height="wrap_content"
     92                 android:text="@string/radio_info_set_perferred_label"
     93                 style="@style/info_label"
     94                 />
     95 
     96         <Spinner android:id="@+id/preferredNetworkType"
     97                  android:layout_width="match_parent"
     98                  android:layout_height="wrap_content"
     99                 />
    100 
    101         <!-- Horizontal Rule -->
    102         <View
    103             android:layout_width="fill_parent"
    104             android:layout_height="1dip"
    105             android:background="#000000" />
    106 
    107         <!-- Ping stats -->
    108         <Button android:id="@+id/ping_test"
    109                 android:textSize="14sp"
    110                 android:layout_marginTop="8dip"
    111                 android:layout_width="wrap_content"
    112                 android:layout_height="wrap_content"
    113                 android:text="@string/ping_test_label"
    114                 />
    115  
    116         <LinearLayout style="@style/entry_layout">
    117             <TextView android:text="@string/radio_info_ping_hostname_v4" style="@style/info_label" />
    118             <TextView android:id="@+id/pingHostnameV4" style="@style/info_value" />
    119         </LinearLayout>
    120 
    121         <LinearLayout style="@style/entry_layout">
    122             <TextView android:text="@string/radio_info_ping_hostname_v6" style="@style/info_label" />
    123             <TextView android:id="@+id/pingHostnameV6" style="@style/info_value" />
    124         </LinearLayout>
    125 
    126         <LinearLayout style="@style/entry_layout">
    127             <TextView android:text="@string/radio_info_http_client_test" style="@style/info_label" />
    128             <TextView android:id="@+id/httpClientTest" style="@style/info_value" />
    129         </LinearLayout>
    130 
    131         <!-- Horizontal Rule -->
    132         <View
    133             android:layout_width="fill_parent"
    134             android:layout_height="1dip"
    135             android:background="#000000" />
    136 
    137         <!-- DcRtInfo - DataConnectionRealTimeInfo -->
    138         <LinearLayout style="@style/entry_layout">
    139             <TextView android:text="@string/radio_info_dcrtinfo_label"
    140                       style="@style/info_label" />
    141             <TextView android:id="@+id/dcrtinfo" style="@style/info_value" />
    142         </LinearLayout>
    143 
    144         <!-- Message Waiting Indicator -->
    145         <LinearLayout style="@style/entry_layout">
    146             <TextView android:text="@string/radio_info_message_waiting_label" style="@style/info_label" />
    147             <TextView android:id="@+id/mwi" style="@style/info_value" />
    148         </LinearLayout>
    149 
    150         <!-- Call Forwarding Indicator -->
    151         <LinearLayout style="@style/entry_layout">
    152             <TextView android:text="@string/radio_info_call_redirect_label" style="@style/info_label" />
    153             <TextView android:id="@+id/cfi" style="@style/info_value" />
    154         </LinearLayout>
    155 
    156         <!-- PPP Sent -->
    157         <LinearLayout style="@style/entry_layout">
    158             <TextView android:text="@string/radio_info_ppp_sent_label"
    159                 style="@style/info_label" />
    160             <TextView android:id="@+id/sent" style="@style/info_value" />
    161         </LinearLayout>
    162 
    163         <!-- PPP Received -->
    164         <LinearLayout style="@style/entry_layout">
    165             <TextView android:text="@string/radio_info_ppp_received_label"
    166                 style="@style/info_label" />
    167             <TextView android:id="@+id/received" style="@style/info_value" />
    168         </LinearLayout>
    169 
    170         <!-- PPP Sent since last received -->
    171         <LinearLayout style="@style/entry_layout">
    172             <TextView android:text="@string/radio_info_ppp_resets_label"
    173                 style="@style/info_label" />
    174             <TextView android:id="@+id/sentSinceReceived" style="@style/info_value" />
    175         </LinearLayout>
    176 
    177         <!-- Radio Power -->
    178         <Switch android:id="@+id/radio_power"
    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/radio_info_radio_power"/>
    184 
    185         <!-- VoLTE provisioned -->
    186         <Switch android:id="@+id/volte_provisioned_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/volte_provisioned_switch_string"/>
    192 
    193         <!-- VT provisioned -->
    194         <Switch android:id="@+id/vt_provisioned_switch"
    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/vt_provisioned_switch_string"/>
    200 
    201         <!-- Wifi Calling provisioned -->
    202         <Switch android:id="@+id/wfc_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/wfc_provisioned_switch_string"/>
    208 
    209         <!-- SMSC -->
    210         <RelativeLayout android:layout_width="match_parent"
    211                         android:layout_height="wrap_content">
    212             <TextView android:id="@+id/smsc_label"
    213                       android:text="@string/radio_info_smsc_label"
    214                       android:layout_alignBaseline="@+id/update_smsc"
    215                       style="@style/info_label" />
    216             <Button android:id="@+id/refresh_smsc"
    217                     android:textSize="14sp"
    218                     android:layout_marginTop="8dip"
    219                     android:layout_width="wrap_content"
    220                     android:layout_height="wrap_content"
    221                     android:text="@string/radio_info_smsc_refresh_label"
    222                     android:layout_alignParentEnd="true"
    223                     />
    224             <Button android:id="@+id/update_smsc"
    225                     android:textSize="14sp"
    226                     android:layout_marginTop="8dip"
    227                     android:layout_width="wrap_content"
    228                     android:layout_height="wrap_content"
    229                     android:text="@string/radio_info_smsc_update_label"
    230                     android:layout_toStartOf="@+id/refresh_smsc"
    231                     android:layout_alignBaseline="@+id/refresh_smsc"
    232                     />
    233             <EditText android:id="@+id/smsc"
    234                       style="@style/form_value"
    235                       android:layout_alignBaseline="@+id/refresh_smsc"
    236                       android:layout_toStartOf="@id/update_smsc"
    237                       android:layout_toEndOf="@id/smsc_label" />
    238         </RelativeLayout>
    239 
    240         <!-- Test setting to ignore bad DNS, useful in lab environments -->
    241         <LinearLayout style="@style/entry_layout">
    242             <Button android:id="@+id/dns_check_toggle"
    243                     android:textSize="14sp"
    244                     android:layout_marginTop="8dip"
    245                     android:layout_width="wrap_content"
    246                     android:layout_height="wrap_content"
    247                     android:text="@string/radio_info_toggle_dns_check_label"
    248                     />
    249             <TextView android:id="@+id/dnsCheckState" style="@style/info_value" />
    250         </LinearLayout>
    251 
    252         <!-- Launch OEM-specific Info/Settings Activity (if any) -->
    253         <Button android:id="@+id/oem_info"
    254                 android:textSize="14sp"
    255                 android:layout_marginTop="8dip"
    256                 android:layout_width="wrap_content"
    257                 android:layout_height="wrap_content"
    258                 android:text="@string/oem_radio_info_label"
    259                 />
    260 
    261         <!-- Horizontal Rule -->
    262         <View
    263             android:layout_width="fill_parent"
    264             android:layout_height="1dip"
    265             android:background="#000000" />
    266 
    267         <!-- CellInfoListRate Selection -->
    268         <TextView
    269                 android:layout_width="match_parent"
    270                 android:layout_height="wrap_content"
    271                 android:text="@string/radio_info_cell_info_refresh_rate"
    272                 style="@style/info_label"
    273                 />
    274 
    275         <Spinner android:id="@+id/cell_info_rate_select"
    276                  android:layout_width="match_parent"
    277                  android:layout_height="wrap_content"
    278                 />
    279 
    280         <!-- Location -->
    281         <LinearLayout style="@style/entry_layout">
    282             <TextView android:text="@string/radio_info_signal_location_label" style="@style/info_label" />
    283             <TextView android:id="@+id/location" style="@style/info_value" />
    284         </LinearLayout>
    285 
    286         <!-- Neighboring Cids -->
    287         <LinearLayout style="@style/entry_layout">
    288             <TextView android:text="@string/radio_info_neighboring_location_label"
    289                       style="@style/info_label" />
    290             <TextView android:id="@+id/neighboring" style="@style/info_value" />
    291         </LinearLayout>
    292 
    293         <!-- CellInfo -->
    294         <LinearLayout style="@style/entry_layout">
    295             <TextView android:text="@string/radio_info_cellinfo_label"
    296                       style="@style/info_label" />
    297         </LinearLayout>
    298         <LinearLayout style="@style/entry_layout">
    299             <TextView android:id="@+id/cellinfo"
    300                       style="@style/info_value"
    301                       android:minHeight="300dip"
    302                       android:textSize="12sp" />
    303         </LinearLayout>
    304 
    305     </LinearLayout>
    306 </ScrollView>
    307