summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMike Ma <yanmin@google.com>2017-10-10 15:29:25 -0700
committerMike Ma <yanmin@google.com>2017-10-10 22:39:53 +0000
commita7724753d78cb96b8ff0fd4afbe34d05beee3c7e (patch)
treed85f9030a2e2ef8d41e479a8c08584534b285253 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent056dd6aace31f76e635ac0befb6b02f61ca11c43 (diff)
Attribute UNKNOWN display state to OFF
When device restarts, screen state is set to unknown, all timebases stop. Then if setBatteryStateLocked() is called with unplugged state, onBatteryTimeBase starts, but onBatteryScreenOffTimeBase does not, so does ScreenOnTimer, since screen state == unknown. So this duration is lost. This fix attributes unknown state to ScreenOff. Fixes: 67608353 Test: added a unit test in BatteryStatsNoteTest Change-Id: Iee68898522564963e7d0b0110f1aee9248aacfe8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions