1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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="8">
21
22    <com.android.settingslib.widget.LayoutPreference
23        android:key="use_sim_switch"
24        android:layout="@layout/styled_switch_bar"
25        settings:controller="com.android.settings.network.telephony.MobileNetworkSwitchController"/>
26
27    <PreferenceCategory
28        android:key="enabled_state_container"
29        android:title="@string/summary_placeholder"
30        settings:controller="com.android.settings.network.telephony.DisabledSubscriptionController"
31        android:layout="@layout/preference_category_no_label">
32
33        <com.android.settings.datausage.DataUsageSummaryPreference
34            android:key="status_header"
35            android:visibility="gone"
36            android:selectable="false" />
37
38        <ListPreference
39            android:key="calls_preference"
40            android:title="@string/calls_preference"
41            settings:controller="com.android.settings.network.telephony.CallsDefaultSubscriptionController"
42            settings:allowDividerAbove="true"/>
43
44        <ListPreference
45            android:key="sms_preference"
46            android:title="@string/sms_preference"
47            settings:controller="com.android.settings.network.telephony.SmsDefaultSubscriptionController"/>
48
49        <Preference
50            android:key="cdma_lte_data_service_key"
51            android:title="@string/cdma_lte_data_service"
52            settings:controller="com.android.settings.network.telephony.DataServiceSetupPreferenceController"
53            settings:allowDividerAbove="true"
54            settings:allowDividerBelow="false"/>
55
56        <SwitchPreference
57            android:key="mobile_data_enable"
58            android:title="@string/mobile_data_settings_title"
59            android:summary="@string/mobile_data_settings_summary"
60            settings:controller="com.android.settings.network.telephony.MobileDataPreferenceController"
61            settings:allowDividerAbove="true"/>
62
63        <com.android.settingslib.RestrictedSwitchPreference
64            android:key="button_roaming_key"
65            android:title="@string/roaming"
66            android:persistent="false"
67            android:summaryOn="@string/roaming_enable"
68            android:summaryOff="@string/roaming_disable"
69            settings:userRestriction="no_data_roaming"
70            settings:controller="com.android.settings.network.telephony.RoamingPreferenceController"/>
71
72        <Preference
73            android:key="data_usage_summary"
74            android:title="@string/mobile_data_usage_title"
75            settings:controller="com.android.settings.network.telephony.DataUsagePreferenceController"/>
76
77        <com.android.settings.datausage.BillingCyclePreference
78            android:key="billing_preference"
79            android:title="@string/billing_cycle"
80            settings:controller="com.android.settings.datausage.BillingCyclePreferenceController"/>
81
82        <SwitchPreference
83            android:key="mms_message"
84            android:title="@string/mms_message_title"
85            android:summary="@string/mms_message_summary"
86            settings:controller="com.android.settings.network.telephony.MmsMessagePreferenceController"/>
87
88        <SwitchPreference
89            android:key="data_during_calls"
90            android:title="@string/data_during_calls_title"
91            android:summary="@string/data_during_calls_summary"
92            settings:controller="com.android.settings.network.telephony.DataDuringCallsPreferenceController"/>
93
94        <SwitchPreference
95            android:key="enhanced_4g_lte"
96            android:title="@string/enhanced_4g_lte_mode_title"
97            android:persistent="false"
98            android:summary="@string/enhanced_4g_lte_mode_summary"
99            settings:controller="com.android.settings.network.telephony.Enhanced4gLtePreferenceController"/>
100
101        <SwitchPreference
102            android:key="contact_discovery_opt_in"
103            android:title="@string/contact_discovery_opt_in_title"
104            android:persistent="false"
105            android:summary="@string/contact_discovery_opt_in_summary"
106            settings:controller="com.android.settings.network.telephony.ContactDiscoveryPreferenceController"/>
107
108        <ListPreference
109            android:key="preferred_network_mode_key"
110            android:title="@string/preferred_network_mode_title"
111            android:summary="@string/preferred_network_mode_summary"
112            android:entries="@array/preferred_network_mode_choices"
113            android:entryValues="@array/preferred_network_mode_values"
114            android:dialogTitle="@string/preferred_network_mode_dialogtitle"
115            settings:controller="com.android.settings.network.telephony.PreferredNetworkModePreferenceController"/>
116
117        <ListPreference
118            android:key="enabled_networks_key"
119            android:title="@string/preferred_network_mode_title"
120            android:summary="@string/preferred_network_mode_summary"
121            android:entries="@array/enabled_networks_choices"
122            android:entryValues="@array/enabled_networks_values"
123            android:dialogTitle="@string/preferred_network_mode_dialogtitle"
124            settings:controller="com.android.settings.network.telephony.EnabledNetworkModePreferenceController"/>
125
126        <Preference
127            android:key="carrier_settings_version_key"
128            android:title="@string/carrier_settings_version"
129            settings:controller="com.android.settings.network.telephony.CarrierSettingsVersionPreferenceController"
130            settings:enableCopying="true"/>
131
132        <PreferenceCategory
133            android:key="calling_category"
134            android:title="@string/call_category"
135            settings:controller="com.android.settings.network.telephony.CallingPreferenceCategoryController">
136
137            <PreferenceScreen
138                android:key="wifi_calling_key"
139                android:title="@string/wifi_calling_settings_title"
140                android:summary="@string/wifi_calling_summary"
141                settings:controller="com.android.settings.network.telephony.WifiCallingPreferenceController">
142                <intent android:action="android.intent.action.MAIN"
143                        android:targetPackage="com.android.settings"
144                        android:targetClass="com.android.settings.Settings$WifiCallingSettingsActivity">
145                    <extra android:name="show_drawer_menu" android:value="true"/>
146                </intent>
147            </PreferenceScreen>
148
149            <SwitchPreference
150                android:key="video_calling_key"
151                android:title="@string/video_calling_settings_title"
152                android:persistent="true"
153                settings:controller="com.android.settings.network.telephony.VideoCallingPreferenceController"/>
154
155        </PreferenceCategory>
156
157        <com.android.settings.network.telephony.cdma.CdmaListPreference
158            android:key="cdma_system_select_key"
159            android:title="@string/cdma_system_select_title"
160            android:summary="@string/cdma_system_select_summary"
161            android:entries="@array/cdma_system_select_choices"
162            android:entryValues="@array/cdma_system_select_values"
163            android:dialogTitle="@string/cdma_system_select_dialogtitle"
164            settings:controller="com.android.settings.network.telephony.cdma.CdmaSystemSelectPreferenceController"/>
165
166        <com.android.settings.network.telephony.cdma.CdmaListPreference
167            android:key="cdma_subscription_key"
168            android:title="@string/cdma_subscription_title"
169            android:summary="@string/cdma_subscription_summary"
170            android:entries="@array/cdma_subscription_choices"
171            android:entryValues="@array/cdma_subscription_values"
172            android:dialogTitle="@string/cdma_subscription_dialogtitle"
173            settings:controller="com.android.settings.network.telephony.cdma.CdmaSubscriptionPreferenceController"/>
174
175        <PreferenceCategory
176            android:key="network_operators_category_key"
177            android:title="@string/network_operator_category"
178            settings:controller="com.android.settings.widget.PreferenceCategoryController">
179
180            <SwitchPreference
181                android:key="auto_select_key"
182                android:title="@string/select_automatically"
183                settings:controller="com.android.settings.network.telephony.gsm.AutoSelectPreferenceController"/>
184
185            <Preference
186                android:key="choose_network_key"
187                android:title="@string/choose_network_title"
188                android:fragment="com.android.phone.NetworkSelectSetting"
189                settings:controller="com.android.settings.network.telephony.gsm.OpenNetworkSelectPagePreferenceController"/>
190        </PreferenceCategory>
191
192        <!--We want separate APN setting from reset of settings because we want user to change it with caution-->
193        <com.android.settingslib.RestrictedPreference
194            android:key="telephony_apn_key"
195            android:persistent="false"
196            android:title="@string/mobile_network_apn_title"
197            settings:allowDividerAbove="true"
198            settings:controller="com.android.settings.network.telephony.ApnPreferenceController"/>
199
200        <Preference
201            android:key="carrier_settings_key"
202            android:title="@string/carrier_settings_title"
203            settings:controller="com.android.settings.network.telephony.CarrierPreferenceController">
204        </Preference>
205
206    </PreferenceCategory>
207
208    <Preference
209        android:key="erase_sim"
210        android:persistent="false"
211        android:title="@string/mobile_network_erase_sim"
212        settings:controller="com.android.settings.network.telephony.DeleteSimProfilePreferenceController" />
213
214    <PreferenceCategory
215        android:key="footer_container"
216        android:title="@string/summary_placeholder"
217        android:layout="@layout/preference_category_no_label"
218        settings:controller="com.android.settings.network.telephony.DisableSimFooterPreferenceController">
219        <com.android.settingslib.widget.FooterPreference
220            android:key="disable_sim_explanation"
221            android:title="@string/mobile_network_disable_sim_explanation" />
222    </PreferenceCategory>
223
224</PreferenceScreen>
225