At 100% the adjustment gamma is 1^x, so the framework divides by log(1)
when inferring the adjustment and never reshapes the curve: setting
screen_auto_brightness_adj to +0.8 or -0.8 left the backlight at 21.
Use the default 300% so the adjustment slider works again.
Assisted-by: LLM
Change-Id: Ie029fb68ee82fccf658ca9b98bdd8e715d5d7767
The curve ended at 502 nits for 5000 lux, right at the HBM transition
point, so auto brightness never went brighter in sunlight. Add the
points stock uses from 8700 lux, hbm_lux_table 8 in
display_brightness_config_common.xml. That is the HBM minimum lux, so
brightness stays at the transition point below it, as on stock.
Assisted-by: LLM
Change-Id: If315c5e7bf6016ef9c7fb678d9ac21e1dd14024e
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
* 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
sensorlocationX is calculated as width/2
sensorlocationY is calculated as (height - persist.vendor.fingerprint.optical.iconlocation) ie (3216 - 753 = 2463)
sensorRadius is calculated as persist.vendor.fingerprint.optical.iconsize/2 ie (228/2 = 114)
config_udfpsEnrollProgressBar is calculated as sensorRadius+5
Change-Id: If6556437abc7c760a45bd3f73f34e38f5d9bb3f2
We enabled smooth display in sm8350-common, but we purposely left out
setting the max refresh rate there as not all the sm8350 devices have
the same peak refresh rate. Set it for each device instead.
Change-Id: I26963dd1e26bf39ef2613a3ffc784a0128a3e3b1
Bring back old usage of status_bar_height, status_bar_height_portrait,
and status_bar_height_landscape by set the size containing cutout size.
Bug: 216782082
Test: make
Change-Id: I0bf97352bc07e45d7694f9512266f08e7139c103