Merge "Remove unnecessary converting us to ms in BatteryInfo"

This commit is contained in:
Wesley Wang
2021-06-29 09:52:07 +00:00
committed by Gerrit Code Review

View File

@@ -204,7 +204,7 @@ public class BatteryInfo {
final long prediction = discharging
? stats.computeBatteryTimeRemaining(elapsedRealtimeUs) : 0;
final Estimate estimate = new Estimate(
PowerUtil.convertUsToMs(prediction),
prediction,
false, /* isBasedOnUsage */
EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN);
BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime);