Description[Android L] Add (dis)chargingTime support for the Battery Status API.
This patch implements the estimation of (dis)chargingTime on devices
running Android L (and above). Android L supports new properties in
BatteryManager which can be used to provide such estimates.
BUG=401553
TEST=http://jsbin.com/battery-status-test
Committed: https://crrev.com/13e397e55501bee3903bfe46edfd56f2442c1f11
Cr-Commit-Position: refs/heads/master@{#317372}
Patch Set 1 #Patch Set 2 : tweaks to computation + added tests #Patch Set 3 : remove logging #Patch Set 4 : make tests more robust #
Total comments: 12
Patch Set 5 : fix comments #Patch Set 6 : rebase #Patch Set 7 : fix compile #Patch Set 8 : fix findbugs #
Messages
Total messages: 24 (9 generated)
|