OSDN Git Service

945b544c5cae1ec65293a3da83e72ad797d1f50c
[android-x86/packages-apps-Settings.git] / res / xml / display_settings.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 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                   xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
19                   xmlns:cm="http://schemas.android.com/apk/res/cyanogenmod.platform"
20         android:title="@string/display_settings"
21         settings:keywords="@string/keywords_display">
22
23     <PreferenceCategory
24             android:key="display"
25             android:title="@string/display_label">
26
27         <PreferenceScreen
28                 android:key="brightness"
29                 android:title="@string/brightness"
30                 settings:keywords="@string/keywords_display_brightness_level">
31             <intent android:action="android.intent.action.SHOW_BRIGHTNESS_DIALOG" />
32         </PreferenceScreen>
33
34         <SwitchPreference
35                 android:key="auto_brightness"
36                 android:title="@string/auto_brightness_title"
37                 settings:keywords="@string/keywords_display_auto_brightness"
38                 android:summary="@string/auto_brightness_summary" />
39
40         <!-- LiveDisplay -->
41         <org.cyanogenmod.internal.cmparts.CMPartsPreference
42             android:key="livedisplay"
43             cm:requiresFeature="org.cyanogenmod.livedisplay" />
44
45         <!-- Rotation -->
46         <org.cyanogenmod.internal.cmparts.CMPartsPreference
47             android:key="rotation"
48             cm:requiresFeature="android.hardware.sensor.accelerometer" />
49
50         <!-- Hide night mode for now
51         <ListPreference
52             android:key="night_mode"
53             android:title="@string/night_mode_title"
54             settings:keywords="@string/keywords_display_night_mode"
55             android:summary="@string/night_mode_summary"
56             android:entries="@array/night_mode_entries"
57             android:entryValues="@array/night_mode_values" /> -->
58
59         <com.android.settingslib.RestrictedPreference
60                 android:key="wallpaper"
61                 android:title="@string/wallpaper_settings_title"
62                 settings:keywords="@string/keywords_display_wallpaper"
63                 android:fragment="com.android.settings.WallpaperTypeSettings"
64                 settings:useAdminDisabledSummary="true" />
65
66         <com.android.settings.TimeoutListPreference
67                 android:key="screen_timeout"
68                 android:title="@string/screen_timeout"
69                 android:summary="@string/screen_timeout_summary"
70                 android:entries="@array/screen_timeout_entries"
71                 android:entryValues="@array/screen_timeout_values" />
72
73         <SwitchPreference
74                 android:key="camera_gesture"
75                 android:title="@string/camera_gesture_title"
76                 android:summary="@string/camera_gesture_desc" />
77
78         <SwitchPreference
79                 android:key="camera_double_tap_power_gesture"
80                 android:title="@string/camera_double_tap_power_gesture_title"
81                 android:summary="@string/camera_double_tap_power_gesture_desc" />
82
83         <PreferenceScreen
84                 android:key="screensaver"
85                 android:title="@string/screensaver_settings_title"
86                 android:fragment="com.android.settings.DreamSettings" />
87
88         <SwitchPreference
89                 android:key="lift_to_wake"
90                 android:title="@string/lift_to_wake_title" />
91
92         <SwitchPreference
93                 android:key="doze"
94                 android:title="@string/doze_title"
95                 android:summary="@string/doze_summary" />
96
97         <SwitchPreference
98                 android:key="tap_to_wake"
99                 android:title="@string/tap_to_wake"
100                 android:summary="@string/tap_to_wake_summary" />
101
102         <PreferenceScreen
103                 android:key="font_size"
104                 android:title="@string/title_font_size"
105                 android:fragment="com.android.settings.accessibility.ToggleFontSizePreferenceFragment"
106                 settings:keywords="@string/keywords_display_font_size" />
107
108         <com.android.settings.display.ScreenZoomPreference
109                 android:key="screen_zoom"
110                 android:title="@string/screen_zoom_title"
111                 settings:keywords="@string/screen_zoom_keywords" />
112
113         <!-- Disable on CM
114         <DropDownPreference
115                 android:key="auto_rotate"
116                 android:summary="%s"
117                 android:title="@string/display_auto_rotate_title" />
118         -->
119
120         <PreferenceScreen
121                 android:key="wifi_display"
122                 android:title="@string/wifi_display_settings_title"
123                 settings:keywords="@string/keywords_display_cast_screen"
124                 android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
125
126         <DropDownPreference
127                 android:key="vr_display_pref"
128                 android:summary="%s"
129                 android:title="@string/display_vr_pref_title" />
130
131     </PreferenceCategory>
132
133     <PreferenceCategory
134             android:key="lights"
135             android:title="@string/lights_label">
136
137         <!-- Battery light -->
138         <org.cyanogenmod.internal.cmparts.CMPartsPreference
139                 android:key="battery_lights"
140                 cm:requiresConfig="@*android:bool/config_intrusiveBatteryLed" />
141
142         <!-- Notification lights -->
143         <org.cyanogenmod.internal.cmparts.CMPartsPreference
144                 android:key="notification_lights"
145                 cm:requiresConfig="@*android:bool/config_intrusiveNotificationLed" />
146
147     </PreferenceCategory>
148
149 </PreferenceScreen>