Home
last modified time | relevance | path

Searched refs:mockPkg (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationCollectorTest.kt57 val pkg = mockPkg(useV2 = false, autoVerify = true) in verifyV1()
69 val pkg = mockPkg(useV2 = false, autoVerify = false) in verifyV1NoAutoVerify()
79 val pkg = mockPkg(useV2 = false, autoVerify = false) in verifyV1ForceAutoVerify()
150 val pkg = mockPkg(useV2 = true, autoVerify = true) in verifyV2()
163 val pkg = mockPkg(useV2 = true, autoVerify = false) in verifyV2NoAutoVerify()
174 val pkg = mockPkg(useV2 = true, autoVerify = false) in verifyV2ForceAutoVerifyIgnored()
191 private fun mockPkg(useV2: Boolean, autoVerify: Boolean): AndroidPackage { in mockPkg() method in com.android.server.pm.test.verify.domain.DomainVerificationCollectorTest
DDomainVerificationSettingsMutationTest.kt191 fun mockPkg() = mockThrowOnUnmocked<AndroidPackageInternal> { in <lambda>() method
218 whenever(pkg) { mockPkg() } in <lambda>()
DDomainVerificationEnforcerTest.kt78 val visiblePkg = mockPkg(VISIBLE_PKG) in <lambda>()
80 val invisiblePkg = mockPkg(INVISIBLE_PKG) in <lambda>()
321 fun mockPkg(packageName: String) = mockThrowOnUnmocked<AndroidPackageInternal> { in <lambda>() method
350 whenever(pkg) { mockPkg(packageName) } in <lambda>()
DDomainVerificationProxyTest.kt513 whenever(getPackage(anyString())) { mockPkg(arguments[0] as String) } in <lambda>()
528 private fun mockPkg(pkgName: String): AndroidPackage { in <lambda>() method
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt182 private lateinit var mockPkg: AndroidPackageInternal in <lambda>() variable in com.android.server.pm.test.override.PackageManagerComponentLabelIconOverrideTest
313 mockPkg = makePkg(params.pkgName) in <lambda>()
314 mockPkgSetting = makePkgSetting(params.pkgName, mockPkg) in <lambda>()