169 lines
7.5 KiB
XML
169 lines
7.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2010 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/com.android.settings"
|
|
xmlns:cm="http://schemas.android.com/apk/res/cyanogenmod.platform"
|
|
android:title="@string/display_settings"
|
|
settings:keywords="@string/keywords_display">
|
|
|
|
<PreferenceCategory
|
|
android:key="display"
|
|
android:title="@string/display_label">
|
|
|
|
<PreferenceScreen
|
|
android:key="brightness"
|
|
android:title="@string/brightness"
|
|
settings:keywords="@string/keywords_display_brightness_level">
|
|
<intent android:action="android.intent.action.SHOW_BRIGHTNESS_DIALOG" />
|
|
</PreferenceScreen>
|
|
|
|
<SwitchPreference
|
|
android:key="auto_brightness"
|
|
android:title="@string/auto_brightness_title"
|
|
settings:keywords="@string/keywords_display_auto_brightness"
|
|
android:summary="@string/auto_brightness_summary" />
|
|
|
|
<!-- LiveDisplay -->
|
|
<org.cyanogenmod.internal.cmparts.CMPartsPreference
|
|
android:key="livedisplay"
|
|
cm:requiresFeature="org.cyanogenmod.livedisplay" />
|
|
|
|
<!-- Rotation -->
|
|
<org.cyanogenmod.internal.cmparts.CMPartsPreference
|
|
android:key="rotation"
|
|
cm:requiresFeature="android.hardware.sensor.accelerometer" />
|
|
|
|
<com.android.settings.display.NightDisplayPreference
|
|
android:key="night_display"
|
|
android:title="@string/night_display_title"
|
|
android:fragment="com.android.settings.display.NightDisplaySettings"
|
|
android:widgetLayout="@null"
|
|
settings:keywords="@string/keywords_display_night_display"
|
|
cm:requiresFeature="!org.cyanogenmod.livedisplay" />
|
|
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:key="wallpaper"
|
|
android:title="@string/wallpaper_settings_title"
|
|
settings:keywords="@string/keywords_display_wallpaper"
|
|
settings:useAdminDisabledSummary="true" >
|
|
<intent
|
|
android:targetPackage="@string/config_wallpaper_picker_package"
|
|
android:targetClass="@string/config_wallpaper_picker_class" />
|
|
</com.android.settingslib.RestrictedPreference>
|
|
|
|
<com.android.settings.TimeoutListPreference
|
|
android:key="screen_timeout"
|
|
android:title="@string/screen_timeout"
|
|
android:summary="@string/screen_timeout_summary"
|
|
android:entries="@array/screen_timeout_entries"
|
|
android:entryValues="@array/screen_timeout_values" />
|
|
|
|
<SwitchPreference
|
|
android:key="camera_gesture"
|
|
android:title="@string/camera_gesture_title"
|
|
android:summary="@string/camera_gesture_desc" />
|
|
|
|
<PreferenceScreen
|
|
android:key="screensaver"
|
|
android:title="@string/screensaver_settings_title"
|
|
android:fragment="com.android.settings.DreamSettings" />
|
|
|
|
<SwitchPreference
|
|
android:key="lift_to_wake"
|
|
android:title="@string/lift_to_wake_title" />
|
|
|
|
<SwitchPreference
|
|
android:key="doze"
|
|
android:title="@string/doze_title"
|
|
android:summary="@string/doze_summary" />
|
|
|
|
<cyanogenmod.preference.RemotePreference
|
|
android:key="doze_device_settings"
|
|
android:title="@string/doze_title"
|
|
android:summary="@string/doze_summary"
|
|
cm:replacesKey="doze">
|
|
<intent android:action="org.cyanogenmod.settings.device.DOZE_SETTINGS" />
|
|
</cyanogenmod.preference.RemotePreference>
|
|
|
|
<cyanogenmod.preference.CMGlobalSettingSwitchPreference
|
|
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" />
|
|
|
|
<SwitchPreference
|
|
android:key="tap_to_wake"
|
|
android:title="@string/tap_to_wake"
|
|
android:summary="@string/tap_to_wake_summary" />
|
|
|
|
<!-- Prevent accidental wake-up -->
|
|
<cyanogenmod.preference.CMSystemSettingSwitchPreference
|
|
android:key="proximity_on_wake"
|
|
android:title="@string/proximity_wake_title"
|
|
android:summary="@string/proximity_wake_summary"
|
|
cm:requiresConfig="@*cyanogenmod.platform:bool/config_proximityCheckOnWake" />
|
|
|
|
<cyanogenmod.preference.CMSystemSettingSwitchPreference
|
|
android:key="high_touch_sensitivity_enable"
|
|
android:title="@string/high_touch_sensitivity_title"
|
|
android:summary="@string/high_touch_sensitivity_summary"
|
|
android:defaultValue="false"
|
|
cm:requiresFeature="cmhardware:FEATURE_HIGH_TOUCH_SENSITIVITY" />
|
|
|
|
<!-- Expanded desktop -->
|
|
<org.cyanogenmod.internal.cmparts.CMPartsPreference
|
|
android:key="expanded_desktop_settings" />
|
|
|
|
<PreferenceScreen
|
|
android:key="font_size"
|
|
android:title="@string/title_font_size"
|
|
android:fragment="com.android.settings.accessibility.ToggleFontSizePreferenceFragment"
|
|
settings:keywords="@string/keywords_display_font_size" />
|
|
|
|
<com.android.settings.display.ScreenZoomPreference
|
|
android:key="screen_zoom"
|
|
android:title="@string/screen_zoom_title"
|
|
settings:keywords="@string/screen_zoom_keywords" />
|
|
|
|
<cyanogenmod.preference.CMSystemSettingSwitchPreference
|
|
android:key="systemui_burnin_protection"
|
|
android:title="@string/burnin_protection_title"
|
|
android:summary="@string/burnin_protection_summary"
|
|
android:defaultValue="false"
|
|
cm:requiresConfig="@*cyanogenmod.platform:bool/config_enableBurnInProtection"/>
|
|
|
|
<!-- Disable on CM
|
|
<DropDownPreference
|
|
android:key="auto_rotate"
|
|
android:summary="%s"
|
|
android:title="@string/display_auto_rotate_title" />
|
|
-->
|
|
|
|
<PreferenceScreen
|
|
android:key="wifi_display"
|
|
android:title="@string/wifi_display_settings_title"
|
|
settings:keywords="@string/keywords_display_cast_screen"
|
|
android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
|
|
|
|
<DropDownPreference
|
|
android:key="vr_display_pref"
|
|
android:summary="%s"
|
|
android:title="@string/display_vr_pref_title" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|