Home
last modified time | relevance | path

Searched refs:powerModel (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DGnssPowerCalculator.java58 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
59 appsPowerMah += calculateApp(app, app.getBatteryStatsUid(), powerModel, in calculate()
64 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
66 if (powerModel == BatteryConsumer.POWER_MODEL_MEASURED_ENERGY) { in calculate()
73 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS, powerMah, powerModel); in calculate()
76 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS, appsPowerMah, powerModel); in calculate()
80 @BatteryConsumer.PowerModel int powerModel, long rawRealtimeUs, in calculateApp() argument
84 switch (powerModel) { in calculateApp()
94 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_GNSS, powerMah, powerModel); in calculateApp()
107 final int powerModel = getPowerModel(consumptionUC); in calculate() local
[all …]
DWifiPowerCalculator.java90 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
91 calculateApp(powerDurationAndTraffic, app.getBatteryStatsUid(), powerModel, in calculate()
101 powerDurationAndTraffic.powerMah, powerModel); in calculate()
105 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
106 calculateRemaining(powerDurationAndTraffic, powerModel, batteryStats, rawRealtimeUs, in calculate()
115 totalAppPowerMah + powerDurationAndTraffic.powerMah, powerModel); in calculate()
119 totalAppPowerMah, powerModel); in calculate()
143 final int powerModel = getPowerModel(consumptionUC); in calculate() local
144 calculateApp(powerDurationAndTraffic, app.uidObj, powerModel, rawRealtimeUs, in calculate()
165 final int powerModel = getPowerModel(consumptionUC); in calculate() local
[all …]
DMobileRadioPowerCalculator.java103 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
104 calculateRemaining(total, powerModel, batteryStats, rawRealtimeUs, consumptionUC); in calculate()
112 total.remainingPowerMah + total.totalAppPowerMah, powerModel); in calculate()
119 total.totalAppPowerMah, powerModel); in calculate()
130 final int powerModel = getPowerModel(consumptionUC, query); in calculateApp() local
131 final double powerMah = calculatePower(u, powerModel, powerPerPacketMah, in calculateApp()
138 powerModel); in calculateApp()
157 final int powerModel = getPowerModel(consumptionUC); in calculate() local
158 calculateRemaining(total, powerModel, batteryStats, rawRealtimeUs, consumptionUC); in calculate()
179 final int powerModel = getPowerModel(consumptionUC); in calculateApp() local
[all …]
DBluetoothPowerCalculator.java68 final int powerModel = getPowerModel(measuredChargeUC, query); in calculate() local
72 final double systemPowerMah = calculatePowerMah(powerModel, measuredChargeUC, in calculate()
86 Math.max(systemPowerMah, total.powerMah), powerModel); in calculate()
92 powerModel); in calculate()
99 final int powerModel = getPowerModel(measuredChargeUC, query); in calculateApp() local
103 final double powerMah = calculatePowerMah(powerModel, measuredChargeUC, activityCounter, in calculateApp()
107 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_BLUETOOTH, powerMah, powerModel); in calculateApp()
131 final int powerModel = getPowerModel(measuredChargeUC); in calculate() local
136 calculatePowerMah(powerModel, measuredChargeUC, activityCounter, false); in calculate()
166 final int powerModel = getPowerModel(measuredChargeUC); in calculateApp() local
[all …]
DAmbientDisplayPowerCalculator.java47 final int powerModel = getPowerModel(measuredEnergyUC, query); in calculate() local
50 final double powerMah = getMeasuredOrEstimatedPower(powerModel, in calculate()
56 powerMah, powerModel); in calculate()
70 final int powerModel = getPowerModel(measuredEnergyUC); in calculate() local
71 final double powerMah = getMeasuredOrEstimatedPower(powerModel, in calculate()
DScreenPowerCalculator.java65 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
66 calculateTotalDurationAndPower(totalPowerAndDuration, powerModel, batteryStats, in calculate()
77 switch (powerModel) { in calculate()
87 appPowerAndDuration.powerMah, powerModel); in calculate()
103 Math.max(totalPowerAndDuration.powerMah, totalAppPower), powerModel) in calculate()
109 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, totalAppPower, powerModel) in calculate()
121 final int powerModel = getPowerModel(consumptionUC); in calculate() local
122 calculateTotalDurationAndPower(totalPowerAndDuration, powerModel, batteryStats, in calculate()
137 switch (powerModel) { in calculate()
159 @BatteryConsumer.PowerModel int powerModel, BatteryStats batteryStats, in calculateTotalDurationAndPower() argument
[all …]
DCpuPowerCalculator.java95 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
103 powerModel == BatteryConsumer.POWER_MODEL_MEASURED_ENERGY in calculate()
104 ? uCtoMah(consumptionUC) : totalPowerMah, powerModel); in calculate()
110 final int powerModel = getPowerModel(consumptionUC, query); in calculateApp() local
111 calculatePowerAndDuration(u, powerModel, consumptionUC, BatteryStats.STATS_SINCE_CHARGED, in calculateApp()
114 app.setConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU, result.powerMah, powerModel) in calculateApp()
133 final int powerModel = getPowerModel(consumptionUC); in calculateApp() local
134 calculatePowerAndDuration(u, powerModel, consumptionUC, statsType, result); in calculateApp()
143 @BatteryConsumer.PowerModel int powerModel, long consumptionUC, int statsType, in calculatePowerAndDuration() argument
148 switch(powerModel) { in calculatePowerAndDuration()
DSystemServicePowerCalculator.java73 final int powerModel = getPowerModel(consumptionUC, query); in calculate() local
76 if (powerModel == BatteryConsumer.POWER_MODEL_MEASURED_ENERGY) { in calculate()
96 -systemServicePowerMah, powerModel); in calculate()
105 powerModel); in calculate()
DPowerCalculator.java138 protected static double getMeasuredOrEstimatedPower(@BatteryConsumer.PowerModel int powerModel, in getMeasuredOrEstimatedPower() argument
140 switch (powerModel) { in getMeasuredOrEstimatedPower()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java126 final int powerModel = requestedBatteryConsumer.getPowerModel(component); in populateForUidBatteryConsumer() local
127 if (powerModel == BatteryConsumer.POWER_MODEL_POWER_PROFILE in populateForUidBatteryConsumer()
128 || powerModel == BatteryConsumer.POWER_MODEL_UNDEFINED) { in populateForUidBatteryConsumer()
205 final int powerModel = deviceBatteryConsumer.getPowerModel(component); in populateForAggregateBatteryConsumer() local
206 if (powerModel == BatteryConsumer.POWER_MODEL_POWER_PROFILE in populateForAggregateBatteryConsumer()
207 || powerModel == BatteryConsumer.POWER_MODEL_UNDEFINED) { in populateForAggregateBatteryConsumer()
242 final int powerModel = batteryConsumer.getPowerModel(component); in isPowerProfileModelsOnly() local
243 if (powerModel != BatteryConsumer.POWER_MODEL_POWER_PROFILE in isPowerProfileModelsOnly()
244 && powerModel != BatteryConsumer.POWER_MODEL_UNDEFINED) { in isPowerProfileModelsOnly()
/frameworks/base/core/java/android/os/
DBatteryConsumer.java248 public static String powerModelToString(@BatteryConsumer.PowerModel int powerModel) { in powerModelToString() argument
249 switch (powerModel) { in powerModelToString()
352 @PowerModel int powerModel) { in setConsumedPower() argument
353 mPowerComponentsBuilder.setConsumedPower(componentId, componentPower, powerModel); in setConsumedPower()
DBatteryUsageStats.java588 double devicePowerMah, double appsPowerMah, int powerModel, long durationMs) { in printPowerComponent() argument
592 if (powerModel != BatteryConsumer.POWER_MODEL_UNDEFINED in printPowerComponent()
593 && powerModel != BatteryConsumer.POWER_MODEL_POWER_PROFILE) { in printPowerComponent()
595 sb.append(BatteryConsumer.powerModelToString(powerModel)); in printPowerComponent()
DPowerComponents.java461 double componentPower, @BatteryConsumer.PowerModel int powerModel) {
473 mPowerModels[componentId] = (byte) powerModel;
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBluetoothPowerCalculatorTest.java133 double powerMah, int durationMs, @BatteryConsumer.PowerModel int powerModel) { in assertBluetoothPowerAndDuration() argument
140 .isEqualTo(powerModel); in assertBluetoothPowerAndDuration()