summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorborbelyvince <borbely.vince.11@gmail.com>2024-09-07 11:46:07 +0200
committerborbelyvince <borbely.vince.11@gmail.com>2024-12-10 17:25:24 +0100
commit2da2765b5c0dee065dc68360fd1fac183cf93397 (patch)
tree1dfbc58421a570e8db453726a7aab56dce9ab460
parent4553701c0115a7ec5d6388e46441bb143e767b77 (diff)
Revert "universal9830: decommonize refresh rate configuration"
This reverts commit 3121a33b5c0cad47f2c9e71f66530c7264e7b7b4.
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml16
-rw-r--r--overlay/packages/apps/Settings/res/values/config.xml3
2 files changed, 19 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 8c0f774..ac1603f 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -818,6 +818,22 @@
<!-- Maximum screen brightness setting allowed for VR as float. -->
<item name="config_screenBrightnessSettingForVrMaximumFloat" format="float" type="dimen">1.0</item>
+ <!-- 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>
+
<!-- Vibrator pattern to be used as the default for notifications
that specify DEFAULT_VIBRATE. -->
<integer-array name="config_defaultNotificationVibePattern">
diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml
index 8b1216d..2a81cb8 100644
--- a/overlay/packages/apps/Settings/res/values/config.xml
+++ b/overlay/packages/apps/Settings/res/values/config.xml
@@ -44,4 +44,7 @@
<!-- Threshold in micro watts above which a charger is rated as "fast"; 2.16A @ 5V -->
<integer name="config_chargingFastThreshold">10800000</integer>
+
+ <!-- Whether to show Smooth Display feature in Settings Options -->
+ <bool name="config_show_smooth_display">true</bool>
</resources>