Home
last modified time | relevance | path

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

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DEnergyConsumerSnapshotTest.java280 final EnergyConsumerResult ecr = new EnergyConsumerResult(); in createEnergyConsumerResult() local
281 ecr.id = id; in createEnergyConsumerResult()
282 ecr.energyUWs = energyUWs; in createEnergyConsumerResult()
284 ecr.attribution = new EnergyConsumerAttribution[uids.length]; in createEnergyConsumerResult()
286 ecr.attribution[i] = new EnergyConsumerAttribution(); in createEnergyConsumerResult()
287 ecr.attribution[i].uid = uids[i]; in createEnergyConsumerResult()
288 ecr.attribution[i].energyUWs = uidEnergies[i]; in createEnergyConsumerResult()
291 return ecr; in createEnergyConsumerResult()
/frameworks/base/services/core/java/com/android/server/power/stats/
DEnergyConsumerSnapshot.java185 for (final EnergyConsumerResult ecr : ecrs) { in updateAndGetDelta()
187 final int consumerId = ecr.id; in updateAndGetDelta()
188 final long newEnergyUJ = ecr.energyUWs; in updateAndGetDelta()
189 final EnergyConsumerAttribution[] newAttributions = ecr.attribution; in updateAndGetDelta()