Companion

object Companion

Functions

buildKnownReferences
Link copied to clipboard
fun buildKnownReferences(referenceMatchers: Set<AndroidReferenceMatchers>): List<ReferenceMatcher>

Builds a list of ReferenceMatcher from the referenceMatchers set of AndroidReferenceMatchers.

ignoredInstanceField
Link copied to clipboard
fun ignoredInstanceField(className: String, fieldName: String): IgnoredReferenceMatcher

Creates a IgnoredReferenceMatcher that matches a InstanceFieldPattern.

ignoredJavaLocal
Link copied to clipboard
fun ignoredJavaLocal(threadName: String): IgnoredReferenceMatcher

Creates a IgnoredReferenceMatcher that matches a JavaLocalPattern.

instanceFieldLeak
Link copied to clipboard
fun instanceFieldLeak(className: String, fieldName: String, description: String = "", patternApplies: AndroidBuildMirror.() -> Boolean = ALWAYS): LibraryLeakReferenceMatcher

Creates a LibraryLeakReferenceMatcher that matches a InstanceFieldPattern. description should convey what we know about this library leak.

nativeGlobalVariableLeak
Link copied to clipboard
fun nativeGlobalVariableLeak(className: String, description: String = "", patternApplies: AndroidBuildMirror.() -> Boolean = ALWAYS): LibraryLeakReferenceMatcher
staticFieldLeak
Link copied to clipboard
fun staticFieldLeak(className: String, fieldName: String, description: String = "", patternApplies: AndroidBuildMirror.() -> Boolean = ALWAYS): LibraryLeakReferenceMatcher

Creates a LibraryLeakReferenceMatcher that matches a StaticFieldPattern. description should convey what we know about this library leak.

Properties

appDefaults
Link copied to clipboard
val appDefaults: List<ReferenceMatcher>
HUAWEI
Link copied to clipboard
const val HUAWEI: String
ignoredReferencesOnly
Link copied to clipboard
val ignoredReferencesOnly: List<ReferenceMatcher>

Returns a list of ReferenceMatcher that only contains IgnoredReferenceMatcher and no LibraryLeakReferenceMatcher.

LENOVO
Link copied to clipboard
const val LENOVO: String
LG
Link copied to clipboard
const val LG: String
MEIZU
Link copied to clipboard
const val MEIZU: String
MOTOROLA
Link copied to clipboard
const val MOTOROLA: String
NVIDIA
Link copied to clipboard
const val NVIDIA: String
ONE_PLUS
Link copied to clipboard
const val ONE_PLUS: String
RAZER
Link copied to clipboard
const val RAZER: String
SAMSUNG
Link copied to clipboard
const val SAMSUNG: String
SHARP
Link copied to clipboard
const val SHARP: String
VIVO
Link copied to clipboard
const val VIVO: String