Home
last modified time | relevance | path

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

/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/type/
DDefaultArrayTypeItem.kt26 override val componentType: TypeItem, constant
29 override fun duplicate(componentType: TypeItem): ArrayTypeItem { in duplicate()
30 return DefaultArrayTypeItem(modifiers.duplicate(), componentType, isVarargs) in duplicate()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/
DCommonTypeModifiersTest.kt380 componentType.assertClassTypeItem { in <lambda>()
417 componentType.assertReferencesTypeParameter(methodTypeParam) { in <lambda>()
457 componentType.assertArrayTypeItem { in <lambda>()
461 componentType.assertArrayTypeItem { in <lambda>()
465 componentType.assertClassTypeItem { in <lambda>()
506 componentType.assertArrayTypeItem { in <lambda>()
510 componentType.assertArrayTypeItem { in <lambda>()
514 componentType.assertClassTypeItem { in <lambda>()
745 componentType.assertClassTypeItem { in <lambda>()
806 componentType.assertReferencesTypeParameter(typeParam) { testModifiers(modifiers) } in <lambda>()
[all …]
DCommonTypeItemTest.kt149 val int = (intArray as ArrayTypeItem).componentType in Test primitive array types()
157 val char = (charArray as ArrayTypeItem).componentType in Test primitive array types()
205 val int = (intArray as ArrayTypeItem).componentType in Test primitive vararg types()
250 val intArray = intArrayArray.componentType in Test multidimensional primitive array types()
254 val int = intArray.componentType in Test multidimensional primitive array types()
263 val charArray = charArrayArray.componentType in Test multidimensional primitive array types()
267 val char = charArray.componentType in Test multidimensional primitive array types()
321 assertThat((simpleArray as ArrayTypeItem).componentType.isString()).isTrue() in Test class array types()
328 val innerArray = twoDimensionalArray.componentType in Test class array types()
330 assertThat((innerArray as ArrayTypeItem).componentType.isString()).isTrue() in Test class array types()
[all …]
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DTextTypeParserCacheTest.kt252 .that(second.componentType) in <lambda>()
255 .that((third.componentType as ArrayTypeItem).componentType) in <lambda>()
258 .that(third.componentType) in <lambda>()
278 .that(noAnno.componentType) in <lambda>()
285 .that(noAnno.componentType) in <lambda>()
296 if (this is ArrayTypeItem) componentType.deepestComponent() else this in <lambda>()
DTextTypeParserTest.kt404 assertThat((type as ArrayTypeItem).componentType).isEqualTo(expectedInnerType) in testArrayType()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt458 var deepComponentType = type.componentType in hashCode()
462 deepComponentType = deepComponentType.componentType in hashCode()
484 appendTypeString(type.componentType, configuration) in hashCode()
630 appendErasedTypeString(type.componentType) in hashCode()
839 val componentType: TypeItem in hashCodeForType() constant
852 override fun duplicate(): ArrayTypeItem = duplicate(componentType.duplicate()) in hashCodeForType()
858 fun duplicate(componentType: TypeItem): ArrayTypeItem in hashCodeForType()
861 return duplicate(componentType.convertType(typeParameterBindings)) in hashCodeForType()
866 return isVarargs == other.isVarargs && componentType.equalToType(other.componentType) in hashCodeForType()
869 override fun hashCodeForType(): Int = Objects.hash(isVarargs, componentType) in hashCodeForType()
[all …]
DTypeVisitor.kt41 arrayType.componentType.accept(this) in visit()
96 arrayType.componentType.accept( in visitType()
98 other.mapNotNull { (it as? ArrayTypeItem)?.componentType } in visitType()
DModifierListWriter.kt382 type.componentType.let { componentType -> in <lambda>() method
383 componentType is ClassTypeItem && in <lambda>()
384 componentType.qualifiedName == "java.lang.Object" in <lambda>()
DMethodItem.kt437 is ArrayTypeItem -> componentType.hasHiddenType(filterReference) in <lambda>()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypeItem.kt68 override val componentType: PsiTypeItem, in duplicate() constant
72 override fun duplicate(componentType: TypeItem): ArrayTypeItem = in duplicate()
75 componentType = componentType as PsiTypeItem, in duplicate()
DPsiBasedCodebase.kt750 var componentType = psiType.componentType in <lambda>() variable
752 while (componentType is PsiArrayType) { in <lambda>()
753 componentType = componentType.componentType in <lambda>()
755 if (componentType is PsiClassType) { in <lambda>()
756 val cls = componentType.resolve() ?: return null in <lambda>()
DPsiParameterItem.kt335 psiType.componentType.annotate(annotationProvider) in create()
337 psiType.componentType in create()
DPsiTypeItemFactory.kt286 componentType = in <lambda>()
288 psiType.componentType, in <lambda>()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItemFactory.kt70 forcedComponentNullability != typeItem.componentType.modifiers.nullability() in <lambda>()
73 typeItem.duplicate(typeItem.componentType.duplicate(forcedComponentNullability)) in <lambda>()
DTextTypeParser.kt278 val componentType = in <lambda>() constant
284 return DefaultArrayTypeItem(arrayModifiers, componentType, varargs) in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DSignatureInputOutputTest.kt434 assertThat((p2.type() as ArrayTypeItem).componentType.isString()).isTrue() in <lambda>()
476 assertThat((p2.type() as ArrayTypeItem).componentType.isString()).isTrue() in <lambda>()
502 val annotationArray = (annotationArrayArray as ArrayTypeItem).componentType in <lambda>()
507 val annotation = (annotationArray as ArrayTypeItem).componentType in <lambda>()
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/
DTurbineTypeItemFactory.kt215 val componentType = getType(curr, contextNullability.forComponentType()) in <lambda>() constant
222 return annosList.foldIndexed(componentType) { index, typeItem, annos -> in <lambda>()
DTurbineCodebaseInitialiser.kt943 matchType(returnType.componentType, classItem) && in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DProguardWriter.kt133 if (t is ArrayTypeItem) return getCleanTypeName(t.componentType) + "[]" in getCleanTypeName()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/compatibility/
DCompatibilityCheck.kt408 compatibleReturnTypes(old.componentType, new.componentType) in compatibleReturnTypes()
667 is ArrayTypeItem -> describeBounds(type.componentType) + "[]" in describeBounds()
/tools/metalava/metalava-model/src/testFixtures/java/com/android/tools/metalava/model/junit4/
DCustomizableParameterizedRunner.kt161 it.javaClass.componentType == Object::class.java in getAdditionalArguments()