Home
last modified time | relevance | path

Searched refs:getAveragePower (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerProfileTest.java46 assertEquals(5.0, mProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND)); in testPowerProfile()
47 assertEquals(1.11, mProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE)); in testPowerProfile()
48 assertEquals(2.55, mProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE)); in testPowerProfile()
56 assertEquals(0.5, mProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY)); in testPowerProfile()
57 assertEquals(100.0, mProfile.getAveragePower(PowerProfile.POWER_AUDIO)); in testPowerProfile()
58 assertEquals(150.0, mProfile.getAveragePower(PowerProfile.POWER_VIDEO)); in testPowerProfile()
DPowerCalculatorTest.java52 when(mPowerProfile.getAveragePower(PowerProfile.POWER_AUDIO)).thenReturn(12.0); in testMediaPowerCalculator()
53 when(mPowerProfile.getAveragePower(PowerProfile.POWER_VIDEO)).thenReturn(25.0); in testMediaPowerCalculator()
/frameworks/base/core/java/com/android/internal/os/
DWifiPowerEstimator.java35 mWifiPowerOn = profile.getAveragePower(PowerProfile.POWER_WIFI_ON); in WifiPowerEstimator()
36 mWifiPowerScan = profile.getAveragePower(PowerProfile.POWER_WIFI_SCAN); in WifiPowerEstimator()
37 mWifiPowerBatchScan = profile.getAveragePower(PowerProfile.POWER_WIFI_BATCHED_SCAN); in WifiPowerEstimator()
45 final double WIFI_POWER = profile.getAveragePower(PowerProfile.POWER_WIFI_ACTIVE) in getWifiPowerPerPacket()
DBluetoothPowerCalculator.java31 mIdleMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE); in BluetoothPowerCalculator()
32 mRxMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX); in BluetoothPowerCalculator()
33 mTxMa = profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX); in BluetoothPowerCalculator()
DMobileRadioPowerCalculator.java59 sum += profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX); in MobileRadioPowerCalculator()
61 sum += profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_TX, i); in MobileRadioPowerCalculator()
69 mPowerBins[i] = profile.getAveragePower(PowerProfile.POWER_RADIO_ON, i); in MobileRadioPowerCalculator()
72 double idle = profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE); in MobileRadioPowerCalculator()
DWifiPowerCalculator.java35 mIdleCurrentMa = profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE); in WifiPowerCalculator()
36 mTxCurrentMa = profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX); in WifiPowerCalculator()
37 mRxCurrentMa = profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX); in WifiPowerCalculator()
DMediaPowerCalculator.java31 mAudioAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_AUDIO); in MediaPowerCalculator()
32 mVideoAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_VIDEO); in MediaPowerCalculator()
DPowerProfile.java394 return getAveragePower(mCpuClusters[cluster].clusterPowerKey); in getAveragePowerForCpuCluster()
401 return getAveragePower(mCpuClusters[cluster].corePowerKey, step); in getAveragePowerForCpuCore()
445 public double getAveragePower(String type) { in getAveragePower() method in PowerProfile
458 public double getAveragePower(String type, int level) { in getAveragePower() method in PowerProfile
482 return getAveragePower(POWER_BATTERY_CAPACITY); in getBatteryCapacity()
DBatteryStatsHelper.java155 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE) != 0 && in checkHasWifiPowerReporting()
156 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX) != 0 && in checkHasWifiPowerReporting()
157 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX) != 0; in checkHasWifiPowerReporting()
163 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE) != 0 && in checkHasBluetoothPowerReporting()
164 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX) != 0 && in checkHasBluetoothPowerReporting()
165 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX) != 0; in checkHasBluetoothPowerReporting()
618 double phoneOnPower = mPowerProfile.getAveragePower(PowerProfile.POWER_RADIO_ACTIVE) in addPhoneUsage()
631 power += screenOnTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_ON); in addScreenUsage()
633 mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_FULL); in addScreenUsage()
660 double power = mPowerProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY) in addAmbientDisplayUsage()
[all …]
DCameraPowerCalculator.java29 mCameraPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_CAMERA); in CameraPowerCalculator()
DFlashlightPowerCalculator.java27 mFlashlightPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_FLASHLIGHT); in FlashlightPowerCalculator()
DMemoryPowerCalculator.java17 powerAverages[i] = profile.getAveragePower(PowerProfile.POWER_MEMORY, i); in MemoryPowerCalculator()
DWakelockPowerCalculator.java29 mPowerWakelock = profile.getAveragePower(PowerProfile.POWER_CPU_IDLE); in WakelockPowerCalculator()
DSensorPowerCalculator.java81 totalPower += profile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getAverageGpsPower()
DCpuPowerCalculator.java53 cpuPowerMaUs += u.getCpuActiveTime() * 1000 * mProfile.getAveragePower( in calculateApp()
DBatteryStatsImpl.java6396 final double opVolt = mPowerProfile.getAveragePower( in getGpsBatteryDrainMaMs()
6406 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()
11308 final double opVolt = mPowerProfile.getAveragePower( in updateWifiState()
11386 final double opVolt = mPowerProfile.getAveragePower( in updateMobileRadioState()
11391 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_SLEEP) in updateMobileRadioState()
11393 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE) in updateMobileRadioState()
11395 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX); in updateMobileRadioState()
11399 energyUsed += txTimeMs[i] * mPowerProfile.getAveragePower( in updateMobileRadioState()
11741 final double opVolt = mPowerProfile.getAveragePower( in updateBluetoothStateLocked()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1677 final double rxIdleCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1679 final double rxCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1681 final double txCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1683 final double voltage = mPowerProfile.getAveragePower( in reportActivityInfo()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt7761 Lcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;)D
7762 Lcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;I)D
Dboot-image-profile.txt9157 HPLcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;I)D
38985 HSPLcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;)D