Home
last modified time | relevance | path

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

/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt235 … val text = (annotation.findAttribute("message") ?: annotation.findAttribute(ATTR_VALUE)) in <lambda>()
362 val from: String? = annotation.findAttribute("from")?.value?.toSource() in <lambda>()
363 val to: String? = annotation.findAttribute("to")?.value?.toSource() in <lambda>()
387 val values = annotation.findAttribute("value")?.leafValues() ?: return in <lambda>()
388 val flag = annotation.findAttribute("flag")?.value?.toSource() == "true" in <lambda>()
446 val value = annotation.findAttribute("value")?.leafValues()?.firstOrNull() ?: return in <lambda>()
480 val api = annotation.findAttribute("api")?.leafValues()?.firstOrNull()?.value() in <lambda>()
482 … annotation.findAttribute("value")?.leafValues()?.firstOrNull()?.value() ?: return in <lambda>()
497 val value = annotation.findAttribute("value")?.leafValues()?.firstOrNull() ?: return in <lambda>()
498 … val readOnly = annotation.findAttribute("readOnly")?.leafValues()?.firstOrNull()?.value() == true in <lambda>()
DAnnotationFilter.kt96 val existingValue = existingAnnotation.findAttribute(attribute.name)?.value?.toSource() in annotationsMatch()
112 fun findAttribute(name: String?): AnnotationAttribute? { in findAttribute() method
DSdkFileWriter.kt82 … annotation.findAttribute(null)?.leafValues()?.firstOrNull()?.resolve() as? FieldItem in generate()
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DTextBackedAnnotationItemTest.kt58 assertEquals("from", annotation.findAttribute("from")?.name) in testIntRange()
59 assertEquals("20", annotation.findAttribute("from")?.value.toString()) in testIntRange()
60 assertEquals("to", annotation.findAttribute("to")?.name) in testIntRange()
61 assertEquals("40", annotation.findAttribute("to")?.value.toString()) in testIntRange()
76 val attribute = annotation.findAttribute("value") in testIntDef()
81 annotation.findAttribute("value")?.value.toString() in testIntDef()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt126 fun findAttribute(name: String?): AnnotationAttribute? { in findAttribute() method
DClassItem.kt361 val value = annotation?.findAttribute(SdkConstants.ATTR_VALUE) in <lambda>()