Searched refs:staleStats (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelWakelockReaderTest.java | 70 KernelWakelockStats staleStats = mReader.parseProcWakelocks(new byte[0], 0, true, in testParseEmptyFile() local 72 assertTrue(staleStats.isEmpty()); in testParseEmptyFile() 78 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOnlyHeader() local 80 assertTrue(staleStats.isEmpty()); in testOnlyHeader() 88 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOneWakelock() local 90 assertEquals(1, staleStats.size()); in testOneWakelock() 91 assertTrue(staleStats.containsKey("Wakelock")); in testOneWakelock() 93 KernelWakelockStats.Entry entry = staleStats.get("Wakelock"); in testOneWakelock() 104 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testTwoWakelocks() local 106 assertEquals(2, staleStats.size()); in testTwoWakelocks() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelWakelockReader.java | 67 public final KernelWakelockStats readKernelWakelockStats(KernelWakelockStats staleStats) { in readKernelWakelockStats() argument 116 return parseProcWakelocks(buffer, len, wakeup_sources, staleStats); in readKernelWakelockStats() 124 final KernelWakelockStats staleStats) { in parseProcWakelocks() argument 173 if (!staleStats.containsKey(name)) { in parseProcWakelocks() 174 staleStats.put(name, new KernelWakelockStats.Entry(count, totalTime, in parseProcWakelocks() 177 KernelWakelockStats.Entry kwlStats = staleStats.get(name); in parseProcWakelocks() 199 Iterator<KernelWakelockStats.Entry> itr = staleStats.values().iterator(); in parseProcWakelocks() 206 staleStats.kernelWakelockVersion = sKernelWakelockUpdateVersion; in parseProcWakelocks() 207 return staleStats; in parseProcWakelocks()
|