/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | PowerProfileTest.java | 46 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()
|
D | PowerCalculatorTest.java | 52 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/ |
D | WifiPowerEstimator.java | 35 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()
|
D | MobileRadioPowerCalculator.java | 59 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()
|
D | BluetoothPowerCalculator.java | 31 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()
|
D | WifiPowerCalculator.java | 35 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()
|
D | MediaPowerCalculator.java | 31 mAudioAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_AUDIO); in MediaPowerCalculator() 32 mVideoAveragePowerMa = profile.getAveragePower(PowerProfile.POWER_VIDEO); in MediaPowerCalculator()
|
D | BatteryStatsHelper.java | 160 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 …]
|
D | PowerProfile.java | 415 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()
|
D | CameraPowerCalculator.java | 29 mCameraPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_CAMERA); in CameraPowerCalculator()
|
D | FlashlightPowerCalculator.java | 27 mFlashlightPowerOnAvg = profile.getAveragePower(PowerProfile.POWER_FLASHLIGHT); in FlashlightPowerCalculator()
|
D | MemoryPowerCalculator.java | 17 powerAverages[i] = profile.getAveragePower(PowerProfile.POWER_MEMORY, i); in MemoryPowerCalculator()
|
D | WakelockPowerCalculator.java | 29 mPowerWakelock = profile.getAveragePower(PowerProfile.POWER_CPU_IDLE); in WakelockPowerCalculator()
|
D | SensorPowerCalculator.java | 81 totalPower += profile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getAverageGpsPower()
|
D | CpuPowerCalculator.java | 53 cpuPowerMaUs += u.getCpuActiveTime() * 1000 * mProfile.getAveragePower( in calculateApp()
|
D | BatteryStatsImpl.java | 6230 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/ |
D | WifiServiceImpl.java | 1793 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/ |
D | boot-image-profile.txt | 21330 HSPLcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;)D 21331 HSPLcom/android/internal/os/PowerProfile;->getAveragePower(Ljava/lang/String;I)D
|