blob: eb71068d23aed85b99c228db18a2063b9c5ec17e [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
Michael Bestas5ebf0d92022-01-20 00:03:45 +020071 <ListPreference
72 android:key="android.theme.customization.font"
73 android:title="@string/theme_customization_font_title"/>
74
75 <ListPreference
76 android:key="android.theme.customization.adaptive_icon_shape"
77 android:title="@string/theme_customization_icon_shape_title"/>
78
Yanting Yangc2ac66c2021-05-25 22:18:23 +080079 <Preference
Peter_Liang5c106ba2022-02-15 15:03:12 +080080 android:fragment="com.android.settings.accessibility.TextReadingPreferenceFragment"
81 android:key="text_reading_options"
82 android:persistent="false"
Peter_Liangfcce62a2022-04-22 01:53:04 +080083 android:title="@string/accessibility_text_reading_options_title"
84 settings:controller="com.android.settings.accessibility.TextReadingFragmentForDisplaySettingsController"/>
Yanting Yangc2ac66c2021-05-25 22:18:23 +080085 </PreferenceCategory>
Amy Hsu7730d302020-05-11 13:07:33 +080086
Yanting Yangc2ac66c2021-05-25 22:18:23 +080087 <PreferenceCategory
88 android:title="@string/category_name_color">
Fan Zhang99abc022016-10-11 14:23:13 -070089
Wilson Wu9edf7972021-08-27 10:19:56 +080090 <com.android.settingslib.PrimarySwitchPreference
Yanting Yangc2ac66c2021-05-25 22:18:23 +080091 android:key="night_display"
92 android:title="@string/night_display_title"
93 android:fragment="com.android.settings.display.NightDisplaySettings"
94 settings:controller="com.android.settings.display.NightDisplayPreferenceController"
95 settings:keywords="@string/keywords_display_night_display"/>
Fan Zhang99abc022016-10-11 14:23:13 -070096
Paul Keith6c0aba32020-01-14 02:40:16 +000097 <lineageos.preference.LineagePartsPreference
98 android:key="livedisplay"
99 settings:requiresConfig="@*lineageos.platform:bool/config_enableLiveDisplay" />
100
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800101 <Preference
102 android:key="color_mode"
103 android:title="@string/color_mode_title"
104 android:fragment="com.android.settings.display.ColorModePreferenceFragment"
105 settings:controller="com.android.settings.display.ColorModePreferenceController"
106 settings:keywords="@string/keywords_color_mode"/>
107 </PreferenceCategory>
Yoshinori Hirano53cfd112017-10-10 13:57:07 +0900108
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800109 <PreferenceCategory
110 android:title="@string/category_name_display_controls">
Fan Zhang99abc022016-10-11 14:23:13 -0700111
Christian Göllnerff9065a2022-02-17 11:32:54 +0000112 <!--
113 Standard auto-rotation preference that will be shown when device state based
114 auto-rotation settings are NOT available.
115 -->
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800116 <SwitchPreference
117 android:key="auto_rotate"
118 android:title="@string/accelerometer_title"
119 settings:keywords="@string/keywords_auto_rotate"
120 settings:controller="com.android.settings.display.AutoRotatePreferenceController"/>
Adrian Roose349ec32017-05-25 15:49:35 -0700121
Steve Kondik4a425be2016-09-26 02:53:06 -0700122 <lineageos.preference.LineagePartsPreference
123 android:key="rotation"
124 settings:replacesKey="auto_rotate"
125 settings:requiresFeature="android.hardware.sensor.accelerometer" />
Christian Göllnerff9065a2022-02-17 11:32:54 +0000126
Amy Hsu0dea4182022-02-09 13:58:16 +0800127 <Preference
128 android:key="screen_resolution"
129 android:title="@string/screen_resolution_title"
130 android:fragment="com.android.settings.display.ScreenResolutionFragment"
131 settings:keywords="@string/keywords_screen_resolution"
132 settings:controller="com.android.settings.display.ScreenResolutionController"/>
133
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800134 <SwitchPreference
135 android:key="display_white_balance"
136 android:title="@string/display_white_balance_title"
137 android:summary="@string/display_white_balance_summary"
138 settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700139
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800140 <SwitchPreference
141 android:key="peak_refresh_rate"
142 android:title="@string/peak_refresh_rate_title"
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800143 settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController"/>
Andrew Sapperstein6138f1a2017-03-22 18:00:47 -0700144
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800145 <SwitchPreference
146 android:key="show_operator_name"
147 android:title="@string/show_operator_name_title"
148 android:summary="@string/show_operator_name_summary"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700149
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800150 <Preference
151 android:key="screensaver"
152 android:title="@string/screensaver_settings_title"
153 android:fragment="com.android.settings.dream.DreamSettings"/>
Lucas Dupin74fde3e2018-05-22 14:27:40 -0700154
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800155 <SwitchPreference
156 android:key="camera_gesture"
157 android:title="@string/camera_gesture_title"
158 android:summary="@string/camera_gesture_desc"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700159
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800160 <SwitchPreference
161 android:key="lift_to_wake"
162 android:title="@string/lift_to_wake_title"/>
163
164 <SwitchPreference
165 android:key="tap_to_wake"
166 android:title="@string/tap_to_wake"
167 android:summary="@string/tap_to_wake_summary"/>
168
Bruno Martins117eba12017-12-02 12:52:18 +0000169 <!-- Prevent accidental wake-up -->
170 <lineageos.preference.LineageSystemSettingSwitchPreference
171 android:key="proximity_on_wake"
172 android:title="@string/proximity_wake_title"
173 android:summary="@string/proximity_wake_summary"
174 android:defaultValue="@*lineageos.platform:bool/config_proximityCheckOnWakeEnabledByDefault"
175 settings:requiresConfig="@*lineageos.platform:bool/config_proximityCheckOnWake" />
176
Rashed Abdel-Tawab0ef43e72017-09-26 19:15:26 -0400177 <!-- Double tap to sleep -->
178 <lineageos.preference.LineageSystemSettingSwitchPreference
179 android:key="double_tap_sleep_gesture"
180 android:title="@string/status_bar_double_tap_to_sleep_title"
181 android:summary="@string/status_bar_double_tap_to_sleep_summary"
182 android:defaultValue="true" />
183
LuK133771fac892018-03-11 11:38:52 +0100184 <lineageos.preference.LineageSystemSettingSwitchPreference
185 android:key="high_touch_sensitivity_enable"
186 android:title="@string/high_touch_sensitivity_title"
187 android:summary="@string/high_touch_sensitivity_summary"
188 android:defaultValue="false"
189 settings:requiresFeature="lineagehardware:FEATURE_HIGH_TOUCH_SENSITIVITY" />
190
Yanting Yangc2ac66c2021-05-25 22:18:23 +0800191 <ListPreference
192 android:key="theme"
193 android:title="@string/device_theme"
194 android:summary="@string/summary_placeholder"/>
195
196 <Preference
197 android:key="vr_display_pref"
198 android:title="@string/display_vr_pref_title"
199 android:fragment="com.android.settings.display.VrDisplayPreferencePicker"/>
200 </PreferenceCategory>
Fan Zhang99abc022016-10-11 14:23:13 -0700201</PreferenceScreen>