Home
last modified time | relevance | path

Searched refs:deviceBatteryConsumer (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DCameraPowerCalculatorTest.java84 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
85 assertThat(deviceBatteryConsumer in testTimerBasedModel()
88 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
90 assertThat(deviceBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
136 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testEnergyConsumptionBasedModel() local
137 assertThat(deviceBatteryConsumer in testEnergyConsumptionBasedModel()
140 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()
142 assertThat(deviceBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()
DVideoPowerCalculatorTest.java68 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
69 assertThat(deviceBatteryConsumer in testTimerBasedModel()
72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
DAudioPowerCalculatorTest.java68 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
69 assertThat(deviceBatteryConsumer in testTimerBasedModel()
72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
DCustomEnergyConsumerPowerCalculatorTest.java78 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testMeasuredEnergyCopiedIntoBatteryConsumers() local
79 assertThat(deviceBatteryConsumer.getConsumedPowerForCustomComponent( in testMeasuredEnergyCopiedIntoBatteryConsumers()
82 assertThat(deviceBatteryConsumer.getConsumedPowerForCustomComponent( in testMeasuredEnergyCopiedIntoBatteryConsumers()
DCpuPowerCalculatorTest.java208 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
209 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
211 assertThat(deviceBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
280 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testMeasuredEnergyBasedModel() local
281 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
283 assertThat(deviceBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java207 final BatteryConsumer deviceBatteryConsumer = in populateForAggregateBatteryConsumer() local
221 if (isPowerProfileModelsOnly(deviceBatteryConsumer)) { in populateForAggregateBatteryConsumer()
223 deviceBatteryConsumer.getConsumedPower(), in populateForAggregateBatteryConsumer()
227 deviceBatteryConsumer.getConsumedPower(), in populateForAggregateBatteryConsumer()
240 final int powerModel = deviceBatteryConsumer.getPowerModel(component); in populateForAggregateBatteryConsumer()
244 deviceBatteryConsumer.getConsumedPower(component), in populateForAggregateBatteryConsumer()
248 deviceBatteryConsumer.getConsumedPower(component), in populateForAggregateBatteryConsumer()
257 deviceBatteryConsumer.getCustomPowerComponentCount(); in populateForAggregateBatteryConsumer()
259 final String name = deviceBatteryConsumer.getCustomPowerComponentName( in populateForAggregateBatteryConsumer()
262 deviceBatteryConsumer.getConsumedPowerForCustomComponent( in populateForAggregateBatteryConsumer()
[all …]
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java77 assertEquals(3, proto.deviceBatteryConsumer.powerComponents.length); // Only 3 are non-empty in testGetStatsProto()
83 proto.deviceBatteryConsumer); in testGetStatsProto()
/frameworks/base/core/java/android/os/
DBatteryUsageStats.java474 final AggregateBatteryConsumer deviceBatteryConsumer = getAggregateBatteryConsumer( in writeStatsProto() local
484 deviceBatteryConsumer.writeStatsProto(proto, in writeStatsProto()
487 deviceBatteryConsumer.writePowerComponentModelProto(proto); in writeStatsProto()