/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | GnssPowerCalculatorTest.java | 111 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 119 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 125 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 131 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel()
|
D | CameraPowerCalculatorTest.java | 126 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testEnergyConsumptionBasedModel() 134 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testEnergyConsumptionBasedModel() 143 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testEnergyConsumptionBasedModel() 152 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testEnergyConsumptionBasedModel()
|
D | ScreenPowerCalculatorTest.java | 107 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 119 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 129 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 138 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 203 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_multiDisplay() 215 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_multiDisplay() 227 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_multiDisplay() 235 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_multiDisplay()
|
D | MobileRadioPowerCalculatorTest.java | 652 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() 656 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() 662 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() 668 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() 786 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 790 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 821 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 845 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 852 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 940 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel_legacyPowerProfile() [all …]
|
D | BluetoothPowerCalculatorTest.java | 205 0.10378, 3583, BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 208 0.22950, 8416, BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 211 0.33333, 12000, BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 214 0.33329, 11999, BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 268 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_byProcessState()
|
D | WifiPowerCalculatorTest.java | 252 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testPowerControllerBasedModel_measured() 260 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testPowerControllerBasedModel_measured() 266 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testPowerControllerBasedModel_measured() 306 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testPowerControllerBasedModel_measured_byProcessState() 375 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testTimerBasedModel_measured()
|
D | AmbientDisplayPowerCalculatorTest.java | 83 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 144 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel_multiDisplay()
|
D | CpuPowerCalculatorTest.java | 268 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 277 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 284 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel() 290 .isEqualTo(BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in testMeasuredEnergyBasedModel()
|
D | BatteryUsageStatsTest.java | 20 import static android.os.BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION; 323 123, BatteryConsumer.POWER_MODEL_POWER_PROFILE, 345, POWER_MODEL_ENERGY_CONSUMPTION, in buildBatteryUsageStats2()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerCalculator.java | 85 return BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION; in getPowerModel() 92 ? BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION in getPowerModel()
|
D | CameraPowerCalculator.java | 57 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculate() 82 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculateApp()
|
D | CpuPowerCalculator.java | 138 powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION in calculate() 155 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in calculateApp() 179 BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION); in calculateEnergyConsumptionPerProcessState() 231 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in calculatePowerAndDuration()
|
D | GnssPowerCalculator.java | 73 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculate() 92 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in calculateApp()
|
D | MobileRadioPowerCalculator.java | 137 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculate() 172 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculate() 210 if (powerModel != BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculate() 262 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculate()
|
D | PhonePowerCalculator.java | 53 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in calculate()
|
D | AmbientDisplayPowerCalculator.java | 75 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in calculateTotalPower()
|
D | ScreenPowerCalculator.java | 90 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in calculate() 137 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in calculateTotalDurationAndPower()
|
D | SystemServicePowerCalculator.java | 77 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculate()
|
D | BluetoothPowerCalculator.java | 186 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculatePowerAndDuration()
|
D | WifiPowerCalculator.java | 267 if (powerModel == BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) { in calculateRemaining()
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 298 .setConsumedPower(keyBg, 9200, BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) in buildBatteryUsageStats() 300 .setConsumedPower(keyFgs, 9300, BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) in buildBatteryUsageStats() 302 .setConsumedPower(keyCached, 9400, BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) in buildBatteryUsageStats() 325 BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION) in buildBatteryUsageStats()
|
/frameworks/base/core/java/android/os/ |
D | BatteryConsumer.java | 136 POWER_MODEL_ENERGY_CONSUMPTION, 156 public static final int POWER_MODEL_ENERGY_CONSUMPTION = 2; field in BatteryConsumer 476 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in powerModelToString() 491 case BatteryConsumer.POWER_MODEL_ENERGY_CONSUMPTION: in powerModelToProtoEnum()
|