Searched refs:ksms (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | KeySetUtils.java | 27 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 …]
|
D | PackageManagerSettingsTests.java | 1026 KeySetManagerService ksms = settings.mKeySetManagerService; in verifyKeySetMetaData() local 1029 assertThat(KeySetUtils.getKeySetRefCount(ksms, 1), is(2)); in verifyKeySetMetaData() 1030 assertThat(KeySetUtils.getKeySetRefCount(ksms, 2), is(1)); in verifyKeySetMetaData() 1031 assertThat(KeySetUtils.getKeySetRefCount(ksms, 3), is(1)); in verifyKeySetMetaData() 1032 assertThat(KeySetUtils.getKeySetRefCount(ksms, 4), is(1)); in verifyKeySetMetaData() 1033 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 1), is(2)); in verifyKeySetMetaData() 1034 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 2), is(2)); in verifyKeySetMetaData() 1035 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 3), is(1)); in verifyKeySetMetaData() 1041 assertThat(KeySetUtils.getPubKey(ksms, 1), is(keyA)); in verifyKeySetMetaData() 1042 assertThat(KeySetUtils.getPubKey(ksms, 2), is(keyB)); in verifyKeySetMetaData() [all …]
|
D | KeySetManagerServiceTest.java | 98 KeySetManagerService ksms = new KeySetManagerService(packagesMap); in testEncodePublicKey() local 104 assertEquals(ksms.encodePublicKey(keyA), KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey() 105 assertEquals(ksms.encodePublicKey(keyB), KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey() 106 assertEquals(ksms.encodePublicKey(keyC), KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 11015 final KeySetManagerService ksms = mSettings.mKeySetManagerService; 11017 ksms.removeAppKeySetDataLPw(pkg.packageName); 11744 final KeySetManagerService ksms = mSettings.mKeySetManagerService; 11745 ksms.assertScannedPackageValid(pkg); 12238 KeySetManagerService ksms = mSettings.mKeySetManagerService; 12239 ksms.addScannedPackageLPw(pkg); 15963 final ReconcileRequest request, KeySetManagerService ksms) 16038 if (ksms.shouldCheckUpgradeKeySetLocked(signatureCheckPs, scanFlags)) { 16039 if (ksms.checkUpgradeKeySetLocked(signatureCheckPs, pkg)) { 16978 final KeySetManagerService ksms = mSettings.mKeySetManagerService; [all …]
|