Home
last modified time | relevance | path

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

/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.java63 private PowerProfile mPowerProfile; field in KernelCpuUidFreqTimeReaderTest
103 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
111 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
131 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
139 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
159 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadDelta()
211 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadAbsolute()
293 when(mPowerProfile.getNumCpuClusters()).thenReturn(numClusters); in setCpuClusterFreqs()
295 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/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.java574 if (mPowerProfile == null) { in initKernelSingleUidTimeReaderLocked()
578 mCpuFreqs = mCpuUidFreqTimeReader.readFreqs(mPowerProfile); in initKernelSingleUidTimeReaderLocked()
1002 protected PowerProfile mPowerProfile; field in BatteryStatsImpl
6217 final double opVolt = mPowerProfile.getAveragePower( in getGpsBatteryDrainMaMs()
6227 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()
8576 … if (mBsi.mPowerProfile != null && mBsi.mPowerProfile.getNumCpuClusters() != numCpuClusters) { in readFromParcelLocked()
8584 if (mBsi.mPowerProfile != null && in readFromParcelLocked()
8585 … mBsi.mPowerProfile.getNumSpeedStepsInCpuCluster(cluster) != numSpeeds) { in readFromParcelLocked()
9875 mPowerProfile = profile; in setPowerProfileLocked()
9880 final int numClusters = mPowerProfile.getNumCpuClusters(); in setPowerProfileLocked()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java235 PowerProfile mPowerProfile; field in WifiServiceImpl
489 mPowerProfile = mWifiInjector.getPowerProfile(); in WifiServiceImpl()
1746 final double rxIdleCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1748 final double rxCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1750 final double txCurrent = mPowerProfile.getAveragePower( in reportActivityInfo()
1752 final double voltage = mPowerProfile.getAveragePower( in reportActivityInfo()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java248 @Mock PowerProfile mPowerProfile; field in WifiServiceImplTest
347 when(mWifiInjector.getPowerProfile()).thenReturn(mPowerProfile); in setUp()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt95223 Lcom/android/internal/os/BatteryStatsImpl;->mPowerProfile:Lcom/android/internal/os/PowerProfile;