Home
last modified time | relevance | path

Searched refs:ksms (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DKeySetUtils.java27 public static PublicKey getPubKey(KeySetManagerService ksms, long pkId) in getPubKey() argument
29 Field pkField = ksms.getClass().getDeclaredField("mPublicKeys"); in getPubKey()
32 (LongSparseArray<KeySetManagerService.PublicKeyHandle>) pkField.get(ksms); in getPubKey()
41 public static int getPubKeyRefCount(KeySetManagerService ksms, long pkId) in getPubKeyRefCount() argument
43 Field pkField = ksms.getClass().getDeclaredField("mPublicKeys"); in getPubKeyRefCount()
46 (LongSparseArray<KeySetManagerService.PublicKeyHandle>) pkField.get(ksms); in getPubKeyRefCount()
55 public static int getKeySetRefCount(KeySetManagerService ksms, long keysetId) in getKeySetRefCount() argument
57 Field ksField = ksms.getClass().getDeclaredField("mKeySets"); in getKeySetRefCount()
60 (LongSparseArray<KeySetHandle>) ksField.get(ksms); in getKeySetRefCount()
69 public static LongSparseArray<ArraySet<Long>> getKeySetMapping(KeySetManagerService ksms) in getKeySetMapping() argument
[all …]
DPackageManagerSettingsTests.java1207 KeySetManagerService ksms = settings.getKeySetManagerService(); in verifyKeySetMetaData() local
1210 assertThat(KeySetUtils.getKeySetRefCount(ksms, 1), is(2)); in verifyKeySetMetaData()
1211 assertThat(KeySetUtils.getKeySetRefCount(ksms, 2), is(1)); in verifyKeySetMetaData()
1212 assertThat(KeySetUtils.getKeySetRefCount(ksms, 3), is(1)); in verifyKeySetMetaData()
1213 assertThat(KeySetUtils.getKeySetRefCount(ksms, 4), is(1)); in verifyKeySetMetaData()
1214 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 1), is(2)); in verifyKeySetMetaData()
1215 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 2), is(2)); in verifyKeySetMetaData()
1216 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 3), is(1)); in verifyKeySetMetaData()
1222 assertThat(KeySetUtils.getPubKey(ksms, 1), is(keyA)); in verifyKeySetMetaData()
1223 assertThat(KeySetUtils.getPubKey(ksms, 2), is(keyB)); in verifyKeySetMetaData()
[all …]
DKeySetManagerServiceTest.java100 KeySetManagerService ksms = new KeySetManagerService(packagesMap); in testEncodePublicKey() local
106 assertEquals(ksms.encodePublicKey(keyA), KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey()
107 assertEquals(ksms.encodePublicKey(keyB), KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey()
108 assertEquals(ksms.encodePublicKey(keyC), KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java14041 final KeySetManagerService ksms = mSettings.getKeySetManagerService();
14043 ksms.removeAppKeySetDataLPw(pkg.getPackageName());
14766 final KeySetManagerService ksms = mSettings.getKeySetManagerService();
14767 ksms.assertScannedPackageValid(pkg);
15327 KeySetManagerService ksms = mSettings.getKeySetManagerService();
15328 ksms.addScannedPackageLPw(pkg);
19387 final ReconcileRequest request, KeySetManagerService ksms, Injector injector) in reconcilePackagesLocked() argument
19463 if (ksms.shouldCheckUpgradeKeySetLocked(signatureCheckPs, scanFlags)) { in reconcilePackagesLocked()
19464 if (ksms.checkUpgradeKeySetLocked(signatureCheckPs, parsedPackage)) { in reconcilePackagesLocked()
20356 final KeySetManagerService ksms = mSettings.getKeySetManagerService(); in doesSignatureMatchForPermissions() local
[all …]