Update display dim configuration

To extend battery life, modify the display dim configuration to enter
the dimming state more aggressively. The screen should dim at
minimum(20 seconds, timeout * 0.33) before the screen actually timing
out.
 Screen timeout (secs) | Dim duration before | Dim duration After
              15                    3                      4.95
              30                    6                      9.9
              60                    7                     19.8
             120                    7                     20
             300                    7                     20
             600                    7                     20
Bug: 315246849
Test: Build & Verify the dim duration with each setting.
Change-Id: I79939290b6a355cf41d43f54a653c533ea833d26
This commit is contained in:
Jeff Chang
2024-01-09 08:52:07 +00:00
parent bd8c454d32
commit da7e85e6c0

View File

@@ -314,4 +314,11 @@
<!-- Pre-scale volume at volume step 3 for Absolute Volume -->
<fraction name="config_prescaleAbsoluteVolume_index3">100%</fraction>
<!-- User activity timeout: Maximum screen dim duration in milliseconds. -->
<integer name="config_maximumScreenDimDuration">20000</integer>
<!-- User activity timeout: Maximum screen dim duration as a percentage of screen off timeout.
-->
<fraction name="config_maximumScreenDimRatio">33%</fraction>
</resources>