Home
last modified time | relevance | path

Searched refs:getAveragePower (Results 1 – 18 of 18) 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()
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()
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()
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()
DBatteryStatsHelper.java160 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE) != 0 && in checkHasWifiPowerReporting()
161 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX) != 0 && in checkHasWifiPowerReporting()
162 profile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX) != 0; in checkHasWifiPowerReporting()
168 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_IDLE) != 0 && in checkHasBluetoothPowerReporting()
169 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_RX) != 0 && in checkHasBluetoothPowerReporting()
170 profile.getAveragePower(PowerProfile.POWER_BLUETOOTH_CONTROLLER_TX) != 0; in checkHasBluetoothPowerReporting()
640 double phoneOnPower = mPowerProfile.getAveragePower(PowerProfile.POWER_RADIO_ACTIVE) in addPhoneUsage()
653 power += screenOnTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_ON); in addScreenUsage()
655 mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_FULL); in addScreenUsage()
682 double power = mPowerProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY) in addAmbientDisplayUsage()
[all …]
DPowerProfile.java415 return getAveragePower(mCpuClusters[cluster].clusterPowerKey); in getAveragePowerForCpuCluster()
422 return getAveragePower(mCpuClusters[cluster].corePowerKey, step); in getAveragePowerForCpuCore()
467 public double getAveragePower(String type) { in getAveragePower() method in PowerProfile
481 public double getAveragePower(String type, int level) { in getAveragePower() method in PowerProfile
506 return getAveragePower(POWER_BATTERY_CAPACITY); in getBatteryCapacity()
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.java6230 final double opVolt = mPowerProfile.getAveragePower( in getGpsBatteryDrainMaMs()
6240 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()
10963 final double opVolt = mPowerProfile.getAveragePower( in updateWifiState()
11051 final double opVolt = mPowerProfile.getAveragePower( in updateMobileRadioState()
11056 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_SLEEP) in updateMobileRadioState()
11058 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE) in updateMobileRadioState()
11060 mPowerProfile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_RX); in updateMobileRadioState()
11066 .getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_TX, i); in updateMobileRadioState()
11406 final double opVolt = mPowerProfile.getAveragePower( in updateBluetoothStateLocked()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1793 final double rxIdleCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1795 final double rxCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1797 final double txCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1799 final double voltage = mPowerProfile.getAveragePower( in reportActivityInfo()
/frameworks/base/config/
Dboot-image-profile.txt21330 HSPLcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;)D
21331 HSPLcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;I)D