Home
last modified time | relevance | path

Searched refs:pkg2 (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationManagerApiTest.kt188 val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) 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>()
230 val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) 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>()
263 val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, listOf(DOMAIN_3, DOMAIN_4)) in <lambda>() constant
268 pkg2.packageName to pkg2, in <lambda>()
271 val service = makeService(map::get).apply { addPackages(pkg1, pkg2, pkg3) } in <lambda>()
366 val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, listOf(DOMAIN_1, DOMAIN_2)) in <lambda>() constant
[all …]
DDomainVerificationPackageTest.kt87 private val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, SIGNATURE_TWO) in <lambda>() constant
91 val service = makeService(pkg1, pkg2) in <lambda>()
118 val pkg2 = mockPkgState(PKG_TWO, UUID_TWO, SIGNATURE_TWO, isSystemApp = true) in <lambda>() constant
121 systemConfiguredPackageNames = ArraySet(setOf(pkg1.packageName, pkg2.packageName)), in <lambda>()
122 pkg1, pkg2 in <lambda>()
125 service.addPackage(pkg2, null) in <lambda>()
151 service.getInfo(pkg2.packageName).apply { in <lambda>()
152 assertThat(packageName).isEqualTo(pkg2.packageName) in <lambda>()
153 assertThat(identifier).isEqualTo(pkg2.domainSetId) in <lambda>()
162 service.getUserState(pkg2.packageName).apply { in <lambda>()
[all …]
DDomainVerificationUserSelectionOverrideTest.kt65 private val pkg2 = mockPkgState(PKG_TWO, UUID_TWO) constant in com.android.server.pm.test.verify.domain.DomainVerificationUserStateOverrideTest
93 PKG_TWO -> pkg2 in <lambda>()
101 addPackage(pkg2, null)
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationComparatorTest.java87 private final String pkg2 = "pkg2"; field in NotificationComparatorTest
183 mRecordInlineReply = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp()
184 pkg2, 1, "inlinereply", uid2, uid2, n4, new UserHandle(userId), in setUp()
199 mRecordStarredContact = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp()
200 pkg2, 1, "starred", uid2, uid2, n6, new UserHandle(userId), in setUp()
206 mRecordContact = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp()
207 pkg2, 1, "contact", uid2, uid2, n7, new UserHandle(userId), in setUp()
219 mRecordUrgent = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp()
220 pkg2, 1, "urgent", uid2, uid2, n8, new UserHandle(userId), in setUp()
229 mRecordCheater = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp()
[all …]
DGroupHelperTest.java254 final String pkg2 = "package2"; in testNoGroup_multiPackage() local
260 getSbn(pkg2, AUTOGROUP_AT_COUNT, "four", UserHandle.SYSTEM), false); in testNoGroup_multiPackage()
DNotificationManagerServiceTest.java12095 PackageInfo pkg2 = new PackageInfo();
12096 pkg2.packageName = "pkg2";
12097 pkg2.applicationInfo = new ApplicationInfo();
12098 pkg2.applicationInfo.uid = mUid;
12101 .thenReturn(List.of(pkg0, pkg1, pkg2));
12152 PackageInfo pkg2 = new PackageInfo();
12153 pkg2.packageName = "pkg2";
12154 pkg2.applicationInfo = new ApplicationInfo();
12155 pkg2.applicationInfo.uid = mUid;
12158 .thenReturn(List.of(pkg0, pkg1, pkg2));
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/
DAlarmQueueTest.java238 final String pkg2 = "com.android.test.2";
243 alarmQueue.addAlarm(pkg2, nowElapsed + 2 * HOUR_IN_MILLIS);
269 final String pkg2 = "com.android.test.2";
279 alarmQueue.addAlarm(pkg2, fixedTimeElapsed + 2 * MINUTE_IN_MILLIS);
292 final String pkg2 = "com.android.test.2";
298 alarmQueue.addAlarm(pkg2, nowElapsed + 2 * HOUR_IN_MILLIS);
316 expectedExpired.add(pkg2);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobNotificationCoordinatorTest.java405 final String pkg2 = "pkg2"; in testMultipleJobs_differentApps() local
422 coordinator.enqueueNotification(jsc2, pkg2, pid, uid, notificationId, notification2, in testMultipleJobs_differentApps()
428 .enqueueNotification(eq(pkg2), eq(pkg2), eq(uid), eq(pid), any(), in testMultipleJobs_differentApps()
444 .cancelNotification(eq(pkg2), eq(pkg2), eq(uid), eq(pid), any(), in testMultipleJobs_differentApps()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserSystemPackageInstallerTest.java263 final AndroidPackage pkg2 = ((ParsedPackage) PackageImpl.forTesting(packageName2) in testShouldInstallPackage() local
275 pkg2, pkgBitSetMap, userWhitelist, implicit)); in testShouldInstallPackage()
286 pkg2, pkgBitSetMap, userWhitelist, implicit)); in testShouldInstallPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java420 final FakeDeviceState.Package pkg2 = mState.select(packageName2, 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.java2555 var pkg2 = getParsedPackage(apk2Name, apk2); in checkSharedSignatures() local
2560 cleanUpInstall(pkg2.getPackageName()); in checkSharedSignatures()
2575 int matchByName = pm.checkSignatures(pkg1.getPackageName(), pkg2.getPackageName()); in checkSharedSignatures()
2577 int pkg2Uid = pm.getApplicationInfo(pkg2.getPackageName(), 0).uid; in checkSharedSignatures()
2585 cleanUpInstall(pkg2.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
4200 final AndroidPackage p2 = mPackages.get(pkg2); 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()