Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DGarbageMonitorTest.java44 private TrackedGarbage mTrackedGarbage; field in GarbageMonitorTest
49 mTrackedGarbage = mock(TrackedGarbage.class); in setup()
55 new LeakDetector(null, mTrackedGarbage, null), in setup()
69 when(mTrackedGarbage.countOldGarbage()).thenReturn(0); in testNoGarbage_doesntDump()
81 when(mTrackedGarbage.countOldGarbage()).thenReturn(4); in testALittleGarbage_doesntDump()
93 when(mTrackedGarbage.countOldGarbage()).thenReturn(100); in testTransientGarbage_doesntDump()
98 when(mTrackedGarbage.countOldGarbage()).thenReturn(0); in testTransientGarbage_doesntDump()
107 when(mTrackedGarbage.countOldGarbage()).thenReturn(100); in testLotsOfPersistentGarbage_dumps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DLeakDetector.java38 private final TrackedGarbage mTrackedGarbage; field in LeakDetector
46 mTrackedGarbage = trackedGarbage; in LeakDetector()
94 if (mTrackedGarbage != null) { in trackGarbage()
95 mTrackedGarbage.track(o); in trackGarbage()
100 return mTrackedGarbage; in getTrackedGarbage()
110 if (mTrackedCollections != null && mTrackedGarbage != null) { in dump()
125 mTrackedGarbage.dump(pw); in dump()
DGarbageMonitor.java75 private final TrackedGarbage mTrackedGarbage; field in GarbageMonitor
98 mTrackedGarbage = leakDetector.getTrackedGarbage(); in GarbageMonitor()
109 if (mTrackedGarbage == null) { in startLeakMonitor()
123 if (mTrackedGarbage.countOldGarbage() > GARBAGE_ALLOWANCE) { in gcAndCheckGarbage()
131 int count = mTrackedGarbage.countOldGarbage(); in reinspectGarbageAfterGc()