1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:key="display_settings_screen"
21    android:title="@string/display_settings"
22    settings:keywords="@string/keywords_display"
23    settings:initialExpandedChildrenCount="5">
24
25    <com.android.settingslib.RestrictedPreference
26        android:key="brightness"
27        android:title="@string/brightness"
28        settings:keywords="@string/keywords_display_brightness_level"
29        settings:useAdminDisabledSummary="true"
30        settings:userRestriction="no_config_brightness">
31        <intent android:action="com.android.intent.action.SHOW_BRIGHTNESS_DIALOG" />
32    </com.android.settingslib.RestrictedPreference>
33
34    <com.android.settings.display.darkmode.DarkModePreference
35        android:key="dark_ui_mode"
36        android:title="@string/dark_ui_mode"
37        android:fragment="com.android.settings.display.darkmode.DarkModeSettingsFragment"
38        android:widgetLayout="@null"
39        settings:widgetLayout="@null"
40        settings:controller="com.android.settings.display.DarkUIPreferenceController"
41        settings:searchable="false"/>
42
43    <com.android.settings.display.NightDisplayPreference
44        android:key="night_display"
45        android:title="@string/night_display_title"
46        android:fragment="com.android.settings.display.NightDisplaySettings"
47        android:widgetLayout="@null"
48        settings:widgetLayout="@null"
49        settings:searchable="false" />
50
51    <Preference
52        android:key="auto_brightness_entry"
53        android:title="@string/auto_brightness_title"
54        android:summary="@string/summary_placeholder"
55        android:fragment="com.android.settings.display.AutoBrightnessSettings"
56        settings:controller="com.android.settings.display.AutoBrightnessPreferenceController"/>
57
58    <com.android.settingslib.RestrictedPreference
59        android:key="wallpaper"
60        android:title="@string/wallpaper_settings_title"
61        settings:keywords="@string/keywords_display_wallpaper"
62        settings:useAdminDisabledSummary="true"
63        settings:controller="com.android.settings.display.WallpaperPreferenceController">
64    </com.android.settingslib.RestrictedPreference>
65
66    <!-- Cross-listed item, if you change this, also change it in power_usage_summary.xml -->
67    <com.android.settings.display.TimeoutListPreference
68        android:key="screen_timeout"
69        android:title="@string/screen_timeout"
70        android:summary="@string/summary_placeholder"
71        android:entries="@array/screen_timeout_entries"
72        android:entryValues="@array/screen_timeout_values"
73        settings:keywords="@string/keywords_screen_timeout" />
74
75    <Preference
76        android:key="adaptive_sleep_entry"
77        android:title="@string/adaptive_sleep_title"
78        android:summary="@string/summary_placeholder"
79        android:fragment="com.android.settings.display.AdaptiveSleepSettings"
80        settings:controller="com.android.settings.display.AdaptiveSleepPreferenceController" />
81
82    <SwitchPreference
83        android:key="auto_rotate"
84        android:title="@string/accelerometer_title"
85        settings:keywords="@string/keywords_auto_rotate"
86        settings:controller="com.android.settings.display.AutoRotatePreferenceController" />
87
88    <Preference
89        android:key="color_mode"
90        android:title="@string/color_mode_title"
91        android:fragment="com.android.settings.display.ColorModePreferenceFragment"
92        settings:controller="com.android.settings.display.ColorModePreferenceController"
93        settings:keywords="@string/keywords_color_mode" />
94
95    <SwitchPreference
96        android:key="display_white_balance"
97        android:title="@string/display_white_balance_title"
98        android:summary="@string/display_white_balance_summary"
99        settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController" />
100
101    <Preference
102        android:key="font_size"
103        android:title="@string/title_font_size"
104        android:fragment="com.android.settings.display.ToggleFontSizePreferenceFragment"
105        settings:controller="com.android.settings.display.FontSizePreferenceController" />
106
107    <com.android.settings.display.ScreenZoomPreference
108        android:key="display_settings_screen_zoom"
109        android:title="@string/screen_zoom_title"
110        android:fragment="com.android.settings.display.ScreenZoomSettings"
111        settings:searchable="false"/>
112
113    <SwitchPreference
114        android:key="show_operator_name"
115        android:title="@string/show_operator_name_title"
116        android:summary="@string/show_operator_name_summary" />
117
118    <Preference
119        android:key="screensaver"
120        android:title="@string/screensaver_settings_title"
121        android:fragment="com.android.settings.dream.DreamSettings"
122        settings:searchable="false" />
123
124    <Preference
125        android:key="lockscreen_from_display_settings"
126        android:title="@string/lockscreen_settings_title"
127        android:fragment="com.android.settings.security.LockscreenDashboardFragment"
128        settings:controller="com.android.settings.security.screenlock.LockScreenPreferenceController" />
129
130    <SwitchPreference
131        android:key="camera_gesture"
132        android:title="@string/camera_gesture_title"
133        android:summary="@string/camera_gesture_desc" />
134
135    <SwitchPreference
136        android:key="lift_to_wake"
137        android:title="@string/lift_to_wake_title" />
138
139    <SwitchPreference
140        android:key="tap_to_wake"
141        android:title="@string/tap_to_wake"
142        android:summary="@string/tap_to_wake_summary" />
143
144    <ListPreference
145        android:key="theme"
146        android:title="@string/device_theme"
147        android:summary="@string/summary_placeholder" />
148
149    <Preference
150        android:key="vr_display_pref"
151        android:title="@string/display_vr_pref_title"
152        android:fragment="com.android.settings.display.VrDisplayPreferencePicker" />
153
154</PreferenceScreen>
155