1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:custom="http://schemas.android.com/apk/res-auto" 20 android:title="@string/connectivity_network_category_title"> 21 22 <com.android.tv.settings.widget.SwitchWithSoundPreference 23 android:key="wifi_enable" 24 android:persistent="true" 25 android:title="@string/wifi_setting_enable_wifi" /> 26 27 <com.android.tv.settings.connectivity.CollapsibleCategory 28 android:key="wifi_list" 29 android:title="@string/wifi_setting_available_networks"/> 30 <Preference 31 android:key="wifi_collapse" 32 android:title="@string/wifi_setting_see_all" /> 33 34 <PreferenceCategory 35 android:key="wifi_other" 36 android:title="@string/wifi_setting_header_other_options"> 37 <com.android.settingslib.RestrictedPreference 38 android:key="wifi_add_easyconnect" 39 android:title="@string/wifi_setting_other_options_add_network_via_easyconnect" 40 android:icon="@drawable/ic_qr_code" 41 android:fragment="com.android.tv.settings.connectivity.WiFiEasyConnectInfoFragment" 42 custom:userRestriction="no_config_wifi"> 43 </com.android.settingslib.RestrictedPreference> 44 <com.android.settingslib.RestrictedPreference 45 android:key="wifi_add" 46 android:title="@string/wifi_setting_other_options_add_network" 47 custom:userRestriction="no_config_wifi"> 48 <intent 49 android:targetClass="com.android.tv.settings.connectivity.AddWifiNetworkActivity" 50 android:targetPackage="com.android.tv.settings" /> 51 </com.android.settingslib.RestrictedPreference> 52 53 <com.android.tv.settings.widget.CustomContentDescriptionSwitchPreference 54 android:key="wifi_always_scan" 55 android:persistent="true" 56 android:title="@string/wifi_setting_always_scan" 57 android:fragment="com.android.tv.settings.connectivity.WiFiAlwaysScanInfoFragment"/> 58 </PreferenceCategory> 59 60 <PreferenceCategory 61 android:key="ethernet" 62 android:title="@string/connectivity_ethernet"> 63 <Preference 64 android:key="ethernet_status" 65 android:title="@string/not_connected" /> 66 <Preference 67 android:key="ethernet_proxy" 68 android:title="@string/title_wifi_proxy_settings" /> 69 <Preference 70 android:key="ethernet_dhcp" 71 android:title="@string/title_wifi_ip_settings" /> 72 </PreferenceCategory> 73 74 <Preference 75 android:key="network_diagnostics" 76 android:icon="@drawable/ic_network_check" 77 android:title="@string/connectivity_network_diagnostics" /> 78 79</PreferenceScreen> 80