Home
last modified time | relevance | path

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

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DEnergyConsumerSnapshotTest.java122 assertNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
133 assertNotNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
136 assertEquals(expectedChargeUC, delta.otherTotalChargeUC[0]); in testUpdateAndGetDelta()
138 assertEquals(expectedChargeUC, delta.otherTotalChargeUC[1]); in testUpdateAndGetDelta()
139 assertEquals(0, delta.otherTotalChargeUC[2]); // First good pull. Treat delta as 0. in testUpdateAndGetDelta()
152 assertNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
159 assertNotNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
162 assertEquals(expectedChargeUC, delta.otherTotalChargeUC[0]); in testUpdateAndGetDelta()
164 assertEquals(expectedChargeUC, delta.otherTotalChargeUC[1]); in testUpdateAndGetDelta()
166 assertEquals(expectedChargeUC, delta.otherTotalChargeUC[2]); in testUpdateAndGetDelta()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DEnergyConsumerSnapshot.java127 public @Nullable long[] otherTotalChargeUC = null; field in EnergyConsumerSnapshot.EnergyConsumerDeltaData
139 && isEmpty(otherTotalChargeUC); in isEmpty()
264 if (output.otherTotalChargeUC == null) { in updateAndGetDelta()
265 output.otherTotalChargeUC = new long[mNumOtherOrdinals]; in updateAndGetDelta()
268 output.otherTotalChargeUC[ordinal] = deltaChargeUC; in updateAndGetDelta()
DBatteryExternalStatsWorker.java747 && energyConsumerDeltas.otherTotalChargeUC != null) {
749 for (int ord = 0; ord < energyConsumerDeltas.otherTotalChargeUC.length; ord++) {
750 long totalEnergy = energyConsumerDeltas.otherTotalChargeUC[ord];