1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<PreferenceScreen 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 19 android:key="mobile_network_pref_screen" 20 settings:initialExpandedChildrenCount="4"> 21 22 <Preference 23 android:key="cdma_lte_data_service_key" 24 android:title="@string/cdma_lte_data_service" 25 settings:controller="com.android.settings.network.telephony.DataServiceSetupPreferenceController"> 26 </Preference> 27 28 <SwitchPreference 29 android:key="mobile_data_enable" 30 android:title="@string/mobile_data_settings_title" 31 android:summary="@string/mobile_data_settings_summary" 32 settings:controller="com.android.settings.network.telephony.MobileDataPreferenceController"/> 33 34 <com.android.settingslib.RestrictedSwitchPreference 35 android:key="button_roaming_key" 36 android:title="@string/roaming" 37 android:persistent="false" 38 android:summaryOn="@string/roaming_enable" 39 android:summaryOff="@string/roaming_disable" 40 settings:userRestriction="no_data_roaming" 41 settings:controller="com.android.settings.network.telephony.RoamingPreferenceController"/> 42 43 <Preference 44 android:key="data_usage_summary" 45 android:title="@string/mobile_data_usage_title" 46 settings:controller="com.android.settings.network.telephony.DataUsagePreferenceController"/> 47 48 <SwitchPreference 49 android:key="enhanced_4g_lte" 50 android:title="@string/enhanced_4g_lte_mode_title" 51 android:persistent="false" 52 android:summary="@string/enhanced_4g_lte_mode_summary" 53 settings:controller="com.android.settings.network.telephony.Enhanced4gLtePreferenceController"/> 54 55 <SwitchPreference 56 android:key="contact_discovery_opt_in" 57 android:title="@string/contact_discovery_opt_in_title" 58 android:persistent="false" 59 android:summary="@string/contact_discovery_opt_in_summary" 60 settings:controller="com.android.settings.network.telephony.ContactDiscoveryPreferenceController"/> 61 62 <ListPreference 63 android:key="preferred_network_mode_key" 64 android:title="@string/preferred_network_mode_title" 65 android:summary="@string/preferred_network_mode_summary" 66 android:entries="@array/preferred_network_mode_choices" 67 android:entryValues="@array/preferred_network_mode_values" 68 android:dialogTitle="@string/preferred_network_mode_dialogtitle" 69 settings:controller="com.android.settings.network.telephony.PreferredNetworkModePreferenceController"/> 70 71 <ListPreference 72 android:key="enabled_networks_key" 73 android:title="@string/preferred_network_mode_title" 74 android:summary="@string/preferred_network_mode_summary" 75 android:entries="@array/enabled_networks_choices" 76 android:entryValues="@array/enabled_networks_values" 77 android:dialogTitle="@string/preferred_network_mode_dialogtitle" 78 settings:controller="com.android.settings.network.telephony.EnabledNetworkModePreferenceController"/> 79 80 <Preference 81 android:key="carrier_settings_euicc_key" 82 android:title="@string/carrier_settings_euicc" 83 settings:controller="com.android.settings.network.telephony.EuiccPreferenceController" /> 84 85 <PreferenceCategory 86 android:key="calling_category" 87 android:title="@string/call_category" 88 settings:searchable="false"> 89 90 <PreferenceScreen 91 android:key="wifi_calling_key" 92 android:title="@string/wifi_calling_settings_title" 93 android:summary="@string/wifi_calling_summary" 94 settings:controller="com.android.settings.network.telephony.WifiCallingPreferenceController" > 95 <intent android:action="android.intent.action.MAIN" 96 android:targetPackage="com.android.settings" 97 android:targetClass="com.android.settings.Settings$WifiCallingSettingsActivity"> 98 <extra android:name="show_drawer_menu" android:value="true" /> 99 </intent> 100 </PreferenceScreen> 101 102 <SwitchPreference 103 android:key="video_calling_key" 104 android:title="@string/video_calling_settings_title" 105 android:persistent="true" 106 settings:controller="com.android.settings.network.telephony.VideoCallingPreferenceController" /> 107 108 </PreferenceCategory> 109 110 <com.android.settings.network.telephony.cdma.CdmaListPreference 111 android:key="cdma_system_select_key" 112 android:title="@string/cdma_system_select_title" 113 android:summary="@string/cdma_system_select_summary" 114 android:entries="@array/cdma_system_select_choices" 115 android:entryValues="@array/cdma_system_select_values" 116 android:dialogTitle="@string/cdma_system_select_dialogtitle" 117 settings:controller="com.android.settings.network.telephony.cdma.CdmaSystemSelectPreferenceController"/> 118 119 <com.android.settings.network.telephony.cdma.CdmaListPreference 120 android:key="cdma_subscription_key" 121 android:title="@string/cdma_subscription_title" 122 android:summary="@string/cdma_subscription_summary" 123 android:entries="@array/cdma_subscription_choices" 124 android:entryValues="@array/cdma_subscription_values" 125 android:dialogTitle="@string/cdma_subscription_dialogtitle" 126 settings:controller="com.android.settings.network.telephony.cdma.CdmaSubscriptionPreferenceController"/> 127 128 <PreferenceCategory 129 android:key="network_operators_category_key" 130 android:title="@string/network_operator_category" 131 settings:controller="com.android.settings.widget.PreferenceCategoryController"> 132 133 <SwitchPreference 134 android:key="auto_select_key" 135 android:title="@string/select_automatically" 136 settings:controller="com.android.settings.network.telephony.gsm.AutoSelectPreferenceController"/> 137 138 <Preference 139 android:key="choose_network_key" 140 android:title="@string/choose_network_title" 141 android:fragment="com.android.phone.NetworkSelectSetting" 142 settings:controller="com.android.settings.network.telephony.gsm.OpenNetworkSelectPagePreferenceController"/> 143 </PreferenceCategory> 144 145 <!--We want separate APN setting from reset of settings because we want user to change it with caution--> 146 <com.android.settingslib.RestrictedPreference 147 android:key="telephony_apn_key" 148 android:persistent="false" 149 android:title="@string/mobile_network_apn_title" 150 settings:allowDividerAbove="true" 151 settings:controller="com.android.settings.network.telephony.ApnPreferenceController"/> 152 153 <Preference 154 android:key="carrier_settings_key" 155 android:title="@string/carrier_settings_title" 156 settings:controller="com.android.settings.network.telephony.CarrierPreferenceController"> 157 </Preference> 158 159</PreferenceScreen> 160