Home
last modified time | relevance | path

Searched refs:avgVoltageMV (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DEnergyConsumerSnapshot.java206 final int avgVoltageMV = (oldVoltageMV + voltageMV + 1) / 2; in updateAndGetDelta() local
208 updateAndGetDeltaForTypeOther(consumer, newAttributions, avgVoltageMV); in updateAndGetDelta()
227 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDelta()
297 @Nullable EnergyConsumerAttribution[] newAttributions, int avgVoltageMV) { in updateAndGetDeltaForTypeOther() argument
334 if (deltaUJ < 0 || avgVoltageMV <= 0) { in updateAndGetDeltaForTypeOther()
336 + ") but old energy (" + oldEnergyUJ + "). Average voltage (" + avgVoltageMV in updateAndGetDeltaForTypeOther()
341 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDeltaForTypeOther()
418 private long calculateChargeConsumedUC(long deltaEnergyUJ, int avgVoltageMV) { in calculateChargeConsumedUC() argument
421 return (deltaEnergyUJ * MILLIVOLTS_PER_VOLT + (avgVoltageMV / 2)) / avgVoltageMV; in calculateChargeConsumedUC()