Home
last modified time | relevance | path

Searched refs:UMethod (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tools/lint/common/src/main/java/com/google/android/lint/aidl/
DAidlImplementationDetector.kt25 import org.jetbrains.uast.UMethod
33 listOf(UMethod::class.java) in getApplicableUastTypes()
38 override fun visitMethod(node: UMethod) { in getApplicableUastTypes()
48 node: UMethod,
DEnforcePermissionUtils.kt24 import org.jetbrains.uast.UMethod
31 fun getContainingAidlInterface(context: JavaContext, node: UMethod): String? { in getContainingAidlInterface()
42 fun containingStub(context: JavaContext, node: UMethod?): PsiClass? { in containingStub()
73 fun getHelperMethodCallSourceString(node: UMethod) = "${node.name}$AIDL_PERMISSION_HELPER_SUFFIX()" in hasSingleAncestor()
76 node: UMethod, in hasSingleAncestor()
/frameworks/base/packages/SettingsLib/LintChecker/src/com/android/settingslib/tools/lint/
DNullabilityAnnotationsDetector.kt33 import org.jetbrains.uast.UMethod
36 override fun getApplicableUastTypes(): List<Class<out UElement>> = listOf(UMethod::class.java) in getApplicableUastTypes()
42 override fun visitMethod(node: UMethod) { in getApplicableUastTypes()
49 private fun UMethod.isPublic() = modifierList.hasModifierProperty(PsiModifier.PUBLIC) in getApplicableUastTypes() method
51 private fun UMethod.verifyMethod() { in getApplicableUastTypes() method
57 private fun UMethod.verifyMethodParameters() { in getApplicableUastTypes() method
/frameworks/base/tools/lint/framework/checks/src/main/java/com/google/android/lint/
DPermissionMethodDetector.kt36 import org.jetbrains.uast.UMethod
48 listOf(UAnnotation::class.java, UMethod::class.java) in getApplicableUastTypes()
54 override fun visitMethod(node: UMethod) { in getApplicableUastTypes()
152 private fun isPermissionMethodReturnType(method: UMethod): Boolean = in isPermissionMethodReturnType()
160 private fun onlyCallsPermissionMethod(method: UMethod): Boolean { in isPermissionMethodReturnType()
196 private fun hasPermissionMethodAnnotation(method: UMethod): Boolean = method.annotations in hasPermissionMethodAnnotation()
DPermissionAnnotationDetector.kt26 import org.jetbrains.uast.UMethod
42 node: UMethod, in visitAidlMethod()
DPackageVisibilityDetector.kt36 import org.jetbrains.uast.UMethod in <lambda>()
214 private fun CallGraph.Node.getUMethod(): UMethod? = this.target.element as? UMethod in <lambda>()
291 uMethod: UMethod, in <lambda>()
304 private fun UMethod.isInClearCallingIdentityScope(call: UCallExpression): Boolean { in <lambda>() method
478 method: UMethod, in <lambda>()
/frameworks/base/tools/lint/common/src/main/java/com/google/android/lint/
DPermissionMethodUtils.kt23 import org.jetbrains.uast.UMethod
32 fun hasPermissionMethodAnnotation(method: UMethod): Boolean = in hasPermissionMethodAnnotation()
35 fun getPermissionMethodAnnotation(method: UMethod?): UAnnotation? = method?.uAnnotations in hasPermissionMethodAnnotation()
/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/
DSimpleManualPermissionEnforcementDetector.kt27 import org.jetbrains.uast.UMethod
38 node: UMethod, in visitAidlMethod()
DEnforcePermissionFix.kt39 import org.jetbrains.uast.UMethod
55 fun toLintFix(context: JavaContext, node: UMethod): LintFix {
DEnforcePermissionDetector.kt43 import org.jetbrains.uast.UMethod
69 listOf(UMethod::class.java) in getApplicableUastTypes()
170 val uMethod = element as? UMethod ?: return in visitAnnotationUsage()
183 override fun visitMethod(node: UMethod) { in createUastHandler()
/frameworks/base/packages/SystemUI/checks/src/com/android/internal/systemui/lint/
DBindServiceOnMainThreadDetector.kt32 import org.jetbrains.uast.UMethod in <lambda>()
58 !hasWorkerThreadAnnotation(context, node.getParentOfType(UMethod::class.java)) && in <lambda>()
DSingletonAndroidComponentDetector.kt33 import org.jetbrains.uast.UMethod
83 if (parent !is UMethod) { in isInvalidBindingMethod()
/frameworks/base/tools/lint/utils/checks/src/main/java/com/google/android/lint/aidl/
DAnnotatedAidlCounter.kt28 import org.jetbrains.uast.UMethod
49 node: UMethod, in visitAidlMethod()