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()
DKernelUidCpuFreqTimeReaderTest.java70 private PowerProfile mPowerProfile; field in KernelUidCpuFreqTimeReaderTest
97 mBufferedReader, mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
106 actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
111 Mockito.reset(mBufferedReader, mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
128 mBufferedReader, mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
137 actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
142 Mockito.reset(mBufferedReader, mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
158 long[] actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mBufferedReader, mPowerProfile); in testReadDelta_Binary()
234 long[] actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mBufferedReader, mPowerProfile); in testReadAbsolute()
296 when(mPowerProfile.getNumCpuClusters()).thenReturn(numClusters); in setCpuClusterFreqs()
[all …]
DBatteryStatsCpuTimesTest.java87 PowerProfile mPowerProfile; field in BatteryStatsCpuTimesTest
109 mBatteryStatsImpl.setPowerProfile(mPowerProfile); in testUpdateCpuTimeLocked()
114 when(mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile)).thenReturn(freqs); in testUpdateCpuTimeLocked()
203 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterSpeedTimesMs.length); in testUpdateClusterSpeedTimes()
205 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testUpdateClusterSpeedTimes()
614 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterFreqs.length); in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
616 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
724 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterFreqs.length); in testReadKernelUidCpuFreqTimesLocked_partialTimers()
726 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testReadKernelUidCpuFreqTimesLocked_partialTimers()
1296 mBatteryStatsImpl.setPowerProfile(mPowerProfile); in updateTimeBasesLocked()
DMockBatteryStatsImpl.java93 mPowerProfile = powerProfile; in setPowerProfile()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java80 private PowerProfile mPowerProfile; field in BatteryStatsHelper
271 return mPowerProfile; in getPowerProfile()
275 mPowerProfile = new PowerProfile(mContext); in create()
286 mPowerProfile = new PowerProfile(mContext); in create()
373 mCpuPowerCalculator = new CpuPowerCalculator(mPowerProfile); in refreshStats()
378 mMemoryPowerCalculator = new MemoryPowerCalculator(mPowerProfile); in refreshStats()
383 mWakelockPowerCalculator = new WakelockPowerCalculator(mPowerProfile); in refreshStats()
388 mMobileRadioPowerCalculator = new MobileRadioPowerCalculator(mPowerProfile, mStats); in refreshStats()
394 final boolean hasWifiPowerReporting = checkHasWifiPowerReporting(mStats, mPowerProfile); in refreshStats()
397 new WifiPowerCalculator(mPowerProfile) : in refreshStats()
[all …]
DBatteryStatsImpl.java537 if (mPowerProfile == null) { in initKernelSingleUidTimeReaderLocked()
541 mCpuFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile); in initKernelSingleUidTimeReaderLocked()
963 protected PowerProfile mPowerProfile; field in BatteryStatsImpl
6396 final double opVolt = mPowerProfile.getAveragePower( in getGpsBatteryDrainMaMs()
6406 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()
8778 … if (mBsi.mPowerProfile != null && mBsi.mPowerProfile.getNumCpuClusters() != numCpuClusters) { in readFromParcelLocked()
8786 if (mBsi.mPowerProfile != null && in readFromParcelLocked()
8787 … mBsi.mPowerProfile.getNumSpeedStepsInCpuCluster(cluster) != numSpeeds) { in readFromParcelLocked()
10234 mPowerProfile = profile; in setPowerProfileLocked()
10239 final int numClusters = mPowerProfile.getNumCpuClusters(); in setPowerProfileLocked()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java224 PowerProfile mPowerProfile; field in WifiServiceImpl
485 mPowerProfile = mWifiInjector.getPowerProfile(); in WifiServiceImpl()
1677 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java197 @Mock PowerProfile mPowerProfile; field in WifiServiceImplTest
280 when(mWifiInjector.getPowerProfile()).thenReturn(mPowerProfile); in setUp()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt7670 Lcom/android/internal/os/BatteryStatsHelper;->mPowerProfile:Lcom/android/internal/os/PowerProfile;