Home
last modified time | relevance | path

Searched refs:findAttribute (Results 1 – 9 of 9) sorted by relevance

/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/
DDefaultAnnotationItemTest.kt68 assertEquals("from", annotation.findAttribute("from")?.name) in testIntRange()
69 assertEquals("20", annotation.findAttribute("from")?.value.toString()) in testIntRange()
70 assertEquals("to", annotation.findAttribute("to")?.name) in testIntRange()
71 assertEquals("40", annotation.findAttribute("to")?.value.toString()) in testIntRange()
87 val attribute = annotation.findAttribute("value") in testIntDef()
92 annotation.findAttribute("value")?.value.toString() in testIntDef()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/doc/
DDocAnalyzer.kt231 (annotation.findAttribute("message") in <lambda>()
232 ?: annotation.findAttribute(ANNOTATION_ATTR_VALUE)) in <lambda>()
379 val from: String? = annotation.findAttribute("from")?.value?.toSource() in <lambda>()
380 val to: String? = annotation.findAttribute("to")?.value?.toSource() in <lambda>()
400 val values = annotation.findAttribute("value")?.leafValues() ?: return in <lambda>()
401 val flag = annotation.findAttribute("flag")?.value?.toSource() == "true" in <lambda>()
463 annotation.findAttribute("value")?.leafValues()?.firstOrNull() ?: return in <lambda>()
517 annotation.findAttribute("api")?.leafValues()?.firstOrNull()?.value() in <lambda>()
519 annotation.findAttribute("value")?.leafValues()?.firstOrNull()?.value() in <lambda>()
533 annotation.findAttribute("value")?.leafValues()?.firstOrNull() ?: return in <lambda>()
[all …]
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DBootstrapSourceModelProviderTest.kt452 val custAnno1Attr1 = customAnno1.findAttribute("children") in 140 - test annotations()
453 val custAnno1Attr2 = customAnno1.findAttribute("val") in 140 - test annotations()
454 val custAnno1Attr3 = customAnno1.findAttribute("cls") in 140 - test annotations()
458 val tarAnnoAtrr1 = tarAnno.findAttribute("value") in 140 - test annotations()
462 val custAnno2Attr1 = customAnno2.findAttribute("value") in 140 - test annotations()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DAnnotationFilter.kt163 val existingValue = existingAnnotation.findAttribute(attribute.name)?.value in annotationsMatch()
201 fun findAttribute(name: String?): AnnotationAttribute? { in findAttribute() method
DSdkFileWriter.kt81 annotation.findAttribute(null)?.leafValues()?.firstOrNull()?.resolve() in generate()
DApiAnalyzer.kt908 val value = deprecatedForSdk.findAttribute(ANNOTATION_ATTR_VALUE) in <lambda>()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt120 fun findAttribute(name: String?): AnnotationAttribute? { in findAttribute() method
284 val attributeValue = findAttribute(name)?.value ?: return null in nonInlineGetAttributeValue()
319 val attributeValue = findAttribute(name)?.value ?: return null in nonInlineGetAttributeValues()
DClassItem.kt251 val value = annotation?.findAttribute(ANNOTATION_ATTR_VALUE) in <lambda>()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiModifierItem.kt527 val allowIn = findAttribute(ATTR_ALLOW_IN) ?: return false in <lambda>()