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