1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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 17<PreferenceScreen 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:key="network_and_internet_screen" 21 android:title="@string/network_dashboard_title" 22 settings:initialExpandedChildrenCount="5"> 23 24 <PreferenceCategory 25 android:key="multi_network_header" 26 android:title="@string/summary_placeholder" 27 android:layout="@layout/preference_category_no_label" 28 settings:allowDividerBelow="true" 29 android:order="-40" 30 settings:controller="com.android.settings.network.MultiNetworkHeaderController"/> 31 32 <com.android.settings.widget.MasterSwitchPreference 33 android:fragment="com.android.settings.wifi.WifiSettings" 34 android:key="toggle_wifi" 35 android:title="@string/wifi_settings" 36 android:summary="@string/summary_placeholder" 37 android:icon="@drawable/ic_settings_wireless" 38 android:order="-30" 39 settings:allowDividerAbove="true"> 40 <intent 41 android:action="android.settings.WIFI_SETTINGS" 42 android:targetClass="Settings$WifiSettingsActivity" /> 43 </com.android.settings.widget.MasterSwitchPreference> 44 45 <com.android.settings.widget.AddPreference 46 android:key="mobile_network_list" 47 android:title="@string/network_settings_title" 48 android:summary="@string/summary_placeholder" 49 android:icon="@drawable/ic_network_cell" 50 android:order="-15" 51 settings:keywords="@string/keywords_more_mobile_networks" 52 settings:userRestriction="no_config_mobile_networks" 53 settings:useAdminDisabledSummary="true" /> 54 55 <com.android.settingslib.RestrictedSwitchPreference 56 android:key="airplane_mode" 57 android:title="@string/airplane_mode" 58 android:icon="@drawable/ic_airplanemode_active" 59 android:disableDependentsState="true" 60 android:order="-5" 61 settings:controller="com.android.settings.network.AirplaneModePreferenceController" 62 settings:platform_slice="true" 63 settings:userRestriction="no_airplane_mode"/> 64 65 <com.android.settingslib.RestrictedPreference 66 android:key="manage_mobile_plan" 67 android:title="@string/manage_mobile_plan_title" 68 android:persistent="false" 69 android:order="0" 70 settings:userRestriction="no_config_mobile_networks" 71 settings:useAdminDisabledSummary="true" /> 72 73 <com.android.settingslib.RestrictedPreference 74 android:fragment="com.android.settings.TetherSettings" 75 android:key="tether_settings" 76 android:title="@string/tether_settings_title_all" 77 android:icon="@drawable/ic_wifi_tethering" 78 android:order="5" 79 android:summary="@string/summary_placeholder" 80 settings:keywords="@string/keywords_hotspot_tethering" 81 settings:userRestriction="no_config_tethering" 82 settings:useAdminDisabledSummary="true" /> 83 84 <com.android.settings.datausage.DataSaverPreference 85 android:key="restrict_background_parent_entry" 86 android:title="@string/data_saver_title" 87 android:icon="@drawable/ic_settings_data_usage" 88 android:order="10" 89 android:fragment="com.android.settings.datausage.DataSaverSummary"/> 90 91 <com.android.settingslib.RestrictedPreference 92 android:fragment="com.android.settings.vpn2.VpnSettings" 93 android:key="vpn_settings" 94 android:title="@string/vpn_settings_title" 95 android:icon="@drawable/ic_vpn_key" 96 android:order="15" 97 android:summary="@string/summary_placeholder" 98 settings:userRestriction="no_config_vpn" 99 settings:useAdminDisabledSummary="true" /> 100 101 <com.android.settings.network.PrivateDnsModeDialogPreference 102 android:key="private_dns_settings" 103 android:title="@string/select_private_dns_configuration_title" 104 android:order="20" 105 android:dialogTitle="@string/select_private_dns_configuration_dialog_title" 106 android:dialogLayout="@layout/private_dns_mode_dialog" 107 android:positiveButtonText="@string/save" 108 android:negativeButtonText="@android:string/cancel" /> 109 110</PreferenceScreen> 111