oriole: update thresholds for 90hz
Add zone condition for 90Hz
Bug: 187929149
Test: no refresh rate chagne in the blocking zone
Change-Id: Ia7f5be2464da8ea4ed2c8d370bb6baa0f5be3cc9
diff --git a/oriole/overlay/frameworks/base/core/res/res/values/config.xml b/oriole/overlay/frameworks/base/core/res/res/values/config.xml
index 569a927..1bc575c 100644
--- a/oriole/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/oriole/overlay/frameworks/base/core/res/res/values/config.xml
@@ -172,4 +172,18 @@
<!-- 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>
+ <!-- Not allow to switch to higher refresh rate when display brightness setting is
+ equal or less than this value -->
+ <integer-array name="config_brightnessThresholdsOfPeakRefreshRate">
+ <item>7</item> <!-- 33% UI brightness -->
+ <item>9</item> <!-- 40% UI brightness -->
+ </integer-array>
+ <integer-array name="config_ambientThresholdsOfPeakRefreshRate">
+ <item>-1</item>
+ <item>20</item>
+ </integer-array>
+
+ <!-- default refresh rate in the zone defined by birghtness and ambient thresholds -->
+ <integer name="config_defaultRefreshRateInZone">90</integer>
+
</resources>