Home
last modified time | relevance | path

Searched refs:mKernelUidCpuFreqTimeReader (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelUidCpuFreqTimeReaderTest.java74 private KernelUidCpuFreqTimeReader mKernelUidCpuFreqTimeReader; field in KernelUidCpuFreqTimeReaderTest
79 mKernelUidCpuFreqTimeReader = new KernelUidCpuFreqTimeReader(mProcReader); in setUp()
80 mKernelUidCpuFreqTimeReader.setThrottleInterval(0); in setUp()
96 long[] actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs( in testReadFreqs_perClusterTimesNotAvailable()
102 assertFalse(errMsg, mKernelUidCpuFreqTimeReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesNotAvailable()
106 actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
108 assertFalse(errMsg, mKernelUidCpuFreqTimeReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesNotAvailable()
127 long[] actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs( in testReadFreqs_perClusterTimesAvailable()
133 assertTrue(errMsg, mKernelUidCpuFreqTimeReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesAvailable()
137 actualFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
[all …]
DBatteryStatsCpuTimesTest.java79 KernelUidCpuFreqTimeReader mKernelUidCpuFreqTimeReader; field in BatteryStatsCpuTimesTest
100 .setKernelUidCpuFreqTimeReader(mKernelUidCpuFreqTimeReader) in setUp()
114 when(mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile)).thenReturn(freqs); in testUpdateCpuTimeLocked()
122 verify(mKernelUidCpuFreqTimeReader).readDelta(null); in testUpdateCpuTimeLocked()
128 Mockito.reset(mUserInfoProvider, mKernelUidCpuFreqTimeReader, mKernelUidCpuTimeReader); in testUpdateCpuTimeLocked()
144 verify(mKernelUidCpuFreqTimeReader, times(2)).perClusterTimesAvailable(); in testUpdateCpuTimeLocked()
145 verify(mKernelUidCpuFreqTimeReader).readDelta( in testUpdateCpuTimeLocked()
151 verifyNoMoreInteractions(mKernelUidCpuFreqTimeReader); in testUpdateCpuTimeLocked()
548 }).when(mKernelUidCpuFreqTimeReader).readDelta( in testReadKernelUidCpuFreqTimesLocked()
581 }).when(mKernelUidCpuFreqTimeReader).readDelta( in testReadKernelUidCpuFreqTimesLocked()
[all …]
DBatteryStatsImplTest.java54 private KernelUidCpuFreqTimeReader mKernelUidCpuFreqTimeReader; field in BatteryStatsImplTest
64 when(mKernelUidCpuFreqTimeReader.allUidTimesAvailable()).thenReturn(true); in setUp()
67 .setKernelUidCpuFreqTimeReader(mKernelUidCpuFreqTimeReader) in setUp()
253 when(mKernelUidCpuFreqTimeReader.getAllUidCpuFreqTimeMs()).thenReturn(allUidCpuTimes); in testCopyFromAllUidsCpuTimes()
DMockBatteryStatsImpl.java98 mKernelUidCpuFreqTimeReader = reader; in setKernelUidCpuFreqTimeReader()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java149 private KernelUidCpuFreqTimeReader mKernelUidCpuFreqTimeReader = field in StatsCompanionService
202 mKernelUidCpuFreqTimeReader.setThrottleInterval(0); in StatsCompanionService()
203 long[] freqs = mKernelUidCpuFreqTimeReader.readFreqs(powerProfile); in StatsCompanionService()
746 mKernelUidCpuFreqTimeReader.readAbsolute((uid, cpuFreqTimeMs) -> { in pullKernelUidCpuFreqTime()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java210 protected KernelUidCpuFreqTimeReader mKernelUidCpuFreqTimeReader = field in BatteryStatsImpl
292 mKernelUidCpuFreqTimeReader.removeUid(startUid); in remove()
302 mKernelUidCpuFreqTimeReader.removeUidsInRange(startUid, endUid); in remove()
484 mKernelUidCpuFreqTimeReader.getAllUidCpuFreqTimeMs(); in copyFromAllUidsCpuTimes()
541 mCpuFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile); in initKernelSingleUidTimeReaderLocked()
546 mPerProcStateCpuTimesAvailable = mKernelUidCpuFreqTimeReader.allUidTimesAvailable(); in initKernelSingleUidTimeReaderLocked()
550 mPerProcStateCpuTimesAvailable = mKernelUidCpuFreqTimeReader.allUidTimesAvailable() in initKernelSingleUidTimeReaderLocked()
11917 mCpuFreqs = mKernelUidCpuFreqTimeReader.readFreqs(mPowerProfile); in updateCpuTimeLocked()
11944 mKernelUidCpuFreqTimeReader.readDelta(null); in updateCpuTimeLocked()
11958 final SparseLongArray updatedUids = mKernelUidCpuFreqTimeReader.perClusterTimesAvailable() in updateCpuTimeLocked()
[all …]