Correct the formula of battery capacity estimation. am: c800ddc824
am: d4d476943f
Change-Id: I097f2f5a610f2cef639a4c6e7e003bcbd2fd44c5
This commit is contained in:
committed by
android-build-merger
commit
ab03a2f033
@@ -9614,7 +9614,7 @@ public class BatteryStatsImpl extends BatteryStats {
|
|||||||
resetAllStatsLocked();
|
resetAllStatsLocked();
|
||||||
if (chargeUAh > 0) {
|
if (chargeUAh > 0) {
|
||||||
// Only use the reported coulomb charge value if it is supported and reported.
|
// Only use the reported coulomb charge value if it is supported and reported.
|
||||||
mEstimatedBatteryCapacity = (int) ((level / 100.0) * (chargeUAh / 1000));
|
mEstimatedBatteryCapacity = (int) ((chargeUAh / 1000) / (level / 100.0));
|
||||||
}
|
}
|
||||||
mDischargeStartLevel = level;
|
mDischargeStartLevel = level;
|
||||||
reset = true;
|
reset = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user