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.java71 KernelWakelockStats staleStats = mReader.parseProcWakelocks(new byte[0], 0, true, in testParseEmptyFile() local
73 assertTrue(staleStats.isEmpty()); in testParseEmptyFile()
79 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOnlyHeader() local
81 assertTrue(staleStats.isEmpty()); in testOnlyHeader()
89 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOneWakelock() local
91 assertEquals(1, staleStats.size()); in testOneWakelock()
92 assertTrue(staleStats.containsKey("Wakelock")); in testOneWakelock()
94 KernelWakelockStats.Entry entry = staleStats.get("Wakelock"); in testOneWakelock()
105 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testTwoWakelocks() local
107 assertEquals(2, staleStats.size()); in testTwoWakelocks()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelWakelockReader.java67 public final KernelWakelockStats readKernelWakelockStats(KernelWakelockStats staleStats) { in readKernelWakelockStats() argument
120 return parseProcWakelocks(buffer, len, wakeup_sources, staleStats); in readKernelWakelockStats()
128 final KernelWakelockStats staleStats) { in parseProcWakelocks() argument
177 if (!staleStats.containsKey(name)) { in parseProcWakelocks()
178 staleStats.put(name, new KernelWakelockStats.Entry(count, totalTime, in parseProcWakelocks()
181 KernelWakelockStats.Entry kwlStats = staleStats.get(name); in parseProcWakelocks()
203 Iterator<KernelWakelockStats.Entry> itr = staleStats.values().iterator(); in parseProcWakelocks()
210 staleStats.kernelWakelockVersion = sKernelWakelockUpdateVersion; in parseProcWakelocks()
211 return staleStats; in parseProcWakelocks()