Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/shark/AndroidReferenceMatchers

AndroidReferenceMatchers

[jvm]\ enum AndroidReferenceMatchers : Enum<AndroidReferenceMatchers> , ReferenceMatcher.ListBuilder

AndroidReferenceMatchers values add ReferenceMatcher instances to a global list via their add method. A ReferenceMatcher is either a IgnoredReferenceMatcher or a LibraryLeakReferenceMatcher.

AndroidReferenceMatchers is used to build the list of known references that cannot ever create leaks (via IgnoredReferenceMatcher) as well as the list of known leaks in the Android Framework and in manufacturer specific Android implementations.

This class is a work in progress. You can help by reporting leak traces that seem to be caused by the Android SDK, here: https://github.com/square/leakcanary/issues/new

We filter on SDK versions and Manufacturers because many of those leaks are specific to a given manufacturer implementation, they usually share their builds across multiple models, and the leaks eventually get fixed in newer versions.

Most app developers should use appDefaults. However, you can also use a subset of AndroidReferenceMatchers by creating an EnumSet that matches your needs and calling buildKnownReferences.

Entries

PERMISSION_CONTROLLER_MANAGER [jvm]
PERMISSION_CONTROLLER_MANAGER
IREQUEST_FINISH_CALLBACK [jvm]
IREQUEST_FINISH_CALLBACK
ACTIVITY_THREAD__M_NEW_ACTIVITIES [jvm]
ACTIVITY_THREAD__M_NEW_ACTIVITIES
See AndroidReferenceReaders.ACTIVITY_THREAD__NEW_ACTIVITIES for more context
SPAN_CONTROLLER [jvm]
SPAN_CONTROLLER
MEDIA_SESSION_LEGACY_HELPER__SINSTANCE [jvm]
MEDIA_SESSION_LEGACY_HELPER__SINSTANCE
TEXT_LINE__SCACHED [jvm]
TEXT_LINE__SCACHED
BLOCKING_QUEUE [jvm]
BLOCKING_QUEUE
INPUT_METHOD_MANAGER_IS_TERRIBLE [jvm]
INPUT_METHOD_MANAGER_IS_TERRIBLE
INPUT_MANAGER__M_LATE_INIT_CONTEXT [jvm]
INPUT_MANAGER__M_LATE_INIT_CONTEXT
LAYOUT_TRANSITION [jvm]
LAYOUT_TRANSITION
SPELL_CHECKER_SESSION [jvm]
SPELL_CHECKER_SESSION
SPELL_CHECKER [jvm]
SPELL_CHECKER
ACTIVITY_CHOOSE_MODEL [jvm]
ACTIVITY_CHOOSE_MODEL
MEDIA_PROJECTION_CALLBACK [jvm]
MEDIA_PROJECTION_CALLBACK
SPEECH_RECOGNIZER [jvm]
SPEECH_RECOGNIZER
ACCOUNT_MANAGER__AMS_TASK__RESPONSE [jvm]
ACCOUNT_MANAGER__AMS_TASK__RESPONSE
MEDIA_SCANNER_CONNECTION [jvm]
MEDIA_SCANNER_CONNECTION
USER_MANAGER__SINSTANCE [jvm]
USER_MANAGER__SINSTANCE
APP_WIDGET_HOST_CALLBACKS [jvm]
APP_WIDGET_HOST_CALLBACKS
AUDIO_MANAGER [jvm]
AUDIO_MANAGER
EDITTEXT_BLINK_MESSAGEQUEUE [jvm]
EDITTEXT_BLINK_MESSAGEQUEUE
CONNECTIVITY_MANAGER__SINSTANCE [jvm]
CONNECTIVITY_MANAGER__SINSTANCE
ACCESSIBILITY_NODE_INFO__MORIGINALTEXT [jvm]
ACCESSIBILITY_NODE_INFO__MORIGINALTEXT
ASSIST_STRUCTURE [jvm]
ASSIST_STRUCTURE
ACCESSIBILITY_ITERATORS [jvm]
ACCESSIBILITY_ITERATORS
BIOMETRIC_PROMPT [jvm]
BIOMETRIC_PROMPT
MAGNIFIER [jvm]
MAGNIFIER
BACKDROP_FRAME_RENDERER__MDECORVIEW [jvm]
BACKDROP_FRAME_RENDERER__MDECORVIEW
VIEWLOCATIONHOLDER_ROOT [jvm]
VIEWLOCATIONHOLDER_ROOT
ACCESSIBILITY_NODE_ID_MANAGER [jvm]
ACCESSIBILITY_NODE_ID_MANAGER
TEXT_TO_SPEECH [jvm]
TEXT_TO_SPEECH
CONTROLLED_INPUT_CONNECTION_WRAPPER [jvm]
CONTROLLED_INPUT_CONNECTION_WRAPPER
TOAST_TN [jvm]
TOAST_TN
APPLICATION_PACKAGE_MANAGER__HAS_SYSTEM_FEATURE_QUERY [jvm]
APPLICATION_PACKAGE_MANAGER__HAS_SYSTEM_FEATURE_QUERY
COMPANION_DEVICE_SERVICE__STUB [jvm]
COMPANION_DEVICE_SERVICE__STUB
RENDER_NODE_ANIMATOR [jvm]
RENDER_NODE_ANIMATOR
PLAYER_BASE [jvm]
PLAYER_BASE
WINDOW_ON_BACK_INVOKED_DISPATCHER__STUB [jvm]
WINDOW_ON_BACK_INVOKED_DISPATCHER__STUB
CONNECTIVITY_MANAGER_CALLBACK_HANDLER [jvm]
CONNECTIVITY_MANAGER_CALLBACK_HANDLER
HOST_ADPU_SERVICE_MSG_HANDLER [jvm]
HOST_ADPU_SERVICE_MSG_HANDLER
APP_OPS_MANAGER__CALLBACK_STUB [jvm]
APP_OPS_MANAGER__CALLBACK_STUB
VIEW_GROUP__M_PRE_SORTED_CHILDREN [jvm]
VIEW_GROUP__M_PRE_SORTED_CHILDREN
VIEW_GROUP__M_CURRENT_DRAG_CHILD [jvm]
VIEW_GROUP__M_CURRENT_DRAG_CHILD
VIEW_TOOLTIP_CALLBACK [jvm]
VIEW_TOOLTIP_CALLBACK
ACTIVITY_TRANSITION_STATE__M_EXITING_TO_VIEW [jvm]
ACTIVITY_TRANSITION_STATE__M_EXITING_TO_VIEW
ANIMATION_HANDLER__ANIMATOR_REQUESTORS [jvm]
ANIMATION_HANDLER__ANIMATOR_REQUESTORS
FLIPPER__APPLICATION_DESCRIPTOR [jvm]
FLIPPER__APPLICATION_DESCRIPTOR
AW_CONTENTS__A0 [jvm]
AW_CONTENTS__A0
AW_CONTENTS_POSTED_CALLBACK [jvm]
AW_CONTENTS_POSTED_CALLBACK
JOB_SERVICE [jvm]
JOB_SERVICE
DREAM_SERVICE [jvm]
DREAM_SERVICE
UI_MODE_MANAGER [jvm]
UI_MODE_MANAGER
SPEN_GESTURE_MANAGER [jvm]
SPEN_GESTURE_MANAGER
CLIPBOARD_UI_MANAGER__SINSTANCE [jvm]
CLIPBOARD_UI_MANAGER__SINSTANCE
SEM_CLIPBOARD_MANAGER__MCONTEXT [jvm]
SEM_CLIPBOARD_MANAGER__MCONTEXT
CLIPBOARD_EX_MANAGER [jvm]
CLIPBOARD_EX_MANAGER
SEM_EMERGENCY_MANAGER__MCONTEXT [jvm]
SEM_EMERGENCY_MANAGER__MCONTEXT
SEM_PERSONA_MANAGER [jvm]
SEM_PERSONA_MANAGER
SEM_APP_ICON_SOLUTION [jvm]
SEM_APP_ICON_SOLUTION
AW_RESOURCE__SRESOURCES [jvm]
AW_RESOURCE__SRESOURCES
TEXT_VIEW__MLAST_HOVERED_VIEW [jvm]
TEXT_VIEW__MLAST_HOVERED_VIEW
PERSONA_MANAGER [jvm]
PERSONA_MANAGER
RESOURCES__MCONTEXT [jvm]
RESOURCES__MCONTEXT
VIEW_CONFIGURATION__MCONTEXT [jvm]
VIEW_CONFIGURATION__MCONTEXT
AUDIO_MANAGER__MCONTEXT_STATIC [jvm]
AUDIO_MANAGER__MCONTEXT_STATIC
ACTIVITY_MANAGER_MCONTEXT [jvm]
ACTIVITY_MANAGER_MCONTEXT
STATIC_MTARGET_VIEW [jvm]
STATIC_MTARGET_VIEW
MULTI_WINDOW_DECOR_SUPPORT__MWINDOW [jvm]
MULTI_WINDOW_DECOR_SUPPORT__MWINDOW
IMM_CURRENT_INPUT_CONNECTION [jvm]
IMM_CURRENT_INPUT_CONNECTION
GESTURE_BOOST_MANAGER [jvm]
GESTURE_BOOST_MANAGER
BUBBLE_POPUP_HELPER__SHELPER [jvm]
BUBBLE_POPUP_HELPER__SHELPER
LGCONTEXT__MCONTEXT [jvm]
LGCONTEXT__MCONTEXT
SMART_COVER_MANAGER [jvm]
SMART_COVER_MANAGER
IMM_LAST_FOCUS_VIEW [jvm]
IMM_LAST_FOCUS_VIEW
MAPPER_CLIENT [jvm]
MAPPER_CLIENT
SYSTEM_SENSOR_MANAGER__MAPPCONTEXTIMPL [jvm]
SYSTEM_SENSOR_MANAGER__MAPPCONTEXTIMPL
INSTRUMENTATION_RECOMMEND_ACTIVITY [jvm]
INSTRUMENTATION_RECOMMEND_ACTIVITY
DEVICE_POLICY_MANAGER__SETTINGS_OBSERVER [jvm]
DEVICE_POLICY_MANAGER__SETTINGS_OBSERVER
EXTENDED_STATUS_BAR_MANAGER [jvm]
EXTENDED_STATUS_BAR_MANAGER
OEM_SCENE_CALL_BLOCKER [jvm]
OEM_SCENE_CALL_BLOCKER
PERF_MONITOR_LAST_CALLBACK [jvm]
PERF_MONITOR_LAST_CALLBACK
RAZER_TEXT_KEY_LISTENER__MCONTEXT [jvm]
RAZER_TEXT_KEY_LISTENER__MCONTEXT
XIAMI__RESOURCES_IMPL [jvm]
XIAMI__RESOURCES_IMPL
REFERENCES [jvm]
REFERENCES
FINALIZER_WATCHDOG_DAEMON [jvm]
FINALIZER_WATCHDOG_DAEMON
MAIN [jvm]
MAIN
LEAK_CANARY_THREAD [jvm]
LEAK_CANARY_THREAD
LEAK_CANARY_HEAP_DUMPER [jvm]
LEAK_CANARY_HEAP_DUMPER
LEAK_CANARY_INTERNAL [jvm]
LEAK_CANARY_INTERNAL
EVENT_RECEIVER__MMESSAGE_QUEUE [jvm]
EVENT_RECEIVER__MMESSAGE_QUEUE

Types

Name Summary
Companion [jvm]
object Companion

Functions

Name Summary
add [jvm]
abstract fun add(references: MutableList<ReferenceMatcher>)
valueOf [jvm]
fun valueOf(value: String): AndroidReferenceMatchers
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values [jvm]
fun values(): Array<AndroidReferenceMatchers>
Returns an array containing the constants of this enum type, in the order they’re declared.

Properties

Name Summary
name [jvm]
val name: String
ordinal [jvm]
val ordinal: Int