Home
last modified time | relevance | path

Searched refs:pkg1 (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationPackageTest.kt86 private val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, SIGNATURE_ONE) in <lambda>() constant in com.android.server.pm.test.verify.domain.DomainVerificationPackageTest
91 val service = makeService(pkg1, pkg2) in <lambda>()
92 service.addPackage(pkg1, null) in <lambda>()
93 val info = service.getInfo(pkg1.packageName) in <lambda>()
94 assertThat(info.packageName).isEqualTo(pkg1.packageName) in <lambda>()
95 assertThat(info.identifier).isEqualTo(pkg1.domainSetId) in <lambda>()
101 val userState = service.getUserState(pkg1.packageName) in <lambda>()
102 assertThat(userState.packageName).isEqualTo(pkg1.packageName) in <lambda>()
103 assertThat(userState.identifier).isEqualTo(pkg1.domainSetId) in <lambda>()
112 .containsExactly(pkg1.packageName) in <lambda>()
[all …]
DDomainVerificationManagerApiTest.kt187 val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() constant
190 val map = mutableMapOf(pkg1.packageName to pkg1, pkg2.packageName to pkg2) in <lambda>()
191 val service = makeService(map::get).apply { addPackages(pkg1, pkg2) } in <lambda>()
229 val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() constant
232 val map = mutableMapOf(pkg1.packageName to pkg1, pkg2.packageName to pkg2) in <lambda>()
233 val service = makeService(map::get).apply { addPackages(pkg1, pkg2) } in <lambda>()
262 val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() constant
267 pkg1.packageName to pkg1, in <lambda>()
271 val service = makeService(map::get).apply { addPackages(pkg1, pkg2, pkg3) } in <lambda>()
351 val pkg1 = mockPkgState(PKG_ONE, UUID_ONE, listOf(DOMAIN_1, DOMAIN_2), pkgUserState0 = { in <lambda>() constant
[all …]
DDomainVerificationUserSelectionOverrideTest.kt64 private val pkg1 = mockPkgState(PKG_ONE, UUID_ONE) constant
92 PKG_ONE -> pkg1 in <lambda>()
100 addPackage(pkg1, null)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/
DAlarmQueueTest.java237 final String pkg1 = "com.android.test.1";
240 alarmQueue.addAlarm(pkg1, nowElapsed + HOUR_IN_MILLIS);
268 final String pkg1 = "com.android.test.1";
270 alarmQueue.addAlarm(pkg1, fixedTimeElapsed + MINUTE_IN_MILLIS);
291 final String pkg1 = "com.android.test.1";
295 alarmQueue.addAlarm(pkg1, nowElapsed + HOUR_IN_MILLIS);
306 expectedExpired.add(pkg1);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobNotificationCoordinatorTest.java404 final String pkg1 = "pkg1"; in testMultipleJobs_differentApps() local
416 coordinator.enqueueNotification(jsc1, pkg1, pid, uid, notificationId, notification1, in testMultipleJobs_differentApps()
419 .enqueueNotification(eq(pkg1), eq(pkg1), eq(uid), eq(pid), any(), in testMultipleJobs_differentApps()
435 .cancelNotification(eq(pkg1), eq(pkg1), eq(uid), eq(pid), any(), in testMultipleJobs_differentApps()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserSystemPackageInstallerTest.java261 final AndroidPackage pkg1 = ((ParsedPackage) PackageImpl.forTesting(packageName1) in testShouldInstallPackage() local
273 pkg1, pkgBitSetMap, userWhitelist, implicit)); in testShouldInstallPackage()
284 pkg1, pkgBitSetMap, userWhitelist, implicit)); in testShouldInstallPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java419 final FakeDeviceState.Package pkg1 = mState.select(packageName1, userId); in signaturesMatching() local
421 return pkg1 != null && pkg2 != null && pkg1.certificate.equals(pkg2.certificate); in signaturesMatching()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerTests.java1884 var pkg1 = getParsedPackage(apk1Name, apk1); in replaceCerts() local
1896 cleanUpInstall(pkg1.getPackageName()); in replaceCerts()
2554 var pkg1 = getParsedPackage(apk1Name, apk1); in checkSharedSignatures() local
2559 cleanUpInstall(pkg1.getPackageName()); in checkSharedSignatures()
2575 int matchByName = pm.checkSignatures(pkg1.getPackageName(), pkg2.getPackageName()); in checkSharedSignatures()
2576 int pkg1Uid = pm.getApplicationInfo(pkg1.getPackageName(), 0).uid; in checkSharedSignatures()
2584 cleanUpInstall(pkg1.getPackageName()); in checkSharedSignatures()
/frameworks/base/services/core/java/com/android/server/pm/
DIPackageManagerBase.java231 public final int checkSignatures(@NonNull String pkg1, @NonNull String pkg2, int userId) { in checkSignatures() argument
232 return snapshot().checkSignatures(pkg1, pkg2, userId); in checkSignatures()
DComputer.java445 int checkSignatures(@NonNull String pkg1, @NonNull String pkg2, int userId); in checkSignatures() argument
DComputerEngine.java4194 public int checkSignatures(@NonNull String pkg1, @NonNull String pkg2, int userId) { in checkSignatures() argument
4199 final AndroidPackage p1 = mPackages.get(pkg1); in checkSignatures()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java267 public int checkSignatures(String pkg1, String pkg2) { in checkSignatures() argument
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java319 public int checkSignatures(String pkg1, String pkg2) { in checkSignatures() argument
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl108 int checkSignatures(String pkg1, String pkg2, int userId); in checkSignatures() argument
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java338 public int checkSignatures(String pkg1, String pkg2) { in checkSignatures() argument
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto449 // i.e. <pkg1>,<pkg2>,...,<pkgN>
452 // i.e. <pkg1>,<pkg2>,...,<pkgN>
470 // i.e. <pkg1>,<pkg2>,...,<pkgN>
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java989 public int checkSignatures(String pkg1, String pkg2) { in checkSignatures() argument
991 return mPM.checkSignatures(pkg1, pkg2, getUserId()); in checkSignatures()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java12091 PackageInfo pkg1 = new PackageInfo();
12092 pkg1.packageName = "pkg1";
12093 pkg1.applicationInfo = new ApplicationInfo();
12094 pkg1.applicationInfo.uid = mUid;
12101 .thenReturn(List.of(pkg0, pkg1, pkg2));
12148 PackageInfo pkg1 = new PackageInfo();
12149 pkg1.packageName = "pkg1";
12150 pkg1.applicationInfo = new ApplicationInfo();
12151 pkg1.applicationInfo.uid = mUid;
12158 .thenReturn(List.of(pkg0, pkg1, pkg2));