sm8250-common: Enable automatic refresh rate switching

Change-Id: I67d727cb1630c5ea6a3d5db2d9abdbe6e8453079
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
This commit is contained in:
Park Ju Hyung 2020-01-04 17:48:11 +09:00 committed by LuK1337
parent 4cdee85ae5
commit d7edaddf86
2 changed files with 18 additions and 0 deletions

View file

@ -362,4 +362,19 @@
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently <!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
in hardware. --> in hardware. -->
<bool name="config_setColorTransformAccelerated">true</bool> <bool name="config_setColorTransformAccelerated">true</bool>
<!-- The default peak refresh rate for a given device. -->
<integer name="config_defaultPeakRefreshRate">120</integer>
<!-- Not allow to switch to higher refresh rate when (display, ambient) brightness falls into
the region defined by the two arrays -->
<integer-array name="config_brightnessThresholdsOfPeakRefreshRate">
<item>-1</item>
</integer-array>
<integer-array name="config_ambientThresholdsOfPeakRefreshRate">
<item>-1</item>
</integer-array>
<!-- default refresh rate in the zone defined by brightness and ambient thresholds -->
<integer name="config_defaultRefreshRateInZone">120</integer>
</resources> </resources>

View file

@ -22,4 +22,7 @@
<resources> <resources>
<!-- Doze: does this device support STATE_DOZE? --> <!-- Doze: does this device support STATE_DOZE? -->
<bool name="doze_display_state_supported">true</bool> <bool name="doze_display_state_supported">true</bool>
<!-- Preferred refresh rate at keyguard, if supported by the display -->
<integer name="config_keyguardRefreshRate">120</integer>
</resources> </resources>