From 70d5904310d5e739e19f14ce22987748cea3fa80 Mon Sep 17 00:00:00 2001 From: Kenny Guy Date: Tue, 3 Apr 2018 17:02:06 +0100 Subject: [PATCH] Update brightness curves for taimen Update brightness curves using curves from https://cs.corp.google.com/piper///depot/google3/java/com/google/android/libraries/smartbattery/brightness/model/DeviceCurves.java Sampled at integer log values from 0 to 5000. Bug: 74386763 Test: Manual, flash device, adb shell dumpsys display and check brightness config. Test: try phone near window and in dark area check brightness is reasonable. Test: Push zebedee curve, check curve is the same as built in version. Change-Id: I2c92c2bfcc03ccaa07cab6d544913b52184667df --- .../base/core/res/res/values/config.xml | 55 ++++++++++++------- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index d0831b0..61999f4 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -47,15 +47,23 @@ Must be overridden in platform specific overlays --> - 5 + 1 + 2 + 3 + 4 + 8 + 12 20 - 40 - 100 - 325 - 600 - 1250 - 2200 - 4000 + 33 + 55 + 90 + 148 + 245 + 403 + 665 + 1097 + 1808 + 2981 5000 @@ -73,20 +81,27 @@ array. The brightness values must be non-negative and non-decreasing. This must be overridden in platform specific overlays --> - 13.25 - 54 - 78.85 - 105.02 - 132.7 - 170.12 - 212.1 - 265.2 - 335.8 - 415.2 - 478.5 + 7.702998 + 32.31226 + 38.786167 + 43.30993 + 46.851162 + 55.90478 + 61.334614 + 68.43880 + 75.59099 + 82.86860 + 91.49397 + 102.49851 + 118.81740 + 144.68486 + 180.69225 + 225.84135 + 292.46844 + 377.05084 + 481.93427 - 600