Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DWifiPowerCalculatorTest.java96 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testPowerControllerBasedModel_nonMeasured() local
97 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() local
131 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()
DGnssPowerCalculatorTest.java66 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
67 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() local
114 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
116 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
DScreenPowerCalculatorTest.java109 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testMeasuredEnergyBasedModel() local
110 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() local
181 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()
DMobileRadioPowerCalculatorTest.java108 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testCounterBasedModel() local
109 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() local
169 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testMeasuredEnergyBasedModel()
171 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testMeasuredEnergyBasedModel()
DIdlePowerCalculatorTest.java48 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
49 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
51 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
DWakelockPowerCalculatorTest.java76 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
77 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
79 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
DSensorPowerCalculatorTest.java78 BatteryConsumer deviceConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
79 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
/frameworks/base/core/java/android/os/
DBatteryUsageStats.java546 final BatteryConsumer deviceConsumer = getAggregateBatteryConsumer( in dump() local
553 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()