1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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 settings:initialExpandedChildrenCount="5"> 24 25 <com.android.settingslib.RestrictedPreference 26 android:key="brightness" 27 android:title="@string/brightness" 28 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> 33 34 <com.android.car.developeroptions.display.NightDisplayPreference 35 android:key="night_display" 36 android:title="@string/night_display_title" 37 android:fragment="com.android.car.developeroptions.display.NightDisplaySettings" 38 android:widgetLayout="@null" 39 settings:widgetLayout="@null" 40 settings:searchable="false" /> 41 42 <Preference 43 android:key="auto_brightness_entry" 44 android:title="@string/auto_brightness_title" 45 android:summary="@string/summary_placeholder" 46 android:fragment="com.android.car.developeroptions.display.AutoBrightnessSettings" 47 settings:controller="com.android.car.developeroptions.display.AutoBrightnessPreferenceController" 48 settings:keywords="@string/keywords_auto_brightness"/> 49 50 <com.android.settingslib.RestrictedPreference 51 android:key="wallpaper" 52 android:title="@string/wallpaper_settings_title" 53 settings:keywords="@string/keywords_display_wallpaper" 54 settings:useAdminDisabledSummary="true" 55 settings:controller="com.android.car.developeroptions.display.WallpaperPreferenceController"> 56 </com.android.settingslib.RestrictedPreference> 57 58 59 <Preference 60 android:key="dark_ui_mode" 61 android:fragment="com.android.car.developeroptions.display.DarkUISettings" 62 android:title="@string/dark_ui_mode" 63 settings:searchable="false" 64 settings:controller="com.android.car.developeroptions.display.DarkUIPreferenceController"/> 65 66 <!-- Cross-listed item, if you change this, also change it in power_usage_summary.xml --> 67 <com.android.car.developeroptions.display.TimeoutListPreference 68 android:key="screen_timeout" 69 android:title="@string/screen_timeout" 70 android:summary="@string/summary_placeholder" 71 android:entries="@array/screen_timeout_entries" 72 android:entryValues="@array/screen_timeout_values" 73 settings:keywords="@string/keywords_screen_timeout" /> 74 75 <Preference 76 android:key="adaptive_sleep_entry" 77 android:title="@string/adaptive_sleep_title" 78 android:summary="@string/summary_placeholder" 79 android:fragment="com.android.car.developeroptions.display.AdaptiveSleepSettings" 80 settings:controller="com.android.car.developeroptions.display.AdaptiveSleepPreferenceController" /> 81 82 <SwitchPreference 83 android:key="auto_rotate" 84 android:title="@string/accelerometer_title" 85 settings:keywords="@string/keywords_auto_rotate" 86 settings:controller="com.android.car.developeroptions.display.AutoRotatePreferenceController" /> 87 88 <Preference 89 android:key="color_mode" 90 android:title="@string/color_mode_title" 91 android:fragment="com.android.car.developeroptions.display.ColorModePreferenceFragment" 92 settings:controller="com.android.car.developeroptions.display.ColorModePreferenceController" 93 settings:keywords="@string/keywords_color_mode" /> 94 95 <SwitchPreference 96 android:key="display_white_balance" 97 android:title="@string/display_white_balance_title" 98 settings:controller="com.android.car.developeroptions.display.DisplayWhiteBalancePreferenceController" /> 99 100 <Preference 101 android:key="font_size" 102 android:title="@string/title_font_size" 103 android:fragment="com.android.car.developeroptions.display.ToggleFontSizePreferenceFragment" 104 settings:controller="com.android.car.developeroptions.display.FontSizePreferenceController" /> 105 106 <com.android.car.developeroptions.display.ScreenZoomPreference 107 android:key="display_settings_screen_zoom" 108 android:title="@string/screen_zoom_title" 109 android:fragment="com.android.car.developeroptions.display.ScreenZoomSettings" 110 settings:searchable="false"/> 111 112 <SwitchPreference 113 android:key="show_operator_name" 114 android:title="@string/show_operator_name_title" 115 android:summary="@string/show_operator_name_summary" /> 116 117 <Preference 118 android:key="screensaver" 119 android:title="@string/screensaver_settings_title" 120 android:fragment="com.android.car.developeroptions.dream.DreamSettings" 121 settings:searchable="false" /> 122 123 <com.android.settingslib.RestrictedPreference 124 android:key="lockscreen_from_display_settings" 125 android:title="@string/lockscreen_settings_title" 126 android:fragment="com.android.car.developeroptions.security.LockscreenDashboardFragment" 127 settings:controller="com.android.car.developeroptions.security.screenlock.LockScreenPreferenceController" 128 settings:userRestriction="no_ambient_display" /> 129 130 <SwitchPreference 131 android:key="camera_gesture" 132 android:title="@string/camera_gesture_title" 133 android:summary="@string/camera_gesture_desc" /> 134 135 <SwitchPreference 136 android:key="lift_to_wake" 137 android:title="@string/lift_to_wake_title" /> 138 139 <SwitchPreference 140 android:key="tap_to_wake" 141 android:title="@string/tap_to_wake" 142 android:summary="@string/tap_to_wake_summary" /> 143 144 <ListPreference 145 android:key="theme" 146 android:title="@string/device_theme" 147 android:summary="@string/summary_placeholder" /> 148 149 <Preference 150 android:key="vr_display_pref" 151 android:title="@string/display_vr_pref_title" 152 android:fragment="com.android.car.developeroptions.display.VrDisplayPreferencePicker" /> 153 154</PreferenceScreen> 155