Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsCollector.java237 long[] getConsumedEnergyUws(int[] energyConsumerIds); in getConsumedEnergyUws() argument
278 public long[] getConsumedEnergyUws(int[] energyConsumerIds) { in getConsumedEnergyUws() argument
280 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()
DBatteryExternalStatsWorker.java977 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 …]
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DPmicMonitor.java100 final IntArray energyConsumerIds = new IntArray(); in capturePeriodicDisplayPower() local
103 energyConsumerIds.add(energyConsumers[i].id); in capturePeriodicDisplayPower()
107 if (energyConsumerIds.size() == 0) { in capturePeriodicDisplayPower()
112 mPowerStatsInternal.getEnergyConsumedAsync(energyConsumerIds.toArray()); in capturePeriodicDisplayPower()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsCollectorTest.java118 int[] energyConsumerIds = retriever.getEnergyConsumerIds(EnergyConsumerType.CPU_CLUSTER); in consumedEnergyRetriever() local
119 assertThat(energyConsumerIds).isEqualTo(new int[]{1, 2}); in consumedEnergyRetriever()
120 long[] energy = retriever.getConsumedEnergyUws(energyConsumerIds); in consumedEnergyRetriever()
122 energy = retriever.getConsumedEnergyUws(energyConsumerIds); in consumedEnergyRetriever()
DBatteryExternalStatsWorkerTest.java256 int[] energyConsumerIds) { in getEnergyConsumedAsync() argument
259 final int length = energyConsumerIds.length; in getEnergyConsumedAsync()
269 results[i] = mEnergyConsumerResults.get(energyConsumerIds[i]); in getEnergyConsumedAsync()
/frameworks/base/services/core/java/com/android/server/powerstats/
DPowerStatsHALWrapper.java105 int[] energyConsumerIds); in getEnergyConsumed() argument
210 int[] energyConsumerIds) { in getEnergyConsumed() argument
216 sVintfPowerStats.get().getEnergyConsumed(energyConsumerIds); in getEnergyConsumed()
306 int[] energyConsumerIds) { in getEnergyConsumed() argument
DPowerStatsService.java406 int[] energyConsumerIds) { in getEnergyConsumedAsync() argument
409 () -> PowerStatsService.this.getEnergyConsumedAsync(future, energyConsumerIds)); in getEnergyConsumedAsync()
443 int[] energyConsumerIds) { in getEnergyConsumedAsync() argument
444 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()
/frameworks/base/services/core/java/android/power/
DPowerStatsInternal.java58 int[] energyConsumerIds); in getEnergyConsumedAsync() argument
/frameworks/base/services/tests/powerstatstests/src/com/android/server/powerstats/
DPowerStatsServiceTest.java290 public EnergyConsumerResult[] getEnergyConsumed(int[] energyConsumerIds) { in getEnergyConsumed() argument