• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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"/>
33
34        <com.android.settings.widget.PrimarySwitchPreference
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>
40
41    <PreferenceCategory
42        android:title="@string/category_name_lock_display">
43
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"/>
50
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>
58
59    <PreferenceCategory
60        android:title="@string/category_name_appearance">
61
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"/>
70
71        <Preference
72            android:key="font_size"
73            android:title="@string/title_font_size"
74            android:fragment="com.android.settings.display.ToggleFontSizePreferenceFragment"
75            settings:controller="com.android.settings.display.FontSizePreferenceController"
76            settings:keywords="@string/keywords_font_size"/>
77
78        <com.android.settings.display.ScreenZoomPreference
79            android:key="display_settings_screen_zoom"
80            android:title="@string/screen_zoom_title"
81            android:fragment="com.android.settings.display.ScreenZoomSettings"
82            settings:keywords="@string/keywords_display_size"/>
83    </PreferenceCategory>
84
85    <PreferenceCategory
86        android:title="@string/category_name_color">
87
88        <com.android.settings.widget.PrimarySwitchPreference
89            android:key="night_display"
90            android:title="@string/night_display_title"
91            android:fragment="com.android.settings.display.NightDisplaySettings"
92            settings:controller="com.android.settings.display.NightDisplayPreferenceController"
93            settings:keywords="@string/keywords_display_night_display"/>
94
95        <Preference
96            android:key="color_mode"
97            android:title="@string/color_mode_title"
98            android:fragment="com.android.settings.display.ColorModePreferenceFragment"
99            settings:controller="com.android.settings.display.ColorModePreferenceController"
100            settings:keywords="@string/keywords_color_mode"/>
101    </PreferenceCategory>
102
103    <PreferenceCategory
104        android:title="@string/category_name_display_controls">
105
106        <SwitchPreference
107            android:key="auto_rotate"
108            android:title="@string/accelerometer_title"
109            settings:keywords="@string/keywords_auto_rotate"
110            settings:controller="com.android.settings.display.AutoRotatePreferenceController"/>
111
112        <SwitchPreference
113            android:key="display_white_balance"
114            android:title="@string/display_white_balance_title"
115            android:summary="@string/display_white_balance_summary"
116            settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController"/>
117
118        <SwitchPreference
119            android:key="peak_refresh_rate"
120            android:title="@string/peak_refresh_rate_title"
121            android:summary="@string/peak_refresh_rate_summary"
122            settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController"/>
123
124        <SwitchPreference
125            android:key="show_operator_name"
126            android:title="@string/show_operator_name_title"
127            android:summary="@string/show_operator_name_summary"/>
128
129        <Preference
130            android:key="screensaver"
131            android:title="@string/screensaver_settings_title"
132            android:fragment="com.android.settings.dream.DreamSettings"/>
133
134        <SwitchPreference
135            android:key="camera_gesture"
136            android:title="@string/camera_gesture_title"
137            android:summary="@string/camera_gesture_desc"/>
138
139        <SwitchPreference
140            android:key="lift_to_wake"
141            android:title="@string/lift_to_wake_title"/>
142
143        <SwitchPreference
144            android:key="tap_to_wake"
145            android:title="@string/tap_to_wake"
146            android:summary="@string/tap_to_wake_summary"/>
147
148        <ListPreference
149            android:key="theme"
150            android:title="@string/device_theme"
151            android:summary="@string/summary_placeholder"/>
152
153        <Preference
154            android:key="vr_display_pref"
155            android:title="@string/display_vr_pref_title"
156            android:fragment="com.android.settings.display.VrDisplayPreferencePicker"/>
157    </PreferenceCategory>
158</PreferenceScreen>
159