/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | AnnotationItem.kt | 46 fun isNullableAnnotation(qualifiedName: String): Boolean { in isNullableAnnotation() 47 return qualifiedName.endsWith("Nullable") in isNullableAnnotation() 50 fun isNonNullAnnotation(qualifiedName: String): Boolean { in isNonNullAnnotation() 51 return qualifiedName.endsWith("NonNull") || in isNonNullAnnotation() 52 qualifiedName.endsWith("NotNull") || in isNonNullAnnotation() 53 qualifiedName.endsWith("Nonnull") in isNonNullAnnotation() 56 fun isJvmSyntheticAnnotation(qualifiedName: String): Boolean { in isJvmSyntheticAnnotation() 57 return qualifiedName == "kotlin.jvm.JvmSynthetic" in isJvmSyntheticAnnotation() 64 val qualifiedName: String? constant 88 return isNullableAnnotation(qualifiedName ?: return false) in isNullable() [all …]
|
D | ClassItem.kt | 45 fun qualifiedName(): String in <lambda>() method 78 return curr.containingPackage().qualifiedName() + "." + fullName().replace('.', '$') in <lambda>() 92 return curr.containingPackage().qualifiedName().replace('.', '/') + "/" + in <lambda>() 125 fun extends(qualifiedName: String): Boolean { in <lambda>() 126 if (qualifiedName() == qualifiedName) { in <lambda>() 131 return superClass?.extends(qualifiedName) ?: when { in <lambda>() 132 isEnum() -> qualifiedName == JAVA_LANG_ENUM in <lambda>() 133 isAnnotationType() -> qualifiedName == JAVA_LANG_ANNOTATION in <lambda>() 134 else -> qualifiedName == JAVA_LANG_OBJECT in <lambda>() 139 fun implements(qualifiedName: String): Boolean { in <lambda>() [all …]
|
D | ModifierList.kt | 181 options.hideMetaAnnotations.contains(annotation.qualifiedName) in <lambda>() 186 fun isAnnotatedWith(qualifiedName: String): Boolean { in <lambda>() 187 return findAnnotation(qualifiedName) != null in <lambda>() 194 fun findAnnotation(qualifiedName: String): AnnotationItem? { in <lambda>() 195 val mappedName = AnnotationItem.mapName(qualifiedName) in <lambda>() 197 mappedName == it.qualifiedName in <lambda>() 207 fun findExactAnnotation(qualifiedName: String): AnnotationItem? { in <lambda>() 209 qualifiedName == it.originalName in <lambda>() 463 annotations = annotations.sortedBy { it.qualifiedName } in <lambda>() 482 } else if (annotation.qualifiedName == "java.lang.Deprecated") { in <lambda>() [all …]
|
D | PackageItem.kt | 26 fun qualifiedName(): String in <lambda>() method 38 val isDefault get() = qualifiedName().isEmpty() in <lambda>() 40 … override fun parent(): PackageItem? = if (qualifiedName().isEmpty()) null else containingPackage() in <lambda>() 46 val name = qualifiedName() in <lambda>() 113 …rator: Comparator<PackageItem> = Comparator { a, b -> a.qualifiedName().compareTo(b.qualifiedName(… in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextClassItem.kt | 41 val qualifiedName: String = "", in <lambda>() constant 42 private val qualifiedTypeName: String = qualifiedName, in <lambda>() 43 var name: String = qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1), in <lambda>() 66 return qualifiedName == other.qualifiedName() in <lambda>() 70 return qualifiedName.hashCode() in <lambda>() 119 qualifiedName() + typeParameterListString in <lambda>() 120 } else qualifiedName() in <lambda>() 268 override fun qualifiedName(): String = qualifiedName in <lambda>() method 292 val qualifiedName = if (index == -1) name else name.substring(0, index) in <lambda>() constant 293 val fullName = getFullName(qualifiedName) in <lambda>() [all …]
|
D | TextCodebase.kt | 122 mAllClasses[cl.qualifiedName()] = cl as TextClassItem in addPackage() 195 val qualifiedName = cl.qualifiedName in resolveInnerClasses() constant 196 index = qualifiedName.lastIndexOf('.') in resolveInnerClasses() 197 assert(index != -1) { qualifiedName } in resolveInnerClasses() 198 val outerClassName = qualifiedName.substring(0, index) in resolveInnerClasses() 212 mAllClasses[cls.qualifiedName] = cls in registerClass() 350 val pkg = getOrAddPackage(new.containingPackage().qualifiedName()) in computeDelta() 375 val cls = delta.findClass(fullClass.qualifiedName()) in computeDelta() 387 textClass.qualifiedName, in computeDelta() 388 textClass.qualifiedName, in computeDelta() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiPackageItem.kt | 27 private val qualifiedName: String, constant in com.android.tools.metalava.model.psi.PsiPackageItem 54 return if (qualifiedName.isEmpty()) null else { in containingClass() 56 var parentPackage = qualifiedName in containingClass() 106 override fun qualifiedName(): String = qualifiedName in qualifiedName() method 112 return other is PackageItem && qualifiedName == other.qualifiedName() in qualifiedName() 115 override fun hashCode(): Int = qualifiedName.hashCode() in hashCode() 117 override fun toString(): String = "package $qualifiedName" in hashCode() 153 val qualifiedName = psiPackage.qualifiedName in isFromClassPath() constant 158 qualifiedName = qualifiedName, in isFromClassPath() 171 qualifiedName = original.qualifiedName, in isFromClassPath()
|
D | PsiModifierItem.kt | 250 val qualifiedName = it.qualifiedName in <lambda>() constant 252 if (qualifiedName == ANDROIDX_VISIBLE_FOR_TESTING) { in <lambda>() 262 PsiAnnotationItem.create(codebase, it, qualifiedName) in <lambda>() 294 it.qualifiedName == null || in <lambda>() 299 val qualifiedName = it.qualifiedName in <lambda>() constant 300 if (qualifiedName == ANDROIDX_VISIBLE_FOR_TESTING) { in <lambda>() 310 UAnnotationItem.create(codebase, it, qualifiedName) in <lambda>() 345 private val NOT_NULL = NotNull::class.qualifiedName in <lambda>() 346 private val NULLABLE = Nullable::class.qualifiedName in <lambda>() 349 get() = qualifiedName == NOT_NULL || qualifiedName == NULLABLE in <lambda>()
|
D | PsiAnnotationItem.kt | 54 override val qualifiedName: String? = AnnotationItem.mapName(originalName) in <lambda>() constant in com.android.tools.metalava.model.psi.PsiAnnotationItem 91 …: PsiBasedCodebase, psiAnnotation: PsiAnnotation, qualifiedName: String? = psiAnnotation.qualified… in <lambda>() 92 return PsiAnnotationItem(codebase, psiAnnotation, qualifiedName) in <lambda>() 140 val qualifiedName = AnnotationItem.mapName(originalName, target) ?: return in <lambda>() constant 144 sb.append("@$qualifiedName") in <lambda>() 149 sb.append(qualifiedName) in <lambda>() 207 containing.qualifiedName?.let { in <lambda>() 214 is PsiClass -> resolved.qualifiedName?.let { sb.append(it) } in <lambda>() 241 … appendAnnotation(codebase, sb, value, value.qualifiedName, target, showDefaultAttrs) in <lambda>()
|
D | CodePrinter.kt | 88 sb.append(resolved.containingClass?.qualifiedName).append('.').append(resolved.name) in appendSourceExpression() 120 sb.append('@').append(value.qualifiedName) in appendSourceExpression() 199 val qualifiedName = declaringClass.qualifiedName in appendExpression() constant 202 if (qualifiedName != null) { in appendExpression() 204 val cls = codebase.findClass(qualifiedName) in appendExpression() 217 sb.append(qualifiedName) in appendExpression() 248 sb.append('@').append(expression.qualifiedName) in appendExpression() 340 sb.append(resolved.qualifiedName) in appendExpression() 445 val qualifiedName = first.packageFqName.asString() + "." + in constantToSource() constant 448 qualifiedName + "." + second.asString() in constantToSource() [all …]
|
D | PsiTypePrinter.kt | 328 val fqn = target.qualifiedName in <lambda>() 356 is PsiPackage -> return target.qualifiedName in <lambda>() 386 val name = annotation.qualifiedName ?: continue in <lambda>() 411 val name = annotation.qualifiedName ?: continue in <lambda>() 480 private fun mapAnnotation(qualifiedName: String?): String? { in <lambda>() 481 qualifiedName ?: return null in <lambda>() 482 …if (kotlinStyleNulls && (isNullableAnnotation(qualifiedName) || isNonNullAnnotation(qualifiedName)… in <lambda>() 491 AnnotationItem.mapName(qualifiedName) ?: return null in <lambda>() 493 qualifiedName in <lambda>() 515 val name = mapAnnotation(annotation.qualifiedName) in <lambda>() [all …]
|
D | PsiBasedCodebase.kt | 297 val name = it.qualifiedName() in <lambda>() 322 var name = pkg.qualifiedName() in <lambda>() 393 … val qualifiedName = fileName.removeSuffix(SdkConstants.DOT_CLASS).replace('/', '.') in <lambda>() constant 394 if (qualifiedName.endsWith(".package-info")) { in <lambda>() 396 val packageName = qualifiedName.removeSuffix(".package-info") in <lambda>() 404 val psiClass = facade.findClass(qualifiedName, scope) ?: continue in <lambda>() 516 clz.interfaces.any { it.qualifiedName == "android.os.IInterface" } in <lambda>() 579 val qualifiedName: String = psiClass.qualifiedName ?: psiClass.name!! in <lambda>() constant 580 return classMap[qualifiedName] in <lambda>() 583 open fun findOrCreateClass(qualifiedName: String): PsiClassItem? { in <lambda>() [all …]
|
D | UAnnotationItem.kt | 54 override val qualifiedName: String? = AnnotationItem.mapName(originalName) in <lambda>() constant in com.android.tools.metalava.model.psi.UAnnotationItem 89 …ebase: PsiBasedCodebase, uAnnotation: UAnnotation, qualifiedName: String? = uAnnotation.qualifiedN… in <lambda>() 90 return UAnnotationItem(codebase, uAnnotation, qualifiedName) in <lambda>() 124 val qualifiedName = AnnotationItem.mapName(originalName, target) ?: return in <lambda>() constant 128 sb.append("@$qualifiedName") in <lambda>() 133 sb.append(qualifiedName) in <lambda>() 204 … appendAnnotation(codebase, sb, value, value.qualifiedName, target, showDefaultAttrs) in <lambda>() 237 containing.qualifiedName?.let { in <lambda>() 244 is PsiClass -> resolved.qualifiedName?.let { sb.append(it) } in <lambda>()
|
D | Javadoc.kt | 639 var className = containingClass.qualifiedName in expand() 648 className = referencedElement.qualifiedName in expand() 682 sb.append(resolved.qualifiedName) in expand() 686 sb.append(resolved.containingClass?.qualifiedName) in expand() 770 sb.append(referencedElement.qualifiedName) in handleTag() 817 val qualifiedName = resolved.qualifiedName ?: run { in handleTag() constant 821 if (referenceText == qualifiedName) { in handleTag() 830 text.substring(0, start) + qualifiedName + text.substring(end) in handleTag() 836 text.startsWith("{") -> "{@$name $qualifiedName $displayText}" in handleTag() 837 else -> "@$name $qualifiedName $displayText" in handleTag() [all …]
|
D | PsiClassItem.kt | 57 private val qualifiedName: String, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiClassItem 78 override fun qualifiedName(): String = qualifiedName in <lambda>() method 339 return other is ClassItem && qualifiedName == other.qualifiedName() in <lambda>() 398 override fun hashCode(): Int = qualifiedName.hashCode() in <lambda>() 420 modifierList.annotations.any { isRetention(it.qualifiedName) } in <lambda>() 438 val qualifiedName = psiClass.qualifiedName ?: simpleName in <lambda>() constant 450 qualifiedName = qualifiedName, in <lambda>() 760 … val parameterName = parameterClass.qualifiedName ?: parameterClass.name ?: parameter.name in <lambda>() 763 … val superTypeName = superTypeParameter.qualifiedName ?: superTypeParameter.name in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ExtractAnnotations.kt | 105 … packageToAnnotationPairs.keys.asSequence().sortedBy { it.qualifiedName() }.toList() in <lambda>() 109 val name = pkg.qualifiedName().replace('.', '/') + "/annotations.xml" in <lambda>() 188 val qualifiedName = annotation.qualifiedName ?: continue in <lambda>() constant 189 if (qualifiedName.startsWith(JAVA_LANG_PREFIX) || in <lambda>() 190 qualifiedName.startsWith(ANDROIDX_ANNOTATION_PREFIX) || in <lambda>() 191 qualifiedName.startsWith(ANDROID_ANNOTATION_PREFIX) in <lambda>() 201 } else if (qualifiedName.startsWith(ORG_JETBRAINS_ANNOTATIONS_PREFIX) || in <lambda>() 202 qualifiedName.startsWith(ORG_INTELLIJ_LANG_ANNOTATIONS_PREFIX) in <lambda>() 210 val className = typeDefClass.qualifiedName() in <lambda>() 355 val qualifiedName = annotation.qualifiedName in <lambda>() constant [all …]
|
D | RewriteAnnotations.kt | 38 val qualifiedName = pkg + "." + fileName.substring(0, fileName.indexOf('.')) in modifyAnnotationSources() constant 39 if (hasSourceRetention(codebase, qualifiedName)) { in modifyAnnotationSources() 62 private fun hasSourceRetention(codebase: Codebase?, qualifiedName: String): Boolean { in hasSourceRetention() 64 qualifiedName == RECENTLY_NULLABLE || in hasSourceRetention() 65 qualifiedName == RECENTLY_NONNULL || in hasSourceRetention() 66 qualifiedName == ANDROID_NULLABLE || in hasSourceRetention() 67 qualifiedName == ANDROID_NONNULL -> return false in hasSourceRetention() 68 qualifiedName.equals(ANDROID_SDK_CONSTANT) -> return true in hasSourceRetention() 69 qualifiedName.startsWith("androidx.annotation.") -> return true in hasSourceRetention() 74 val cls = codebase.findClass(qualifiedName) ?: return true in hasSourceRetention() [all …]
|
D | ApiLint.kt | 361 val containing = method.containingClass().qualifiedName() in <lambda>() 395 val qualifiedName = cls.qualifiedName() in <lambda>() constant 396 if (qualifiedName.startsWith("android.opengl") || in <lambda>() 397 qualifiedName.startsWith("android.renderscript") || in <lambda>() 398 qualifiedName.startsWith("android.database.sqlite.") || in <lambda>() 399 qualifiedName.startsWith("android.R.") in <lambda>() 437 val qualified = field.containingClass().qualifiedName() in <lambda>() 469 val qualified = cls.qualifiedName() in <lambda>() 509 cls.qualifiedName() == "android.telephony.ims.ImsCallSessionListener" -> return in <lambda>() 609 val className = field.containingClass().qualifiedName() in <lambda>() [all …]
|
D | AnnotationFilter.kt | 20 fun matchesAnnotationName(qualifiedName: String): Boolean in <lambda>() 52 if (annotation.qualifiedName == null) { in matches() 68 annotationNames.add(expression.qualifiedName) in getIncludedAnnotationNames() 76 override fun matchesAnnotationName(qualifiedName: String): Boolean { in matchesAnnotationName() 79 return includedNames.contains(qualifiedName) in matchesAnnotationName() 84 included.qualifiedName.endsWith(annotationSuffix) in matchesSuffix() 98 return inclusion.qualifiedName in firstQualifiedName() 102 if (filter.qualifiedName != existingAnnotation.qualifiedName) { in annotationsMatch() 142 val qualifiedName: String, constant in com.android.tools.metalava.AnnotationFilterEntry 155 val qualifiedName = if (index == -1) { in fromSource() constant [all …]
|
D | AnnotationsMerger.kt | 243 javaStubsCodebase.getTopLevelClassesFromSource().map(ClassItem::qualifiedName) in <lambda>() 276 val qualifiedName = annotation.qualifiedName ?: return in <lambda>() constant 277 if (newModifiers.findAnnotation(qualifiedName) == null) { in <lambda>() 324 val qualifiedName = annotation.qualifiedName ?: continue in <lambda>() constant 325 …notation) || hideAnnotations.matches(annotation) || hideMetaAnnotations.contains(qualifiedName)) && in <lambda>() 326 new.modifiers.findAnnotation(qualifiedName) == null in <lambda>() 519 val qualifiedName = element.getAttribute(ATTR_NAME) in <lambda>() constant 520 assert(qualifiedName != null && qualifiedName.isNotEmpty()) in <lambda>() 521 return qualifiedName in <lambda>() 527 val qualifiedName = AnnotationItem.mapName(originalName) ?: originalName in <lambda>() constant [all …]
|
D | SdkFileWriter.kt | 79 if (ANDROID_SDK_CONSTANT == annotation.qualifiedName) { in generate() 83 when (resolved.containingClass().qualifiedName() + "." + resolved.name()) { in generate() 101 if (SDK_WIDGET_ANNOTATION == annotation.qualifiedName) { in generate() 105 } else if (SDK_LAYOUT_ANNOTATION == annotation.qualifiedName) { in generate() 114 … if (topLayoutParams == null && ANDROID_VIEW_VIEW_GROUP_LAYOUT_PARAMS == clazz.qualifiedName()) { in generate() 178 val pkgName = clazz.containingPackage().qualifiedName() in isIncludedPackage() 264 writer.append(prefix).append(clazz.qualifiedName()) in writeClass() 267 writer.append(' ').append(superClass.qualifiedName()) in writeClass() 286 ANDROID_VIEW_VIEW_GROUP == clazz.qualifiedName() -> TYPE_LAYOUT in checkInheritance() 287 ANDROID_VIEW_VIEW == clazz.qualifiedName() -> TYPE_WIDGET in checkInheritance() [all …]
|
D | CompatibilityCheck.kt | 96 …if (oldMethod.containingClass().qualifiedName() != newMethod.containingClass().qualifiedName() || … in compareNullability() 235 val qualifiedName = iface.asClass()?.qualifiedName() ?: continue in compare() constant 236 if (!new.implements(qualifiedName)) { in compare() 244 val qualifiedName = iface.asClass()?.qualifiedName() ?: continue in compare() constant 245 if (!old.implements(qualifiedName)) { in compare() 323 val oldSuperClassName = old.superClass()?.qualifiedName() in compare() 374 …(oldClass == null || newClass == null || !oldClass.extendsOrImplements(newClass.qualifiedName())) { in compare() 567 if (!new.throws(exception.qualifiedName())) { in compare() 579 if (!old.throws(exec.qualifiedName())) { in compare() 642 newValue.containingClass?.qualifiedName + "." + newValue.name in compare() [all …]
|
D | DocAnalyzer.kt | 133 val name = annotation.qualifiedName in <lambda>() 168 val name = annotation.qualifiedName in <lambda>() 174 if (item is ClassItem && name == item.qualifiedName()) { in <lambda>() 210 } else if (nested.qualifiedName !in visitedClasses) { in <lambda>() 423 sb.append(field.containingClass().qualifiedName() + "." + field.name()) in <lambda>() 814 val owner = cls.qualifiedName ?: return -1 in getClassVersion() 822 val owner = containingClass.qualifiedName ?: return -1 in ApiLookup() 833 val owner = containingClass.qualifiedName ?: return -1 in ApiLookup() 838 val owner = cls.qualifiedName ?: return -1 in ApiLookup() 844 val owner = containingClass.qualifiedName ?: return -1 in ApiLookup() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiToExtensionsMap.kt | 207 …override fun startElement(uri: String, localName: String, qualifiedName: String, attributes: Attri… in fromXml() 208 when (qualifiedName) { in fromXml() 210 val id = attributes.getIntOrThrow(qualifiedName, "id") in fromXml() 211 … val shortname = attributes.getStringOrThrow(qualifiedName, "shortname") in fromXml() 212 val name = attributes.getStringOrThrow(qualifiedName, "name") in fromXml() 213 … val reference = attributes.getStringOrThrow(qualifiedName, "reference") in fromXml() 217 val jar = attributes.getStringOrThrow(qualifiedName, "jar") in fromXml() 221 … val sdks = attributes.getStringOrThrow(qualifiedName, "sdks").split(',') in fromXml() 226 … val pattern = attributes.getStringOrThrow(qualifiedName, "pattern") in fromXml()
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | KotlinStubWriter.kt | 46 val qualifiedName = cls.containingPackage().qualifiedName() in <lambda>() constant 47 if (qualifiedName.isNotBlank()) { in <lambda>() 48 writer.println("package $qualifiedName") in <lambda>() 139 … val qualifiedName = superClass.toTypeString() // TODO start passing language = Language.KOTLIN in <lambda>() constant 142 if (qualifiedName.contains("<")) { in <lambda>() 154 writer.print(qualifiedName) in <lambda>() 294 writer.print(type.qualifiedName()) in <lambda>()
|