/** * Identical to {@link #watch(Object, String)} with an empty string reference name. * * @see #watch(Object, String) */ public void watch(Object watchedReference) { watch(watchedReference, ""); }
@Override public final void testFinished(Description description) { detectLeaks(); LeakCanary.installedRefWatcher().clearWatchedReferences(); }
@Override public Retryable.Result run() { return ensureGone(reference, watchStartNanoTime); } });
return new RefWatcher(watchExecutor, debuggerControl, gcTrigger, heapDumper, heapDumpListener, heapDumpBuilder);
return new RefWatcher(watchExecutor, debuggerControl, gcTrigger, heapDumper, heapDumpListener, excludedRefs);
@Override public void onFragmentDestroyed(FragmentManager fm, Fragment fragment) { refWatcher.watch(fragment); } };
@After public void tearDown() { LeakCanary.installedRefWatcher().clearWatchedReferences(); }
@Override public Retryable.Result run() { return ensureGone(reference, watchStartNanoTime); } });
@Override public void onFragmentDestroyed(FragmentManager fm, Fragment fragment) { refWatcher.watch(fragment); } };
@After public void tearDown() { LeakCanary.installedRefWatcher().clearWatchedReferences(); }
@Override public void onActivityDestroyed(Activity activity) { refWatcher.watch(activity); } };
@Before public void setUp() { LeakCanary.installedRefWatcher().clearWatchedReferences(); }
@Override public void onFragmentViewDestroyed(FragmentManager fm, Fragment fragment) { View view = fragment.getView(); if (view != null) { refWatcher.watch(view); } }
@Before public void setUp() { LeakCanary.installedRefWatcher().clearWatchedReferences(); }
@Override public void onFragmentViewDestroyed(FragmentManager fm, Fragment fragment) { View view = fragment.getView(); if (view != null) { refWatcher.watch(view); } }
@Override public void onDestroy() { super.onDestroy(); RefWatcher refWatcher = MyApp.getRefWatcher(); refWatcher.watch(this); } }
@Override public void onDestroy() { Log.i(TAG, "Conductor: onDestroy() called"); super.onDestroy(); if (hasExited) { DemoApplication.refWatcher.watch(this); } }
@Override public void onDestroy() { super.onDestroy(); if (hasExited) { DemoApplication.refWatcher.watch(this); } }
@Override public void onDestroy() { super.onDestroy(); Log.i(TAG, "onDestroy() called"); if (hasExited) { DemoApplication.refWatcher.watch(this); } }
@Override public void onDestroy() { super.onDestroy(); Log.i(TAG, "onDestroy() called"); if (hasExited) { DemoApplication.refWatcher.watch(this); } }