Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 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" |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 21 | android:key="all_tether_prefs_screen" |
| 22 | android:title="@string/tether_settings_title_all" |
| 23 | settings:searchable="false"> |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 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 |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 30 | android:key="wifi_tether_network_name_2" |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 31 | android:title="@string/wifi_hotspot_name_title" |
| 32 | android:summary="@string/summary_placeholder"/> |
| 33 | |
| 34 | <com.android.settings.widget.ValidatedEditTextPreference |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 35 | android:key="wifi_tether_network_password_2" |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 36 | android:persistent="false" |
| 37 | android:title="@string/wifi_hotspot_password_title"/> |
| 38 | |
| 39 | <SwitchPreference |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 40 | android:key="wifi_tether_auto_turn_off_2" |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 41 | android:title="@string/wifi_hotspot_auto_off_title" |
| 42 | android:summary="@string/wifi_hotspot_auto_off_summary"/> |
| 43 | |
| 44 | <ListPreference |
Arc Wang | b347128 | 2020-05-18 11:13:47 +0800 | [diff] [blame] | 45 | android:key="wifi_tether_network_ap_band_2" |
| 46 | android:title="@string/wifi_hotspot_ap_band_title"/> |
| 47 | |
| 48 | <ListPreference |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 49 | android:key="wifi_tether_security_2" |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 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"/> |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 54 | </PreferenceCategory> |
| 55 | |
Zhen Zhang | ec966cb | 2020-02-05 12:52:35 -0800 | [diff] [blame] | 56 | <PreferenceCategory |
| 57 | android:key="tethering_options_group" |
Zhen Zhang | 5ef644b | 2020-02-14 11:17:50 -0800 | [diff] [blame] | 58 | android:title="@string/tethering_interface_options" |
Zhen Zhang | ec966cb | 2020-02-05 12:52:35 -0800 | [diff] [blame] | 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 |
Zhen Zhang | c10ec56 | 2020-04-13 17:02:07 -0700 | [diff] [blame] | 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 |
Zhen Zhang | ec966cb | 2020-02-05 12:52:35 -0800 | [diff] [blame] | 82 | android:key="disable_wifi_tethering" |
Zhen Zhang | 5ef644b | 2020-02-14 11:17:50 -0800 | [diff] [blame] | 83 | android:title="@string/disable_wifi_hotspot_title" |
Zhen Zhang | 15ec991 | 2020-02-11 17:22:12 -0800 | [diff] [blame] | 84 | android:summary="@string/summary_placeholder" |
Zhen Zhang | ec966cb | 2020-02-05 12:52:35 -0800 | [diff] [blame] | 85 | settings:controller="com.android.settings.network.WifiTetherDisablePreferenceController" |
| 86 | settings:keywords="@string/keywords_hotspot_tethering" /> |
| 87 | </PreferenceCategory> |
| 88 | |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 89 | <Preference |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 90 | android:key="disabled_on_data_saver_2" |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 91 | android:summary="@string/tether_settings_disabled_on_data_saver" |
| 92 | android:selectable="false" |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 93 | settings:searchable="false" |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 94 | settings:allowDividerAbove="true" /> |
| 95 | |
| 96 | <com.android.settingslib.widget.FooterPreference |
Zhen Zhang | d2a7f9a | 2020-01-30 15:12:50 -0800 | [diff] [blame] | 97 | android:key="tether_prefs_footer_2" |
Zhen Zhang | b60e8ca | 2020-01-07 18:14:30 -0800 | [diff] [blame] | 98 | android:selectable="false" |
| 99 | settings:searchable="false"/> |
| 100 | </PreferenceScreen> |