The display device config overrides these overlays, and the framework
reads the doze brightness only as a fallback for it. Values unchanged;
the config thresholds are in percent rather than permille.
Assisted-by: LLM
Change-Id: I86a5632ce1c5b3af0ab1d4c61c3a58d880a25409
Two points, 2 to 800 nits, are linear in the backlight level, but the
panel isn't: at backlight 1000 it gives 253 nits, not the 196 the map
assumes, and it tops out at 789 nits. Take the points from the S6E3HC3
table stock uses, display_brightness_config_samsung1024.xml, so auto
brightness reaches the nits it asks for. The points keep the error
within 2.5% above the darkest levels.
Assisted-by: LLM
Change-Id: I5d38144e0219ff11e4e8a8ad315111052f565eaa
* Updated minimum brightness calculation from 4/2047 to 4/4095
to align with display DTSI's max level (qcom,mdss-brightness-min-level = 1,
qcom,mdss-brightness-max-level = 4095).
* Synced screenBrightnessRamp with Oplus SM8650.
* screenBrightnessMap is preferred as it supports only floating-point values.
* Calculated High Brightness Mode (HBM) transition point as 2047/(4095-4).
The transition lux is also obtained from OplusSmartBrightnessController.
* Removed some overlays so as to prefer the defaults.
* Update auto brightness overlays from stock display dumpsys under
OplusSmartBrightnessController.
Change-Id: I0b2513be866728f3ddf93f7fbe296d78d862c813
The initial densityMapping configuration had references from AOSP
DisplayDeviceConfig.java template which actually has this inverted.
Let's correct it to account for the native portrait orientation in phones.
Change-Id: I07c9567c1d0c72b7ed77c1fe8fdf399bae30dd85