Searched refs:mTrackedGarbage (Results 1 – 3 of 3) sorted by relevance
45 private TrackedGarbage mTrackedGarbage; field in GarbageMonitorTest50 mTrackedGarbage = mock(TrackedGarbage.class); in setup()56 new LeakDetector(null, mTrackedGarbage, null), in setup()70 when(mTrackedGarbage.countOldGarbage()).thenReturn(0); in testNoGarbage_doesntDump()82 when(mTrackedGarbage.countOldGarbage()).thenReturn(4); in testALittleGarbage_doesntDump()94 when(mTrackedGarbage.countOldGarbage()).thenReturn(100); in testTransientGarbage_doesntDump()99 when(mTrackedGarbage.countOldGarbage()).thenReturn(0); in testTransientGarbage_doesntDump()108 when(mTrackedGarbage.countOldGarbage()).thenReturn(100); in testLotsOfPersistentGarbage_dumps()
37 private final TrackedGarbage mTrackedGarbage; field in LeakDetector45 mTrackedGarbage = trackedGarbage; in LeakDetector()93 if (mTrackedGarbage != null) { in trackGarbage()94 mTrackedGarbage.track(o); in trackGarbage()99 return mTrackedGarbage; in getTrackedGarbage()109 if (mTrackedCollections != null && mTrackedGarbage != null) { in dump()124 mTrackedGarbage.dump(pw); in dump()
96 private final TrackedGarbage mTrackedGarbage; field in GarbageMonitor122 mTrackedGarbage = leakDetector.getTrackedGarbage(); in GarbageMonitor()135 if (mTrackedGarbage == null) { in startLeakMonitor()149 if (mTrackedGarbage.countOldGarbage() > GARBAGE_ALLOWANCE) { in gcAndCheckGarbage()157 int count = mTrackedGarbage.countOldGarbage(); in reinspectGarbageAfterGc()