summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2017-03-29 19:29:00 -0700
committerAdam Lesinski <adamlesinski@google.com>2017-03-29 19:34:08 -0700
commit29ddfe55fbea04685f1a6d6aff0f74269703c775 (patch)
tree29be5e70432ad9203e1ff9013d0759cc9cb90a2e /tools/aapt2/java/JavaClassGenerator_test.cpp
parent881a623e3522e3e4f0905b606ca5c77cf899b21c (diff)
BatteryStats: Clamp temperature to 0
Temperature is encoded without the sign-bit, meaning negative temperatures cause an underflow and show up in the history as large values. We do not expect to deal with negative temperatures for debugging/diagnostics so just clamp the temperature to 0. Bug: 33270828 Test: adb shell dumpsys battery set temp -10 && adb shell dumpsys batterystats --history Change-Id: I8a92f770e4a90333eade1bb38f21d2d87bb00430
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions