Home
last modified time | relevance | path

Searched refs:getUsageDurationMillis (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DUserPowerCalculatorTest.java61 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(3000); in testAllUsers()
63 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(7000); in testAllUsers()
68 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(5555); in testAllUsers()
70 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(9999); in testAllUsers()
85 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(3000); in testSpecificUser()
87 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(7000); in testSpecificUser()
90 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)).isEqualTo(7070); in testSpecificUser()
92 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)).isEqualTo(11110); in testSpecificUser()
95 assertThat(user2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testSpecificUser()
97 assertThat(user2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testSpecificUser()
DScreenPowerCalculatorTest.java86 assertThat(uid1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
98 assertThat(uid2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
110 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
120 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
159 assertThat(uid1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
170 assertThat(uid2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
181 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
189 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
DWifiPowerCalculatorTest.java89 assertThat(uidConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()
97 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()
122 assertThat(uidConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
131 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
169 assertThat(uidConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testTimerBasedModel_nonMeasured()
189 assertThat(uidConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WIFI)) in testTimerBasedModel_measured()
DVideoPowerCalculatorTest.java55 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
62 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
69 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
DAudioPowerCalculatorTest.java55 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
62 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
69 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
DCameraPowerCalculatorTest.java55 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
62 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
69 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
DWakelockPowerCalculatorTest.java65 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
71 assertThat(osConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
77 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
DIdlePowerCalculatorTest.java49 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
55 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
DGnssPowerCalculatorTest.java59 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()
98 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
106 assertThat(consumer2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
DAmbientDisplayPowerCalculatorTest.java66 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testMeasuredEnergyBasedModel()
90 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testPowerProfileBasedModel()
DCpuPowerCalculatorTest.java147 assertThat(uidConsumer1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
156 assertThat(uidConsumer2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
223 assertThat(uidConsumer1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
232 assertThat(uidConsumer2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
DMemoryPowerCalculatorTest.java56 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_MEMORY)) in testTimerBasedModel()
DFlashlightPowerCalculatorTest.java55 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT)) in testTimerBasedModel()
DSensorPowerCalculatorTest.java73 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
DBatteryUsageStatsTest.java413 assertThat(uidBatteryConsumer.getUsageDurationMillis( in assertUidBatteryConsumer()
430 assertThat(userBatteryConsumer.getUsageDurationMillis( in assertUserBatteryConsumer()
449 assertThat(appsBatteryConsumer.getUsageDurationMillis( in assertAggregateBatteryConsumer()
DBluetoothPowerCalculatorTest.java142 long usageDurationMillis = batteryConsumer.getUsageDurationMillis( in assertBluetoothPowerAndDuration()
DBatteryUsageStatsProviderTest.java256 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT)) in testAggregateBatteryStats()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetrics.java64 uidBatteryConsumer.getUsageDurationMillis(component); in PowerMetrics()
77 selectedBatteryConsumer.getUsageDurationMillis(component), in PowerMetrics()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java158 requestedBatteryConsumer.getUsageDurationMillis(component), in populateForUidBatteryConsumer()
236 deviceBatteryConsumer.getUsageDurationMillis(component), 0); in populateForAggregateBatteryConsumer()
315 durationByComponentMs[component] += consumer.getUsageDurationMillis(component); in computeTotalDuration()
/frameworks/base/core/java/android/os/
DBatteryConsumer.java219 public long getUsageDurationMillis(@PowerComponent int componentId) { in getUsageDurationMillis() method in BatteryConsumer
220 return mPowerComponents.getUsageDurationMillis(componentId); in getUsageDurationMillis()
DPowerComponents.java179 public long getUsageDurationMillis(@BatteryConsumer.PowerComponent int componentId) { in getUsageDurationMillis() method in PowerComponents
316 final long durationMs = getUsageDurationMillis(componentId);
DBatteryUsageStats.java562 deviceConsumer.getUsageDurationMillis(componentId)); in dump()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java126 consumer.getUsageDurationMillis(componentId), in assertSameBatteryConsumer()