sm7125: Switch to min_refresh_rate and set defaultPeakRefreshRate to 60Hz

*Allows us to switch between 60Hz and 90Hz in settings

Change-Id: I3062c2cb844fd8ae56ff8618901b14cf9d27a8f2
fourteen-wip
Simon1511 3 years ago
parent d8559baecc
commit 9c87b1a604
  1. 21
      overlay/frameworks/base/core/res/res/values/config.xml
  2. 3
      overlay/packages/apps/Settings/res/values/config.xml

@ -818,22 +818,11 @@
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">M 0,0 M 0,12.25101276465640 a 10.60613009248640,10.60613009248640 0 1,0 0,21.21226018497290 a 10.60613009248640,10.60613009248640 0 1,0 0,-21.21226018497290 Z @dp</string>
<!-- The default peak refresh rate for a given device. Change this value if you want to allow
for higher refresh rates to be automatically used out of the box -->
<integer name="config_defaultPeakRefreshRate">90</integer>
<!-- 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">90</integer>
<!-- default refresh rate in the zone defined by brightness and ambient thresholds -->
<integer name="config_defaultRefreshRateInZone">90</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">60</integer>
<!-- When true use the linux /dev/input/event subsystem to detect the switch changes
on the headphone/microphone jack. When false use the older uevent framework. -->

@ -15,4 +15,7 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<dimen name="fingerprint_dot_radius">8dp</dimen>
<item name="fingerprint_sensor_location_fraction_y" type="fraction">85%</item>
<!-- Whether to show min refresh rate in display settings -->
<bool name="config_show_min_refresh_rate_switch">true</bool>
</resources>

Loading…
Cancel
Save