OSDN Git Service

Add VPN settings classes to Settings app.
[android-x86/packages-apps-Settings.git] / res / xml / wireless_settings.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2008 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7   
8           http://www.apache.org/licenses/LICENSE-2.0
9   
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18         android:title="@string/radio_controls_title">
19
20                 <!-- Programmatically will have dynamic summary, but we provide the fallback summary. -->
21                 <CheckBoxPreference
22                     android:key="toggle_wifi"
23                     android:title="@string/wifi_quick_toggle_title"
24                     android:summary="@string/wifi_quick_toggle_summary"
25                     android:persistent="false"
26                     android:dependency="toggle_airplane" />
27
28                 <PreferenceScreen
29                     android:title="@string/wifi_settings"
30                     android:summary="@string/wifi_settings_summary"
31                     android:dependency="toggle_airplane">
32                     <intent
33                         android:action="android.intent.action.MAIN"
34                         android:targetPackage="com.android.settings"
35                         android:targetClass="com.android.settings.wifi.WifiSettings" />
36                 </PreferenceScreen>
37
38                 <CheckBoxPreference
39                     android:key="toggle_bluetooth"
40                     android:title="@string/bluetooth_quick_toggle_title"
41                     android:summary="@string/bluetooth_quick_toggle_summary"
42                     android:persistent="false"
43                     android:dependency="toggle_airplane" />
44
45                 <PreferenceScreen
46                     android:title="@string/bluetooth_settings_title"
47                     android:summary="@string/bluetooth_settings_summary"
48                     android:dependency="toggle_airplane">
49                     <intent
50                         android:action="android.intent.action.MAIN"
51                         android:targetPackage="com.android.settings"
52                         android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
53                 </PreferenceScreen>
54
55                 <PreferenceScreen
56                     android:title="@string/vpn_settings_title"
57                     android:summary="@string/vpn_settings_summary"
58                     android:dependency="toggle_airplane">
59                     <intent
60                         android:action="android.intent.action.MAIN"
61                         android:targetPackage="com.android.settings"
62                         android:targetClass="com.android.settings.vpn.VpnSettings" />
63                 </PreferenceScreen>
64
65                 <PreferenceScreen
66                     android:title="@string/network_settings_title"
67                     android:summary="@string/network_settings_summary"
68                     android:dependency="toggle_airplane">
69                     <intent
70                         android:action="android.intent.action.MAIN"
71                         android:targetPackage="com.android.phone"
72                         android:targetClass="com.android.phone.Settings" />
73                 </PreferenceScreen>
74
75                 <CheckBoxPreference
76                     android:key="toggle_airplane"
77                     android:title="@string/airplane_mode"
78                     android:summary="@string/airplane_mode_summary"
79                     android:persistent="false"
80                     android:disableDependentsState="true" />
81
82
83 </PreferenceScreen>