• 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_provider_and_internet_screen"
21    android:title="@string/network_dashboard_title">
22
23    <com.android.settingslib.RestrictedPreference
24        android:fragment="com.android.settings.network.NetworkProviderSettings"
25        android:key="internet_settings"
26        android:title="@string/provider_internet_settings"
27        android:summary="@string/summary_placeholder"
28        android:icon="@drawable/ic_settings_wireless"
29        android:order="-30"
30        settings:allowDividerAbove="true"
31        settings:keywords="@string/keywords_internet"
32        settings:useAdminDisabledSummary="true" />
33
34    <com.android.settingslib.RestrictedPreference
35        android:key="calls_and_sms"
36        android:title="@string/calls_and_sms"
37        android:icon="@drawable/ic_calls_sms"
38        android:order="-20"
39        android:summary="@string/summary_placeholder"
40        settings:allowDividerBelow="true"
41        settings:keywords="@string/calls_and_sms"
42        settings:useAdminDisabledSummary="true" />
43
44    <com.android.settings.widget.AddPreference
45        android:key="mobile_network_list"
46        android:title="@string/provider_network_settings_title"
47        android:summary="@string/summary_placeholder"
48        android:icon="@drawable/ic_sim_card"
49        android:order="-15"
50        settings:keywords="@string/keywords_more_mobile_networks"
51        settings:userRestriction="no_config_mobile_networks"
52        settings:allowDividerAbove="true"
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: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.settings.vpn2.VpnInfoPreference
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