Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 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 | |
Fan Zhang | a0c2c11 | 2017-03-23 13:13:36 -0700 | [diff] [blame] | 17 | <PreferenceScreen |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Fan Zhang | 74c61d1 | 2017-11-17 16:49:54 -0800 | [diff] [blame] | 19 | xmlns:settings="http://schemas.android.com/apk/res-auto" |
Edgar Wang | 77de405 | 2020-02-14 17:58:38 +0800 | [diff] [blame] | 20 | android:key="display_settings_screen" |
Fan Zhang | a0c2c11 | 2017-03-23 13:13:36 -0700 | [diff] [blame] | 21 | android:title="@string/display_settings" |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 22 | settings:keywords="@string/keywords_display"> |
Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 23 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 24 | <PreferenceCategory |
| 25 | android:title="@string/category_name_brightness"> |
Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 26 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 27 | <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 Aliomer | a377b5c | 2019-10-24 13:42:38 -0400 | [diff] [blame] | 33 | |
Wilson Wu | 9edf797 | 2021-08-27 10:19:56 +0800 | [diff] [blame] | 34 | <com.android.settingslib.PrimarySwitchPreference |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 35 | 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 Ling | 11b224e | 2017-03-31 13:14:03 -0700 | [diff] [blame] | 40 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 41 | <PreferenceCategory |
| 42 | android:title="@string/category_name_lock_display"> |
Doris Ling | 11b224e | 2017-03-31 13:14:03 -0700 | [diff] [blame] | 43 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 44 | <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 Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 50 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 51 | <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 Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 58 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 59 | <PreferenceCategory |
| 60 | android:title="@string/category_name_appearance"> |
Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 61 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 62 | <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 Guy | 305f900 | 2017-06-05 18:44:47 -0700 | [diff] [blame] | 70 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 71 | <Preference |
Peter_Liang | 5c106ba | 2022-02-15 15:03:12 +0800 | [diff] [blame] | 72 | android:fragment="com.android.settings.accessibility.TextReadingPreferenceFragment" |
| 73 | android:key="text_reading_options" |
| 74 | android:persistent="false" |
Peter_Liang | fcce62a | 2022-04-22 01:53:04 +0800 | [diff] [blame] | 75 | android:title="@string/accessibility_text_reading_options_title" |
| 76 | settings:controller="com.android.settings.accessibility.TextReadingFragmentForDisplaySettingsController"/> |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 77 | </PreferenceCategory> |
Amy Hsu | 7730d30 | 2020-05-11 13:07:33 +0800 | [diff] [blame] | 78 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 79 | <PreferenceCategory |
| 80 | android:title="@string/category_name_color"> |
Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 81 | |
Wilson Wu | 9edf797 | 2021-08-27 10:19:56 +0800 | [diff] [blame] | 82 | <com.android.settingslib.PrimarySwitchPreference |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 83 | 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 Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 88 | |
Paul Keith | 6c0aba3 | 2020-01-14 02:40:16 +0000 | [diff] [blame] | 89 | <lineageos.preference.LineagePartsPreference |
| 90 | android:key="livedisplay" |
| 91 | settings:requiresConfig="@*lineageos.platform:bool/config_enableLiveDisplay" /> |
| 92 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 93 | <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 Hirano | 53cfd11 | 2017-10-10 13:57:07 +0900 | [diff] [blame] | 100 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 101 | <PreferenceCategory |
| 102 | android:title="@string/category_name_display_controls"> |
Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 103 | |
Christian Göllner | ff9065a | 2022-02-17 11:32:54 +0000 | [diff] [blame] | 104 | <!-- |
| 105 | Standard auto-rotation preference that will be shown when device state based |
| 106 | auto-rotation settings are NOT available. |
| 107 | --> |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 108 | <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 Roos | e349ec3 | 2017-05-25 15:49:35 -0700 | [diff] [blame] | 113 | |
Steve Kondik | 4a425be | 2016-09-26 02:53:06 -0700 | [diff] [blame] | 114 | <lineageos.preference.LineagePartsPreference |
| 115 | android:key="rotation" |
| 116 | settings:replacesKey="auto_rotate" |
| 117 | settings:requiresFeature="android.hardware.sensor.accelerometer" /> |
Christian Göllner | ff9065a | 2022-02-17 11:32:54 +0000 | [diff] [blame] | 118 | |
Amy Hsu | 0dea418 | 2022-02-09 13:58:16 +0800 | [diff] [blame] | 119 | <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 Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 126 | <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 Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 131 | |
Michael Bestas | 679e617 | 2021-06-14 03:34:06 +0300 | [diff] [blame] | 132 | <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 | |
LuK1337 | 146e53d | 2020-11-22 03:15:07 +0100 | [diff] [blame] | 138 | <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 Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 144 | <SwitchPreference |
| 145 | android:key="peak_refresh_rate" |
| 146 | android:title="@string/peak_refresh_rate_title" |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 147 | settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController"/> |
Andrew Sapperstein | 6138f1a | 2017-03-22 18:00:47 -0700 | [diff] [blame] | 148 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 149 | <SwitchPreference |
| 150 | android:key="show_operator_name" |
| 151 | android:title="@string/show_operator_name_title" |
| 152 | android:summary="@string/show_operator_name_summary"/> |
Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 153 | |
Jesse Chan | f750cf9 | 2018-04-21 23:54:05 -0700 | [diff] [blame] | 154 | <lineageos.preference.LineagePartsPreference |
| 155 | android:key="long_screen_settings" |
| 156 | settings:requiresConfig="@*lineageos.platform:bool/config_haveHigherAspectRatioScreen" /> |
| 157 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 158 | <Preference |
| 159 | android:key="screensaver" |
| 160 | android:title="@string/screensaver_settings_title" |
Xiaowen Lei | 8b6e115 | 2022-04-20 15:47:36 +0000 | [diff] [blame] | 161 | android:fragment="com.android.settings.dream.DreamSettings" |
Darrell Shi | 542644e | 2022-12-14 18:47:57 +0000 | [diff] [blame] | 162 | settings:keywords="@string/keywords_screensaver" |
| 163 | settings:controller="com.android.settings.display.ScreenSaverPreferenceController"/> |
Lucas Dupin | 74fde3e | 2018-05-22 14:27:40 -0700 | [diff] [blame] | 164 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 165 | <SwitchPreference |
| 166 | android:key="camera_gesture" |
| 167 | android:title="@string/camera_gesture_title" |
| 168 | android:summary="@string/camera_gesture_desc"/> |
Fan Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 169 | |
Yanting Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 170 | <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 Martins | 117eba1 | 2017-12-02 12:52:18 +0000 | [diff] [blame] | 179 | <!-- 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-Tawab | 0ef43e7 | 2017-09-26 19:15:26 -0400 | [diff] [blame] | 187 | <!-- 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 Martins | 603161a | 2023-10-02 09:52:58 +0100 | [diff] [blame^] | 192 | android:defaultValue="@*lineageos.platform:bool/config_dt2sGestureEnabledByDefault" |
| 193 | settings:requiresConfig="@*lineageos.platform:bool/config_dt2sGestureAvailable" /> |
Rashed Abdel-Tawab | 0ef43e7 | 2017-09-26 19:15:26 -0400 | [diff] [blame] | 194 | |
Jon Evans | 922a9ad | 2014-11-30 15:29:13 -0500 | [diff] [blame] | 195 | <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 Martins | 7f2c609 | 2023-10-01 11:34:03 +0100 | [diff] [blame] | 199 | android:defaultValue="@*android:bool/config_unplugTurnsOnScreen" |
| 200 | settings:requiresConfig="@*com.android.settings:bool/config_show_top_level_battery" /> |
Jon Evans | 922a9ad | 2014-11-30 15:29:13 -0500 | [diff] [blame] | 201 | |
LuK1337 | 71fac89 | 2018-03-11 11:38:52 +0100 | [diff] [blame] | 202 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Ramii Ahmed | d85c898 | 2021-07-05 07:11:53 +0000 | [diff] [blame] | 203 | 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 |
LuK1337 | 71fac89 | 2018-03-11 11:38:52 +0100 | [diff] [blame] | 210 | 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 Yang | c2ac66c | 2021-05-25 22:18:23 +0800 | [diff] [blame] | 216 | <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 Zhang | 99abc02 | 2016-10-11 14:23:13 -0700 | [diff] [blame] | 226 | </PreferenceScreen> |