• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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:title="@string/provider_internet_settings"
21        settings:keywords="@string/keywords_wifi">
22
23    <!-- Resetting your internet description -->
24    <com.android.settingslib.widget.LayoutPreference
25        android:key="resetting_your_internet"
26        android:title="@string/resetting_internet_text"
27        android:selectable="false"
28        android:layout="@layout/resetting_internet"
29        settings:allowDividerBelow="true"/>
30
31    <!-- Airplane mode message -->
32    <com.android.settingslib.widget.LayoutPreference
33        android:key="airplane_mode_message"
34        android:title="@string/condition_airplane_title"
35        android:selectable="false"
36        android:layout="@layout/airplane_mode_message_preference"
37        settings:allowDividerBelow="true"/>
38
39    <com.android.settingslib.RestrictedSwitchPreference
40        android:key="main_toggle_ethernet"
41        android:title="@string/ethernet"
42        settings:restrictedSwitchSummary="@string/not_allowed_by_ent"
43        settings:allowDividerAbove="true"/>
44
45    <PreferenceCategory
46        android:key="ethernet_interfaces"
47        android:layout="@layout/preference_category_no_label"/>
48
49    <Preference
50        android:key="connected_ethernet_network"
51        android:title="@string/ethernet"
52        android:summary="@string/to_switch_networks_disconnect_ethernet"
53        android:icon="@drawable/ic_settings_ethernet"/>
54
55    <PreferenceCategory
56        android:key="provider_model_mobile_network"
57        android:title="@string/summary_placeholder"
58        android:layout="@layout/preference_category_no_label"
59        settings:isPreferenceVisible="@bool/config_show_sim_info"
60        settings:controller="com.android.settings.network.NetworkMobileProviderController"/>
61
62    <com.android.settingslib.RestrictedSwitchPreference
63        android:key="main_toggle_wifi"
64        android:title="@string/wifi"
65        settings:keywords="@string/keywords_wifi"
66        settings:restrictedSwitchSummary="@string/not_allowed_by_ent"
67        settings:allowDividerAbove="true"/>
68
69    <PreferenceCategory
70        android:key="connected_access_point"
71        android:layout="@layout/preference_category_no_label"/>
72
73    <PreferenceCategory
74        android:key="first_access_points"
75        android:layout="@layout/preference_category_no_label"/>
76
77    <PreferenceCategory
78        android:key="access_points"
79        android:layout="@layout/preference_category_no_label">
80
81        <com.android.settings.wifi.AddWifiNetworkPreference
82            android:key="add_wifi_network"
83            android:title="@string/wifi_add_network"
84            android:icon="@drawable/ic_add_24dp"/>
85    </PreferenceCategory>
86
87    <Preference
88        android:key="configure_network_settings"
89        android:title="@string/network_and_internet_preferences_title"
90        settings:allowDividerAbove="true"
91        android:fragment="com.android.settings.wifi.ConfigureWifiSettings"/>
92
93    <Preference
94        android:key="saved_networks"
95        android:title="@string/wifi_saved_access_points_label"
96        android:fragment="com.android.settings.wifi.savedaccesspoints2.SavedAccessPointsWifiSettings2"/>
97
98    <com.android.settings.datausage.DataUsagePreference
99        android:key="non_carrier_data_usage"
100        android:title="@string/non_carrier_data_usage"/>
101
102    <com.android.settingslib.widget.FooterPreference
103        android:key="wifi_status_message_footer"
104        android:selectable="false"
105        settings:allowDividerAbove="false"
106        settings:searchable="false"/>
107</PreferenceScreen>
108