[Android] Change battery_utils TieredSetCharging from exceptions based to discovery...
commitc0202d6ab7d128fe54e6fea8ab654918e5e2f3f2
authorrnephew <rnephew@chromium.org>
Tue, 18 Aug 2015 15:58:00 +0000 (18 08:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Aug 2015 15:58:46 +0000 (18 15:58 +0000)
tree14aaf3eae070cc585c8e93445228e9731f534af6
parentfda6c73fb57215b30e99ac9a7b100c44e56aa400
[Android] Change battery_utils TieredSetCharging from exceptions based to discovery based

Currently, it throws an exception to know it cannot do hardware level disable, this
changes it to use profile discovery to decide how to disable charging.

BUG=520958

Review URL: https://codereview.chromium.org/1293143002

Cr-Commit-Position: refs/heads/master@{#343929}
build/android/pylib/device/battery_utils.py
build/android/pylib/device/battery_utils_test.py