Home
last modified time | relevance | path

Searched refs:toSource (Results 1 – 21 of 21) sorted by relevance

/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/annotationitem/
DCommonAnnotationItemTest.kt614 fun `annotation toSource() with annotation values`() { in annotation toSource() with annotation values()
661 val toSource = in annotation toSource() with annotation values() constant
663 assertEquals(toSource, anno.toSource()) in annotation toSource() with annotation values()
668 fun `annotation toSource() with boolean values`() { in annotation toSource() with boolean values()
711 val toSource = "@test.pkg.Test.Anno(booleanValue=true, booleanArrayValue={true, false})" in annotation toSource() with boolean values() constant
712 assertEquals(toSource, anno.toSource()) in annotation toSource() with boolean values()
717 fun `annotation toSource() with char values`() { in annotation toSource() with char values()
760 val toSource = "@test.pkg.Test.Anno(charValue='a', charArrayValue={'a', '\\uff00'})" in annotation toSource() with char values() constant
761 assertEquals(toSource, anno.toSource()) in annotation toSource() with char values()
766 fun `annotation toSource() with class values`() { in annotation toSource() with class values()
[all …]
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/
DCommonTypeParameterItemTest.kt56 assertThat(typeParameter.toSource()).isEqualTo("T") in Test typeBounds no extends()
269 assertThat(clazzTypeParam.toSource()).isEqualTo("T") in Test method type parameter that references class type parameter()
273 assertThat(methodTypeParam.toSource()).isEqualTo("E extends T") in Test method type parameter that references class type parameter()
305 assertThat(typeParameter.toSource()) in Test type parameter bounds with multiple class parameters()
339 assertThat(typeParam.toSource()) in Test reified type parameter()
373 assertThat(typeParameterT.toSource()).isEqualTo("T") in Test explicit Object bound()
383 assertThat(typeParameterU.toSource()) in Test explicit Object bound()
/tools/metalava/metalava-model-text/src/test/resources/
Dmodel-test-suite-baseline.txt2 annotation toSource() with char values
3 annotation toSource() with class values
4 annotation toSource() with compound expression values
5 annotation toSource() with number values
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/
DDefaultAnnotationItemTest.kt53 assertEquals("@androidx.annotation.Nullable", annotation.toSource()) in supportsDocumentation()
65 assertEquals("@androidx.annotation.IntRange(from=20, to=40)", annotation.toSource()) in testIntRange()
83 annotation.toSource() in testIntDef()
99 assertEquals("STYLE_NO_TITLE", list[1].toSource()) in testIntDef()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt56 fun toSource( in toSource() method
461 override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String { in toSource() method
468 final override fun toString() = toSource() in toString()
556 fun toSource(): String in toSource() method
746 override fun toSource() = valueSource in toSource() method
748 override fun toString(): String = toSource() in toSource()
DTypeParameterItem.kt40 fun toSource(): String { in name() method
DTypeParameterList.kt67 append(param.toSource()) in <lambda>()
DModifierListWriter.kt330 val source = printAnnotation.toSource(target, showDefaultAttrs = false) in <lambda>()
DClassItem.kt252 val source = value?.value?.toSource() in <lambda>()
DTypeItem.kt616 append(annotation.toSource()) in hashCode()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DAnnotationFilter.kt164 val existingValueSource = existingValue?.toSource() in annotationsMatch()
165 val attributeValueSource = attribute.value.toSource() in annotationsMatch()
256 return fromSource(annotationItem.toSource()) in fromAnnotationItem()
DAndroidApiChecks.kt210 var perm = value.toSource() in checkRequiresPermission()
DKotlinInteropChecks.kt118 val source = v.toSource() in <lambda>()
DAnnotationsMerger.kt320 annotation.toSource(showDefaultAttrs = false), in <lambda>()
DApiAnalyzer.kt785 val perm = (value.value() ?: value.toSource()).toString() in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/doc/
DDocAnalyzer.kt330 val v: Any = value.value() ?: value.toSource() in <lambda>()
341 val v = value.value()?.toString() ?: value.toSource() in <lambda>()
355 sb.append(value.toSource()) in <lambda>()
379 val from: String? = annotation.findAttribute("from")?.value?.toSource() in <lambda>()
380 val to: String? = annotation.findAttribute("to")?.value?.toSource() in <lambda>()
401 val flag = annotation.findAttribute("flag")?.value?.toSource() == "true" in <lambda>()
455 sb.append(value.toSource()) in <lambda>()
/tools/metalava/metalava-model-turbine/src/test/resources/
Dmodel-test-suite-baseline.txt2 annotation toSource() with compound expression values
3 annotation toSource() with constant literal values
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DBootstrapSourceModelProviderTest.kt488 assertEquals("@test.Nullable", nullAnno.toSource()) in 140 - test annotations()
492 retAnno.toSource() in 140 - test annotations()
496 tarAnno.toSource() in 140 - test annotations()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DUAnnotationItem.kt62 override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String { in toSource() method
DPsiAnnotationItem.kt60 override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String { in toSource() method
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/lint/
DApiLint.kt504 if (value == attr.value.toSource()) { in <lambda>()