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 24 <PreferenceCategory 25 android:title="@string/category_name_brightness" 26 android:order="-200"> 27 28 <com.android.settingslib.RestrictedPreference 29 android:key="@string/preference_key_brightness_level" 30 android:title="@string/brightness" 31 settings:keywords="@string/keywords_display_brightness_level" 32 settings:useAdminDisabledSummary="true" 33 settings:userRestriction="no_config_brightness"/> 34 35 <com.android.settingslib.PrimarySwitchPreference 36 android:key="@string/preference_key_auto_brightness" 37 android:title="@string/auto_brightness_title" 38 android:fragment="com.android.settings.display.AutoBrightnessSettings" 39 settings:useAdminDisabledSummary="true" 40 settings:userRestriction="no_config_brightness" 41 settings:controller="com.android.settings.display.AutoBrightnessPreferenceController" /> 42 43 <SwitchPreferenceCompat 44 android:key="even_dimmer_activated" 45 android:title="@string/even_dimmer_display_title" 46 android:summary="@string/even_dimmer_display_summary" 47 settings:controller="com.android.settings.display.EvenDimmerPreferenceController"/> 48 </PreferenceCategory> 49 50 <PreferenceCategory 51 android:title="@string/category_name_lock_display" 52 android:order="-190"> 53 54 <Preference 55 android:key="lockscreen_from_display_settings" 56 android:title="@string/lockscreen_settings_title" 57 android:fragment="com.android.settings.security.LockscreenDashboardFragment" 58 settings:keywords="@string/keywords_ambient_display_screen" 59 settings:controller="com.android.settings.security.screenlock.LockScreenPreferenceController"/> 60 61 <com.android.settingslib.RestrictedPreference 62 android:fragment="com.android.settings.display.FoldLockBehaviorSettings" 63 android:key="fold_lock_behavior" 64 android:title="@string/fold_lock_behavior_title" 65 settings:controller="com.android.settings.display.FoldLockBehaviorPreferenceController" 66 settings:keywords="@string/keywords_fold_lock_behavior" /> 67 68 <com.android.settingslib.RestrictedPreference 69 android:key="screen_timeout" 70 android:title="@string/screen_timeout" 71 android:summary="@string/summary_placeholder" 72 android:fragment="com.android.settings.display.ScreenTimeoutSettings" 73 settings:controller="com.android.settings.display.ScreenTimeoutPreferenceController"/> 74 </PreferenceCategory> 75 76 <PreferenceCategory 77 android:title="@string/category_name_appearance" 78 android:order="-180"> 79 80 <com.android.settings.display.darkmode.DarkModePreference 81 android:key="dark_ui_mode" 82 android:title="@string/dark_ui_mode" 83 android:fragment="com.android.settings.display.darkmode.DarkModeSettingsFragment" 84 android:widgetLayout="@null" 85 settings:widgetLayout="@null" 86 settings:controller="com.android.settings.display.DarkUIPreferenceController" 87 settings:keywords="@string/keywords_dark_ui_mode"/> 88 89 <Preference 90 android:fragment="com.android.settings.accessibility.TextReadingPreferenceFragment" 91 android:key="text_reading_options" 92 android:persistent="false" 93 android:title="@string/accessibility_text_reading_options_title" 94 settings:controller="com.android.settings.accessibility.TextReadingFragmentForDisplaySettingsController"/> 95 </PreferenceCategory> 96 97 <PreferenceCategory 98 android:title="@string/category_name_color" 99 android:order="-170"> 100 101 <com.android.settingslib.PrimarySwitchPreference 102 android:key="night_display" 103 android:title="@string/night_display_title" 104 android:fragment="com.android.settings.display.NightDisplaySettings" 105 settings:controller="com.android.settings.display.NightDisplayPreferenceController" 106 settings:keywords="@string/keywords_display_night_display"/> 107 108 <Preference 109 android:key="color_mode" 110 android:title="@string/color_mode_title" 111 android:fragment="com.android.settings.display.ColorModePreferenceFragment" 112 settings:controller="com.android.settings.display.ColorModePreferenceController" 113 settings:keywords="@string/keywords_color_mode"/> 114 115 <Preference 116 android:fragment="com.android.settings.display.ColorContrastFragment" 117 android:key="color_contrast" 118 android:persistent="false" 119 android:title="@string/accessibility_color_contrast_title" 120 settings:controller="com.android.settings.display.ContrastPreferenceController" 121 settings:searchable="true"/> 122 </PreferenceCategory> 123 124 <PreferenceCategory 125 android:title="@string/category_name_display_controls" 126 android:order="-150"> 127 128 <!-- 129 Standard auto-rotation preference that will be shown when device state based 130 auto-rotation settings are NOT available. 131 --> 132 <SwitchPreferenceCompat 133 android:key="auto_rotate" 134 android:title="@string/accelerometer_title" 135 settings:keywords="@string/keywords_auto_rotate" 136 settings:controller="com.android.settings.display.AutoRotatePreferenceController"/> 137 138 <!-- 139 Auto-rotation preference that will be shown when device state based auto-rotation 140 settings are available. 141 --> 142 <Preference 143 android:key="device_state_auto_rotate" 144 android:title="@string/accelerometer_title" 145 android:fragment="com.android.settings.display.DeviceStateAutoRotateDetailsFragment" 146 settings:keywords="@string/keywords_auto_rotate" 147 settings:controller="com.android.settings.display.DeviceStateAutoRotateOverviewController"/> 148 149 <Preference 150 android:key="screen_resolution" 151 android:title="@string/screen_resolution_title" 152 android:fragment="com.android.settings.display.ScreenResolutionFragment" 153 settings:keywords="@string/keywords_screen_resolution" 154 settings:controller="com.android.settings.display.ScreenResolutionController"/> 155 156 <SwitchPreferenceCompat 157 android:key="display_white_balance" 158 android:title="@string/display_white_balance_title" 159 android:summary="@string/display_white_balance_summary" 160 settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController"/> 161 162 <SwitchPreferenceCompat 163 android:key="peak_refresh_rate" 164 android:title="@string/peak_refresh_rate_title" 165 android:summary="@string/peak_refresh_rate_summary" 166 settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController"/> 167 168 <SwitchPreferenceCompat 169 android:key="show_operator_name" 170 android:title="@string/show_operator_name_title" 171 android:summary="@string/show_operator_name_summary"/> 172 173 <Preference 174 android:key="screensaver" 175 android:title="@string/screensaver_settings_title" 176 android:fragment="com.android.settings.dream.DreamSettings" 177 settings:keywords="@string/keywords_screensaver" 178 settings:controller="com.android.settings.display.ScreenSaverPreferenceController"/> 179 180 <SwitchPreferenceCompat 181 android:key="camera_gesture" 182 android:title="@string/camera_gesture_title" 183 android:summary="@string/camera_gesture_desc"/> 184 185 <SwitchPreferenceCompat 186 android:key="lift_to_wake" 187 android:title="@string/lift_to_wake_title"/> 188 189 <SwitchPreferenceCompat 190 android:key="tap_to_wake" 191 android:title="@string/tap_to_wake" 192 android:summary="@string/tap_to_wake_summary"/> 193 194 <ListPreference 195 android:key="theme" 196 android:title="@string/device_theme" 197 android:summary="@string/summary_placeholder"/> 198 199 <Preference 200 android:key="vr_display_pref" 201 android:title="@string/display_vr_pref_title" 202 android:fragment="com.android.settings.display.VrDisplayPreferencePicker"/> 203 </PreferenceCategory> 204</PreferenceScreen> 205