/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | UserPowerCalculatorTest.java | 61 .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()
|
D | ScreenPowerCalculatorTest.java | 86 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()
|
D | WifiPowerCalculatorTest.java | 89 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()
|
D | VideoPowerCalculatorTest.java | 55 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()
|
D | AudioPowerCalculatorTest.java | 55 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()
|
D | CameraPowerCalculatorTest.java | 55 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()
|
D | WakelockPowerCalculatorTest.java | 65 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()
|
D | IdlePowerCalculatorTest.java | 49 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel() 55 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
|
D | GnssPowerCalculatorTest.java | 59 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()
|
D | AmbientDisplayPowerCalculatorTest.java | 66 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testMeasuredEnergyBasedModel() 90 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testPowerProfileBasedModel()
|
D | CpuPowerCalculatorTest.java | 147 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()
|
D | MemoryPowerCalculatorTest.java | 56 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_MEMORY)) in testTimerBasedModel()
|
D | FlashlightPowerCalculatorTest.java | 55 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT)) in testTimerBasedModel()
|
D | SensorPowerCalculatorTest.java | 73 assertThat(consumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
|
D | BatteryUsageStatsTest.java | 413 assertThat(uidBatteryConsumer.getUsageDurationMillis( in assertUidBatteryConsumer() 430 assertThat(userBatteryConsumer.getUsageDurationMillis( in assertUserBatteryConsumer() 449 assertThat(appsBatteryConsumer.getUsageDurationMillis( in assertAggregateBatteryConsumer()
|
D | BluetoothPowerCalculatorTest.java | 142 long usageDurationMillis = batteryConsumer.getUsageDurationMillis( in assertBluetoothPowerAndDuration()
|
D | BatteryUsageStatsProviderTest.java | 256 .getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_FLASHLIGHT)) in testAggregateBatteryStats()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/ |
D | PowerMetrics.java | 64 uidBatteryConsumer.getUsageDurationMillis(component); in PowerMetrics() 77 selectedBatteryConsumer.getUsageDurationMillis(component), in PowerMetrics()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryConsumerData.java | 158 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/ |
D | BatteryConsumer.java | 219 public long getUsageDurationMillis(@PowerComponent int componentId) { in getUsageDurationMillis() method in BatteryConsumer 220 return mPowerComponents.getUsageDurationMillis(componentId); in getUsageDurationMillis()
|
D | PowerComponents.java | 179 public long getUsageDurationMillis(@BatteryConsumer.PowerComponent int componentId) { in getUsageDurationMillis() method in PowerComponents 316 final long durationMs = getUsageDurationMillis(componentId);
|
D | BatteryUsageStats.java | 562 deviceConsumer.getUsageDurationMillis(componentId)); in dump()
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 126 consumer.getUsageDurationMillis(componentId), in assertSameBatteryConsumer()
|