Home
last modified time | relevance | path

Searched refs:POWER_COMPONENT_AUDIO (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DAudioPowerCalculator.java50 return powerComponent == BatteryConsumer.POWER_COMPONENT_AUDIO; in isPowerComponentSupported()
67 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate()
68 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO, total.powerMah); in calculate()
72 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate()
73 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO, total.powerMah); in calculate()
81 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, durationMs) in calculateApp()
82 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO, powerMah); in calculateApp()
DAudioPowerStatsProcessor.java27 super(BatteryConsumer.POWER_COMPONENT_AUDIO, uidResolver, in AudioPowerStatsProcessor()
DBatteryUsageStatsProvider.java103 if (!mPowerStatsExporterEnabled.get(BatteryConsumer.POWER_COMPONENT_AUDIO)) { in getPowerCalculators()
DBatteryStatsImpl.java6497 if (!mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_AUDIO)) { in noteAudioOnLocked()
6514 if (!mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_AUDIO)) { in noteAudioOffLocked()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DAudioPowerCalculatorTest.java63 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
65 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
70 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
77 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
79 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
DUserPowerCalculatorTest.java67 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(3000); in testAllUsers()
74 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(5555); in testAllUsers()
91 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(3000); in testSpecificUser()
96 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(7070); in testSpecificUser()
101 assertThat(user2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testSpecificUser()
139 return powerComponent == BatteryConsumer.POWER_COMPONENT_AUDIO; in isPowerComponentSupported()
146 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, durationMs / 1000); in calculateApp()
DBinaryStatePowerStatsProcessorTest.java56 private static final int POWER_COMPONENT = BatteryConsumer.POWER_COMPONENT_AUDIO;
/frameworks/base/core/java/android/os/
DBatteryConsumer.java53 POWER_COMPONENT_AUDIO,
76 public static final int POWER_COMPONENT_AUDIO = OsProtoEnums.POWER_COMPONENT_AUDIO; // 4 field in BatteryConsumer
112 sPowerComponentNames[POWER_COMPONENT_AUDIO] = "audio";
200 POWER_COMPONENT_AUDIO,
DBatteryStats.java4420 CHECKIN_POWER_COMPONENT_LABELS[BatteryConsumer.POWER_COMPONENT_AUDIO] = "audio";
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java321 BatteryConsumer.POWER_COMPONENT_AUDIO, 0, in buildBatteryUsageStats()
/frameworks/proto_logging/stats/enums/os/
Denums.proto69 POWER_COMPONENT_AUDIO = 4; enumerator
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java522 config.trackPowerComponent(BatteryConsumer.POWER_COMPONENT_AUDIO) in createAggregatedPowerStatsConfig()
624 mStats.setPowerStatsCollectorEnabled(BatteryConsumer.POWER_COMPONENT_AUDIO, in systemServicesReady()
627 BatteryConsumer.POWER_COMPONENT_AUDIO, in systemServicesReady()