Home
last modified time | relevance | path

Searched refs:powerProfile (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DMobileRadioPowerStatsProcessor.java64 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 …]
DIdlePowerCalculator.java38 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()
DFlashlightPowerStatsProcessor.java25 public FlashlightPowerStatsProcessor(PowerProfile powerProfile, in FlashlightPowerStatsProcessor() argument
28 powerProfile.getAveragePower(PowerProfile.POWER_FLASHLIGHT)); in FlashlightPowerStatsProcessor()
DAudioPowerStatsProcessor.java25 public AudioPowerStatsProcessor(PowerProfile powerProfile, in AudioPowerStatsProcessor() argument
28 powerProfile.getAveragePower(PowerProfile.POWER_AUDIO)); in AudioPowerStatsProcessor()
DVideoPowerStatsProcessor.java25 public VideoPowerStatsProcessor(PowerProfile powerProfile, in VideoPowerStatsProcessor() argument
28 powerProfile.getAveragePower(PowerProfile.POWER_VIDEO)); in VideoPowerStatsProcessor()
DAmbientDisplayPowerCalculator.java39 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()
DWifiPowerStatsProcessor.java49 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()
DPhonePowerCalculator.java32 public PhonePowerCalculator(PowerProfile powerProfile) { in PhonePowerCalculator() argument
34 powerProfile.getAveragePower(PowerProfile.POWER_RADIO_ACTIVE)); in PhonePowerCalculator()
DSystemServicePowerCalculator.java46 PowerProfile powerProfile) { in SystemServicePowerCalculator() argument
47 mCpuPowerCalculator = new CpuPowerCalculator(cpuScalingPolicies, powerProfile); in SystemServicePowerCalculator()
55 powerProfile.getAveragePowerForCpuScalingStep(policy, speed)); in SystemServicePowerCalculator()
DAudioPowerCalculator.java43 public AudioPowerCalculator(PowerProfile powerProfile) { in AudioPowerCalculator() argument
45 powerProfile.getAveragePower(PowerProfile.POWER_AUDIO)); in AudioPowerCalculator()
DVideoPowerCalculator.java40 public VideoPowerCalculator(PowerProfile powerProfile) { in VideoPowerCalculator() argument
42 powerProfile.getAveragePower(PowerProfile.POWER_VIDEO)); in VideoPowerCalculator()
DScreenPowerCalculator.java53 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()
DBluetoothPowerStatsProcessor.java40 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()
DCpuPowerStatsProcessor.java75 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()
DCustomEnergyConsumerPowerCalculator.java38 public CustomEnergyConsumerPowerCalculator(PowerProfile powerProfile) { in CustomEnergyConsumerPowerCalculator() argument
DBatteryUsageStatsProvider.java58 PowerProfile powerProfile, CpuScalingPolicies cpuScalingPolicies, in BatteryUsageStatsProvider() argument
63 mPowerProfile = powerProfile; in BatteryUsageStatsProvider()
DBatteryStatsImpl.java11222 @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/
DWifiActivityEnergyInfo.java115 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/
DWifiPowerCalculatorTest.java401 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()
DMockBatteryStatsImpl.java162 public MockBatteryStatsImpl setPowerProfile(PowerProfile powerProfile) { in setPowerProfile() argument
163 mPowerProfile = powerProfile; in setPowerProfile()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java1967 PowerProfile powerProfile = new PowerProfile(mContext);
1984 powerProfile.getAveragePowerForCpuCore(cluster, freqClusterIndex);
3320 PowerProfile powerProfile = new PowerProfile(mContext);
3322 powerProfile.dumpDebug(proto);