* Implement DC Dimming preference * Disable DC Dimming if it's not supported * Implement HBM switch * Adapt HBM and DC dimming settings to S style * Define DC dimming and HBM nodes / keys in one place * Declare exported flags in manifest * Fix compilation for QPR1 * Fix compilation for Android 15 * Adapt to sm8350-common devices Co-Authored-By: Nauval Rizky <enuma.alrizky@gmail.com> Co-Authored-By: Adhitya Mohan <me@adhityamohan.in> Co-Authored-By: TheScarastic <warabhishek@gmail.com> Co-Authored-By: alibei <sebastiankotzias83@gmail.com> Co-Authored-By: kamikaonashi <thorschi93@gmx.at>
49 lines
2 KiB
XML
49 lines
2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright (C) 2021 The Evolution X Project
|
|
Copyright (C) 2018-2021 crDroid Android 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/org.lineageos.settings.HBMFragment"
|
|
android.title="@string/hbm_fragment_title">
|
|
|
|
<PreferenceCategory>
|
|
<SwitchPreference
|
|
android:key="hbm"
|
|
android:title="@string/hbm_mode_title"
|
|
android:summary="@string/hbm_mode_summary"
|
|
android:defaultValue="false" />
|
|
|
|
<SwitchPreference
|
|
android:key="auto_hbm"
|
|
android:title="@string/auto_hbm_title"
|
|
android:summary="@string/auto_hbm_summary" />
|
|
|
|
<org.lineageos.settings.hbm.AutoHBMThresholdPreference
|
|
android:key="auto_hbm_threshold"
|
|
android:title="@string/auto_hbm_threshold_title"
|
|
android:summary="@string/auto_hbm_threshold_summary" />
|
|
|
|
<org.lineageos.settings.hbm.AutoHBMTimePreference
|
|
android:key="hbm_disable_time"
|
|
android:title="@string/hbm_disable_time_title"
|
|
android:summary="@string/hbm_disable_time_summary" />
|
|
|
|
<Preference
|
|
android:icon="@drawable/ic_info_outline"
|
|
android:summary="@string/hbm_mode_warning"
|
|
android:persistent="false" />
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|