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.java96 private final TrackedGarbage mTrackedGarbage; field in GarbageMonitor
122 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()