Home
last modified time | relevance | path

Searched refs:mKernelSingleUidTimeReader (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsImplTest.java56 private KernelSingleUidTimeReader mKernelSingleUidTimeReader; field in BatteryStatsImplTest
65 when(mKernelSingleUidTimeReader.singleUidCpuTimesAvailable()).thenReturn(true); in setUp()
68 .setKernelSingleUidTimeReader(mKernelSingleUidTimeReader); in setUp()
91 when(mKernelSingleUidTimeReader.readDeltaMs(testUids[i])).thenReturn(cpuTimes[i]); in testUpdateProcStateCpuTimes()
124 when(mKernelSingleUidTimeReader.readDeltaMs(testUids[i])).thenReturn(delta1[i]); in testUpdateProcStateCpuTimes()
156 when(mKernelSingleUidTimeReader.readDeltaMs(testUids[i])).thenReturn(delta2[i]); in testUpdateProcStateCpuTimes()
189 when(mKernelSingleUidTimeReader.readDeltaMs(testUids[i])).thenReturn( in testUpdateProcStateCpuTimes()
197 when(mKernelSingleUidTimeReader.readDeltaMs(childUid)).thenReturn(isolatedUidCpuTimes); in testUpdateProcStateCpuTimes()
263 when(mKernelSingleUidTimeReader.computeDelta(eq(testUids[i]), argThat(matcher))) in testCopyFromAllUidsCpuTimes()
DMockBatteryStatsImpl.java118 mKernelSingleUidTimeReader = reader; in setKernelSingleUidTimeReader()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java219 protected KernelSingleUidTimeReader mKernelSingleUidTimeReader; field in BatteryStatsImpl
297 if (mKernelSingleUidTimeReader != null) { in remove()
298 mKernelSingleUidTimeReader.removeUid(startUid); in remove()
308 if (mKernelSingleUidTimeReader != null) { in remove()
309 mKernelSingleUidTimeReader.removeUidsInRange(startUid, endUid); in remove()
404 if (mKernelSingleUidTimeReader.hasStaleData()) { in updateProcStateCpuTimes()
437 long[] cpuTimesMs = mKernelSingleUidTimeReader.readDeltaMs(uid); in updateProcStateCpuTimes()
441 mKernelSingleUidTimeReader.readDeltaMs(isolatedUids[j])); in updateProcStateCpuTimes()
487 if (mKernelSingleUidTimeReader.hasStaleData()) { in copyFromAllUidsCpuTimes()
488 mKernelSingleUidTimeReader.setAllUidsCpuTimesMs(allUidCpuFreqTimesMs); in copyFromAllUidsCpuTimes()
[all …]