blob: 03d073b2e6784a0cb1a35e969e4372762a5a958b [file] [log] [blame]
Fan Zhang99abc022016-10-11 14:23:13 -07001<?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
Fan Zhanga0c2c112017-03-23 13:13:36 -070017<PreferenceScreen
18 xmlns:android="http://schemas.android.com/apk/res/android"
Fan Zhang74c61d12017-11-17 16:49:54 -080019 xmlns:settings="http://schemas.android.com/apk/res-auto"
Edgar Wang77de4052020-02-14 17:58:38 +080020 android:key="display_settings_screen"
Fan Zhanga0c2c112017-03-23 13:13:36 -070021 android:title="@string/display_settings"
Yanting Yangc2ac66c2021-05-25 22:18:23 +080022 settings:keywords="@string/keywords_display">
Fan Zhang99abc022016-10-11 14:23:13 -070023
Yanting Yangc2ac66c2021-05-25 22:18:23 +080024 <PreferenceCategory
25 android:title="@string/category_name_brightness">
Fan Zhang99abc022016-10-11 14:23:13 -070026
Yanting Yangc2ac66c2021-05-25 22:18:23 +080027 <com.android.settingslib.RestrictedPreference
28 android:key="brightness"
29 android:title="@string/brightness"
30 settings:keywords="@string/keywords_display_brightness_level"
31 settings:useAdminDisabledSummary="true"
32 settings:userRestriction="no_config_brightness"/>
Jay Aliomera377b5c2019-10-24 13:42:38 -040033
Wilson Wu9edf7972021-08-27 10:19:56 +080034 <com.android.settingslib.PrimarySwitchPreference
Yanting Yangc2ac66c2021-05-25 22:18:23 +080035 android:key="auto_brightness_entry"
36 android:title="@string/auto_brightness_title"
37 android:fragment="com.android.settings.display.AutoBrightnessSettings"
38 settings:controller="com.android.settings.display.AutoBrightnessPreferenceController"/>
39 </PreferenceCategory>
Doris Ling11b224e2017-03-31 13:14:03 -070040
Yanting Yangc2ac66c2021-05-25 22:18:23 +080041 <PreferenceCategory
42 android:title="@string/category_name_lock_display">
Doris Ling11b224e2017-03-31 13:14:03 -070043
Yanting Yangc2ac66c2021-05-25 22:18:23 +080044 <Preference
45 android:key="lockscreen_from_display_settings"
46 android:title="@string/lockscreen_settings_title"
47 android:fragment="com.android.settings.security.LockscreenDashboardFragment"
48 settings:keywords="@string/keywords_ambient_display_screen"
49 settings:controller="com.android.settings.security.screenlock.LockScreenPreferenceController"/>
Fan Zhang99abc022016-10-11 14:23:13 -070050
Yanting Yangc2ac66c2021-05-25 22:18:23 +080051 <com.android.settingslib.RestrictedPreference
52 android:key="screen_timeout"
53 android:title="@string/screen_timeout"
54 android:summary="@string/summary_placeholder"
55 android:fragment="com.android.settings.display.ScreenTimeoutSettings"
56 settings:controller="com.android.settings.display.ScreenTimeoutPreferenceController"/>
57 </PreferenceCategory>
Alex Salobb4e9ce2019-01-17 13:54:03 -080058
Yanting Yangc2ac66c2021-05-25 22:18:23 +080059 <PreferenceCategory
60 android:title="@string/category_name_appearance">
Fan Zhang99abc022016-10-11 14:23:13 -070061
Yanting Yangc2ac66c2021-05-25 22:18:23 +080062 <com.android.settings.display.darkmode.DarkModePreference
63 android:key="dark_ui_mode"
64 android:title="@string/dark_ui_mode"
65 android:fragment="com.android.settings.display.darkmode.DarkModeSettingsFragment"
66 android:widgetLayout="@null"
67 settings:widgetLayout="@null"
68 settings:controller="com.android.settings.display.DarkUIPreferenceController"
69 settings:keywords="@string/keywords_dark_ui_mode"/>
Romain Guy305f9002017-06-05 18:44:47 -070070
Yanting Yangc2ac66c2021-05-25 22:18:23 +080071 <Preference
Peter_Liang5c106ba2022-02-15 15:03:12 +080072 android:fragment="com.android.settings.accessibility.TextReadingPreferenceFragment"
73 android:key="text_reading_options"
74 android:persistent="false"
75 android:title="@string/accessibility_text_reading_options_title" />
Yanting Yangc2ac66c2021-05-25 22:18:23 +080076 </PreferenceCategory>
Amy Hsu7730d302020-05-11 13:07:33 +080077
Yanting Yangc2ac66c2021-05-25 22:18:23 +080078 <PreferenceCategory
79 android:title="@string/category_name_color">
Fan Zhang99abc022016-10-11 14:23:13 -070080
Wilson Wu9edf7972021-08-27 10:19:56 +080081 <com.android.settingslib.PrimarySwitchPreference
Yanting Yangc2ac66c2021-05-25 22:18:23 +080082 android:key="night_display"
83 android:title="@string/night_display_title"
84 android:fragment="com.android.settings.display.NightDisplaySettings"
85 settings:controller="com.android.settings.display.NightDisplayPreferenceController"
86 settings:keywords="@string/keywords_display_night_display"/>
Fan Zhang99abc022016-10-11 14:23:13 -070087
Yanting Yangc2ac66c2021-05-25 22:18:23 +080088 <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 </PreferenceCategory>
Yoshinori Hirano53cfd112017-10-10 13:57:07 +090095
Yanting Yangc2ac66c2021-05-25 22:18:23 +080096 <PreferenceCategory
97 android:title="@string/category_name_display_controls">
Fan Zhang99abc022016-10-11 14:23:13 -070098
Christian Göllnerff9065a2022-02-17 11:32:54 +000099 <!--
100 Standard auto-rotation preference that will be shown when device state based
101 auto-rotation settings are NOT available.
102 -->
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800103 <SwitchPreference
104 android:key="auto_rotate"
105 android:title="@string/accelerometer_title"
106 settings:keywords="@string/keywords_auto_rotate"
107 settings:controller="com.android.settings.display.AutoRotatePreferenceController"/>
Adrian Roose349ec32017-05-25 15:49:35 -0700108
Christian Göllnerff9065a2022-02-17 11:32:54 +0000109 <!--
110 Auto-rotation preference that will be shown when device state based auto-rotation
111 settings are available.
112 -->
113 <Preference
114 android:key="device_state_auto_rotate"
115 android:title="@string/accelerometer_title"
116 android:fragment="com.android.settings.display.DeviceStateAutoRotateDetailsFragment"
117 settings:keywords="@string/keywords_auto_rotate"
118 settings:controller="com.android.settings.display.DeviceStateAutoRotateOverviewController"/>
119
Amy Hsu0dea4182022-02-09 13:58:16 +0800120 <Preference
121 android:key="screen_resolution"
122 android:title="@string/screen_resolution_title"
123 android:fragment="com.android.settings.display.ScreenResolutionFragment"
124 settings:keywords="@string/keywords_screen_resolution"
125 settings:controller="com.android.settings.display.ScreenResolutionController"/>
126
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800127 <SwitchPreference
128 android:key="display_white_balance"
129 android:title="@string/display_white_balance_title"
130 android:summary="@string/display_white_balance_summary"
131 settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700132
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800133 <SwitchPreference
134 android:key="peak_refresh_rate"
135 android:title="@string/peak_refresh_rate_title"
136 android:summary="@string/peak_refresh_rate_summary"
137 settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController"/>
Andrew Sapperstein6138f1a2017-03-22 18:00:47 -0700138
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800139 <SwitchPreference
140 android:key="show_operator_name"
141 android:title="@string/show_operator_name_title"
142 android:summary="@string/show_operator_name_summary"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700143
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800144 <Preference
145 android:key="screensaver"
146 android:title="@string/screensaver_settings_title"
147 android:fragment="com.android.settings.dream.DreamSettings"/>
Lucas Dupin74fde3e2018-05-22 14:27:40 -0700148
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800149 <SwitchPreference
150 android:key="camera_gesture"
151 android:title="@string/camera_gesture_title"
152 android:summary="@string/camera_gesture_desc"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700153
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800154 <SwitchPreference
155 android:key="lift_to_wake"
156 android:title="@string/lift_to_wake_title"/>
157
158 <SwitchPreference
159 android:key="tap_to_wake"
160 android:title="@string/tap_to_wake"
161 android:summary="@string/tap_to_wake_summary"/>
162
163 <ListPreference
164 android:key="theme"
165 android:title="@string/device_theme"
166 android:summary="@string/summary_placeholder"/>
167
168 <Preference
169 android:key="vr_display_pref"
170 android:title="@string/display_vr_pref_title"
171 android:fragment="com.android.settings.display.VrDisplayPreferencePicker"/>
172 </PreferenceCategory>
Fan Zhang99abc022016-10-11 14:23:13 -0700173</PreferenceScreen>