blob: 0aee621b7f732cef1b1936e04c9e2cd29540b5c2 [file] [log] [blame]
Zhen Zhangb60e8ca2020-01-07 18:14:30 -08001<?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"
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080021 android:key="all_tether_prefs_screen"
22 android:title="@string/tether_settings_title_all"
23 settings:searchable="false">
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080024
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
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080030 android:key="wifi_tether_network_name_2"
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080031 android:title="@string/wifi_hotspot_name_title"
32 android:summary="@string/summary_placeholder"/>
33
34 <com.android.settings.widget.ValidatedEditTextPreference
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080035 android:key="wifi_tether_network_password_2"
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080036 android:persistent="false"
37 android:title="@string/wifi_hotspot_password_title"/>
38
39 <SwitchPreference
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080040 android:key="wifi_tether_auto_turn_off_2"
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080041 android:title="@string/wifi_hotspot_auto_off_title"
42 android:summary="@string/wifi_hotspot_auto_off_summary"/>
43
44 <ListPreference
Arc Wangb3471282020-05-18 11:13:47 +080045 android:key="wifi_tether_network_ap_band_2"
46 android:title="@string/wifi_hotspot_ap_band_title"/>
47
48 <ListPreference
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080049 android:key="wifi_tether_security_2"
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080050 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"/>
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080054 </PreferenceCategory>
55
Zhen Zhangec966cb2020-02-05 12:52:35 -080056 <PreferenceCategory
57 android:key="tethering_options_group"
Zhen Zhang5ef644b2020-02-14 11:17:50 -080058 android:title="@string/tethering_interface_options"
Zhen Zhangec966cb2020-02-05 12:52:35 -080059 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
Zhen Zhangc10ec562020-04-13 17:02:07 -070075 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
Zhen Zhangec966cb2020-02-05 12:52:35 -080082 android:key="disable_wifi_tethering"
Zhen Zhang5ef644b2020-02-14 11:17:50 -080083 android:title="@string/disable_wifi_hotspot_title"
Zhen Zhang15ec9912020-02-11 17:22:12 -080084 android:summary="@string/summary_placeholder"
Zhen Zhangec966cb2020-02-05 12:52:35 -080085 settings:controller="com.android.settings.network.WifiTetherDisablePreferenceController"
86 settings:keywords="@string/keywords_hotspot_tethering" />
87 </PreferenceCategory>
88
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080089 <Preference
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080090 android:key="disabled_on_data_saver_2"
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080091 android:summary="@string/tether_settings_disabled_on_data_saver"
92 android:selectable="false"
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080093 settings:searchable="false"
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080094 settings:allowDividerAbove="true" />
95
96 <com.android.settingslib.widget.FooterPreference
Zhen Zhangd2a7f9a2020-01-30 15:12:50 -080097 android:key="tether_prefs_footer_2"
Zhen Zhangb60e8ca2020-01-07 18:14:30 -080098 android:selectable="false"
99 settings:searchable="false"/>
100</PreferenceScreen>