| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2016 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <PreferenceScreen |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:settings="http://schemas.android.com/apk/res-auto" |
| android:key="display_settings_screen" |
| android:title="@string/display_settings" |
| settings:keywords="@string/keywords_display"> |
| |
| <PreferenceCategory |
| android:title="@string/category_name_brightness"> |
| |
| <com.android.settingslib.RestrictedPreference |
| android:key="brightness" |
| android:title="@string/brightness" |
| settings:keywords="@string/keywords_display_brightness_level" |
| settings:useAdminDisabledSummary="true" |
| settings:userRestriction="no_config_brightness"/> |
| |
| <com.android.settingslib.PrimarySwitchPreference |
| android:key="auto_brightness_entry" |
| android:title="@string/auto_brightness_title" |
| android:fragment="com.android.settings.display.AutoBrightnessSettings" |
| settings:controller="com.android.settings.display.AutoBrightnessPreferenceController"/> |
| </PreferenceCategory> |
| |
| <PreferenceCategory |
| android:title="@string/category_name_lock_display"> |
| |
| <Preference |
| android:key="lockscreen_from_display_settings" |
| android:title="@string/lockscreen_settings_title" |
| android:fragment="com.android.settings.security.LockscreenDashboardFragment" |
| settings:keywords="@string/keywords_ambient_display_screen" |
| settings:controller="com.android.settings.security.screenlock.LockScreenPreferenceController"/> |
| |
| <com.android.settingslib.RestrictedPreference |
| android:key="screen_timeout" |
| android:title="@string/screen_timeout" |
| android:summary="@string/summary_placeholder" |
| android:fragment="com.android.settings.display.ScreenTimeoutSettings" |
| settings:controller="com.android.settings.display.ScreenTimeoutPreferenceController"/> |
| </PreferenceCategory> |
| |
| <PreferenceCategory |
| android:title="@string/category_name_appearance"> |
| |
| <com.android.settings.display.darkmode.DarkModePreference |
| android:key="dark_ui_mode" |
| android:title="@string/dark_ui_mode" |
| android:fragment="com.android.settings.display.darkmode.DarkModeSettingsFragment" |
| android:widgetLayout="@null" |
| settings:widgetLayout="@null" |
| settings:controller="com.android.settings.display.DarkUIPreferenceController" |
| settings:keywords="@string/keywords_dark_ui_mode"/> |
| |
| <Preference |
| android:fragment="com.android.settings.accessibility.TextReadingPreferenceFragment" |
| android:key="text_reading_options" |
| android:persistent="false" |
| android:title="@string/accessibility_text_reading_options_title" |
| settings:controller="com.android.settings.accessibility.TextReadingFragmentForDisplaySettingsController"/> |
| </PreferenceCategory> |
| |
| <PreferenceCategory |
| android:title="@string/category_name_color"> |
| |
| <com.android.settingslib.PrimarySwitchPreference |
| android:key="night_display" |
| android:title="@string/night_display_title" |
| android:fragment="com.android.settings.display.NightDisplaySettings" |
| settings:controller="com.android.settings.display.NightDisplayPreferenceController" |
| settings:keywords="@string/keywords_display_night_display"/> |
| |
| <lineageos.preference.LineagePartsPreference |
| android:key="livedisplay" |
| settings:requiresConfig="@*lineageos.platform:bool/config_enableLiveDisplay" /> |
| |
| <Preference |
| android:key="color_mode" |
| android:title="@string/color_mode_title" |
| android:fragment="com.android.settings.display.ColorModePreferenceFragment" |
| settings:controller="com.android.settings.display.ColorModePreferenceController" |
| settings:keywords="@string/keywords_color_mode"/> |
| </PreferenceCategory> |
| |
| <PreferenceCategory |
| android:title="@string/category_name_display_controls"> |
| |
| <!-- |
| Standard auto-rotation preference that will be shown when device state based |
| auto-rotation settings are NOT available. |
| --> |
| <SwitchPreference |
| android:key="auto_rotate" |
| android:title="@string/accelerometer_title" |
| settings:keywords="@string/keywords_auto_rotate" |
| settings:controller="com.android.settings.display.AutoRotatePreferenceController"/> |
| |
| <lineageos.preference.LineagePartsPreference |
| android:key="rotation" |
| settings:replacesKey="auto_rotate" |
| settings:requiresFeature="android.hardware.sensor.accelerometer" /> |
| |
| <Preference |
| android:key="screen_resolution" |
| android:title="@string/screen_resolution_title" |
| android:fragment="com.android.settings.display.ScreenResolutionFragment" |
| settings:keywords="@string/keywords_screen_resolution" |
| settings:controller="com.android.settings.display.ScreenResolutionController"/> |
| |
| <SwitchPreference |
| android:key="display_white_balance" |
| android:title="@string/display_white_balance_title" |
| android:summary="@string/display_white_balance_summary" |
| settings:controller="com.android.settings.display.DisplayWhiteBalancePreferenceController"/> |
| |
| <ListPreference |
| android:key="max_refresh_rate" |
| android:title="@string/max_refresh_rate_title" |
| android:summary="@string/summary_placeholder" |
| settings:controller="com.android.settings.display.PeakRefreshRateListPreferenceController" /> |
| |
| <ListPreference |
| android:key="min_refresh_rate" |
| android:title="@string/min_refresh_rate_title" |
| android:summary="@string/summary_placeholder" |
| settings:controller="com.android.settings.display.MinRefreshRatePreferenceController" /> |
| |
| <SwitchPreference |
| android:key="peak_refresh_rate" |
| android:title="@string/peak_refresh_rate_title" |
| settings:controller="com.android.settings.display.PeakRefreshRatePreferenceController"/> |
| |
| <SwitchPreference |
| android:key="show_operator_name" |
| android:title="@string/show_operator_name_title" |
| android:summary="@string/show_operator_name_summary"/> |
| |
| <lineageos.preference.LineagePartsPreference |
| android:key="long_screen_settings" |
| settings:requiresConfig="@*lineageos.platform:bool/config_haveHigherAspectRatioScreen" /> |
| |
| <Preference |
| android:key="screensaver" |
| android:title="@string/screensaver_settings_title" |
| android:fragment="com.android.settings.dream.DreamSettings" |
| settings:keywords="@string/keywords_screensaver" |
| settings:controller="com.android.settings.display.ScreenSaverPreferenceController"/> |
| |
| <SwitchPreference |
| android:key="camera_gesture" |
| android:title="@string/camera_gesture_title" |
| android:summary="@string/camera_gesture_desc"/> |
| |
| <SwitchPreference |
| android:key="lift_to_wake" |
| android:title="@string/lift_to_wake_title"/> |
| |
| <SwitchPreference |
| android:key="tap_to_wake" |
| android:title="@string/tap_to_wake" |
| android:summary="@string/tap_to_wake_summary"/> |
| |
| <!-- Prevent accidental wake-up --> |
| <lineageos.preference.LineageSystemSettingSwitchPreference |
| android:key="proximity_on_wake" |
| android:title="@string/proximity_wake_title" |
| android:summary="@string/proximity_wake_summary" |
| android:defaultValue="@*lineageos.platform:bool/config_proximityCheckOnWakeEnabledByDefault" |
| settings:requiresConfig="@*lineageos.platform:bool/config_proximityCheckOnWake" /> |
| |
| <!-- Double tap to sleep --> |
| <lineageos.preference.LineageSystemSettingSwitchPreference |
| android:key="double_tap_sleep_gesture" |
| android:title="@string/status_bar_double_tap_to_sleep_title" |
| android:summary="@string/status_bar_double_tap_to_sleep_summary" |
| android:defaultValue="@*lineageos.platform:bool/config_dt2sGestureEnabledByDefault" |
| settings:requiresConfig="@*lineageos.platform:bool/config_dt2sGestureAvailable" /> |
| |
| <lineageos.preference.LineageGlobalSettingSwitchPreference |
| android:key="wake_when_plugged_or_unplugged" |
| android:title="@string/wake_when_plugged_or_unplugged_title" |
| android:summary="@string/wake_when_plugged_or_unplugged_summary" |
| android:defaultValue="@*android:bool/config_unplugTurnsOnScreen" |
| settings:requiresConfig="@*com.android.settings:bool/config_show_top_level_battery" /> |
| |
| <lineageos.preference.LineageSystemSettingSwitchPreference |
| android:key="high_touch_polling_rate_enable" |
| android:title="@string/high_touch_polling_rate_title" |
| android:summary="@string/high_touch_polling_rate_summary" |
| android:defaultValue="false" |
| settings:requiresFeature="lineagehardware:FEATURE_HIGH_TOUCH_POLLING_RATE" /> |
| |
| <lineageos.preference.LineageSystemSettingSwitchPreference |
| android:key="high_touch_sensitivity_enable" |
| android:title="@string/high_touch_sensitivity_title" |
| android:summary="@string/high_touch_sensitivity_summary" |
| android:defaultValue="false" |
| settings:requiresFeature="lineagehardware:FEATURE_HIGH_TOUCH_SENSITIVITY" /> |
| |
| <ListPreference |
| android:key="theme" |
| android:title="@string/device_theme" |
| android:summary="@string/summary_placeholder"/> |
| |
| <Preference |
| android:key="vr_display_pref" |
| android:title="@string/display_vr_pref_title" |
| android:fragment="com.android.settings.display.VrDisplayPreferencePicker"/> |
| </PreferenceCategory> |
| </PreferenceScreen> |