Home
last modified time | relevance | path

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

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DEnergyConsumerSnapshotTest.java60 private static final int VOLTAGE_0 = 4_000; field in EnergyConsumerSnapshotTest
110 assertNull(snapshot.updateAndGetDelta(null, VOLTAGE_0)); in testUpdateAndGetDelta_empty()
111 assertNull(snapshot.updateAndGetDelta(new EnergyConsumerResult[0], VOLTAGE_0)); in testUpdateAndGetDelta_empty()
119 EnergyConsumerDeltaData delta = snapshot.updateAndGetDelta(RESULTS_0, VOLTAGE_0); in testUpdateAndGetDelta()
130 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()
209 EnergyConsumerDeltaData delta = snapshot.updateAndGetDelta(RESULTS_0, VOLTAGE_0); in testUpdateAndGetDelta_some()
220 calculateChargeConsumedUC(14_000, VOLTAGE_0, 24_000, VOLTAGE_1); in testUpdateAndGetDelta_some()