Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 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" |
Edgar Wang | 77de405 | 2020-02-14 17:58:38 +0800 | [diff] [blame] | 20 | android:key="network_and_internet_screen" |
Antony Sargent | 24aa3b3 | 2019-04-04 10:10:31 -0700 | [diff] [blame] | 21 | android:title="@string/network_dashboard_title" |
Antony Sargent | 77df63d | 2019-04-09 16:52:22 -0700 | [diff] [blame] | 22 | settings:initialExpandedChildrenCount="5"> |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 23 | |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 24 | <PreferenceCategory |
| 25 | android:key="multi_network_header" |
Fan Zhang | 1ef08ae | 2019-03-12 11:00:09 -0700 | [diff] [blame] | 26 | android:title="@string/summary_placeholder" |
Antony Sargent | 997cabb | 2019-03-29 15:06:16 -0700 | [diff] [blame] | 27 | android:layout="@layout/preference_category_no_label" |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 28 | settings:allowDividerBelow="true" |
| 29 | android:order="-40" |
| 30 | settings:controller="com.android.settings.network.MultiNetworkHeaderController"/> |
| 31 | |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 32 | <com.android.settings.widget.MasterSwitchPreference |
| 33 | android:fragment="com.android.settings.wifi.WifiSettings" |
Edgar Wang | 7312def | 2020-02-12 16:56:39 +0800 | [diff] [blame] | 34 | android:key="main_toggle_wifi" |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 35 | android:title="@string/wifi_settings" |
| 36 | android:summary="@string/summary_placeholder" |
| 37 | android:icon="@drawable/ic_settings_wireless" |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 38 | android:order="-30" |
| 39 | settings:allowDividerAbove="true"> |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 40 | <intent |
| 41 | android:action="android.settings.WIFI_SETTINGS" |
| 42 | android:targetClass="Settings$WifiSettingsActivity" /> |
| 43 | </com.android.settings.widget.MasterSwitchPreference> |
| 44 | |
Antony Sargent | 59adc31 | 2019-01-28 16:10:58 -0800 | [diff] [blame] | 45 | <com.android.settings.widget.AddPreference |
Antony Sargent | f4ee4ef | 2019-01-11 13:11:57 -0800 | [diff] [blame] | 46 | android:key="mobile_network_list" |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 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" |
Antony Sargent | f4ee4ef | 2019-01-11 13:11:57 -0800 | [diff] [blame] | 53 | settings:useAdminDisabledSummary="true" /> |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 54 | |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 55 | <com.android.settingslib.RestrictedSwitchPreference |
Matthew Fritze | 441a439 | 2019-04-09 15:05:11 -0700 | [diff] [blame] | 56 | android:key="airplane_mode" |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 57 | android:title="@string/airplane_mode" |
| 58 | android:icon="@drawable/ic_airplanemode_active" |
| 59 | android:disableDependentsState="true" |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 60 | android:order="-5" |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 61 | settings:controller="com.android.settings.network.AirplaneModePreferenceController" |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 62 | settings:userRestriction="no_airplane_mode"/> |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 63 | |
| 64 | <com.android.settingslib.RestrictedPreference |
| 65 | android:key="manage_mobile_plan" |
| 66 | android:title="@string/manage_mobile_plan_title" |
| 67 | android:persistent="false" |
| 68 | android:order="0" |
| 69 | settings:userRestriction="no_config_mobile_networks" |
| 70 | settings:useAdminDisabledSummary="true" /> |
| 71 | |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 72 | <com.android.settingslib.RestrictedPreference |
| 73 | android:fragment="com.android.settings.TetherSettings" |
| 74 | android:key="tether_settings" |
| 75 | android:title="@string/tether_settings_title_all" |
| 76 | android:icon="@drawable/ic_wifi_tethering" |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 77 | android:order="5" |
Antony Sargent | 11b7c7f | 2018-12-05 09:30:30 -0800 | [diff] [blame] | 78 | android:summary="@string/summary_placeholder" |
| 79 | settings:keywords="@string/keywords_hotspot_tethering" |
| 80 | settings:userRestriction="no_config_tethering" |
| 81 | settings:useAdminDisabledSummary="true" /> |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 82 | |
Zhen Zhang | 31f1a34 | 2020-02-10 19:19:54 -0800 | [diff] [blame] | 83 | <com.android.settings.widget.MasterSwitchPreference |
| 84 | android:fragment="com.android.settings.AllInOneTetherSettings" |
| 85 | android:key="all_tether_settings" |
| 86 | android:title="@string/tether_settings_title_all" |
| 87 | android:icon="@drawable/ic_wifi_tethering" |
| 88 | android:order="6" |
| 89 | android:summary="@string/summary_placeholder" |
| 90 | settings:controller="com.android.settings.network.AllInOneTetherPreferenceController" |
| 91 | settings:keywords="@string/keywords_hotspot_tethering" |
| 92 | settings:userRestriction="no_config_tethering" |
| 93 | settings:useAdminDisabledSummary="true" /> |
| 94 | |
Antony Sargent | 6f01ecf | 2019-01-15 12:44:36 -0800 | [diff] [blame] | 95 | <com.android.settings.datausage.DataSaverPreference |
Fan Zhang | 1ef08ae | 2019-03-12 11:00:09 -0700 | [diff] [blame] | 96 | android:key="restrict_background_parent_entry" |
Antony Sargent | 6f01ecf | 2019-01-15 12:44:36 -0800 | [diff] [blame] | 97 | android:title="@string/data_saver_title" |
| 98 | android:icon="@drawable/ic_settings_data_usage" |
| 99 | android:order="10" |
| 100 | android:fragment="com.android.settings.datausage.DataSaverSummary"/> |
| 101 | |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 102 | <com.android.settingslib.RestrictedPreference |
| 103 | android:fragment="com.android.settings.vpn2.VpnSettings" |
| 104 | android:key="vpn_settings" |
| 105 | android:title="@string/vpn_settings_title" |
| 106 | android:icon="@drawable/ic_vpn_key" |
Antony Sargent | 6f01ecf | 2019-01-15 12:44:36 -0800 | [diff] [blame] | 107 | android:order="15" |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 108 | android:summary="@string/summary_placeholder" |
| 109 | settings:userRestriction="no_config_vpn" |
| 110 | settings:useAdminDisabledSummary="true" /> |
| 111 | |
| 112 | <com.android.settings.network.PrivateDnsModeDialogPreference |
| 113 | android:key="private_dns_settings" |
| 114 | android:title="@string/select_private_dns_configuration_title" |
Antony Sargent | 6f01ecf | 2019-01-15 12:44:36 -0800 | [diff] [blame] | 115 | android:order="20" |
Antony Sargent | 2cbd720 | 2018-10-29 14:59:15 -0700 | [diff] [blame] | 116 | android:dialogTitle="@string/select_private_dns_configuration_dialog_title" |
| 117 | android:dialogLayout="@layout/private_dns_mode_dialog" |
| 118 | android:positiveButtonText="@string/save" |
| 119 | android:negativeButtonText="@android:string/cancel" /> |
| 120 | |
| 121 | </PreferenceScreen> |