1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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    <com.android.settings.widget.MasterSwitchPreference
25        android:fragment="com.android.settings.wifi.WifiSettings"
26        android:key="toggle_wifi"
27        android:title="@string/wifi_settings"
28        android:summary="@string/summary_placeholder"
29        android:icon="@drawable/ic_settings_wireless"
30        android:order="-30">
31        <intent
32            android:action="android.settings.WIFI_SETTINGS"
33            android:targetClass="Settings$WifiSettingsActivity" />
34    </com.android.settings.widget.MasterSwitchPreference>
35
36    <com.android.settingslib.RestrictedPreference
37        android:key="mobile_network_settings"
38        android:title="@string/network_settings_title"
39        android:summary="@string/summary_placeholder"
40        android:icon="@drawable/ic_network_cell"
41        android:order="-15"
42        settings:keywords="@string/keywords_more_mobile_networks"
43        settings:userRestriction="no_config_mobile_networks"
44        settings:useAdminDisabledSummary="true">
45    </com.android.settingslib.RestrictedPreference>
46
47    <com.android.settingslib.RestrictedPreference
48        android:fragment="com.android.settings.TetherSettings"
49        android:key="tether_settings"
50        android:title="@string/tether_settings_title_all"
51        android:icon="@drawable/ic_wifi_tethering"
52        android:order="-5"
53        android:summary="@string/summary_placeholder"
54        settings:keywords="@string/keywords_hotspot_tethering"
55        settings:userRestriction="no_config_tethering"
56        settings:useAdminDisabledSummary="true" />
57
58    <com.android.settingslib.RestrictedPreference
59        android:key="manage_mobile_plan"
60        android:title="@string/manage_mobile_plan_title"
61        android:persistent="false"
62        android:order="0"
63        settings:userRestriction="no_config_mobile_networks"
64        settings:useAdminDisabledSummary="true" />
65
66    <com.android.settingslib.RestrictedSwitchPreference
67        android:key="airplane_mode_old"
68        android:title="@string/airplane_mode"
69        android:icon="@drawable/ic_airplanemode_active"
70        android:disableDependentsState="true"
71        android:order="5"
72        settings:controller="com.android.settings.network.AirplaneModePreferenceController"
73        settings:platform_slice="true"
74        settings:userRestriction="no_airplane_mode"/>
75
76    <Preference
77        android:fragment="com.android.settings.ProxySelector"
78        android:key="proxy_settings"
79        android:title="@string/proxy_settings_title" />
80
81    <com.android.settingslib.RestrictedPreference
82        android:fragment="com.android.settings.vpn2.VpnSettings"
83        android:key="vpn_settings"
84        android:title="@string/vpn_settings_title"
85        android:icon="@drawable/ic_vpn_key"
86        android:order="10"
87        android:summary="@string/summary_placeholder"
88        settings:userRestriction="no_config_vpn"
89        settings:useAdminDisabledSummary="true" />
90
91    <com.android.settings.network.PrivateDnsModeDialogPreference
92        android:key="private_dns_settings"
93        android:title="@string/select_private_dns_configuration_title"
94        android:order="15"
95        android:dialogTitle="@string/select_private_dns_configuration_dialog_title"
96        android:dialogLayout="@layout/private_dns_mode_dialog"
97        android:positiveButtonText="@string/save"
98        android:negativeButtonText="@android:string/cancel" />
99
100</PreferenceScreen>
101