Home
last modified time | relevance | path

Searched refs:appsConsumer (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DScreenPowerCalculatorTest.java131 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testMeasuredEnergyBasedModel() local
132 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
135 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
137 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
229 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testMeasuredEnergyBasedModel_multiDisplay() local
230 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
232 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
234 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
298 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testPowerProfileBasedModel() local
299 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
[all …]
DGnssPowerCalculatorTest.java80 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testTimerBasedModel() local
81 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()
83 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()
127 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testMeasuredEnergyBasedModel() local
128 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
130 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
DIdlePowerCalculatorTest.java62 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testTimerBasedModel() local
63 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
65 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
DMobileRadioPowerCalculatorTest.java178 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testCounterBasedModel() local
179 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()
181 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()
335 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testCounterBasedModel_multipleDefinedRat() local
336 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_multipleDefinedRat()
338 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_multipleDefinedRat()
455 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testCounterBasedModel_legacyPowerProfile() local
456 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_legacyPowerProfile()
458 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_legacyPowerProfile()
658 BatteryConsumer appsConsumer = mStatsRule.getAppsBatteryConsumer(); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() local
[all …]
DSensorPowerCalculatorTest.java90 BatteryConsumer appsConsumer = mStatsRule.getDeviceBatteryConsumer(); in testTimerBasedModel() local
91 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
DWifiPowerCalculatorTest.java173 BatteryConsumer appsConsumer = mStatsRule.getDeviceBatteryConsumer(); in testPowerControllerBasedModel_nonMeasured() local
174 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()
176 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()
262 BatteryConsumer appsConsumer = mStatsRule.getDeviceBatteryConsumer(); in testPowerControllerBasedModel_measured() local
263 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
265 assertThat(appsConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
/frameworks/base/core/java/android/os/
DBatteryUsageStats.java596 final BatteryConsumer appsConsumer = getAggregateBatteryConsumer( in dump() local
603 final double appsPowerMah = appsConsumer.getConsumedPower(key); in dump()
627 appsConsumer.getConsumedPowerForCustomComponent(componentId); in dump()