Searched refs:POWER_COMPONENT_AUDIO (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | AudioPowerCalculator.java | 50 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()
|
D | AudioPowerStatsProcessor.java | 27 super(BatteryConsumer.POWER_COMPONENT_AUDIO, uidResolver, in AudioPowerStatsProcessor()
|
D | BatteryUsageStatsProvider.java | 103 if (!mPowerStatsExporterEnabled.get(BatteryConsumer.POWER_COMPONENT_AUDIO)) { in getPowerCalculators()
|
D | BatteryStatsImpl.java | 6497 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/ |
D | AudioPowerCalculatorTest.java | 63 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()
|
D | UserPowerCalculatorTest.java | 67 .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()
|
D | BinaryStatePowerStatsProcessorTest.java | 56 private static final int POWER_COMPONENT = BatteryConsumer.POWER_COMPONENT_AUDIO;
|
/frameworks/base/core/java/android/os/ |
D | BatteryConsumer.java | 53 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,
|
D | BatteryStats.java | 4420 CHECKIN_POWER_COMPONENT_LABELS[BatteryConsumer.POWER_COMPONENT_AUDIO] = "audio";
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 321 BatteryConsumer.POWER_COMPONENT_AUDIO, 0, in buildBatteryUsageStats()
|
/frameworks/proto_logging/stats/enums/os/ |
D | enums.proto | 69 POWER_COMPONENT_AUDIO = 4; enumerator
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 522 config.trackPowerComponent(BatteryConsumer.POWER_COMPONENT_AUDIO) in createAggregatedPowerStatsConfig() 624 mStats.setPowerStatsCollectorEnabled(BatteryConsumer.POWER_COMPONENT_AUDIO, in systemServicesReady() 627 BatteryConsumer.POWER_COMPONENT_AUDIO, in systemServicesReady()
|