/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | MobileRadioPowerStatsProcessor.java | 64 public MobileRadioPowerStatsProcessor(PowerProfile powerProfile) { in MobileRadioPowerStatsProcessor() argument 65 final double sleepDrainRateMa = powerProfile.getAverageBatteryDrainOrDefaultMa( in MobileRadioPowerStatsProcessor() 74 final double idleDrainRateMa = powerProfile.getAverageBatteryDrainOrDefaultMa( in MobileRadioPowerStatsProcessor() 85 powerProfile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_ACTIVE, Double.NaN); in MobileRadioPowerStatsProcessor() 88 sum += powerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX); in MobileRadioPowerStatsProcessor() 90 sum += powerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_TX, i); in MobileRadioPowerStatsProcessor() 97 powerProfile.getAveragePowerOrDefault(PowerProfile.POWER_RADIO_SCANNING, 0)); in MobileRadioPowerStatsProcessor() 105 buildRxTxPowerEstimators(powerProfile, rat, freqRange)); in MobileRadioPowerStatsProcessor() 110 private static RxTxPowerEstimators buildRxTxPowerEstimators(PowerProfile powerProfile, int rat, in buildRxTxPowerEstimators() argument 115 double rxDrainRateMa = powerProfile.getAverageBatteryDrainOrDefaultMa(rxKey, Double.NaN); in buildRxTxPowerEstimators() [all …]
|
D | IdlePowerCalculator.java | 38 public IdlePowerCalculator(PowerProfile powerProfile) { in IdlePowerCalculator() argument 40 powerProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND) in IdlePowerCalculator() 43 powerProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE) in IdlePowerCalculator()
|
D | FlashlightPowerStatsProcessor.java | 25 public FlashlightPowerStatsProcessor(PowerProfile powerProfile, in FlashlightPowerStatsProcessor() argument 28 powerProfile.getAveragePower(PowerProfile.POWER_FLASHLIGHT)); in FlashlightPowerStatsProcessor()
|
D | AudioPowerStatsProcessor.java | 25 public AudioPowerStatsProcessor(PowerProfile powerProfile, in AudioPowerStatsProcessor() argument 28 powerProfile.getAveragePower(PowerProfile.POWER_AUDIO)); in AudioPowerStatsProcessor()
|
D | VideoPowerStatsProcessor.java | 25 public VideoPowerStatsProcessor(PowerProfile powerProfile, in VideoPowerStatsProcessor() argument 28 powerProfile.getAveragePower(PowerProfile.POWER_VIDEO)); in VideoPowerStatsProcessor()
|
D | AmbientDisplayPowerCalculator.java | 39 public AmbientDisplayPowerCalculator(PowerProfile powerProfile) { in AmbientDisplayPowerCalculator() argument 40 final int numDisplays = powerProfile.getNumDisplays(); in AmbientDisplayPowerCalculator() 44 powerProfile.getAveragePowerForOrdinal(POWER_GROUP_DISPLAY_AMBIENT, display)); in AmbientDisplayPowerCalculator()
|
D | WifiPowerStatsProcessor.java | 49 public WifiPowerStatsProcessor(PowerProfile powerProfile) { in WifiPowerStatsProcessor() argument 51 powerProfile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX)); in WifiPowerStatsProcessor() 53 powerProfile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX)); in WifiPowerStatsProcessor() 55 powerProfile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE)); in WifiPowerStatsProcessor() 57 powerProfile.getAveragePower(PowerProfile.POWER_WIFI_ACTIVE)); in WifiPowerStatsProcessor() 59 powerProfile.getAveragePower(PowerProfile.POWER_WIFI_SCAN)); in WifiPowerStatsProcessor() 61 powerProfile.getAveragePower(PowerProfile.POWER_WIFI_BATCHED_SCAN)); in WifiPowerStatsProcessor()
|
D | PhonePowerCalculator.java | 32 public PhonePowerCalculator(PowerProfile powerProfile) { in PhonePowerCalculator() argument 34 powerProfile.getAveragePower(PowerProfile.POWER_RADIO_ACTIVE)); in PhonePowerCalculator()
|
D | SystemServicePowerCalculator.java | 46 PowerProfile powerProfile) { in SystemServicePowerCalculator() argument 47 mCpuPowerCalculator = new CpuPowerCalculator(cpuScalingPolicies, powerProfile); in SystemServicePowerCalculator() 55 powerProfile.getAveragePowerForCpuScalingStep(policy, speed)); in SystemServicePowerCalculator()
|
D | AudioPowerCalculator.java | 43 public AudioPowerCalculator(PowerProfile powerProfile) { in AudioPowerCalculator() argument 45 powerProfile.getAveragePower(PowerProfile.POWER_AUDIO)); in AudioPowerCalculator()
|
D | VideoPowerCalculator.java | 40 public VideoPowerCalculator(PowerProfile powerProfile) { in VideoPowerCalculator() argument 42 powerProfile.getAveragePower(PowerProfile.POWER_VIDEO)); in VideoPowerCalculator()
|
D | ScreenPowerCalculator.java | 53 public ScreenPowerCalculator(PowerProfile powerProfile) { in ScreenPowerCalculator() argument 54 final int numDisplays = powerProfile.getNumDisplays(); in ScreenPowerCalculator() 59 powerProfile.getAveragePowerForOrdinal(POWER_GROUP_DISPLAY_SCREEN_ON, display)); in ScreenPowerCalculator() 61 powerProfile.getAveragePowerForOrdinal(POWER_GROUP_DISPLAY_SCREEN_FULL, in ScreenPowerCalculator()
|
D | BluetoothPowerStatsProcessor.java | 40 public BluetoothPowerStatsProcessor(PowerProfile powerProfile) { in BluetoothPowerStatsProcessor() argument 42 powerProfile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX)); in BluetoothPowerStatsProcessor() 44 powerProfile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX)); in BluetoothPowerStatsProcessor() 46 powerProfile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE)); in BluetoothPowerStatsProcessor()
|
D | CpuPowerStatsProcessor.java | 75 public CpuPowerStatsProcessor(PowerProfile powerProfile, CpuScalingPolicies scalingPolicies) { in CpuPowerStatsProcessor() argument 88 powerProfile.getAveragePowerForCpuScalingPolicy(policy) / HOUR_IN_MILLIS; in CpuPowerStatsProcessor() 93 powerProfile.getAveragePowerForCpuScalingStep(policy, i) / HOUR_IN_MILLIS; in CpuPowerStatsProcessor() 98 powerProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE) / HOUR_IN_MILLIS; in CpuPowerStatsProcessor()
|
D | CustomEnergyConsumerPowerCalculator.java | 38 public CustomEnergyConsumerPowerCalculator(PowerProfile powerProfile) { in CustomEnergyConsumerPowerCalculator() argument
|
D | BatteryUsageStatsProvider.java | 58 PowerProfile powerProfile, CpuScalingPolicies cpuScalingPolicies, in BatteryUsageStatsProvider() argument 63 mPowerProfile = powerProfile; in BatteryUsageStatsProvider()
|
D | BatteryStatsImpl.java | 11222 @NonNull UserInfoProvider userInfoProvider, @NonNull PowerProfile powerProfile, in BatteryStatsImpl() argument 11226 energyStatsRetriever, userInfoProvider, powerProfile, cpuScalingPolicies, in BatteryStatsImpl() 11235 @NonNull UserInfoProvider userInfoProvider, @NonNull PowerProfile powerProfile, in BatteryStatsImpl() argument 11249 mPowerProfile = powerProfile; in BatteryStatsImpl()
|
/frameworks/base/core/java/android/os/connectivity/ |
D | WifiActivityEnergyInfo.java | 115 PowerProfile powerProfile = new PowerProfile(context); in calculateEnergyMicroJoules() local 116 final double idleCurrent = powerProfile.getAveragePower( in calculateEnergyMicroJoules() 118 final double rxCurrent = powerProfile.getAveragePower( in calculateEnergyMicroJoules() 120 final double txCurrent = powerProfile.getAveragePower( in calculateEnergyMicroJoules() 122 final double voltage = powerProfile.getAveragePower( in calculateEnergyMicroJoules()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | WifiPowerCalculatorTest.java | 401 PowerProfile powerProfile = mStatsRule.getPowerProfile(); in calculateEnergyMicroJoules() local 402 final double idleCurrent = powerProfile.getAveragePower( in calculateEnergyMicroJoules() 404 final double rxCurrent = powerProfile.getAveragePower( in calculateEnergyMicroJoules() 406 final double txCurrent = powerProfile.getAveragePower( in calculateEnergyMicroJoules() 408 final double voltage = powerProfile.getAveragePower( in calculateEnergyMicroJoules()
|
D | MockBatteryStatsImpl.java | 162 public MockBatteryStatsImpl setPowerProfile(PowerProfile powerProfile) { in setPowerProfile() argument 163 mPowerProfile = powerProfile; in setPowerProfile()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 1967 PowerProfile powerProfile = new PowerProfile(mContext); 1984 powerProfile.getAveragePowerForCpuCore(cluster, freqClusterIndex); 3320 PowerProfile powerProfile = new PowerProfile(mContext); 3322 powerProfile.dumpDebug(proto);
|