Sfoglia il codice sorgente

sm8450-common: overlay: display: add blocking zone

zone1 condition(10 nits) in 120Hz
zone2 condition(15 nits, 5 Lux) in 120Hz

Bug: 243757430
Bug: 246905529
Test: Check the refresh rata at zone
Change-Id: Iee9bd842571165785c03ae761780371798fbb758
Signed-off-by: Arian <[email protected]>
Gil 2 anni fa
parent
commit
85414ef27d
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. 16 0
      overlay/FrameworksResXiaomi/res/values/config.xml

+ 16 - 0
overlay/FrameworksResXiaomi/res/values/config.xml

@@ -57,4 +57,20 @@
 
     <!-- Whether device supports double tap to wake -->
     <bool name="config_supportDoubleTapWake">true</bool>
+
+    <!-- Low zone brightness thresholds in the range [0, 255] -->
+    <integer-array name="config_brightnessThresholdsOfPeakRefreshRate" translatable="false">
+        <item>3</item>
+        <item>4</item>
+    </integer-array>
+
+    <!-- Low zone lux thresholds -->
+    <integer-array name="config_ambientThresholdsOfPeakRefreshRate" translatable="false">
+        <item>-1</item>
+        <item>5</item>
+    </integer-array>
+
+    <!-- Default refresh rate in the zone defined by brightness and ambient thresholds.
+         If non-positive, then the refresh rate is unchanged even if thresholds are configured. -->
+    <integer name="config_defaultRefreshRateInZone">120</integer>
 </resources>