Remove unnecessary converting us to ms
- Pick from pagit/1951738 - The class "Estimate" has the menber estimateMillis and the unit of batteryUsageStats.getBatteryTimeRemainingMs() is millisecond, so converting from us to ms is unnecessary. Bug: 187379252 Bug: 184916537 Test: make RunSettingsRoboTests Change-Id: I2e8e03451352d7ad4cd44f72d5261dad35a81eb9
This commit is contained in:
committed by
Wesley Wang
parent
1ff0fe1d5a
commit
273a7d96a3
@@ -204,7 +204,7 @@ public class BatteryInfo {
|
||||
}
|
||||
final long prediction = discharging ? batteryUsageStats.getBatteryTimeRemainingMs() : 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);
|
||||
|
Reference in New Issue
Block a user