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
Phasing out config_roundedCornerMultipleRadius config from device
overlay package.
Bug: 224688507
Test: Build ROM and pass presubmit test
Change-Id: I5cb7efdde8b03f89b74d775612b20e78c6e4d89d
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
* 28dp * (450dpi / 160) = 78.75px, this will cause the height
of the status bar to be displayed incorrectly under some apps,
so restore it to its original value.
Change-Id: I82685a0ab33bb08daeaf87b74c93e80aba16c055
With the new added APIs, we don't need to overlay status_bar_height that
contains cutout size and quick_qs_offset_height anymore.
Bug: 186604541
Test: make
Change-Id: I36d869866ed03d3996b7b0d8cc6d3f6bb6ab624d
* fod radius = radius value / 2
* fod x position = x position value + (radius value / 2)
* fod y position = y position value + (radius value / 2)
* fod enroll progress radius = (radius value / 2) + 5
Change-Id: I9d3a39ab6b6b5b069e4ba66ef6baa477fd6829da
It appears that on Android 12 there's a higher status bar padding by
default, thus we need to adjust it by more or less dividing current
value by 2.
Change-Id: I98e34734425e858242d96812e4aa1329c6052be2
Not perfect, but it's a good compromise to keep the text below
the FOD icon without actually appear behind it.
Change-Id: I96df93d87865a0e05f4b8fe894659087b5496ace
It appears that OnePlus is not using AOSP resources for display cutout.
Instead they are drawing it manually thus I used their x, y and radius
to prepare my own vector path:
<dimen name="op_draw_cutout_circle_r">43.0px</dimen>
<dimen name="op_draw_cutout_circle_x">155.0px</dimen>
<dimen name="op_draw_cutout_circle_y">83.0px</dimen>
Change-Id: Ia061229717cd84277d792269aa1985ded07d1ae3
[LuK1337]: Modified vector path so that its height matches regular
cutout path + converted it from relative to absolute.
Change-Id: I792a85826041c7debf7f70e65318855c0cce65fe
When config_screenBrightnessSettingMaximumFloat is unset
we are falling back to legacy (0-255 int) configuration.
Change-Id: Iecb9ad8fcc25178160e2114dd40337f59af3cf66
* Because of config_roundedCornerMultipleRadius being set to
obnoxiously high value we end up having too high corner
border radius for Android recents.
* Also we still need to set rounded_corner_radius to something
other than 0 so that we'll have our rounded border drawables
applied. I guess that 8dp is a fair value for that.
Change-Id: Ib39ac6c4aaf6c00c247b2945e4f0a71ab0789df5
* Set rounded_corner_radius instead of _top + _bottom
as they are exactly the same.
* Overlay rounded.xml with _top drawable as _bottom one
is the pretty much the same as _top after manually
rotating it by 90 degrees.
Change-Id: I89ce857d15804f9a9361ff3825a9426a9382c578