• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:settings="http://schemas.android.com/apk/res-auto"
21    android:key="all_tether_prefs_screen"
22    android:title="@string/tether_settings_title_all"
23    settings:searchable="false">
24
25    <PreferenceCategory
26        android:key="wifi_tether_settings_group"
27        android:title="@string/wifi_hotspot_checkbox_text"
28        settings:searchable="false">
29        <com.android.settings.wifi.tether.WifiTetherSsidPreference
30            android:key="wifi_tether_network_name_2"
31            android:title="@string/wifi_hotspot_name_title"
32            android:summary="@string/summary_placeholder"/>
33
34        <com.android.settings.widget.ValidatedEditTextPreference
35            android:key="wifi_tether_network_password_2"
36            android:persistent="false"
37            android:title="@string/wifi_hotspot_password_title"/>
38
39        <SwitchPreference
40            android:key="wifi_tether_auto_turn_off_2"
41            android:title="@string/wifi_hotspot_auto_off_title"
42            android:summary="@string/wifi_hotspot_auto_off_summary"/>
43
44        <ListPreference
45            android:key="wifi_tether_network_ap_band_2"
46            android:title="@string/wifi_hotspot_ap_band_title"/>
47
48        <ListPreference
49            android:key="wifi_tether_security_2"
50            android:title="@string/wifi_security"
51            android:summary="@string/summary_placeholder"
52            android:entries="@array/wifi_tether_security"
53            android:entryValues="@array/wifi_tether_security_values"/>
54    </PreferenceCategory>
55
56    <PreferenceCategory
57        android:key="tethering_options_group"
58        android:title="@string/tethering_interface_options"
59        settings:searchable="false">
60        <SwitchPreference
61            android:key="enable_usb_tethering"
62            android:title="@string/usb_tethering_button_text"
63            android:summary="@string/usb_tethering_subtext"
64            settings:controller="com.android.settings.network.UsbTetherPreferenceController"
65            settings:keywords="@string/keywords_hotspot_tethering" />
66
67        <SwitchPreference
68            android:key="enable_bluetooth_tethering_2"
69            android:title="@string/bluetooth_tether_checkbox_text"
70            android:summary="@string/bluetooth_tethering_subtext"
71            settings:controller="com.android.settings.network.BluetoothTetherPreferenceController"
72            settings:keywords="@string/keywords_hotspot_tethering" />
73
74        <SwitchPreference
75            android:key="enable_ethernet_tethering_2"
76            android:title="@string/ethernet_tether_checkbox_text"
77            android:summary="@string/ethernet_tethering_subtext"
78            settings:controller="com.android.settings.network.EthernetTetherPreferenceController"
79            settings:keywords="@string/keywords_hotspot_tethering"/>
80
81        <SwitchPreference
82            android:key="disable_wifi_tethering"
83            android:title="@string/disable_wifi_hotspot_title"
84            android:summary="@string/summary_placeholder"
85            settings:controller="com.android.settings.network.WifiTetherDisablePreferenceController"
86            settings:keywords="@string/keywords_hotspot_tethering" />
87    </PreferenceCategory>
88
89    <Preference
90        android:key="disabled_on_data_saver_2"
91        android:summary="@string/tether_settings_disabled_on_data_saver"
92        android:selectable="false"
93        settings:searchable="false"
94        settings:allowDividerAbove="true" />
95
96    <com.android.settingslib.widget.FooterPreference
97        android:key="tether_prefs_footer_2"
98        android:selectable="false"
99        settings:searchable="false"/>
100</PreferenceScreen>
101