Home
last modified time | relevance | path

Searched refs:POWER_COMPONENT_VIDEO (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DVideoPowerCalculator.java47 return powerComponent == BatteryConsumer.POWER_COMPONENT_VIDEO; in isPowerComponentSupported()
64 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate()
65 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO, total.powerMah); in calculate()
69 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate()
70 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO, total.powerMah); in calculate()
78 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, durationMs) in calculateApp()
79 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO, powerMah); in calculateApp()
DVideoPowerStatsProcessor.java27 super(BatteryConsumer.POWER_COMPONENT_VIDEO, uidResolver, in VideoPowerStatsProcessor()
DBatteryUsageStatsProvider.java106 if (!mPowerStatsExporterEnabled.get(BatteryConsumer.POWER_COMPONENT_VIDEO)) { in getPowerCalculators()
DBatteryStatsImpl.java6529 if (!mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_VIDEO)) { in noteVideoOnLocked()
6546 if (!mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_VIDEO)) { in noteVideoOffLocked()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DVideoPowerCalculatorTest.java63 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
65 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
70 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
77 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
79 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
DUserPowerCalculatorTest.java69 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(7000); in testAllUsers()
76 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(9999); in testAllUsers()
93 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(7000); in testSpecificUser()
98 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(11110); in testSpecificUser()
103 assertThat(user2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testSpecificUser()
155 return powerComponent == BatteryConsumer.POWER_COMPONENT_VIDEO; in isPowerComponentSupported()
162 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, durationMs / 1000); in calculateApp()
/frameworks/base/core/java/android/os/
DBatteryConsumer.java54 POWER_COMPONENT_VIDEO,
77 public static final int POWER_COMPONENT_VIDEO = OsProtoEnums.POWER_COMPONENT_VIDEO; // 5 field in BatteryConsumer
113 sPowerComponentNames[POWER_COMPONENT_VIDEO] = "video";
201 POWER_COMPONENT_VIDEO,
DBatteryStats.java4421 CHECKIN_POWER_COMPONENT_LABELS[BatteryConsumer.POWER_COMPONENT_VIDEO] = "video";
/frameworks/proto_logging/stats/enums/os/
Denums.proto70 POWER_COMPONENT_VIDEO = 5; enumerator
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java534 config.trackPowerComponent(BatteryConsumer.POWER_COMPONENT_VIDEO) in createAggregatedPowerStatsConfig()
630 mStats.setPowerStatsCollectorEnabled(BatteryConsumer.POWER_COMPONENT_VIDEO, in systemServicesReady()
633 BatteryConsumer.POWER_COMPONENT_VIDEO, in systemServicesReady()