OSDN Git Service

Add additional logging for temperature readings.
authorAndrew Sapperstein <asapperstein@google.com>
Thu, 2 Feb 2017 01:13:08 +0000 (17:13 -0800)
committerAndrew Sapperstein <asapperstein@google.com>
Fri, 3 Feb 2017 20:50:19 +0000 (12:50 -0800)
commita6ed7f8ba5f2a6349fc5526a5353a47188b6b513
tree0abc220ddb6bb27501a5153403b3a8b7b7e47ac8
parentfc866baa333a60a988208293fa2eb99d7e90d427
Add additional logging for temperature readings.

In order to determine how often devices are reaching various
temperatures, we now cache the last hour of temperature readings.
Once it's been an hour, we calculate the avg/min/max and log the results.

Additionally, this CL adds some logging to show how the temperature has
changed over time during the one hour window and what the charging status
is when the notification shows.

Bug: 3451088134379897
Test: manual
Change-Id: I62a5ccc92122f5d2955a52677740e896f0d7892b
packages/SystemUI/src/com/android/systemui/power/PowerUI.java