Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DMeasuredEnergySnapshotTest.java130 expectedChargeUC = calculateChargeConsumedUC(14_000, VOLTAGE_0, 24_000, VOLTAGE_1); in testUpdateAndGetDelta()
135 expectedChargeUC = calculateChargeConsumedUC(90_000, VOLTAGE_0, 90_000, VOLTAGE_1); in testUpdateAndGetDelta()
137 expectedChargeUC = calculateChargeConsumedUC(0, VOLTAGE_0, 12_000_000, VOLTAGE_1); in testUpdateAndGetDelta()
149 expectedChargeUC = calculateChargeConsumedUC(24_000, VOLTAGE_1, 36_000, VOLTAGE_2); in testUpdateAndGetDelta()
165 expectedChargeUC = calculateChargeConsumedUC(12_000, VOLTAGE_1, 13_000, VOLTAGE_3); in testUpdateAndGetDelta()
171 expectedChargeUC = calculateChargeConsumedUC(0, VOLTAGE_1, 9_000, VOLTAGE_3); in testUpdateAndGetDelta()
173 expectedChargeUC = calculateChargeConsumedUC(13_000, VOLTAGE_1, 18_000, VOLTAGE_3); in testUpdateAndGetDelta()
175 expectedChargeUC = calculateChargeConsumedUC(0, VOLTAGE_1, 6_000, VOLTAGE_3); in testUpdateAndGetDelta()
195 expectedChargeUC = calculateChargeConsumedUC(9_000, VOLTAGE_3, 11_000, VOLTAGE_4); in testUpdateAndGetDelta()
199 expectedChargeUC = calculateChargeConsumedUC(0, VOLTAGE_3, 8_000, VOLTAGE_4); in testUpdateAndGetDelta()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DMeasuredEnergySnapshot.java205 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDelta()
315 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDeltaForTypeOther()
392 private long calculateChargeConsumedUC(long deltaEnergyUJ, int avgVoltageMV) { in calculateChargeConsumedUC() method in MeasuredEnergySnapshot