Home
last modified time | relevance | path

Searched refs:mPowerProfile (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java84 private PowerProfile mPowerProfile; field in BatteryStatsHelper
283 return mPowerProfile; in getPowerProfile()
287 mPowerProfile = new PowerProfile(mContext); in create()
299 mPowerProfile = new PowerProfile(mContext); in create()
395 mCpuPowerCalculator = new CpuPowerCalculator(mPowerProfile); in refreshStats()
400 mMemoryPowerCalculator = new MemoryPowerCalculator(mPowerProfile); in refreshStats()
405 mWakelockPowerCalculator = new WakelockPowerCalculator(mPowerProfile); in refreshStats()
410 mMobileRadioPowerCalculator = new MobileRadioPowerCalculator(mPowerProfile, mStats); in refreshStats()
416 final boolean hasWifiPowerReporting = checkHasWifiPowerReporting(mStats, mPowerProfile); in refreshStats()
419 new WifiPowerCalculator(mPowerProfile) : in refreshStats()
[all …]
DBatteryStatsImpl.java576 if (mPowerProfile == null) { in initKernelSingleUidTimeReaderLocked()
580 mCpuFreqs = mCpuUidFreqTimeReader.readFreqs(mPowerProfile); in initKernelSingleUidTimeReaderLocked()
1004 protected PowerProfile mPowerProfile; field in BatteryStatsImpl
6230 final double opVolt = mPowerProfile.getAveragePower( in getGpsBatteryDrainMaMs()
6240 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()
8589 … if (mBsi.mPowerProfile != null && mBsi.mPowerProfile.getNumCpuClusters() != numCpuClusters) { in readFromParcelLocked()
8597 if (mBsi.mPowerProfile != null && in readFromParcelLocked()
8598 … mBsi.mPowerProfile.getNumSpeedStepsInCpuCluster(cluster) != numSpeeds) { in readFromParcelLocked()
9888 mPowerProfile = profile; in setPowerProfileLocked()
9893 final int numClusters = mPowerProfile.getNumCpuClusters(); in setPowerProfileLocked()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerCalculatorTest.java42 private PowerProfile mPowerProfile; field in PowerCalculatorTest
52 when(mPowerProfile.getAveragePower(PowerProfile.POWER_AUDIO)).thenReturn(12.0); in testMediaPowerCalculator()
53 when(mPowerProfile.getAveragePower(PowerProfile.POWER_VIDEO)).thenReturn(25.0); in testMediaPowerCalculator()
63 MediaPowerCalculator mediaPowerCalculator = new MediaPowerCalculator(mPowerProfile); in testMediaPowerCalculator()
DKernelCpuUidFreqTimeReaderTest.java66 private PowerProfile mPowerProfile; field in KernelCpuUidFreqTimeReaderTest
117 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
125 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
145 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
153 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
173 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadDelta()
225 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadAbsolute()
337 when(mPowerProfile.getNumCpuClusters()).thenReturn(numClusters); in setCpuClusterFreqs()
339 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)).thenReturn(clusterFreqs[i]); in setCpuClusterFreqs()
DBatteryStatsCpuTimesTest.java93 PowerProfile mPowerProfile; field in BatteryStatsCpuTimesTest
115 mBatteryStatsImpl.setPowerProfile(mPowerProfile); in testUpdateCpuTimeLocked()
120 when(mCpuUidFreqTimeReader.readFreqs(mPowerProfile)).thenReturn(freqs); in testUpdateCpuTimeLocked()
210 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterSpeedTimesMs.length); in testUpdateClusterSpeedTimes()
212 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testUpdateClusterSpeedTimes()
627 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterFreqs.length); in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
629 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
737 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterFreqs.length); in testReadKernelUidCpuFreqTimesLocked_partialTimers()
739 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testReadKernelUidCpuFreqTimesLocked_partialTimers()
1310 mBatteryStatsImpl.setPowerProfile(mPowerProfile); in updateTimeBasesLocked()
DMockBatteryStatsImpl.java99 mPowerProfile = powerProfile; in setPowerProfile()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java236 PowerProfile mPowerProfile; field in WifiServiceImpl
490 mPowerProfile = mWifiInjector.getPowerProfile(); in WifiServiceImpl()
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java254 @Mock PowerProfile mPowerProfile; field in WifiServiceImplTest
353 when(mWifiInjector.getPowerProfile()).thenReturn(mPowerProfile); in setUp()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt88856 Lcom/android/internal/os/BatteryStatsImpl;->mPowerProfile:Lcom/android/internal/os/PowerProfile;