Commit Graph
18 Commits
Author SHA1 Message Date
pjgowtham 7c430cb2dc ferrari: Restore the default auto brightness adjustment gamma
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
2026-11-23 22:27:53 +05:30
pjgowtham fd4bcb5df7 ferrari: Extend auto brightness into high brightness mode
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
2026-11-23 22:27:53 +05:30
pjgowtham e427470034 ferrari: Move brightness thresholds and debounce to displayconfig
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
2026-11-23 22:27:53 +05:30
pjgowtham aa711dc9fe ferrari: Initial tree update from RMX3301_15.0.0.1410(EX01)
Change-Id: I14581196331c7ba714c352c3fbca330683eedabf
2026-11-06 08:20:59 +05:30
pjgowtham 8d2b9aced6 ferrari: Redo brightness configuration and move partially to displayconfig
* 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
2026-11-06 08:20:59 +05:30
pjgowtham 71f6a64a0d ferrari: Utilize oplus fingerprint HIDL with wrapper
Certain devices uses oplus fingerprint AIDL where we don't
have to build the wrapper.

Change-Id: Ie49a36d7199407d424ebaba9863ba1bd04e531a1
2026-11-06 08:18:48 +05:30
pjgowtham 1c12ba9845 ferrari: Update UDFPS sensor location for ferrari
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
2026-11-06 08:18:48 +05:30
Georg Veichtlbauer 5f9bc4b5b7 lemonadep: overlay: Update deprecated screen power items
* screen.on -> screen.on.display0
* screen.full -> screen.full.display0

AOSP frameworks/base: 8ac63071a4e6da7e0740f5eb6c6753218efcfd3a

Change-Id: Iad50e6cb63368e2d71e6fa1dbb6997c0f95d321e
2025-10-06 11:32:23 +02:00
jabashque 76eda3c25c lemonadep: overlay: Set peak refresh rate to 120 Hz
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
2023-12-19 01:55:00 +02:00
pjgowtham 3ebd863242 lemonadep: Move some parts from common
Following adding support for lunaa and martini

Change-Id: Idaab654774f31bf8bfc44d87f3779ea6cc8db94b
2023-04-10 13:19:00 +03:00
LuK1337 ebf4e54ccf lemonadep: Update config_udfps_sensor_props based off SF dumpsys
See OnScreenFingerprintPressedIcon#0 HWC layer size and location.

Change-Id: I69971c1ead040934fcaee641ee8fc6cd66fe26a3
2022-10-22 14:16:29 +02:00
Alexander Koskovich 1b1352cf4e lemonadep: overlay: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
2022-07-09 23:39:25 +02:00
shawnlin 6321ae0241 lemonadep: Fixed status bar glitch for apps that access internal resource dimen
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
2022-06-11 23:06:14 +03:00
Michael Bestas 8bf6efd855 lemonadep: overlay: Use smaller status bar in landscape
Change-Id: I8177887d4c8665d4fd6725318b0679b7b1be2c4b
2022-05-29 20:26:44 +02:00
Michael Bestas c1c399d375 lemonadep: overlay: Align status bar icons with cutout
Change-Id: Ib18e6c4cd4a21e36f5f45ac5f7b894a824e434f3
2022-05-29 20:26:44 +02:00
Alexander Koskovich 797f2ec01d lemonadep: overlay: Update power profile from LE2125_11.C.48
Change-Id: I4770beaaca21a28c4cfed0db44b38497ea0d51c4
2022-05-29 20:26:44 +02:00
Alexander Koskovich b6089fd9f5 lemonadep: overlay: Add white balance overlays from LE2125_11.C.48
[LuK1337]: Remove common overlays while at it.

Change-Id: Ie59f9207478965c6eaf840807635a82933e13303
2022-05-29 20:26:44 +02:00
Alexander Koskovich 1c49159bab lemonadep: overlay: Convert to RRO packages
Change-Id: Iae6ef9fa9743bd2447991ad11d38fa184b12981d
2022-05-29 20:26:44 +02:00