android_device_xiaomi_sdm66.../XiaomiParts/res/xml/preferences_xiaomi_parts.xml
OdSazib 9bd430ff9b
sdm660-common: XiaomiParts: Add Headphone & Mic Gain
* This is manually ported by me from Lavender tree on Corvus-Devices
* Thanks @StyloGey for reviewing the java code and giving me a better solution
* Original repo: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

To get it working, you need these two commits in your kernel:
> c04d6d6e61
> 8e25ac3318

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I1bb48ced1f23728daa2e5170647ce08a04347110
2020-10-19 11:36:06 +06:00

137 lines
5.4 KiB
XML

<?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>
<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="100"
app:min="1"
app:units="%"
android:defaultValue="100" />
</PreferenceCategory>
<PreferenceCategory
android:key="audio_amplify"
android:title="@string/audio_amplify">
<org.lineageos.settings.device.preferences.CustomSeekBarPreference
android:defaultValue="0"
android:key="headphone_gain"
android:max="20"
app:min="-10"
android:icon="@drawable/ic_headphone"
android:title="@string/headphone_gain"/>
<org.lineageos.settings.device.preferences.CustomSeekBarPreference
android:defaultValue="0"
android:key="mic_gain"
android:max="20"
app:min="-10"
android:icon="@drawable/ic_mic"
android:title="@string/mic_gain"/>
</PreferenceCategory>
<PreferenceCategory
android:key="display"
android:title="@string/display_title">
<Preference
android:key="device_kcal"
android:persistent="false"
android:title="@string/device_kcal_title"
android:icon="@drawable/ic_color">
<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"
android:title="@string/ambient_display_xiaomi"
android:icon="@drawable/ic_doze">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="org.lineageos.settings.doze.DozeSettingsActivity"
android:targetPackage="org.lineageos.settings.doze" />
</Preference>
<SwitchPreference
android:key="fps_info"
android:icon="@drawable/ic_fps_info"
android:title="@string/fps_info_title"
android:summary="@string/fps_info_summary"
android:persistent="true" />
<Preference
android:key="device_jason"
android:persistent="false"
android:summary="@string/jason_pref_summary"
android:title="@string/jason_pref_title"
android:icon="@drawable/ic_jason">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="org.lineageos.settings.devicex.ButtonSettingsActivity"
android:targetPackage="org.lineageos.settings.devicex" />
</Preference>
</PreferenceCategory>
<PreferenceCategory
android:key="thermal_profile"
android:title="@string/thermal_profile_title">
<org.lineageos.settings.device.preferences.SecureSettingListPreference
android:defaultValue="0"
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" />
</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"
android:title="@string/hall_title"
android:icon="@drawable/ic_flip" />
</PreferenceCategory>
</PreferenceScreen>