summaryrefslogtreecommitdiff
path: root/tools/stats_log_api_gen
diff options
context:
space:
mode:
authorFiona Campbell <flc@google.com>2020-04-21 16:32:21 +0100
committerFiona Campbell <flc@google.com>2020-05-15 15:10:40 +0100
commit3c6b51a9ec146fa006785709f59a07cb1572fed0 (patch)
treee952b1009402e740e0fbb066cf29dfa64a712c70 /tools/stats_log_api_gen
parent3443ba8dc98cbd71b2d3bbc1c78809d4b0da3353 (diff)
Convert BrightnessUtils to use brightness as float
convertGammaToLinear needed to be constrained to 0-12, as sometimes ret variable was 12.000001. The first parameter for gammaToLinear_minValue_shouldReturnMin has been changed - initally it used 1 (MIN_INT) but it should have been using 0 (GAMMA_SPACE_MIN). Since the function rounded the value at the end, the result ended up the same. The original functions cannot be removed yet since Car uses these methods. Bug: 150671605 Test: m -j99 RunSettingsLibRoboTests ROBOTEST_FILTER="com.android.settingslib.display.BrightnessUtilsTest" Change-Id: I4bba2ca0785f94597590c8f4bb3a7a8a834d6c83
Diffstat (limited to 'tools/stats_log_api_gen')
0 files changed, 0 insertions, 0 deletions