OSDN Git Service

Fix Display White Balance color temperature on enable
authorDaniel Solomon <solomondaniel@google.com>
Mon, 8 Apr 2019 21:30:51 +0000 (14:30 -0700)
committerDaniel Solomon <solomondaniel@google.com>
Tue, 9 Apr 2019 17:47:48 +0000 (17:47 +0000)
commitdff8b1b6464556c3359131dbfd226086e8af9c18
tree00097d3aa5e519ad7b322fa8b8b2b7f96d77bdb4
parent85e35eb118fb2a762cf76fc1e64fcada7800520c
Fix Display White Balance color temperature on enable

Currently the ambient-to-display color temperature spline is applied to
all color temperature values, including the placeholder value -1.0 that
is used when DWB is first enabled. When this happens, display color
temperature is first set to its lowest value, and is then set to a
meaningful value when the sensor updates its first reading. This
behavior is incorrect.

To fix this, check for a valid color temperature value
before applying the spline.

Bug 130137407
Test: manual

Change-Id: I67a06504e499411fd34e05569e9cd0cbc9f81df1
services/core/java/com/android/server/display/whitebalance/DisplayWhiteBalanceController.java