Home
last modified time | relevance | path

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

/aosp14/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/
H A DEnforcePermissionUtils.kt24 import org.jetbrains.uast.UMethod
31 fun getContainingAidlInterface(context: JavaContext, node: UMethod): String? {
44 fun isContainedInSubclassOfStub(context: JavaContext, node: UMethod?): Boolean {
75 fun getHelperMethodCallSourceString(node: UMethod) = "${node.name}$AIDL_PERMISSION_HELPER_SUFFIX()"
78 node: UMethod,
H A DAidlImplementationDetector.kt25 import org.jetbrains.uast.UMethod
33 listOf(UMethod::class.java)
38 override fun visitMethod(node: UMethod) {
48 node: UMethod,
H A DEnforcePermissionHelperDetector.kt34 import org.jetbrains.uast.UMethod
39 listOf(UMethod::class.java)
44 override fun visitMethod(node: UMethod) {
H A DSimpleManualPermissionEnforcementDetector.kt27 import org.jetbrains.uast.UMethod
38 node: UMethod,
H A DEnforcePermissionDetector.kt40 import org.jetbrains.uast.UMethod
126 if (!isContainedInSubclassOfStub(context, overridingMethod.toUElement() as? UMethod)) {
176 val method = node.uastParent as? UMethod ?: return
H A DEnforcePermissionFix.kt39 import org.jetbrains.uast.UMethod
55 fun toLintFix(context: JavaContext, node: UMethod): LintFix {
/aosp14/frameworks/base/tools/lint/framework/checks/src/main/java/com/google/android/lint/
H A DPermissionMethodDetector.kt36 import org.jetbrains.uast.UMethod
48 listOf(UAnnotation::class.java, UMethod::class.java)
54 override fun visitMethod(node: UMethod) {
152 private fun isPermissionMethodReturnType(method: UMethod): Boolean =
160 private fun onlyCallsPermissionMethod(method: UMethod): Boolean {
196 private fun hasPermissionMethodAnnotation(method: UMethod): Boolean = method.annotations
H A DPackageVisibilityDetector.kt36 import org.jetbrains.uast.UMethod
214 private fun CallGraph.Node.getUMethod(): UMethod? = this.target.element as? UMethod
291 uMethod: UMethod,
304 private fun UMethod.isInClearCallingIdentityScope(call: UCallExpression): Boolean { regex
478 method: UMethod,
/aosp14/frameworks/base/tools/lint/common/src/main/java/com/google/android/lint/
H A DPermissionMethodUtils.kt23 import org.jetbrains.uast.UMethod
32 fun hasPermissionMethodAnnotation(method: UMethod): Boolean =
35 fun getPermissionMethodAnnotation(method: UMethod?): UAnnotation? = method?.uAnnotations
/aosp14/frameworks/base/packages/SystemUI/checks/src/com/android/internal/systemui/lint/
H A DBindServiceOnMainThreadDetector.kt32 import org.jetbrains.uast.UMethod
58 !hasWorkerThreadAnnotation(context, node.getParentOfType(UMethod::class.java)) &&