summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Rupesh Bansal <brup@google.com> 2022-10-18 11:18:08 +0000
committer Rupesh Bansal <brup@google.com> 2022-10-18 11:23:25 +0000
commit54a69e7a3b3268bbe50bd12ede542ab42ac4d8fe (patch)
tree7c2183352c02d91628d445f08185d75d06bc131e /opengl/java
parentbda789c6412e892660915ccd7ad4adf68ecb37c6 (diff)
Making the config_screenThresholdLevels a float array to fix the issue where it was always greater than all possible brightness values
config_screenThresholdLevels is an integer array, which is internally compared with brightness in [0.0f,1.0f] to get the right index on which the brightening and darkening thresholds are to be applied. This means no matter what we have in the array, it will always be the first index that will win, and we will always apply the first brightening and darkening thresholds. To keep the settings backward compatible, we still accept the integer array for this threshold, and divide those thresholds with the scale range(255). Bug: 245746705 Bug: 243097291 Test: Manual Test: adb shell dumpsys display | grep HysteresisLevels -A 5 Merged-In: I177d7a1aa48bdfb3385780f0eee7af689755efb4 Change-Id: If5d326e5a32cb436e1d2983dd9185549be76f2e8
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions