Searched refs:deviceConsumer (Results 1 – 8 of 8) sorted by relevance
96 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testPowerControllerBasedModel_nonMeasured() local97 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()99 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()101 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()130 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testPowerControllerBasedModel_measured() local131 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()133 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()135 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
66 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local67 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()69 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()113 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testMeasuredEnergyBasedModel() local114 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()116 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
109 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testMeasuredEnergyBasedModel() local110 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()114 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()116 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()180 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testPowerProfileBasedModel() local181 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()183 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()185 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
108 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testCounterBasedModel() local109 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()111 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()168 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testMeasuredEnergyBasedModel() local169 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testMeasuredEnergyBasedModel()171 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testMeasuredEnergyBasedModel()
48 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local49 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()51 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
76 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local77 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()79 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
78 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local79 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
546 final BatteryConsumer deviceConsumer = getAggregateBatteryConsumer( in dump() local553 final double devicePowerMah = deviceConsumer.getConsumedPower(componentId); in dump()561 deviceConsumer.getPowerModel(componentId), in dump()562 deviceConsumer.getUsageDurationMillis(componentId)); in dump()570 deviceConsumer.getConsumedPowerForCustomComponent(componentId); in dump()577 printPowerComponent(pw, prefix, deviceConsumer.getCustomPowerComponentName(componentId), in dump()580 deviceConsumer.getUsageDurationForCustomComponentMillis(componentId)); in dump()