Home
last modified time | relevance | path

Searched refs:mockPkgState (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationManagerApiTest.kt80 val pkgWithDomains = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
132 val pkgWithDomains = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
133 val pkgWithoutDomains = mockPkgState(PKG_TWO, UUID_TWO, emptyList()) in <lambda>()
145 val pkgWithDomains = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
146 val pkgWithoutDomains = mockPkgState(PKG_TWO, UUID_TWO, emptyList()) in <lambda>()
160 val pkgWithDomains = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
161 val pkgWithoutDomains = mockPkgState(PKG_TWO, UUID_TWO, emptyList()) in <lambda>()
187 val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
188 val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) in <lambda>()
229 val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
[all …]
DDomainVerificationPersistenceTest.kt100 mockPkgState(0, pkgNameToSignature).let { put(it.packageName, it.id, it) } in <lambda>()
101 mockPkgState(1, pkgNameToSignature).let { put(it.packageName, it.id, it) } in <lambda>()
104 mockPkgState(2, pkgNameToSignature).let { put(it.packageName, it) } in <lambda>()
105 mockPkgState(3, pkgNameToSignature).let { put(it.packageName, it) } in <lambda>()
108 mockPkgState(4, pkgNameToSignature).let { put(it.packageName, it) } in <lambda>()
109 mockPkgState(5, pkgNameToSignature).let { put(it.packageName, it) } in <lambda>()
313 private fun mockPkgState(id: Int, pkgNameToSignature: (String) -> String? = { null }) = in <lambda>() method in com.android.server.pm.test.verify.domain.DomainVerificationPersistenceTest
DDomainVerificationPackageTest.kt86 private val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, SIGNATURE_ONE) in <lambda>()
87 private val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, SIGNATURE_TWO) in <lambda>()
117 val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, SIGNATURE_ONE, isSystemApp = false) in <lambda>()
118 val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, SIGNATURE_TWO, isSystemApp = true) in <lambda>()
357 val pkg1 = mockPkgState( in <lambda>()
485 val pkgBefore = mockPkgState(pkgName, UUID_ONE, SIGNATURE_ONE, in <lambda>()
487 val pkgAfter = mockPkgState(pkgName, UUID_TWO, SIGNATURE_TWO, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
546 val pkgBefore = mockPkgState(pkgName, UUID_ONE, SIGNATURE_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
547 val pkgAfter = mockPkgState(pkgName, UUID_TWO, SIGNATURE_TWO, emptyList()) in <lambda>()
588 val pkgBefore = mockPkgState(pkgName, UUID_ONE, SIGNATURE_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
[all …]
DDomainVerificationUserSelectionOverrideTest.kt64 private val pkg1 = mockPkgState(PKG_ONE, UUID_ONE)
65 private val pkg2 = mockPkgState(PKG_TWO, UUID_TWO)
109 fun mockPkgState(pkgName: String, domainSetId: UUID) = in mockPkgState() method
DDomainVerificationSettingsMutationTest.kt109 service.addPackage(mockPkgState(), null) in <lambda>()
216 fun mockPkgState() = mockThrowOnUnmocked<PackageStateInternal> { in <lambda>() method
252 TEST_PKG -> mockPkgState() in <lambda>()
DDomainVerificationEnforcerTest.kt79 val visiblePkgState = mockPkgState(VISIBLE_PKG, VISIBLE_UUID) in <lambda>()
81 val invisiblePkgState = mockPkgState(INVISIBLE_PKG, INVISIBLE_UUID) in <lambda>()
347 fun mockPkgState(packageName: String, domainSetId: UUID) = in <lambda>() method