2019-08-16 02:35:51 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- Copyright (C) 2018 The Xiaomi-SDM660 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:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<PreferenceCategory
|
|
|
|
android:key="vibration"
|
|
|
|
android:title="@string/vibration_title">
|
|
|
|
|
|
|
|
<org.lineageos.settings.device.preferences.VibrationSeekBarPreference
|
|
|
|
android:defaultValue="80"
|
|
|
|
android:key="vibration_strength"
|
|
|
|
android:max="100"
|
|
|
|
android:title="@string/vibration_strength_title"
|
|
|
|
app:min="1"
|
|
|
|
app:units="%" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2020-04-15 09:43:56 -04:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="notification_led"
|
|
|
|
android:title="@string/notification_title">
|
|
|
|
<org.lineageos.settings.device.preferences.NotificationLedSeekBarPreference
|
|
|
|
android:key="notification_led_brightness"
|
|
|
|
android:title="@string/notification_led_title"
|
|
|
|
android:max="64"
|
|
|
|
app:min="1"
|
|
|
|
android:defaultValue="64" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2019-08-16 02:35:51 -04:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="display"
|
|
|
|
android:title="@string/display_title">
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
android:key="device_kcal"
|
|
|
|
android:persistent="false"
|
2019-10-15 06:58:29 -04:00
|
|
|
android:title="@string/device_kcal_title"
|
|
|
|
android:icon="@drawable/ic_color">
|
2019-08-16 02:35:51 -04:00
|
|
|
<intent
|
|
|
|
android:action="android.intent.action.MAIN"
|
|
|
|
android:targetClass="org.lineageos.settings.kcal.KCalSettingsActivity"
|
|
|
|
android:targetPackage="org.lineageos.settings.kcal" />
|
|
|
|
</Preference>
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
android:key="device_doze"
|
|
|
|
android:persistent="false"
|
|
|
|
android:summary="@string/advanced_doze_summary"
|
2019-10-15 06:58:29 -04:00
|
|
|
android:title="@string/ambient_display_xiaomi"
|
|
|
|
android:icon="@drawable/ic_doze">
|
2019-08-16 02:35:51 -04:00
|
|
|
<intent
|
|
|
|
android:action="android.intent.action.MAIN"
|
|
|
|
android:targetClass="org.lineageos.settings.doze.DozeSettingsActivity"
|
|
|
|
android:targetPackage="org.lineageos.settings.doze" />
|
|
|
|
</Preference>
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
<PreferenceCategory
|
2019-10-19 11:48:57 -04:00
|
|
|
android:key="thermal_profile"
|
|
|
|
android:title="@string/thermal_profile_title">
|
2019-08-16 02:35:51 -04:00
|
|
|
|
|
|
|
<org.lineageos.settings.device.preferences.SecureSettingListPreference
|
|
|
|
android:defaultValue="0"
|
2019-10-19 11:48:57 -04:00
|
|
|
android:dialogTitle="@string/thermal_dialogTitle"
|
|
|
|
android:entries="@array/thermal_profiles"
|
|
|
|
android:entryValues="@array/thermal_values"
|
|
|
|
android:key="thermal"
|
|
|
|
android:summary="@string/thermal_summary"
|
|
|
|
android:title="@string/thermal_title"
|
|
|
|
android:icon="@drawable/ic_thermal" />
|
2019-08-16 02:35:51 -04:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
<PreferenceCategory
|
|
|
|
android:key="audio"
|
|
|
|
android:title="@string/audio_title">
|
|
|
|
|
|
|
|
<org.lineageos.settings.device.preferences.SecureSettingSwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="dirac_enabled"
|
|
|
|
android:summary="@string/dirac_summary"
|
2019-10-19 11:48:57 -04:00
|
|
|
android:title="@string/dirac_title"
|
2019-10-15 06:58:29 -04:00
|
|
|
android:icon="@drawable/ic_dirac" />
|
2019-08-16 02:35:51 -04:00
|
|
|
|
|
|
|
<org.lineageos.settings.device.preferences.SecureSettingListPreference
|
|
|
|
android:defaultValue="0"
|
|
|
|
android:dependency="dirac_enabled"
|
|
|
|
android:entries="@array/dirac_headset_pref_entries"
|
|
|
|
android:entryValues="@array/dirac_headset_pref_values"
|
|
|
|
android:key="dirac_headset_pref"
|
|
|
|
android:summary="%s"
|
2019-10-15 06:58:29 -04:00
|
|
|
android:title="@string/dirac_headset_title"
|
|
|
|
android:icon="@drawable/ic_headphones" />
|
2019-08-16 02:35:51 -04:00
|
|
|
|
|
|
|
<org.lineageos.settings.device.preferences.SecureSettingListPreference
|
|
|
|
android:defaultValue="0,0,0,0,0,0,0"
|
|
|
|
android:dependency="dirac_enabled"
|
|
|
|
android:entries="@array/dirac_preset_pref_entries"
|
|
|
|
android:entryValues="@array/dirac_preset_pref_values"
|
|
|
|
android:key="dirac_preset_pref"
|
|
|
|
android:summary="%s"
|
2019-10-15 06:58:29 -04:00
|
|
|
android:title="@string/dirac_preset_title"
|
|
|
|
android:icon="@drawable/ic_preset" />
|
2019-08-16 02:35:51 -04:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
<PreferenceCategory
|
|
|
|
android:key="hall_wakeup"
|
|
|
|
android:title="@string/hall_wakeup_title">
|
|
|
|
|
|
|
|
<org.lineageos.settings.device.preferences.SecureSettingSwitchPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="hall"
|
|
|
|
android:summary="@string/hall_wakeup_summary"
|
2019-10-19 11:48:57 -04:00
|
|
|
android:title="@string/hall_title"
|
2019-10-15 06:58:29 -04:00
|
|
|
android:icon="@drawable/ic_flip" />
|
2019-08-16 02:35:51 -04:00
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|