Searched refs:mTrackedGarbage (Results 1 – 3 of 3) sorted by relevance
44 private TrackedGarbage mTrackedGarbage; field in GarbageMonitorTest49 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()
38 private final TrackedGarbage mTrackedGarbage; field in LeakDetector46 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()
75 private final TrackedGarbage mTrackedGarbage; field in GarbageMonitor98 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()