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.java45 private TrackedGarbage mTrackedGarbage; field in GarbageMonitorTest
50 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DLeakDetector.java37 private final TrackedGarbage mTrackedGarbage; field in LeakDetector
45 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()
DGarbageMonitor.java119 private final TrackedGarbage mTrackedGarbage; field in GarbageMonitor
144 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()