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()
119 private final TrackedGarbage mTrackedGarbage; field in GarbageMonitor144 mTrackedGarbage = leakDetector.getTrackedGarbage(); in GarbageMonitor()157 if (mTrackedGarbage == null) { in startLeakMonitor()171 if (mTrackedGarbage.countOldGarbage() > GARBAGE_ALLOWANCE) { in gcAndCheckGarbage()179 int count = mTrackedGarbage.countOldGarbage(); in reinspectGarbageAfterGc()