unicorn: overlay: Allow switching between 60Hz and 120Hz

Change-Id: I4f328dbdce50e709f30b1f098e71248d72819268
This commit is contained in:
Cosmin Tanislav
2021-09-05 01:14:47 +03:00
committed by Arian
parent 945d802217
commit 0111f1b003
5 changed files with 46 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ $(call inherit-product, vendor/xiaomi/unicorn/unicorn-vendor.mk)
PRODUCT_PACKAGES += \
FrameworksResUnicorn \
SettingsProviderResUnicorn \
SettingsResUnicorn \
SystemUIResUnicorn \
WifiResUnicorn

View File

@@ -29,4 +29,20 @@
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string name="config_mainBuiltInDisplayCutout" translatable="false">M 0,0 H -42 V 108 H 42 V 0 H 0 Z</string>
<!-- The default refresh rate for a given device. Change this value to set a higher default
refresh rate. If the hardware composer on the device supports display modes with a higher
refresh rate than the default value specified here, the framework may use those higher
refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
setFrameRate().
If a non-zero value is set for config_defaultPeakRefreshRate, then
config_defaultRefreshRate may be set to 0, in which case the value set for
config_defaultPeakRefreshRate will act as the default frame rate. -->
<integer name="config_defaultRefreshRate">0</integer>
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
the framework from using higher refresh rates, even if display modes with higher refresh
rates are available from hardware composer. Only has an effect if the value is
non-zero. -->
<integer name="config_defaultPeakRefreshRate">120</integer>
</resources>

View File

@@ -0,0 +1,10 @@
//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "SettingsResUnicorn",
device_specific: true,
}

View File

@@ -0,0 +1,10 @@
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.settings.overlay.unicorn">
<overlay android:targetPackage="com.android.settings"
android:isStatic="true"
android:priority="700"/>
</manifest>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether to show Smooth Display feature in Settings Options -->
<bool name="config_show_smooth_display">true</bool>
</resources>