blob: 27bf0ba206f5fe94908dbbf37bf916d6b309ccc8 [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"
Edgar Wang77de4052020-02-14 17:58:38 +080022 settings:keywords="@string/keywords_display"
Yi Jiangef851e82021-02-22 00:59:11 -080023 settings:initialExpandedChildrenCount="6">
Fan Zhang99abc022016-10-11 14:23:13 -070024
yuemingw68b03202018-01-10 20:59:43 +000025 <com.android.settingslib.RestrictedPreference
Fan Zhanga0c2c112017-03-23 13:13:36 -070026 android:key="brightness"
27 android:title="@string/brightness"
yuemingw68b03202018-01-10 20:59:43 +000028 settings:keywords="@string/keywords_display_brightness_level"
29 settings:useAdminDisabledSummary="true"
30 settings:userRestriction="no_config_brightness">
31 <intent android:action="com.android.intent.action.SHOW_BRIGHTNESS_DIALOG" />
32 </com.android.settingslib.RestrictedPreference>
Fan Zhang99abc022016-10-11 14:23:13 -070033
Jay Aliomera377b5c2019-10-24 13:42:38 -040034 <com.android.settings.display.darkmode.DarkModePreference
35 android:key="dark_ui_mode"
36 android:title="@string/dark_ui_mode"
37 android:fragment="com.android.settings.display.darkmode.DarkModeSettingsFragment"
38 android:widgetLayout="@null"
39 settings:widgetLayout="@null"
Tsung-Mao Fangae9dc542020-05-05 21:08:37 +080040 settings:controller="com.android.settings.display.DarkUIPreferenceController"
41 settings:keywords="@string/keywords_dark_ui_mode"/>
Jay Aliomera377b5c2019-10-24 13:42:38 -040042
Tsung-Mao Fang010ab292021-01-05 17:49:56 +080043 <com.android.settings.widget.PrimarySwitchPreference
Doris Ling11b224e2017-03-31 13:14:03 -070044 android:key="night_display"
45 android:title="@string/night_display_title"
46 android:fragment="com.android.settings.display.NightDisplaySettings"
Tsung-Mao Fang010ab292021-01-05 17:49:56 +080047 settings:controller="com.android.settings.display.NightDisplayPreferenceController"
48 settings:keywords="@string/keywords_display_night_display"/>
Doris Ling11b224e2017-03-31 13:14:03 -070049
Fan Zhang89f668c2018-04-10 13:08:22 -070050 <Preference
51 android:key="auto_brightness_entry"
Doris Ling11b224e2017-03-31 13:14:03 -070052 android:title="@string/auto_brightness_title"
Fan Zhangb0eab982018-07-10 11:25:18 -070053 android:summary="@string/summary_placeholder"
Fan Zhang89f668c2018-04-10 13:08:22 -070054 android:fragment="com.android.settings.display.AutoBrightnessSettings"
tmfange4753a32019-04-18 16:53:59 +080055 settings:controller="com.android.settings.display.AutoBrightnessPreferenceController"/>
Doris Ling11b224e2017-03-31 13:14:03 -070056
Fan Zhanga0c2c112017-03-23 13:13:36 -070057 <com.android.settingslib.RestrictedPreference
58 android:key="wallpaper"
59 android:title="@string/wallpaper_settings_title"
60 settings:keywords="@string/keywords_display_wallpaper"
Fan Zhang9ce4a1f2018-08-15 12:55:56 -070061 settings:useAdminDisabledSummary="true"
Fan Zhang00235582018-10-29 15:42:06 -070062 settings:controller="com.android.settings.display.WallpaperPreferenceController">
Fan Zhanga0c2c112017-03-23 13:13:36 -070063 </com.android.settingslib.RestrictedPreference>
Fan Zhang99abc022016-10-11 14:23:13 -070064
Andrew Sappersteinfedae392017-07-07 11:02:00 -070065 <!-- Cross-listed item, if you change this, also change it in power_usage_summary.xml -->
Yi Jiang11100492020-12-11 15:12:13 -080066 <com.android.settingslib.RestrictedPreference
Fan Zhanga0c2c112017-03-23 13:13:36 -070067 android:key="screen_timeout"
68 android:title="@string/screen_timeout"
Fan Zhangcdca63c2017-05-05 10:19:52 -070069 android:summary="@string/summary_placeholder"
Yi Jiangf5d18412020-09-10 14:26:51 -070070 android:fragment="com.android.settings.display.ScreenTimeoutSettings"
71 settings:controller="com.android.settings.display.ScreenTimeoutPreferenceController" />
Alex Salobb4e9ce2019-01-17 13:54:03 -080072
Fan Zhang670410c2017-05-05 17:38:50 -070073 <SwitchPreference
Fan Zhanga0c2c112017-03-23 13:13:36 -070074 android:key="auto_rotate"
Matthew Fritze5c5a9212018-03-21 13:46:11 -070075 android:title="@string/accelerometer_title"
LexHuang78df73f2018-03-23 17:51:54 +080076 settings:keywords="@string/keywords_auto_rotate"
Fan Zhang78ea7da2018-07-02 13:44:57 -070077 settings:controller="com.android.settings.display.AutoRotatePreferenceController" />
Fan Zhang99abc022016-10-11 14:23:13 -070078
Romain Guy05fa18f2017-10-24 21:59:40 +010079 <Preference
Romain Guy305f9002017-06-05 18:44:47 -070080 android:key="color_mode"
Romain Guy05fa18f2017-10-24 21:59:40 +010081 android:title="@string/color_mode_title"
82 android:fragment="com.android.settings.display.ColorModePreferenceFragment"
Fan Zhang7f5692b2018-06-08 14:32:04 -070083 settings:controller="com.android.settings.display.ColorModePreferenceController"
Romain Guy05fa18f2017-10-24 21:59:40 +010084 settings:keywords="@string/keywords_color_mode" />
Romain Guy305f9002017-06-05 18:44:47 -070085
Christine Franksa2263072018-12-05 15:35:42 -080086 <SwitchPreference
87 android:key="display_white_balance"
88 android:title="@string/display_white_balance_title"
tmfang73ff4382019-06-26 17:22:10 +080089 android:summary="@string/display_white_balance_summary"
Christine Franksa2263072018-12-05 15:35:42 -080090 settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController" />
91
Amy Hsu7730d302020-05-11 13:07:33 +080092 <SwitchPreference
93 android:key="peak_refresh_rate"
94 android:title="@string/peak_refresh_rate_title"
95 android:summary="@string/peak_refresh_rate_summary"
96 settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController" />
97
Fan Zhanga0c2c112017-03-23 13:13:36 -070098 <Preference
99 android:key="font_size"
100 android:title="@string/title_font_size"
Fan Zhang9aca4cb2018-09-07 17:06:07 -0700101 android:fragment="com.android.settings.display.ToggleFontSizePreferenceFragment"
Stanley Wangddf547f2020-08-05 18:29:54 +0800102 settings:controller="com.android.settings.display.FontSizePreferenceController"
103 settings:keywords="@string/keywords_font_size" />
Fan Zhang99abc022016-10-11 14:23:13 -0700104
Fan Zhanga0c2c112017-03-23 13:13:36 -0700105 <com.android.settings.display.ScreenZoomPreference
Fan Zhang57ef92a2017-10-27 13:33:48 -0700106 android:key="display_settings_screen_zoom"
Fan Zhanga0c2c112017-03-23 13:13:36 -0700107 android:title="@string/screen_zoom_title"
Edgar Wang0934bab2020-02-06 11:40:42 +0800108 android:fragment="com.android.settings.display.ScreenZoomSettings"/>
Fan Zhang99abc022016-10-11 14:23:13 -0700109
Yoshinori Hirano53cfd112017-10-10 13:57:07 +0900110 <SwitchPreference
111 android:key="show_operator_name"
112 android:title="@string/show_operator_name_title"
113 android:summary="@string/show_operator_name_summary" />
114
Fan Zhanga0c2c112017-03-23 13:13:36 -0700115 <Preference
116 android:key="screensaver"
117 android:title="@string/screensaver_settings_title"
Edgar Wang0934bab2020-02-06 11:40:42 +0800118 android:fragment="com.android.settings.dream.DreamSettings" />
Fan Zhang99abc022016-10-11 14:23:13 -0700119
Jason Chiu32930db2019-07-25 16:23:12 +0800120 <Preference
Fan Zhang30d4d012018-05-11 17:49:39 -0700121 android:key="lockscreen_from_display_settings"
122 android:title="@string/lockscreen_settings_title"
123 android:fragment="com.android.settings.security.LockscreenDashboardFragment"
Edgar Wang0934bab2020-02-06 11:40:42 +0800124 settings:keywords="@string/keywords_ambient_display_screen"
Jason Chiu32930db2019-07-25 16:23:12 +0800125 settings:controller="com.android.settings.security.screenlock.LockScreenPreferenceController" />
Adrian Roose349ec32017-05-25 15:49:35 -0700126
Fan Zhanga0c2c112017-03-23 13:13:36 -0700127 <SwitchPreference
128 android:key="camera_gesture"
129 android:title="@string/camera_gesture_title"
130 android:summary="@string/camera_gesture_desc" />
Fan Zhang99abc022016-10-11 14:23:13 -0700131
Fan Zhanga0c2c112017-03-23 13:13:36 -0700132 <SwitchPreference
133 android:key="lift_to_wake"
134 android:title="@string/lift_to_wake_title" />
Andrew Sapperstein6138f1a2017-03-22 18:00:47 -0700135
Adrian Roos95ff1f42017-05-10 13:26:25 -0700136 <SwitchPreference
Fan Zhanga0c2c112017-03-23 13:13:36 -0700137 android:key="tap_to_wake"
138 android:title="@string/tap_to_wake"
139 android:summary="@string/tap_to_wake_summary" />
Fan Zhang99abc022016-10-11 14:23:13 -0700140
Fan Zhanga0c2c112017-03-23 13:13:36 -0700141 <ListPreference
142 android:key="theme"
Lucas Dupin74fde3e2018-05-22 14:27:40 -0700143 android:title="@string/device_theme"
Lucas Dupinc74969e2018-06-25 01:28:04 +0000144 android:summary="@string/summary_placeholder" />
Lucas Dupin74fde3e2018-05-22 14:27:40 -0700145
Fan Zhanga0c2c112017-03-23 13:13:36 -0700146 <Preference
147 android:key="vr_display_pref"
148 android:title="@string/display_vr_pref_title"
149 android:fragment="com.android.settings.display.VrDisplayPreferencePicker" />
Fan Zhang99abc022016-10-11 14:23:13 -0700150
151</PreferenceScreen>