Searched refs:deviceBatteryConsumer (Results 1 – 8 of 8) sorted by relevance
84 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local85 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() local137 assertThat(deviceBatteryConsumer in testEnergyConsumptionBasedModel()140 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()142 assertThat(deviceBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()
68 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local69 assertThat(deviceBatteryConsumer in testTimerBasedModel()72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
68 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local69 assertThat(deviceBatteryConsumer in testTimerBasedModel()72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
78 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testMeasuredEnergyCopiedIntoBatteryConsumers() local79 assertThat(deviceBatteryConsumer.getConsumedPowerForCustomComponent( in testMeasuredEnergyCopiedIntoBatteryConsumers()82 assertThat(deviceBatteryConsumer.getConsumedPowerForCustomComponent( in testMeasuredEnergyCopiedIntoBatteryConsumers()
208 final BatteryConsumer deviceBatteryConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local209 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() local281 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()283 assertThat(deviceBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
207 final BatteryConsumer deviceBatteryConsumer = in populateForAggregateBatteryConsumer() local221 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 …]
77 assertEquals(3, proto.deviceBatteryConsumer.powerComponents.length); // Only 3 are non-empty in testGetStatsProto()83 proto.deviceBatteryConsumer); in testGetStatsProto()
474 final AggregateBatteryConsumer deviceBatteryConsumer = getAggregateBatteryConsumer( in writeStatsProto() local484 deviceBatteryConsumer.writeStatsProto(proto, in writeStatsProto()487 deviceBatteryConsumer.writePowerComponentModelProto(proto); in writeStatsProto()