Searched refs:mPowerProfile (Results 1 – 7 of 7) sorted by relevance
42 private PowerProfile mPowerProfile; field in PowerCalculatorTest52 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()
66 private PowerProfile mPowerProfile; field in KernelCpuUidFreqTimeReaderTest117 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()
93 PowerProfile mPowerProfile; field in BatteryStatsCpuTimesTest115 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()
99 mPowerProfile = powerProfile; in setPowerProfile()
84 private PowerProfile mPowerProfile; field in BatteryStatsHelper283 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 …]
580 if (mPowerProfile == null) { in initKernelSingleUidTimeReaderLocked()584 mCpuFreqs = mCpuUidFreqTimeReader.readFreqs(mPowerProfile); in initKernelSingleUidTimeReaderLocked()1008 protected PowerProfile mPowerProfile; field in BatteryStatsImpl6243 final double opVolt = mPowerProfile.getAveragePower( in getGpsBatteryDrainMaMs()6253 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()8602 … if (mBsi.mPowerProfile != null && mBsi.mPowerProfile.getNumCpuClusters() != numCpuClusters) { in readFromParcelLocked()8610 if (mBsi.mPowerProfile != null && in readFromParcelLocked()8611 … mBsi.mPowerProfile.getNumSpeedStepsInCpuCluster(cluster) != numSpeeds) { in readFromParcelLocked()9905 mPowerProfile = profile; in setPowerProfileLocked()9910 final int numClusters = mPowerProfile.getNumCpuClusters(); in setPowerProfileLocked()[all …]
295 @Mock PowerProfile mPowerProfile; field in WifiServiceImplTest5422 when(mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_IDLE)) in setupReportActivityInfo()5424 when(mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_RX)) in setupReportActivityInfo()5426 when(mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_TX)) in setupReportActivityInfo()5428 when(mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_CONTROLLER_OPERATING_VOLTAGE)) in setupReportActivityInfo()