1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2018 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17
18<PreferenceScreen
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:settings="http://schemas.android.com/apk/res-auto"
21    android:title="@string/network_and_internet"
22    android:key="@string/psk_network_and_internet">
23    <com.android.car.ui.preference.CarUiTwoActionSwitchPreference
24        android:fragment="com.android.car.settings.wifi.WifiTetherFragment"
25        android:key="@string/pk_wifi_tether_settings_entry"
26        android:title="@string/hotspot_settings_title"
27        android:icon="@drawable/ic_wifi_tethering"
28        settings:controller="com.android.car.settings.wifi.WifiTetherPreferenceController"
29        settings:searchable="false"/>
30    <com.android.car.ui.preference.CarUiTwoActionSwitchPreference
31        android:icon="@drawable/ic_settings_cellular"
32        android:key="@string/pk_mobile_network_settings_entry"
33        android:title="@string/mobile_network_settings"
34        settings:controller="com.android.car.settings.network.MobileNetworkEntryPreferenceController"
35        settings:searchable="false"/>
36    <com.android.car.settings.common.LogicalPreferenceGroup
37        android:key="@string/pk_wifi_entry_group"
38        settings:controller="com.android.car.settings.wifi.WifiEntryGroupPreferenceController">
39        <com.android.car.settings.common.DividerPreference/>
40        <com.android.car.settings.common.ColoredSwitchPreference
41            android:key="@string/pk_wifi_entry_state_switch"
42            android:title="@string/wifi_settings"
43            settings:controller="com.android.car.settings.wifi.WifiStateSwitchPreferenceController"
44            settings:searchable="false"/>
45        <com.android.car.settings.common.LogicalPreferenceGroup
46            android:key="@string/pk_limited_wifi_list"
47            settings:controller="com.android.car.settings.wifi.LimitedWifiEntryListPreferenceController"
48            settings:searchable="false"/>
49        <Preference
50            android:fragment="com.android.car.settings.wifi.WifiSettingsFragment"
51            android:key="@string/pk_wifi_settings_entry"
52            android:title="@string/network_and_internet_join_other_network_title"
53            settings:searchable="false"/>
54        <com.android.car.settings.common.DividerPreference/>
55        <Preference
56            android:fragment="com.android.car.settings.wifi.preferences.WifiPreferencesFragment"
57            android:key="@string/pk_wifi_preferences"
58            android:title="@string/wifi_preferences_title"
59            android:summary="@string/wifi_wakeup"
60            settings:controller="com.android.car.settings.common.DefaultRestrictionsPreferenceController"
61            settings:searchable="false"/>
62    </com.android.car.settings.common.LogicalPreferenceGroup>
63    <com.android.car.settings.common.LogicalPreferenceGroup
64        android:key="@string/pk_network_and_internet_extra_settings"
65        settings:controller="com.android.car.settings.common.ExtraSettingsPreferenceController">
66        <intent>
67            <extra android:name="com.android.settings.category"
68                   android:value="com.android.settings.category.ia.wireless"/>
69        </intent>
70    </com.android.car.settings.common.LogicalPreferenceGroup>
71</PreferenceScreen>
72