From f1e673649e11b98f537489b7889f1d6efa6e7ff9 Mon Sep 17 00:00:00 2001 From: Dan Gittik Date: Fri, 23 Mar 2018 14:46:15 +0000 Subject: Added safeguards for pushed brighntess curve. Currently, the only safeguard is making sure the brightness curve isn't too dark to turn auto-brightness off (or connect the phone to a computer and reset the curve with ADB). Test: atest BrightnessMappingStrategyTest. Change-Id: Ic87292fe51639a0001d0d5643ca24cda37de5753 Fixes: 74439069 --- core/res/res/values/config.xml | 24 ++++++ core/res/res/values/symbols.xml | 2 + .../server/display/BrightnessMappingStrategy.java | 40 +++++++++- .../display/BrightnessMappingStrategyTest.java | 90 ++++++++++++++++++++++ 4 files changed, 152 insertions(+), 4 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 55c17b9b2af4..b5e223cbec43 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1340,6 +1340,30 @@ + + + 2000 + 4000 + + + + + 1.0 + 50.0 + 90.0 + +