Searched refs:energyConsumerIds (Results 1 – 9 of 9) sorted by relevance
237 long[] getConsumedEnergyUws(int[] energyConsumerIds); in getConsumedEnergyUws() argument278 public long[] getConsumedEnergyUws(int[] energyConsumerIds) { in getConsumedEnergyUws() argument280 mPowerStatsInternal.getEnergyConsumedAsync(energyConsumerIds); in getConsumedEnergyUws()293 long[] energy = new long[energyConsumerIds.length]; in getConsumedEnergyUws()294 for (int i = 0; i < energyConsumerIds.length; i++) { in getConsumedEnergyUws()295 int id = energyConsumerIds[i]; in getConsumedEnergyUws()
977 final IntArray energyConsumerIds = new IntArray();979 addEnergyConsumerIdLocked(energyConsumerIds, EnergyConsumerType.BLUETOOTH);982 addEnergyConsumerIdLocked(energyConsumerIds, EnergyConsumerType.CPU_CLUSTER);985 addEnergyConsumerIdLocked(energyConsumerIds, EnergyConsumerType.DISPLAY);988 addEnergyConsumerIdLocked(energyConsumerIds, EnergyConsumerType.MOBILE_RADIO);991 addEnergyConsumerIdLocked(energyConsumerIds, EnergyConsumerType.WIFI);994 addEnergyConsumerIdLocked(energyConsumerIds, EnergyConsumerType.CAMERA);997 if (energyConsumerIds.size() == 0) {1000 return getEnergyConsumptionData(energyConsumerIds.toArray());1005 IntArray energyConsumerIds, @EnergyConsumerType int type) {[all …]
100 final IntArray energyConsumerIds = new IntArray(); in capturePeriodicDisplayPower() local103 energyConsumerIds.add(energyConsumers[i].id); in capturePeriodicDisplayPower()107 if (energyConsumerIds.size() == 0) { in capturePeriodicDisplayPower()112 mPowerStatsInternal.getEnergyConsumedAsync(energyConsumerIds.toArray()); in capturePeriodicDisplayPower()
118 int[] energyConsumerIds = retriever.getEnergyConsumerIds(EnergyConsumerType.CPU_CLUSTER); in consumedEnergyRetriever() local119 assertThat(energyConsumerIds).isEqualTo(new int[]{1, 2}); in consumedEnergyRetriever()120 long[] energy = retriever.getConsumedEnergyUws(energyConsumerIds); in consumedEnergyRetriever()122 energy = retriever.getConsumedEnergyUws(energyConsumerIds); in consumedEnergyRetriever()
256 int[] energyConsumerIds) { in getEnergyConsumedAsync() argument259 final int length = energyConsumerIds.length; in getEnergyConsumedAsync()269 results[i] = mEnergyConsumerResults.get(energyConsumerIds[i]); in getEnergyConsumedAsync()
105 int[] energyConsumerIds); in getEnergyConsumed() argument210 int[] energyConsumerIds) { in getEnergyConsumed() argument216 sVintfPowerStats.get().getEnergyConsumed(energyConsumerIds); in getEnergyConsumed()306 int[] energyConsumerIds) { in getEnergyConsumed() argument
406 int[] energyConsumerIds) { in getEnergyConsumedAsync() argument409 () -> PowerStatsService.this.getEnergyConsumedAsync(future, energyConsumerIds)); in getEnergyConsumedAsync()443 int[] energyConsumerIds) { in getEnergyConsumedAsync() argument444 EnergyConsumerResult[] results = getPowerStatsHal().getEnergyConsumed(energyConsumerIds); in getEnergyConsumedAsync()450 if (energyConsumerIds.length == 0) { in getEnergyConsumedAsync()454 expectedLength = energyConsumerIds.length; in getEnergyConsumedAsync()461 if (energyConsumerIds.length == 0) { in getEnergyConsumedAsync()465 for (int i = 0; i < energyConsumerIds.length; i++) { in getEnergyConsumedAsync()466 final int id = energyConsumerIds[i]; in getEnergyConsumedAsync()
58 int[] energyConsumerIds); in getEnergyConsumedAsync() argument
290 public EnergyConsumerResult[] getEnergyConsumed(int[] energyConsumerIds) { in getEnergyConsumed() argument