Home
last modified time | relevance | path

Searched refs:seenTypes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/pkg/
DPackageStateTest.kt117 val seenTypes = mutableSetOf<KType>() in collectionImmutability() constant
126 visitType(seenTypes, emptyList(), PackageSetting(packageState, true), in collectionImmutability()
128 visitType(seenTypes, emptyList(), pkg, AndroidPackage::class.starProjectedType) in collectionImmutability()
129 visitType(seenTypes, emptyList(), packageState.getUserStateOrDefault(0), in collectionImmutability()
133 visitType(seenTypes, emptyList(), PackageUserState.DEFAULT, in collectionImmutability()
138 expect.that(seenTypes.size).isGreaterThan(10) in collectionImmutability()
215 seenTypes: MutableSet<KType>, in visitType()
221 if (!seenTypes.add(type)) return in visitType()
264 visitType(seenTypes, newChain, value, it.type!!) in visitType()
289 visitType(seenTypes, newChain, entry.key!!, it.returnType.arguments[0].type!!) in visitType()
[all …]
/frameworks/base/tools/processors/immutability/src/android/processor/immutability/
DImmutabilityProcessor.kt131 val seenTypes = seenTypesByPolicy[newPolicyExceptions] in <lambda>() constant
133 if (seenTypes?.contains(type) == true) return false in <lambda>()
134 seenTypesByPolicy[newPolicyExceptions] = seenTypes.orEmpty() + type in <lambda>()