From e427470034d1e302846d70c12d319e77e64a0c08 Mon Sep 17 00:00:00 2001 From: pjgowtham Date: Mon, 9 Nov 2026 08:52:47 +0530 Subject: [PATCH] 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 --- configs/display/displayconfig.xml | 49 +++++++++++++ .../res/values/config.xml | 70 ------------------- 2 files changed, 49 insertions(+), 70 deletions(-) diff --git a/configs/display/displayconfig.xml b/configs/display/displayconfig.xml index fd8cce8..67af0ce 100644 --- a/configs/display/displayconfig.xml +++ b/configs/display/displayconfig.xml @@ -82,10 +82,59 @@ + + 1500 + 1500 + 0.06 0.06 0.04 0.04 3000 3000 + + + + + 0 + 0 + + + + + + + 0 + 0 + + + + + + + + + 0 + 60 + + + 10 + 30 + + + + + + + 0 + 60 + + + 10 + 30 + + + + + 0.00097680097 diff --git a/overlay/OPlusFrameworksResTarget/res/values/config.xml b/overlay/OPlusFrameworksResTarget/res/values/config.xml index 369876d..46018bd 100644 --- a/overlay/OPlusFrameworksResTarget/res/values/config.xml +++ b/overlay/OPlusFrameworksResTarget/res/values/config.xml @@ -9,63 +9,6 @@ Software implementation will be used if config_hardware_auto_brightness_available is not set --> true - - - 600 - 300 - - - - - 600 - 300 - - - - - 10 - - - - - 0 - - - - - 0 - - 0.00097680097 - - 0.00097680097 - @@ -251,14 +189,6 @@ auto-brightness adjustment setting. --> 100% - - 1500 - 1500 - 5000