Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelUidCpuClusterTimeReaderTest.java50 private KernelCpuProcReader mProcReader; field in KernelUidCpuClusterTimeReaderTest
57 mReader = new KernelUidCpuClusterTimeReader(mProcReader); in setUp()
71 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times)); in testReadDelta()
80 Mockito.reset(mProcReader); in testReadDelta()
82 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1)); in testReadDelta()
91 Mockito.reset(mProcReader); in testReadDelta()
92 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1)); in testReadDelta()
97 Mockito.reset(mProcReader); in testReadDelta()
99 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times2)); in testReadDelta()
105 Mockito.reset(mProcReader); in testReadDelta()
[all …]
DKernelUidCpuActiveTimeReaderTest.java47 private KernelCpuProcReader mProcReader; field in KernelUidCpuActiveTimeReaderTest
55 mReader = new KernelUidCpuActiveTimeReader(mProcReader); in setUp()
65 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times)); in testReadDelta()
75 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times1)); in testReadDelta()
84 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times1)); in testReadDelta()
91 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times2)); in testReadDelta()
98 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times3)); in testReadDelta()
112 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times)); in testReadAbsolute()
122 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times1)); in testReadAbsolute()
135 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times)); in testReadDelta_malformedData()
[all …]
DKernelUidCpuFreqTimeReaderTest.java72 private KernelCpuProcReader mProcReader; field in KernelUidCpuFreqTimeReaderTest
79 mKernelUidCpuFreqTimeReader = new KernelUidCpuFreqTimeReader(mProcReader); in setUp()
161 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times)); in testReadDelta_Binary()
170 Mockito.reset(mProcReader); in testReadDelta_Binary()
177 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, newTimes1)); in testReadDelta_Binary()
186 Mockito.reset(mProcReader); in testReadDelta_Binary()
187 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, newTimes1)); in testReadDelta_Binary()
193 Mockito.reset(mProcReader); in testReadDelta_Binary()
200 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, newTimes2)); in testReadDelta_Binary()
207 Mockito.reset(mProcReader); in testReadDelta_Binary()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelUidCpuActiveTimeReader.java56 private final KernelCpuProcReader mProcReader; field in KernelUidCpuActiveTimeReader
71 mProcReader = KernelCpuProcReader.getActiveTimeReaderInstance(); in KernelUidCpuActiveTimeReader()
76 mProcReader = procReader; in KernelUidCpuActiveTimeReader()
134 synchronized (mProcReader) { in readImpl()
135 final ByteBuffer bytes = mProcReader.readBytes(); in readImpl()
DKernelUidCpuClusterTimeReader.java60 private final KernelCpuProcReader mProcReader; field in KernelUidCpuClusterTimeReader
83 mProcReader = KernelCpuProcReader.getClusterTimeReaderInstance(); in KernelUidCpuClusterTimeReader()
88 mProcReader = procReader; in KernelUidCpuClusterTimeReader()
159 synchronized (mProcReader) { in readImpl()
160 ByteBuffer bytes = mProcReader.readBytes(); in readImpl()
DKernelUidCpuFreqTimeReader.java77 private final KernelCpuProcReader mProcReader; field in KernelUidCpuFreqTimeReader
89 mProcReader = KernelCpuProcReader.getFreqTimeReaderInstance(); in KernelUidCpuFreqTimeReader()
94 mProcReader = procReader; in KernelUidCpuFreqTimeReader()
232 synchronized (mProcReader) { in readImpl()
233 ByteBuffer bytes = mProcReader.readBytes(); in readImpl()