Raven: Enable smooth display with 120Hz

The patch turns on smooth display in Settings App by default to allow
more users experience 120Hz. Users can still disable the feature in
Settings App.

Bug: 185102566
Test: Basic panel flickering and performance tests by UTD
Change-Id: I67420f5625294873095c624d75ee7914bbe22035
This commit is contained in:
Yichi Chen 2021-04-29 17:39:48 +08:00
parent 1c49162f14
commit 9cf71a9b1d
2 changed files with 15 additions and 3 deletions

View file

@ -37,6 +37,13 @@
Must be in the range specified by minimum and maximum. --> Must be in the range specified by minimum and maximum. -->
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.29019607843</item> <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.29019607843</item>
<!-- The default refresh rate. Pixel 6 manages this using the peak refresh rate setting, so set
this value to 0 so it has no effect. -->
<integer name="config_defaultRefreshRate">0</integer>
<!-- The default peak refresh rate. -->
<integer name="config_defaultPeakRefreshRate">90</integer>
<!-- Nonlinear coefficients for maximum panel brightness of 500 nits --> <!-- Nonlinear coefficients for maximum panel brightness of 500 nits -->
<string-array name="config_reduceBrightColorsCoefficientsNonlinear"> <string-array name="config_reduceBrightColorsCoefficientsNonlinear">
<!-- a-coefficient --> <item>-0.4553233597</item> <!-- a-coefficient --> <item>-0.4553233597</item>
@ -180,7 +187,4 @@
<!-- Type of the quick pickup sensor. Empty if quick pickup is not supported. --> <!-- Type of the quick pickup sensor. Empty if quick pickup is not supported. -->
<string name="config_quickPickupSensorType" translatable="false">com.google.sensor.quick_pickup</string> <string name="config_quickPickupSensorType" translatable="false">com.google.sensor.quick_pickup</string>
<!-- The default peak refresh rate. -->
<integer name="config_defaultPeakRefreshRate">90</integer>
</resources> </resources>

View file

@ -86,6 +86,13 @@
Must be in the range specified by minimum and maximum. --> Must be in the range specified by minimum and maximum. -->
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.29019607843</item> <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.29019607843</item>
<!-- The default refresh rate. Pixel 6 manages this using the peak refresh rate setting, so set
this value to 0 so it has no effect. -->
<integer name="config_defaultRefreshRate">0</integer>
<!-- The default peak refresh rate. -->
<integer name="config_defaultPeakRefreshRate">120</integer>
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N 1 zones as follows: The N entries of this array define N 1 zones as follows:
Zone 0: 0 <= LUX < array[0] Zone 0: 0 <= LUX < array[0]
@ -158,4 +165,5 @@
<string name="config_mms_user_agent" translatable="false">g8v0u</string> <string name="config_mms_user_agent" translatable="false">g8v0u</string>
<!-- MMS user agent profile url --> <!-- MMS user agent profile url -->
<string name="config_mms_user_agent_profile_url" translatable="false">http://www.gstatic.com/android/sms/G8V0U.xml</string> <string name="config_mms_user_agent_profile_url" translatable="false">http://www.gstatic.com/android/sms/G8V0U.xml</string>
</resources> </resources>