Home
last modified time | relevance | path

Searched refs:getter (Results 1 – 11 of 11) sorted by relevance

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiPropertyItem.kt38 override val getter: PsiMethodItem, in <lambda>() constant
95 getter: PsiMethodItem, in <lambda>()
100 val psiMethod = getter.psiMethod in <lambda>()
102 when (val sourcePsi = getter.sourcePsi) { in <lambda>()
112 val ktProperty = (getter.sourcePsi as? KtPropertyAccessor)?.property in <lambda>()
139 getter = getter, in <lambda>()
144 getter.property = property in <lambda>()
DPsiClassItem.kt499 for ((name, getter) in getters) { in <lambda>() constant
500 val type = getter.returnType() as? PsiTypeItem ?: continue in <lambda>()
507 getter = getter, in <lambda>()
/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/
DPsiPropertyItemTest.kt58 assertNotNull(myVal.getter) in properties have getters()
59 assertNotNull(myVar.getter) in properties have getters()
61 assertEquals("getMyVal", myVal.getter?.name()) in properties have getters()
62 assertEquals("getMyVar", myVar.getter?.name()) in properties have getters()
64 assertSame(myVal, myVal.getter?.property) in properties have getters()
65 assertSame(myVar, myVar.getter?.property) in properties have getters()
104 assertTrue(internalSet.getter!!.isPublic) in setter visibility()
108 assertTrue(privateSet.getter!!.isPublic) in setter visibility()
112 assertTrue(privateCustomSet.getter!!.isPublic) in setter visibility()
325 assertContains(accessors.getter?.documentation.orEmpty(), "getter doc") in properties have documentation()
DPsiMethodItemTest.kt35 val getter = classItem.methods().single { it.name() == "getBar" } in property accessors have properties() constant
38 assertNotNull(getter.property) in property accessors have properties()
41 assertSame(getter.property, setter.property) in property accessors have properties()
42 assertSame(getter, getter.property?.getter) in property accessors have properties()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/propertyitem/
DCommonPropertyItemTest.kt72 fun `Test deprecated getter and setter by annotation`() { in Test deprecated getter and setter by annotation()
92 val getter = methods.single { it.name() == "getFoo" } in Test deprecated getter and setter by annotation() constant
95 assertEquals("getter originallyDeprecated", true, getter.originallyDeprecated) in Test deprecated getter and setter by annotation()
222 val getter = fooClass.methods().single() in Test abstract property of non-null string() constant
223 assertThat(getter.kotlinLikeDescription()) in Test abstract property of non-null string()
247 val getter = fooClass.methods().single() in Test abstract property of nullable string() constant
248 assertThat(getter.kotlinLikeDescription()) in Test abstract property of nullable string()
273 val getter = fooClass.methods().single() in Test abstract property of list of non-null string() constant
274 assertThat(getter.kotlinLikeDescription()) in Test abstract property of list of non-null string()
299 val getter = fooClass.methods().single() in Test abstract property of list of nullable string() constant
[all …]
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DPropertyItem.kt21 val getter: MethodItem? in <lambda>() constant
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/classitem/
DCommonDataClassTest.kt135 fun `Test data class getter method`() { in Test data class getter method()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DFileFormat.kt175 private inline fun <T> effectiveValue(getter: FileFormat.() -> T?, default: T): T { in <lambda>()
176 return this.getter() ?: formatDefaults?.getter() ?: default in <lambda>()
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmx500.py334 getter = getattr(cell, attr)
335 logger.info('The {} is {}'.format(attr, getter()))
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/
DCommonTypeModifiersTest.kt2065 nullableStringProp.getter!! in <lambda>()
2077 val getterType = nonNullListProp.getter!!.returnType() in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/lint/
DApiLintTest.kt1064 fun `Check boolean getter and setter naming patterns`() { in Check boolean getter and setter naming patterns()