From 77fa9fca9911144e1d7d41b519a94b0e228ac7f6 Mon Sep 17 00:00:00 2001 From: Chenyang Zhong Date: Thu, 3 Mar 2022 15:55:02 +0800 Subject: [PATCH] sdm660-common: displayconfig: Add brightness ramp rate Android 12 allows the brightness ramp rate to be changed separately for fast/slow and increase/decrease in float. Once loaded, DisplayDeviceConfig has higher priority than the integer config values in frameworks. The format definition is in [1]. The value can be found in boot logs by grepping DisplayDeviceInfo. On android 11, boot log reports the 19xxxxx value of the second variant. On android 12, boot log reports the 46xxxxx value of the first variant. The xml file can be put in either product or vendor. [1] frameworks/base/services/core/xsd/display-device-config/display-device-config.xsd [clarencelol: Adjust accordingly based on brightness minimum and nits in overlay] Signed-off-by: clarencelol Signed-off-by: pix106 --- configs/displayconfig/display_id_0.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/displayconfig/display_id_0.xml b/configs/displayconfig/display_id_0.xml index 705fe405..d0af2363 100644 --- a/configs/displayconfig/display_id_0.xml +++ b/configs/displayconfig/display_id_0.xml @@ -16,14 +16,18 @@ --> + 0.5 + 0.5 + 0.04 + 0.05 0.0 - 2.0 + 1.0 1.0 - 450.0 + 420.0