Home
last modified time | relevance | path

Searched refs:mockPkgSetting (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationManagerApiTest.kt72 val pkgWithDomains = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
73 val pkgWithoutDomains = mockPkgSetting(PKG_TWO, UUID_TWO, emptyList()) in <lambda>()
85 val pkgWithDomains = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
86 val pkgWithoutDomains = mockPkgSetting(PKG_TWO, UUID_TWO, emptyList()) in <lambda>()
100 val pkgWithDomains = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
101 val pkgWithoutDomains = mockPkgSetting(PKG_TWO, UUID_TWO, emptyList()) in <lambda>()
125 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
126 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) in <lambda>()
167 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
168 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) in <lambda>()
[all …]
DDomainVerificationPackageTest.kt77 private val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, SIGNATURE_ONE) in <lambda>()
78 private val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, SIGNATURE_TWO) in <lambda>()
108 val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE, SIGNATURE_ONE, isSystemApp = false) in <lambda>()
109 val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO, SIGNATURE_TWO, isSystemApp = true) in <lambda>()
427 val pkgBefore = mockPkgSetting(pkgName, UUID_ONE, SIGNATURE_ONE, in <lambda>()
429 val pkgAfter = mockPkgSetting(pkgName, UUID_TWO, SIGNATURE_TWO, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
488 val pkgBefore = mockPkgSetting(pkgName, UUID_ONE, SIGNATURE_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
489 val pkgAfter = mockPkgSetting(pkgName, UUID_TWO, SIGNATURE_TWO, emptyList()) in <lambda>()
530 val pkgBefore = mockPkgSetting(pkgName, UUID_ONE, SIGNATURE_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>()
531 val pkgAfter = mockPkgSetting(pkgName, UUID_TWO, SIGNATURE_TWO, in <lambda>()
[all …]
DDomainVerificationUserSelectionOverrideTest.kt63 private val pkg1 = mockPkgSetting(PKG_ONE, UUID_ONE)
64 private val pkg2 = mockPkgSetting(PKG_TWO, UUID_TWO)
104 fun mockPkgSetting(pkgName: String, domainSetId: UUID) = mockThrowOnUnmocked<PackageSetting> { in <lambda>() method in com.android.server.pm.test.verify.domain.DomainVerificationUserStateOverrideTest
DDomainVerificationSettingsMutationTest.kt111 service.addPackage(mockPkgSetting()) in <lambda>()
216 fun mockPkgSetting() = spyThrowOnUnmocked( in <lambda>() method
263 TEST_PKG -> mockPkgSetting() in <lambda>()
DDomainVerificationEnforcerTest.kt77 val visiblePkgSetting = mockPkgSetting(VISIBLE_PKG, VISIBLE_UUID) in <lambda>()
79 val invisiblePkgSetting = mockPkgSetting(INVISIBLE_PKG, INVISIBLE_UUID) in <lambda>()
316 fun mockPkgSetting(packageName: String, domainSetId: UUID) = spyThrowOnUnmocked( in <lambda>() method
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt180 private lateinit var mockPkgSetting: PackageSetting in <lambda>() variable in com.android.server.pm.test.override.PackageManagerComponentLabelIconOverrideTest
211 verify(mockPkgSetting).overrideNonLocalizedLabelAndIcon(params.componentName!!, in <lambda>()
216 verify(mockPkgSetting, never()).overrideNonLocalizedLabelAndIcon( in <lambda>()
293 mockPkgSetting = makePkgSetting(params.pkgName) in <lambda>()
297 mockPkgSetting.overrideNonLocalizedLabelAndIcon(params.componentName!!, TEST_LABEL, in <lambda>()
300 clearInvocations(mockPkgSetting) in <lambda>()
321 mockedPkgSettings.put(params.pkgName, mockPkgSetting) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/
DAndroidPackageParsingTestBase.kt158 mockPkgSetting(pkg)) in <lambda>()
167 mockPkgSetting(pkg)) in <lambda>()
177 dummyUserState, 0, mockPkgSetting(pkg)) in <lambda>()
180 private fun mockPkgSetting(aPkg: AndroidPackage) = mockThrowOnUnmocked<PackageSetting> { in <lambda>() method
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java549 private static PackageSetting mockPkgSetting(AndroidPackage pkg) { in mockPkgSetting() method in PackageParserTest
586 Collections.emptySet(), new PackageUserState(), 0, mockPkgSetting(a)); in assertPackagesEqual()
588 Collections.emptySet(), new PackageUserState(), 0, mockPkgSetting(b)); in assertPackagesEqual()
742 new PackageUserState(), 0, mockPkgSetting(aPkg)); in assertServicesEqual()
744 new PackageUserState(), 0, mockPkgSetting(bPkg)); in assertServicesEqual()
769 new PackageUserState(), 0, mockPkgSetting(aPkg)); in assertActivitiesEqual()
771 new PackageUserState(), 0, mockPkgSetting(bPkg)); in assertActivitiesEqual()