Skip navigation links
A B C D E F G H I L M N O R S V W 

A

AbstractAnalysisResultService - Class in com.squareup.leakcanary
 
AbstractAnalysisResultService() - Constructor for class com.squareup.leakcanary.AbstractAnalysisResultService
 
ActivityRefWatcher - Class in com.squareup.leakcanary
 
ActivityRefWatcher(Application, RefWatcher) - Constructor for class com.squareup.leakcanary.ActivityRefWatcher
Constructs an ActivityRefWatcher that will make sure the activities are not leaking after they have been destroyed.
afterDefaultHandling(HeapDump, AnalysisResult, String) - Method in class com.squareup.leakcanary.DisplayLeakService
You can override this method and do a blocking call to a server to upload the leak trace and the heap dump.
analyze(HeapDump) - Method in class com.squareup.leakcanary.ServiceHeapDumpListener
 
AndroidDebuggerControl - Class in com.squareup.leakcanary
 
AndroidDebuggerControl() - Constructor for class com.squareup.leakcanary.AndroidDebuggerControl
 
AndroidExcludedRefs - Enum in com.squareup.leakcanary
This class is a work in progress.
AndroidHeapDumper - Class in com.squareup.leakcanary
 
AndroidHeapDumper(Context, LeakDirectoryProvider) - Constructor for class com.squareup.leakcanary.AndroidHeapDumper
 
AndroidRefWatcherBuilder - Class in com.squareup.leakcanary
A RefWatcherBuilder with appropriate Android defaults.
AndroidWatchExecutor - Class in com.squareup.leakcanary
WatchExecutor suitable for watching Android reference leaks.
AndroidWatchExecutor(long) - Constructor for class com.squareup.leakcanary.AndroidWatchExecutor
 

B

buildAndInstall() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Creates a RefWatcher instance and starts watching activity references (on ICS+).

C

CanaryLog - Class in com.squareup.leakcanary
 
CanaryLog.Logger - Interface in com.squareup.leakcanary
 
classSimpleName(String) - Static method in class com.squareup.leakcanary.internal.LeakCanaryInternals
Extracts the class simple name out of a string containing a fully qualified class name.
clearLeakDirectory() - Method in class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
clearLeakDirectory() - Method in interface com.squareup.leakcanary.LeakDirectoryProvider
Removes all heap dumps and analysis results, except for heap dumps that haven't been analyzed yet.
com.squareup.leakcanary - package com.squareup.leakcanary
 
com.squareup.leakcanary.internal - package com.squareup.leakcanary.internal
 
createAndroidDefaults() - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
This returns the references in the leak path that should be ignored by all on Android.
createAppDefaults() - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
This returns the references in the leak path that can be ignored for app developers.
createBuilder(EnumSet<AndroidExcludedRefs>) - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
 
createPendingIntent(Context) - Static method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
createPendingIntent(Context, String) - Static method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
createPendingIntent(Context) - Static method in class com.squareup.leakcanary.internal.RequestStoragePermissionActivity
 

D

d(String, Object...) - Static method in class com.squareup.leakcanary.CanaryLog
 
d(Throwable, String, Object...) - Static method in class com.squareup.leakcanary.CanaryLog
 
d(String, Object...) - Method in interface com.squareup.leakcanary.CanaryLog.Logger
 
d(Throwable, String, Object...) - Method in interface com.squareup.leakcanary.CanaryLog.Logger
 
defaultDebuggerControl() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
defaultExcludedRefs() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
defaultHeapDumper() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
defaultHeapDumpListener() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
DefaultLeakDirectoryProvider - Class in com.squareup.leakcanary
 
DefaultLeakDirectoryProvider(Context) - Constructor for class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
DefaultLeakDirectoryProvider(Context, int) - Constructor for class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
defaultWatchExecutor() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
DisplayLeakActivity - Class in com.squareup.leakcanary.internal
 
DisplayLeakActivity() - Constructor for class com.squareup.leakcanary.internal.DisplayLeakActivity
 
DisplayLeakConnectorView - Class in com.squareup.leakcanary.internal
 
DisplayLeakConnectorView(Context, AttributeSet) - Constructor for class com.squareup.leakcanary.internal.DisplayLeakConnectorView
 
DisplayLeakConnectorView.Type - Enum in com.squareup.leakcanary.internal
 
DisplayLeakService - Class in com.squareup.leakcanary
Logs leak analysis results, and then shows a notification which will start DisplayLeakActivity.
DisplayLeakService() - Constructor for class com.squareup.leakcanary.DisplayLeakService
 
dumpHeap() - Method in class com.squareup.leakcanary.AndroidHeapDumper
 

E

enableDisplayLeakActivity(Context) - Static method in class com.squareup.leakcanary.LeakCanary
 
execute(Retryable) - Method in class com.squareup.leakcanary.AndroidWatchExecutor
 
executeOnFileIoThread(Runnable) - Static method in class com.squareup.leakcanary.internal.LeakCanaryInternals
 

F

FutureResult<T> - Class in com.squareup.leakcanary.internal
 
FutureResult() - Constructor for class com.squareup.leakcanary.internal.FutureResult
 

G

get() - Method in class com.squareup.leakcanary.internal.FutureResult
 

H

HeapAnalyzerService - Class in com.squareup.leakcanary.internal
This service runs in a separate process to avoid slowing down the app process or making it run out of memory.
HeapAnalyzerService() - Constructor for class com.squareup.leakcanary.internal.HeapAnalyzerService
 

I

install(Application, RefWatcher) - Static method in class com.squareup.leakcanary.ActivityRefWatcher
 
install(Application) - Static method in class com.squareup.leakcanary.LeakCanary
Creates a RefWatcher that works out of the box, and starts watching activity references (on ICS+).
installOnIcsPlus(Application, RefWatcher) - Static method in class com.squareup.leakcanary.ActivityRefWatcher
isDebuggerAttached() - Method in class com.squareup.leakcanary.AndroidDebuggerControl
 
isDisabled() - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
 
isInAnalyzerProcess(Context) - Static method in class com.squareup.leakcanary.LeakCanary
Whether the current process is the process running the HeapAnalyzerService, which is a different process than the normal app process.
isInServiceProcess(Context, Class<? extends Service>) - Static method in class com.squareup.leakcanary.internal.LeakCanaryInternals
 

L

LeakCanary - Class in com.squareup.leakcanary
 
LeakCanaryInternals - Class in com.squareup.leakcanary.internal
 
LeakDirectoryProvider - Interface in com.squareup.leakcanary
Provides access to where heap dumps and analysis results will be stored.
leakInfo(Context, HeapDump, AnalysisResult, boolean) - Static method in class com.squareup.leakcanary.LeakCanary
Returns a string representation of the result of a heap analysis.
LENOVO - Static variable in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
LG - Static variable in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
listenerServiceClass(Class<? extends AbstractAnalysisResultService>) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Sets a custom AbstractAnalysisResultService to listen to analysis results.
listFiles(FilenameFilter) - Method in class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
listFiles(FilenameFilter) - Method in interface com.squareup.leakcanary.LeakDirectoryProvider
 

M

maxStoredHeapDumps(int) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Sets the maximum number of heap dumps stored.
MEIZU - Static variable in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
MoreDetailsView - Class in com.squareup.leakcanary.internal
 
MoreDetailsView(Context, AttributeSet) - Constructor for class com.squareup.leakcanary.internal.MoreDetailsView
 
MOTOROLA - Static variable in class com.squareup.leakcanary.internal.LeakCanaryInternals
 

N

newHeapDumpFile() - Method in class com.squareup.leakcanary.DefaultLeakDirectoryProvider
 
newHeapDumpFile() - Method in interface com.squareup.leakcanary.LeakDirectoryProvider
 
newSingleThreadExecutor(String) - Static method in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
NVIDIA - Static variable in class com.squareup.leakcanary.internal.LeakCanaryInternals
 

O

onBackPressed() - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
onCreate(Bundle) - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
onCreate(Bundle) - Method in class com.squareup.leakcanary.internal.RequestStoragePermissionActivity
 
onCreateOptionsMenu(Menu) - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
onDestroy() - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
onDraw(Canvas) - Method in class com.squareup.leakcanary.internal.DisplayLeakConnectorView
 
onDraw(Canvas) - Method in class com.squareup.leakcanary.internal.MoreDetailsView
 
onHandleIntent(Intent) - Method in class com.squareup.leakcanary.AbstractAnalysisResultService
 
onHandleIntent(Intent) - Method in class com.squareup.leakcanary.internal.HeapAnalyzerService
 
onHeapAnalyzed(HeapDump, AnalysisResult) - Method in class com.squareup.leakcanary.AbstractAnalysisResultService
Called after a heap dump is analyzed, whether or not a leak was found.
onHeapAnalyzed(HeapDump, AnalysisResult) - Method in class com.squareup.leakcanary.DisplayLeakService
 
onOptionsItemSelected(MenuItem) - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
onRequestPermissionsResult(int, String[], int[]) - Method in class com.squareup.leakcanary.internal.RequestStoragePermissionActivity
 
onResume() - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
onRetainNonConfigurationInstance() - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
onSaveInstanceState(Bundle) - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 

R

refWatcher(Context) - Static method in class com.squareup.leakcanary.LeakCanary
Builder to create a customized RefWatcher with appropriate Android defaults.
RequestStoragePermissionActivity - Class in com.squareup.leakcanary.internal
 
RequestStoragePermissionActivity() - Constructor for class com.squareup.leakcanary.internal.RequestStoragePermissionActivity
 
runAnalysis(Context, HeapDump, Class<? extends AbstractAnalysisResultService>) - Static method in class com.squareup.leakcanary.internal.HeapAnalyzerService
 

S

SAMSUNG - Static variable in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
sendResultToListener(Context, String, HeapDump, AnalysisResult) - Static method in class com.squareup.leakcanary.AbstractAnalysisResultService
 
ServiceHeapDumpListener - Class in com.squareup.leakcanary
 
ServiceHeapDumpListener(Context, Class<? extends AbstractAnalysisResultService>) - Constructor for class com.squareup.leakcanary.ServiceHeapDumpListener
 
set(T) - Method in class com.squareup.leakcanary.internal.FutureResult
 
setDisplayLeakActivityDirectoryProvider(LeakDirectoryProvider) - Static method in class com.squareup.leakcanary.LeakCanary
If you build a RefWatcher with a AndroidHeapDumper that has a custom LeakDirectoryProvider, then you should also call this method to make sure the activity in charge of displaying leaks can find those on the file system.
setEnabled(Context, Class<?>, boolean) - Static method in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
setEnabledBlocking(Context, Class<?>, boolean) - Static method in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
setLeakDirectoryProvider(LeakDirectoryProvider) - Static method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
setLogger(CanaryLog.Logger) - Static method in class com.squareup.leakcanary.CanaryLog
 
setOpened(boolean) - Method in class com.squareup.leakcanary.internal.MoreDetailsView
 
setTheme(int) - Method in class com.squareup.leakcanary.internal.DisplayLeakActivity
 
setType(DisplayLeakConnectorView.Type) - Method in class com.squareup.leakcanary.internal.DisplayLeakConnectorView
 
showNotification(Context, CharSequence, CharSequence, PendingIntent, int) - Static method in class com.squareup.leakcanary.internal.LeakCanaryInternals
 
stopWatchingActivities() - Method in class com.squareup.leakcanary.ActivityRefWatcher
 

V

valueOf(String) - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.squareup.leakcanary.internal.DisplayLeakConnectorView.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.squareup.leakcanary.AndroidExcludedRefs
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.squareup.leakcanary.internal.DisplayLeakConnectorView.Type
Returns an array containing the constants of this enum type, in the order they are declared.

W

wait(long, TimeUnit) - Method in class com.squareup.leakcanary.internal.FutureResult
 
watchActivities() - Method in class com.squareup.leakcanary.ActivityRefWatcher
 
watchDelay(long, TimeUnit) - Method in class com.squareup.leakcanary.AndroidRefWatcherBuilder
Sets a custom delay for how long the RefWatcher should wait until it checks if a tracked object has been garbage collected.
A B C D E F G H I L M N O R S V W 
Skip navigation links