ferrari: Add support for high brightness mode (HBM)

* Brightness from 2047 (488~ nits) to 4095 (800 nits) is HBM.
  Enter HBM at >=6500 lux (outdoor daylight) and hit peak brightness
  at >=10000 lux (under direct sunlight). Adjust the backlight curve
  accordingly.

Change-Id: Id186b6a1ab90c16debb20f840e5beab9fe6828b4
Signed-off-by: Sugakesshaa <sugakesshaa@gmail.com>
This commit is contained in:
adithya2306
2024-11-03 11:37:30 +05:30
committed by pjgowtham
parent f78d12b278
commit c5203e4832
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<displayConfiguration>
<!-- root node for HBM-->
<highBrightnessMode enabled="true">
<!-- Transition point brightness from normal to HBM mode -->
<transitionPoint>0.4998779</transitionPoint>
<!-- Minimum lux to enter HBM -->
<minimumLux>6001</minimumLux>
<!-- Time limitation for HBM-->
<timing>
<timeWindowSecs>0</timeWindowSecs>
<timeMaxSecs>0</timeMaxSecs>
<timeMinSecs>0</timeMinSecs>
</timing>
<!-- Thermal limitation for HBM -->
<thermalStatusLimit>critical</thermalStatusLimit>
<!-- Low power mode limitation for HBM -->
<allowInLowPowerMode>true</allowInLowPowerMode>
</highBrightnessMode>
</displayConfiguration>

View File

@@ -30,6 +30,10 @@ TARGET_SCREEN_WIDTH := 1080
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
# Display
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/display/display_id_4630946358012694402.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630946358012694402.xml
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc-service.nxp \