Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/
DEnergyConsumerSnapshot.java44 private final SparseArray<EnergyConsumer> mEnergyConsumers; field in EnergyConsumerSnapshot
92 mEnergyConsumers = idToConsumerMap; in EnergyConsumerSnapshot()
93 mEnergyConsumerSnapshots = new SparseLongArray(mEnergyConsumers.size()); in EnergyConsumerSnapshot()
94 mVoltageSnapshots = new SparseIntArray(mEnergyConsumers.size()); in EnergyConsumerSnapshot()
192 final EnergyConsumer consumer = mEnergyConsumers.get(consumerId, null); in updateAndGetDelta()
351 for (int i = 0; i < mEnergyConsumers.size(); i++) { in dump()
352 final int id = mEnergyConsumers.keyAt(i); in dump()
353 final EnergyConsumer consumer = mEnergyConsumers.valueAt(i); in dump()
377 final int size = mEnergyConsumers.size(); in getOtherOrdinalNames()
379 final EnergyConsumer consumer = mEnergyConsumers.valueAt(idx); in getOtherOrdinalNames()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryExternalStatsWorkerTest.java240 private final SparseArray<EnergyConsumer> mEnergyConsumers = new SparseArray(); field in BatteryExternalStatsWorkerTest.TestPowerStatsInternal
246 final int size = mEnergyConsumers.size(); in getEnergyConsumerInfo()
249 consumers[i] = mEnergyConsumers.valueAt(i); in getEnergyConsumerInfo()
310 mEnergyConsumers.put(id, consumer); in addEnergyConsumer()
327 final int size = mEnergyConsumers.size(); in getNextAvailableId()
330 if (mEnergyConsumers.keyAt(i) == i) return i + 1; in getNextAvailableId()
/frameworks/base/services/core/java/com/android/server/powerstats/
DPowerStatsService.java117 private EnergyConsumer[] mEnergyConsumers = null; field in PowerStatsService
363 if (mEnergyConsumers == null) { in getEnergyConsumerInfo()
364 mEnergyConsumers = getPowerStatsHal().getEnergyConsumerInfo(); in getEnergyConsumerInfo()
366 return mEnergyConsumers; in getEnergyConsumerInfo()