• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
23    <PreferenceCategory
24        android:key="multi_network_header"
25        android:title="@string/summary_placeholder"
26        android:layout="@layout/preference_category_no_label"
27        settings:allowDividerBelow="true"
28        android:order="-40"
29        settings:controller="com.android.settings.network.MultiNetworkHeaderController"/>
30
31    <com.android.settings.widget.PrimarySwitchPreference
32        android:fragment="com.android.settings.wifi.WifiSettings"
33        android:key="main_toggle_wifi"
34        android:title="@string/wifi_settings"
35        android:summary="@string/summary_placeholder"
36        android:icon="@drawable/ic_settings_wireless"
37        android:order="-30"
38        settings:allowDividerAbove="true">
39        <intent
40            android:action="android.settings.WIFI_SETTINGS"
41            android:targetClass="Settings$WifiSettingsActivity" />
42    </com.android.settings.widget.PrimarySwitchPreference>
43
44    <com.android.settings.widget.AddPreference
45        android:key="mobile_network_list"
46        android:title="@string/network_settings_title"
47        android:summary="@string/summary_placeholder"
48        android:icon="@drawable/ic_network_cell"
49        android:order="-15"
50        settings:keywords="@string/keywords_more_mobile_networks"
51        settings:userRestriction="no_config_mobile_networks"
52        settings:useAdminDisabledSummary="true" />
53
54    <com.android.settingslib.RestrictedSwitchPreference
55        android:key="airplane_mode"
56        android:title="@string/airplane_mode"
57        android:icon="@drawable/ic_airplanemode_active"
58        android:disableDependentsState="true"
59        android:order="-5"
60        settings:controller="com.android.settings.network.AirplaneModePreferenceController"
61        settings:userRestriction="no_airplane_mode"/>
62
63    <com.android.settingslib.RestrictedPreference
64        android:key="manage_mobile_plan"
65        android:title="@string/manage_mobile_plan_title"
66        android:persistent="false"
67        android:order="19"
68        settings:userRestriction="no_config_mobile_networks"
69        settings:useAdminDisabledSummary="true" />
70
71    <com.android.settingslib.RestrictedPreference
72        android:fragment="com.android.settings.TetherSettings"
73        android:key="tether_settings"
74        android:title="@string/tether_settings_title_all"
75        android:icon="@drawable/ic_wifi_tethering"
76        android:order="5"
77        android:summary="@string/summary_placeholder"
78        settings:keywords="@string/keywords_hotspot_tethering"
79        settings:userRestriction="no_config_tethering"
80        settings:useAdminDisabledSummary="true" />
81
82    <com.android.settings.widget.PrimarySwitchPreference
83        android:fragment="com.android.settings.AllInOneTetherSettings"
84        android:key="all_tether_settings"
85        android:title="@string/tether_settings_title_all"
86        android:icon="@drawable/ic_wifi_tethering"
87        android:order="6"
88        android:summary="@string/summary_placeholder"
89        settings:controller="com.android.settings.network.AllInOneTetherPreferenceController"
90        settings:keywords="@string/keywords_hotspot_tethering"
91        settings:userRestriction="no_config_tethering"
92        settings:useAdminDisabledSummary="true" />
93
94    <com.android.settings.datausage.DataSaverPreference
95        android:key="restrict_background_parent_entry"
96        android:title="@string/data_saver_title"
97        android:icon="@drawable/ic_settings_data_usage"
98        android:order="10"
99        android:fragment="com.android.settings.datausage.DataSaverSummary"/>
100
101    <com.android.settingslib.RestrictedPreference
102        android:fragment="com.android.settings.vpn2.VpnSettings"
103        android:key="vpn_settings"
104        android:title="@string/vpn_settings_title"
105        android:icon="@drawable/ic_vpn_key"
106        android:order="15"
107        android:summary="@string/summary_placeholder"
108        settings:userRestriction="no_config_vpn"
109        settings:useAdminDisabledSummary="true" />
110
111    <com.android.settings.network.PrivateDnsModeDialogPreference
112        android:key="private_dns_settings"
113        android:title="@string/select_private_dns_configuration_title"
114        android:order="20"
115        android:dialogTitle="@string/select_private_dns_configuration_dialog_title"
116        android:dialogLayout="@layout/private_dns_mode_dialog"
117        android:positiveButtonText="@string/save"
118        android:negativeButtonText="@android:string/cancel" />
119
120    <Preference
121        android:fragment="com.android.settings.network.AdaptiveConnectivitySettings"
122        android:key="adaptive_connectivity"
123        android:title="@string/adaptive_connectivity_title"
124        android:summary="@string/summary_placeholder"
125        android:order="25"
126        settings:controller="com.android.settings.network.AdaptiveConnectivityPreferenceController"/>
127</PreferenceScreen>
128