blob: 976e4968018e553d38609e7f5c2b7b776639a03f [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"
Peter_Liangfcce62a2022-04-22 01:53:04 +080075 android:title="@string/accessibility_text_reading_options_title"
76 settings:controller="com.android.settings.accessibility.TextReadingFragmentForDisplaySettingsController"/>
Yanting Yangc2ac66c2021-05-25 22:18:23 +080077 </PreferenceCategory>
Amy Hsu7730d302020-05-11 13:07:33 +080078
Yanting Yangc2ac66c2021-05-25 22:18:23 +080079 <PreferenceCategory
80 android:title="@string/category_name_color">
Fan Zhang99abc022016-10-11 14:23:13 -070081
Wilson Wu9edf7972021-08-27 10:19:56 +080082 <com.android.settingslib.PrimarySwitchPreference
Yanting Yangc2ac66c2021-05-25 22:18:23 +080083 android:key="night_display"
84 android:title="@string/night_display_title"
85 android:fragment="com.android.settings.display.NightDisplaySettings"
86 settings:controller="com.android.settings.display.NightDisplayPreferenceController"
87 settings:keywords="@string/keywords_display_night_display"/>
Fan Zhang99abc022016-10-11 14:23:13 -070088
Paul Keith6c0aba32020-01-14 02:40:16 +000089 <lineageos.preference.LineagePartsPreference
90 android:key="livedisplay"
91 settings:requiresConfig="@*lineageos.platform:bool/config_enableLiveDisplay" />
92
Yanting Yangc2ac66c2021-05-25 22:18:23 +080093 <Preference
94 android:key="color_mode"
95 android:title="@string/color_mode_title"
96 android:fragment="com.android.settings.display.ColorModePreferenceFragment"
97 settings:controller="com.android.settings.display.ColorModePreferenceController"
98 settings:keywords="@string/keywords_color_mode"/>
99 </PreferenceCategory>
Yoshinori Hirano53cfd112017-10-10 13:57:07 +0900100
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800101 <PreferenceCategory
102 android:title="@string/category_name_display_controls">
Fan Zhang99abc022016-10-11 14:23:13 -0700103
Christian Göllnerff9065a2022-02-17 11:32:54 +0000104 <!--
105 Standard auto-rotation preference that will be shown when device state based
106 auto-rotation settings are NOT available.
107 -->
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800108 <SwitchPreference
109 android:key="auto_rotate"
110 android:title="@string/accelerometer_title"
111 settings:keywords="@string/keywords_auto_rotate"
112 settings:controller="com.android.settings.display.AutoRotatePreferenceController"/>
Adrian Roose349ec32017-05-25 15:49:35 -0700113
Steve Kondik4a425be2016-09-26 02:53:06 -0700114 <lineageos.preference.LineagePartsPreference
115 android:key="rotation"
116 settings:replacesKey="auto_rotate"
117 settings:requiresFeature="android.hardware.sensor.accelerometer" />
Christian Göllnerff9065a2022-02-17 11:32:54 +0000118
Amy Hsu0dea4182022-02-09 13:58:16 +0800119 <Preference
120 android:key="screen_resolution"
121 android:title="@string/screen_resolution_title"
122 android:fragment="com.android.settings.display.ScreenResolutionFragment"
123 settings:keywords="@string/keywords_screen_resolution"
124 settings:controller="com.android.settings.display.ScreenResolutionController"/>
125
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800126 <SwitchPreference
127 android:key="display_white_balance"
128 android:title="@string/display_white_balance_title"
129 android:summary="@string/display_white_balance_summary"
130 settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700131
Michael Bestas679e6172021-06-14 03:34:06 +0300132 <ListPreference
133 android:key="max_refresh_rate"
134 android:title="@string/max_refresh_rate_title"
135 android:summary="@string/summary_placeholder"
136 settings:controller="com.android.settings.display.PeakRefreshRateListPreferenceController" />
137
LuK1337146e53d2020-11-22 03:15:07 +0100138 <ListPreference
139 android:key="min_refresh_rate"
140 android:title="@string/min_refresh_rate_title"
141 android:summary="@string/summary_placeholder"
142 settings:controller="com.android.settings.display.MinRefreshRatePreferenceController" />
143
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800144 <SwitchPreference
145 android:key="peak_refresh_rate"
146 android:title="@string/peak_refresh_rate_title"
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800147 settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController"/>
Andrew Sapperstein6138f1a2017-03-22 18:00:47 -0700148
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800149 <SwitchPreference
150 android:key="show_operator_name"
151 android:title="@string/show_operator_name_title"
152 android:summary="@string/show_operator_name_summary"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700153
Jesse Chanf750cf92018-04-21 23:54:05 -0700154 <lineageos.preference.LineagePartsPreference
155 android:key="long_screen_settings"
156 settings:requiresConfig="@*lineageos.platform:bool/config_haveHigherAspectRatioScreen" />
157
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800158 <Preference
159 android:key="screensaver"
160 android:title="@string/screensaver_settings_title"
Xiaowen Lei8b6e1152022-04-20 15:47:36 +0000161 android:fragment="com.android.settings.dream.DreamSettings"
Darrell Shi542644e2022-12-14 18:47:57 +0000162 settings:keywords="@string/keywords_screensaver"
163 settings:controller="com.android.settings.display.ScreenSaverPreferenceController"/>
Lucas Dupin74fde3e2018-05-22 14:27:40 -0700164
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800165 <SwitchPreference
166 android:key="camera_gesture"
167 android:title="@string/camera_gesture_title"
168 android:summary="@string/camera_gesture_desc"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700169
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800170 <SwitchPreference
171 android:key="lift_to_wake"
172 android:title="@string/lift_to_wake_title"/>
173
174 <SwitchPreference
175 android:key="tap_to_wake"
176 android:title="@string/tap_to_wake"
177 android:summary="@string/tap_to_wake_summary"/>
178
Bruno Martins117eba12017-12-02 12:52:18 +0000179 <!-- Prevent accidental wake-up -->
180 <lineageos.preference.LineageSystemSettingSwitchPreference
181 android:key="proximity_on_wake"
182 android:title="@string/proximity_wake_title"
183 android:summary="@string/proximity_wake_summary"
184 android:defaultValue="@*lineageos.platform:bool/config_proximityCheckOnWakeEnabledByDefault"
185 settings:requiresConfig="@*lineageos.platform:bool/config_proximityCheckOnWake" />
186
Rashed Abdel-Tawab0ef43e72017-09-26 19:15:26 -0400187 <!-- Double tap to sleep -->
188 <lineageos.preference.LineageSystemSettingSwitchPreference
189 android:key="double_tap_sleep_gesture"
190 android:title="@string/status_bar_double_tap_to_sleep_title"
191 android:summary="@string/status_bar_double_tap_to_sleep_summary"
Bruno Martins603161a2023-10-02 09:52:58 +0100192 android:defaultValue="@*lineageos.platform:bool/config_dt2sGestureEnabledByDefault"
193 settings:requiresConfig="@*lineageos.platform:bool/config_dt2sGestureAvailable" />
Rashed Abdel-Tawab0ef43e72017-09-26 19:15:26 -0400194
Jon Evans922a9ad2014-11-30 15:29:13 -0500195 <lineageos.preference.LineageGlobalSettingSwitchPreference
196 android:key="wake_when_plugged_or_unplugged"
197 android:title="@string/wake_when_plugged_or_unplugged_title"
198 android:summary="@string/wake_when_plugged_or_unplugged_summary"
Bruno Martins7f2c6092023-10-01 11:34:03 +0100199 android:defaultValue="@*android:bool/config_unplugTurnsOnScreen"
200 settings:requiresConfig="@*com.android.settings:bool/config_show_top_level_battery" />
Jon Evans922a9ad2014-11-30 15:29:13 -0500201
LuK133771fac892018-03-11 11:38:52 +0100202 <lineageos.preference.LineageSystemSettingSwitchPreference
Ramii Ahmedd85c8982021-07-05 07:11:53 +0000203 android:key="high_touch_polling_rate_enable"
204 android:title="@string/high_touch_polling_rate_title"
205 android:summary="@string/high_touch_polling_rate_summary"
206 android:defaultValue="false"
207 settings:requiresFeature="lineagehardware:FEATURE_HIGH_TOUCH_POLLING_RATE" />
208
209 <lineageos.preference.LineageSystemSettingSwitchPreference
LuK133771fac892018-03-11 11:38:52 +0100210 android:key="high_touch_sensitivity_enable"
211 android:title="@string/high_touch_sensitivity_title"
212 android:summary="@string/high_touch_sensitivity_summary"
213 android:defaultValue="false"
214 settings:requiresFeature="lineagehardware:FEATURE_HIGH_TOUCH_SENSITIVITY" />
215
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800216 <ListPreference
217 android:key="theme"
218 android:title="@string/device_theme"
219 android:summary="@string/summary_placeholder"/>
220
221 <Preference
222 android:key="vr_display_pref"
223 android:title="@string/display_vr_pref_title"
224 android:fragment="com.android.settings.display.VrDisplayPreferencePicker"/>
225 </PreferenceCategory>
Fan Zhang99abc022016-10-11 14:23:13 -0700226</PreferenceScreen>