Use enhanced estimate battery info when available

This CL updates the battery page to get the updated strings and
other relevant battery info from directly from SettingsLib by
providing it an overrided drain time instead of manually changing
the value in the returned info. This will provide the added benefit
of using the new strings when appropriate that tell the user that
the estimate provided is based on their usage.

Test: robotests
Bug: 38399659
Change-Id: I0db572c2ea78910756314b6bf066d37e9f90a15c
This commit is contained in:
Salvador Martinez
2017-05-19 11:12:26 -07:00
parent 6f33a52d32
commit be6f07045a
3 changed files with 20 additions and 55 deletions

View File

@@ -178,7 +178,7 @@ public class BatteryUtils {
return timeUs / 1000;
}
private long convertMsToUs(long timeMs) {
public long convertMsToUs(long timeMs) {
return timeMs * 1000;
}