Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DEnergyConsumerSnapshot.java209 final int avgVoltageMV = (oldVoltageMV + voltageMV + 1) / 2; in updateAndGetDelta() local
211 updateAndGetDeltaForTypeOther(consumer, newAttributions, avgVoltageMV); in updateAndGetDelta()
230 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDelta()
300 @Nullable EnergyConsumerAttribution[] newAttributions, int avgVoltageMV) { in updateAndGetDeltaForTypeOther() argument
337 if (deltaUJ < 0 || avgVoltageMV <= 0) { in updateAndGetDeltaForTypeOther()
339 + ") but old energy (" + oldEnergyUJ + "). Average voltage (" + avgVoltageMV in updateAndGetDeltaForTypeOther()
344 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDeltaForTypeOther()
421 private long calculateChargeConsumedUC(long deltaEnergyUJ, int avgVoltageMV) { in calculateChargeConsumedUC() argument
424 return (deltaEnergyUJ * MILLIVOLTS_PER_VOLT + (avgVoltageMV / 2)) / avgVoltageMV; in calculateChargeConsumedUC()