Home
last modified time | relevance | path

Searched refs:getConsumedPower (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java109 requestedBatteryConsumer.getConsumedPower(), in populateForUidBatteryConsumer()
112 .getConsumedPower()); in populateForUidBatteryConsumer()
115 requestedBatteryConsumer.getConsumedPower(), in populateForUidBatteryConsumer()
118 .getConsumedPower()); in populateForUidBatteryConsumer()
120 requestedModeledBatteryConsumer.getConsumedPower(), in populateForUidBatteryConsumer()
123 .getConsumedPower()); in populateForUidBatteryConsumer()
132 requestedBatteryConsumer.getConsumedPower(component), in populateForUidBatteryConsumer()
138 requestedBatteryConsumer.getConsumedPower(component), in populateForUidBatteryConsumer()
143 requestedModeledBatteryConsumer.getConsumedPower(component), in populateForUidBatteryConsumer()
198 batteryConsumer.getConsumedPower(key), 0); in addProcessStateEntries()
[all …]
DBatteryConsumerInfoHelper.java73 info.powerMah = uidBatteryConsumer.getConsumedPower(); in makeBatteryConsumerInfo()
142 info.powerMah = batteryUsageStats.getConsumedPower(); in makeAggregateBatteryConsumerInfo()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DGnssPowerCalculatorTest.java69 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()
75 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()
81 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testTimerBasedModel()
108 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
116 assertThat(consumer2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
122 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
128 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS)) in testMeasuredEnergyBasedModel()
DCameraPowerCalculatorTest.java71 assertThat(app1Consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
79 assertThat(app2Consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
88 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
97 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testTimerBasedModel()
123 assertThat(app1Consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()
131 assertThat(app2Consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()
140 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()
149 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CAMERA)) in testEnergyConsumptionBasedModel()
DScreenPowerCalculatorTest.java104 assertThat(uid1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
116 assertThat(uid2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
126 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
135 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
200 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
212 assertThat(uid1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
224 assertThat(uid2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
232 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
274 assertThat(uid1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
285 assertThat(uid2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
[all …]
DCpuPowerCalculatorTest.java193 assertThat(uidConsumer1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
202 assertThat(uidConsumer2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
209 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
215 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel()
265 assertThat(uidConsumer1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
274 assertThat(uidConsumer2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
281 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
287 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testMeasuredEnergyBasedModel()
385 assertThat(uidConsumer1.getConsumedPower(foreground)).isWithin(PRECISION).of(1.611088); in testTimerBasedModel_byProcessState()
386 assertThat(uidConsumer1.getConsumedPower(background)).isWithin(PRECISION).of(0); in testTimerBasedModel_byProcessState()
[all …]
DMobileRadioPowerCalculatorTest.java165 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()
179 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()
186 assertThat(uidConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()
193 assertThat(uidConsumer2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel()
322 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_multipleDefinedRat()
336 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_multipleDefinedRat()
343 assertThat(uidConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_multipleDefinedRat()
350 assertThat(uidConsumer2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_multipleDefinedRat()
442 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_legacyPowerProfile()
456 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO)) in testCounterBasedModel_legacyPowerProfile()
[all …]
DWifiPowerCalculatorTest.java160 assertThat(uidConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()
168 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()
174 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_nonMeasured()
215 assertThat(uidConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_powerProfile_byProcessState()
230 assertThat(uidConsumer.getConsumedPower(foreground)).isWithin(PRECISION).of(1.1214666); in testPowerControllerBasedModel_powerProfile_byProcessState()
231 assertThat(uidConsumer.getConsumedPower(background)).isWithin(PRECISION).of(0.9); in testPowerControllerBasedModel_powerProfile_byProcessState()
232 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testPowerControllerBasedModel_powerProfile_byProcessState()
249 assertThat(uidConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
257 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
263 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WIFI)) in testPowerControllerBasedModel_measured()
[all …]
DSystemServicePowerCalculatorTest.java132 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testPowerProfileBasedModel()
135 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testPowerProfileBasedModel()
138 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_REATTRIBUTED_TO_OTHER_CONSUMERS)) in testPowerProfileBasedModel()
141 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testPowerProfileBasedModel()
144 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testPowerProfileBasedModel()
166 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testMeasuredEnergyBasedModel()
169 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testMeasuredEnergyBasedModel()
172 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_REATTRIBUTED_TO_OTHER_CONSUMERS)) in testMeasuredEnergyBasedModel()
175 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testMeasuredEnergyBasedModel()
178 .getConsumedPower(BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES)) in testMeasuredEnergyBasedModel()
DWakelockPowerCalculatorTest.java77 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
83 assertThat(osConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
89 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
93 assertThat(appConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_WAKELOCK)) in testTimerBasedModel()
DBluetoothPowerCalculatorTest.java145 assertThat(uidConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_BLUETOOTH)) in testTimerBasedModel_byProcessState()
163 assertThat(uidConsumer.getConsumedPower(foreground)).isWithin(PRECISION).of(0.081); in testTimerBasedModel_byProcessState()
164 assertThat(uidConsumer.getConsumedPower(background)).isWithin(PRECISION).of(0.0416666); in testTimerBasedModel_byProcessState()
165 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testTimerBasedModel_byProcessState()
166 assertThat(uidConsumer.getConsumedPower(cached)).isWithin(PRECISION).of(0); in testTimerBasedModel_byProcessState()
265 assertThat(uidConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_BLUETOOTH)) in testMeasuredEnergyBasedModel_byProcessState()
283 assertThat(uidConsumer.getConsumedPower(foreground)).isWithin(PRECISION).of(0.4965352); in testMeasuredEnergyBasedModel_byProcessState()
284 assertThat(uidConsumer.getConsumedPower(background)).isWithin(PRECISION).of(0.3255208); in testMeasuredEnergyBasedModel_byProcessState()
285 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testMeasuredEnergyBasedModel_byProcessState()
286 assertThat(uidConsumer.getConsumedPower(cached)).isWithin(PRECISION).of(0); in testMeasuredEnergyBasedModel_byProcessState()
[all …]
DBatteryUsageStatsTest.java140 assertThat(uidBatteryConsumer.getConsumedPower()).isEqualTo(i * 100); in testParcelability_largeNumberOfUids()
496 assertThat(batteryUsageStats.getConsumedPower()).isEqualTo(consumedPower); in assertBatteryUsageStats()
519 assertThat(uidBatteryConsumer.getConsumedPower()).isEqualTo(consumedPower); in assertUidBatteryConsumer()
533 assertThat(uidBatteryConsumer.getConsumedPower( in assertUidBatteryConsumer()
537 assertThat(uidBatteryConsumer.getConsumedPower( in assertUidBatteryConsumer()
553 assertThat(uidBatteryConsumer.getConsumedPower( in assertUidBatteryConsumer()
557 assertThat(uidBatteryConsumer.getConsumedPower( in assertUidBatteryConsumer()
561 assertThat(uidBatteryConsumer.getConsumedPower( in assertUidBatteryConsumer()
565 assertThat(uidBatteryConsumer.getConsumedPower( in assertUidBatteryConsumer()
575 assertThat(uidBatteryConsumer.getConsumedPower(cpuFgKey)) in assertUidBatteryConsumer()
[all …]
DVideoPowerCalculatorTest.java65 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
79 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO)) in testTimerBasedModel()
DAudioPowerCalculatorTest.java65 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
72 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
79 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO)) in testTimerBasedModel()
DSensorPowerCalculatorTest.java83 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
87 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
91 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SENSORS)) in testTimerBasedModel()
DAmbientDisplayPowerCalculatorTest.java80 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testMeasuredEnergyBasedModel()
141 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testMeasuredEnergyBasedModel_multiDisplay()
164 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testPowerProfileBasedModel()
196 assertThat(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY)) in testPowerProfileBasedModel_multiDisplay()
DBatteryStatsManagerTest.java61 double consumedPower = ubc.getConsumedPower(ubc.getKey(component)); in testBatteryUsageStatsDataConsistency()
64 sumStates += ubc.getConsumedPower(ubc.getKey(component, state)); in testBatteryUsageStatsDataConsistency()
DIdlePowerCalculatorTest.java59 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
65 assertThat(appsConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_IDLE)) in testTimerBasedModel()
DBatteryChargeCalculatorTest.java79 assertThat(batteryUsageStats.getConsumedPower()) in testDischargeTotals()
121 assertThat(batteryUsageStats.getConsumedPower()) in testDischargeTotals_chargeUahUnavailable()
DPowerStatsExporterTest.java198 () -> uidScope.getConsumedPower(new BatteryConsumer.Dimensions( in combinedProcessStates()
278 assertWithMessage(message).that(consumer.getConsumedPower(componentId)) in assertDevicePowerEstimate()
286 assertWithMessage(message).that(consumer.getConsumedPower(componentId)) in assertAllAppsPowerEstimate()
296 assertWithMessage(message).that(uidScope.getConsumedPower( in assertUidPowerEstimate()
/frameworks/base/core/java/android/os/
DBatteryConsumer.java324 public double getConsumedPower() { in getConsumedPower() method in BatteryConsumer
325 return mPowerComponents.getConsumedPower(UNSPECIFIED_DIMENSIONS); in getConsumedPower()
331 public double getConsumedPower(Dimensions dimensions) { in getConsumedPower() method in BatteryConsumer
332 return mPowerComponents.getConsumedPower(dimensions); in getConsumedPower()
365 public double getConsumedPower(@PowerComponent int componentId) { in getConsumedPower() method in BatteryConsumer
366 return mPowerComponents.getConsumedPower( in getConsumedPower()
377 public double getConsumedPower(@NonNull Key key) { in getConsumedPower() method in BatteryConsumer
378 return mPowerComponents.getConsumedPower(key); in getConsumedPower()
536 final long totalConsumedPowerDeciCoulombs = convertMahToDeciCoulombs(getConsumedPower()); in writeStatsProtoImpl()
DAggregateBatteryConsumer.java62 public double getConsumedPower() { in getConsumedPower() method in AggregateBatteryConsumer
71 serializer.attributeDouble(null, BatteryUsageStats.XML_ATTR_POWER, getConsumedPower()); in writeToXml()
139 + aggregateBatteryConsumer.getConsumedPower()); in add()
DBatteryUsageStats.java178 totalPowerMah += consumer.getConsumedPower(); in BatteryUsageStats()
188 totalPowerMah += consumer.getConsumedPower(); in BatteryUsageStats()
232 public double getConsumedPower() { in getConsumedPower() method in BatteryUsageStats
234 .getConsumedPower(); in getConsumedPower()
563 final double consumedPower = uidBatteryConsumer.getConsumedPower(); in getUidBatteryConsumerWeight()
583 pw.print(BatteryStats.formatCharge(getConsumedPower())); in dump()
602 final double devicePowerMah = deviceConsumer.getConsumedPower(key); in dump()
603 final double appsPowerMah = appsConsumer.getConsumedPower(key); in dump()
666 Comparator.<BatteryConsumer>comparingDouble(BatteryConsumer::getConsumedPower) in dumpSortedBatteryConsumers()
669 if (consumer.getConsumedPower() == 0) { in dumpSortedBatteryConsumers()
DUserBatteryConsumer.java59 final double consumedPower = getConsumedPower(); in dump()
71 if (getConsumedPower() == 0) { in writeToXml()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetrics.java62 uidBatteryConsumer.getConsumedPower(component); in PowerMetrics()
74 selectedBatteryConsumer.getConsumedPower(component), in PowerMetrics()

12