From 0c8297c4e7bd0d738de05ff9d5baf1da2969ed03 Mon Sep 17 00:00:00 2001 From: Anthony Han Date: Tue, 18 Jun 2019 16:56:11 -0700 Subject: [PATCH] Interpolate high light white balance In very high lux conditions, add an option to force a cooler white balance cct to maximize display brightness. Test: atest AmbientLuxTest Bug: 134417265 Change-Id: I3db16eaf66c38955e2b11db11c766b85b8a0b5b8 --- core/res/res/values/config.xml | 31 ++- core/res/res/values/symbols.xml | 3 + .../DisplayWhiteBalanceController.java | 71 ++++++- .../DisplayWhiteBalanceFactory.java | 11 + .../display/whitebalance/AmbientLuxTest.java | 194 ++++++++++++++++-- 5 files changed, 287 insertions(+), 23 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 1e7f5166131ab..c2592fa661ac3 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -4045,10 +4045,37 @@ + The ambient color temperature (in cct) to which we interpolate towards using the + the look up table generated by config_displayWhiteBalanceLowLightAmbientBrightnesses + and config_displayWhiteBalanceLowLightAmbientBiases. --> 6500.0 + + + + + + + + + + 8000.0 +