Home
last modified time | relevance | path

Searched refs:staleStats (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelWakelockReaderTest.java83 private KernelWakelockStats readKernelWakelockStats(KernelWakelockStats staleStats, in readKernelWakelockStats() argument
85 mReader.updateVersion(staleStats); in readKernelWakelockStats()
86 mReader.parseProcWakelocks(buffer, buffer.length, true, staleStats); in readKernelWakelockStats()
87 mReader.updateWakelockStats(wlStats, staleStats); in readKernelWakelockStats()
88 return mReader.removeOldStats(staleStats); in readKernelWakelockStats()
102 KernelWakelockStats staleStats = mReader.parseProcWakelocks(new byte[0], 0, true, in testParseEmptyFile() local
105 assertTrue(staleStats.isEmpty()); in testParseEmptyFile()
112 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOnlyHeader() local
115 assertTrue(staleStats.isEmpty()); in testOnlyHeader()
124 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOneWakelock() local
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelWakelockReader.java77 public final KernelWakelockStats readKernelWakelockStats(KernelWakelockStats staleStats) { in readKernelWakelockStats() argument
82 updateVersion(staleStats); in readKernelWakelockStats()
83 if (getWakelockStatsFromSystemSuspend(staleStats) == null) { in readKernelWakelockStats()
87 return removeOldStats(staleStats); in readKernelWakelockStats()
144 updateVersion(staleStats); in readKernelWakelockStats()
146 if (getWakelockStatsFromSystemSuspend(staleStats) == null) { in readKernelWakelockStats()
150 parseProcWakelocks(mKernelWakelockBuffer, len, wakeup_sources, staleStats); in readKernelWakelockStats()
151 return removeOldStats(staleStats); in readKernelWakelockStats()
175 final KernelWakelockStats staleStats) { in getWakelockStatsFromSystemSuspend() argument
186 updateWakelockStats(wlStats, staleStats); in getWakelockStatsFromSystemSuspend()
[all …]