OSDN Git Service

Remove STATE_TOP_SLEEPING from foreground time
authorjackqdyulei <jackqdyulei@google.com>
Mon, 24 Apr 2017 18:37:00 +0000 (11:37 -0700)
committerjackqdyulei <jackqdyulei@google.com>
Mon, 24 Apr 2017 18:37:00 +0000 (11:37 -0700)
commit7c6e6e92545228be7152a69df59232ec9cadcfa2
tree30cd521d96e7b12835ac24e82356d241c80a2e11
parent9e89d528f6e7dc8b689e98ef838ca876c2817959
Remove STATE_TOP_SLEEPING from foreground time

That state means the time when app is on top while screen is off,
we should not count it as foreground usage time.

Bug: 37547898
Test: RunSettingsRoboTests
Change-Id: I67e0c135d0c4b71cd667037b0d5dc7673b53607e
src/com/android/settings/fuelgauge/BatteryUtils.java
tests/robotests/src/com/android/settings/fuelgauge/BatteryUtilsTest.java