Home
last modified time | relevance | path

Searched refs:TypeItem (Results 1 – 25 of 34) sorted by relevance

12

/tools/metalava/src/test/java/com/android/tools/metalava/model/
DTypeItemTest.kt28 … assertThat(TypeItem.shortenTypes("@android.support.annotation.Nullable")).isEqualTo("@Nullable") in test()
29 assertThat(TypeItem.shortenTypes(JAVA_LANG_STRING)).isEqualTo("String") in test()
30 …assertThat(TypeItem.shortenTypes("java.lang.reflect.Method")).isEqualTo("java.lang.reflect.Method") in test()
31 …assertThat(TypeItem.shortenTypes("java.util.List<java.lang.String>")).isEqualTo("java.util.List<ja… in test()
32 …assertThat(TypeItem.shortenTypes("java.util.List<@android.support.annotation.NonNull java.lang.Str… in test()
39 assertThat(TypeItem.equalsWithoutSpace("", "")).isTrue() in testEqualsWithoutSpace()
40 assertThat(TypeItem.equalsWithoutSpace(" ", "")).isTrue() in testEqualsWithoutSpace()
41 assertThat(TypeItem.equalsWithoutSpace("", " ")).isTrue() in testEqualsWithoutSpace()
42 assertThat(TypeItem.equalsWithoutSpace(" ", " ")).isTrue() in testEqualsWithoutSpace()
43 assertThat(TypeItem.equalsWithoutSpace("true", "tr ue")).isTrue() in testEqualsWithoutSpace()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt103 fun superClassType(): TypeItem? in <lambda>()
154 fun interfaceTypes(): List<TypeItem> in <lambda>()
207 fun toType(): TypeItem in <lambda>()
209 override fun type(): TypeItem? = null in <lambda>()
228 fun setSuperClass(superClass: ClassItem?, superClassType: TypeItem? = superClass?.toType()) in <lambda>()
231 fun setInterfaceTypes(interfaceTypes: List<TypeItem>) in <lambda>()
536 fun filteredSuperClassType(predicate: Predicate<Item>): TypeItem? { in <lambda>()
537 var superClassType: TypeItem? = superClassType() ?: return null in <lambda>()
638 fun filteredInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>()
650 fun allInterfaceTypes(predicate: Predicate<Item>): Collection<TypeItem> { in <lambda>()
[all …]
DTypeItem.kt35 interface TypeItem { in <lambda>() interface
99 fun convertType(from: ClassItem, to: ClassItem): TypeItem { in <lambda>()
108 fun convertType(replacementMap: Map<String, String>?, owner: Item? = null): TypeItem in <lambda>()
242 val comparator: Comparator<TypeItem> = Comparator { type1, type2 -> in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextClassItem.kt28 import com.android.tools.metalava.model.TypeItem
71 override fun interfaceTypes(): List<TypeItem> = interfaceTypes in interfaceTypes()
112 override fun toType(): TypeItem { in containingPackage()
160 private var superClassType: TypeItem? = null
163 override fun superClassType(): TypeItem? = superClassType in superClass()
165 override fun setSuperClass(superClass: ClassItem?, superClassType: TypeItem?) { in superClass()
170 override fun setInterfaceTypes(interfaceTypes: List<TypeItem>) { in setInterfaceTypes()
186 private var interfaceTypes = mutableListOf<TypeItem>()
197 fun addInterface(itf: TypeItem) { in constructors()
226 override fun filteredSuperClassType(predicate: Predicate<Item>): TypeItem? { in filteredSuperClassType()
DTextTypeItem.kt26 import com.android.tools.metalava.model.TypeItem
38 ) : TypeItem {
108 is TextTypeItem -> TypeItem.equalsWithoutSpace(toString(), other.toString()) in qualifiedTypeName()
109 is TypeItem -> { in qualifiedTypeName()
112 if (TypeItem.equalsWithoutSpace(thisString, otherString)) { in qualifiedTypeName()
202 override fun convertType(replacementMap: Map<String, String>?, owner: Item?): TypeItem { in typeArgumentClasses()
DTextPropertyItem.kt21 import com.android.tools.metalava.model.TypeItem
49 override fun type(): TypeItem = type
DTextFieldItem.kt21 import com.android.tools.metalava.model.TypeItem
50 override fun type(): TypeItem = type in hashCode()
DTextMethodItem.kt24 import com.android.tools.metalava.model.TypeItem
81 override fun returnType(): TypeItem? = returnType in isConstructor()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiClassItem.kt28 import com.android.tools.metalava.model.TypeItem in <lambda>()
80 private var superClassType: TypeItem? = null in <lambda>()
82 override fun superClassType(): TypeItem? = superClassType in <lambda>()
84 override fun setSuperClass(superClass: ClassItem?, superClassType: TypeItem?) { in <lambda>()
97 override fun interfaceTypes(): List<TypeItem> = interfaceTypes in <lambda>()
99 override fun setInterfaceTypes(interfaceTypes: List<TypeItem>) { in <lambda>()
147 private lateinit var interfaceTypes: List<TypeItem> in <lambda>()
167 override fun toType(): TypeItem { in <lambda>()
277 interfaceTypes: List<TypeItem>, in <lambda>()
DPsiTypeItem.kt28 import com.android.tools.metalava.model.TypeItem
61 ) : TypeItem {
160 toString = TypeItem.formatType( in toTypeString()
208 is TypeItem -> TypeItem.equalsWithoutSpace(toTypeString(), other.toTypeString()) in equals()
323 override fun convertType(replacementMap: Map<String, String>?, owner: Item?): TypeItem { in convertType()
438 return TypeItem.formatType(typeString) in toTypeString()
728 return TypeItem.cleanupGenerics(typeString) in typeParameterList()
DPsiMethodItem.kt25 import com.android.tools.metalava.model.TypeItem in <lambda>()
106 override fun returnType(): TypeItem? = returnType in <lambda>()
296 sb.append(TypeItem.convertTypeString(typeParameters, replacementMap)) in <lambda>()
DPsiPropertyItem.kt22 import com.android.tools.metalava.model.TypeItem
44 override fun type(): TypeItem = fieldType in type()
DPsiFieldItem.kt21 import com.android.tools.metalava.model.TypeItem
46 override fun type(): TypeItem = fieldType in type()
DPsiParameterItem.kt21 import com.android.tools.metalava.model.TypeItem
163 override fun type(): TypeItem = type in type()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiLint.kt152 import com.android.tools.metalava.model.TypeItem in <lambda>()
283 private fun checkType(type: TypeItem, item: Item) { in <lambda>()
304 interfaces: Sequence<TypeItem>, in <lambda>()
1382 var builtType: TypeItem? = null in <lambda>()
1455 private fun checkAidl(cls: ClassItem, superClass: ClassItem?, interfaces: Sequence<TypeItem>) { in <lambda>()
1577 fun getTypePackage(type: TypeItem?): PackageItem? { in <lambda>()
1585 fun getTypeRank(type: TypeItem?): Int { in <lambda>()
1705 type: TypeItem, in <lambda>()
1903 private fun checkBitSet(type: TypeItem, typeString: String, item: Item) { in <lambda>()
2001 private fun checkBoxed(type: TypeItem, item: Item) { in <lambda>()
[all …]
DSignatureWriter.kt29 import com.android.tools.metalava.model.TypeItem in <lambda>()
224 … val all: Sequence<TypeItem> = if (isInterface && compatibility.extendsForInterfaceSuperClass) { in <lambda>()
250 all.sortedWith(TypeItem.comparator).forEach { item -> in <lambda>()
306 type: TypeItem?, in <lambda>()
322 typeString = TypeItem.shortenTypes(typeString) in <lambda>()
DApiAnalyzer.kt31 import com.android.tools.metalava.model.TypeItem in <lambda>()
286 var interfaceTypes: MutableList<TypeItem>? = null in <lambda>()
310 val mappedType: TypeItem = hiddenInterface.convertType(mapping, cls) in <lambda>()
333 val interfaces: Set<TypeItem> = cls.allInterfaceTypes(filterReference).asSequence().toSet() in <lambda>()
879 private fun checkTypeReferencesHidden(item: Item, type: TypeItem) { in <lambda>()
1247 private fun findHiddenClasses(ti: TypeItem?, stubImportPackages: Set<String>?): ClassItem? { in <lambda>()
DNullnessMigration.kt25 import com.android.tools.metalava.model.TypeItem
77 private fun hasNullnessInformation(type: TypeItem): Boolean { in hasNullnessInformation()
87 private fun checkType(old: TypeItem, new: TypeItem) { in checkType()
DNullabilityAnnotationsValidator.kt26 import com.android.tools.metalava.model.TypeItem in <lambda>()
117 private fun checkItem(method: MethodItem, label: String, type: TypeItem?, item: Item) { in <lambda>()
144 type: TypeItem, in <lambda>()
DJDiffXmlWriter.kt27 import com.android.tools.metalava.model.TypeItem in <lambda>()
331 interfaces.sortedWith(TypeItem.comparator).forEach { item -> in <lambda>()
351 private fun formatType(type: TypeItem): String = formatType(type.toTypeString()) in <lambda>()
DAndroidApiChecks.kt28 import com.android.tools.metalava.model.TypeItem
255 type: TypeItem? in checkVariable()
DKotlinInteropChecks.kt26 import com.android.tools.metalava.model.TypeItem in <lambda>()
363 private fun isKotlinLambda(type: TypeItem) = in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/
DTypeVisitor.kt20 import com.android.tools.metalava.model.TypeItem
24 open fun visitType(type: TypeItem, owner: Item) {} in skip()
25 open fun afterVisitType(type: TypeItem, owner: Item) {} in afterVisitType()
/tools/dexter/slicer/export/slicer/
Ddex_format.h218 struct TypeItem { struct
225 TypeItem list[]; argument
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DKotlinStubWriter.kt27 import com.android.tools.metalava.model.TypeItem in <lambda>()
192 type: TypeItem? in <lambda>()

12