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 | 199 KeySetManagerService ksms = settings.mKeySetManagerService; in verifyKeySetMetaData() local 202 assertEquals(2, KeySetUtils.getKeySetRefCount(ksms, 1)); in verifyKeySetMetaData() 203 assertEquals(1, KeySetUtils.getKeySetRefCount(ksms, 2)); in verifyKeySetMetaData() 204 assertEquals(1, KeySetUtils.getKeySetRefCount(ksms, 3)); in verifyKeySetMetaData() 205 assertEquals(1, KeySetUtils.getKeySetRefCount(ksms, 4)); in verifyKeySetMetaData() 206 assertEquals(2, KeySetUtils.getPubKeyRefCount(ksms, 1)); in verifyKeySetMetaData() 207 assertEquals(2, KeySetUtils.getPubKeyRefCount(ksms, 2)); in verifyKeySetMetaData() 208 assertEquals(1, KeySetUtils.getPubKeyRefCount(ksms, 3)); in verifyKeySetMetaData() 214 assertEquals(keyA, KeySetUtils.getPubKey(ksms, 1)); in verifyKeySetMetaData() 215 assertEquals(keyB, KeySetUtils.getPubKey(ksms, 2)); in verifyKeySetMetaData() [all …]
|
D | KeySetManagerServiceTest.java | 97 KeySetManagerService ksms = new KeySetManagerService(packagesMap); in testEncodePublicKey() local 103 assertEquals(ksms.encodePublicKey(keyA), KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey() 104 assertEquals(ksms.encodePublicKey(keyB), KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey() 105 assertEquals(ksms.encodePublicKey(keyC), KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 6766 KeySetManagerService ksms = mSettings.mKeySetManagerService; 6769 signingKs = ksms.getPublicKeysFromKeySetLPr(mSigningKeySetId); 8607 KeySetManagerService ksms = mSettings.mKeySetManagerService; 8608 ksms.assertScannedPackageValid(pkg); 8657 ksms.addScannedPackageLPw(pkg); 14138 KeySetManagerService ksms = mSettings.mKeySetManagerService; 14141 if (!ksms.isIdValidKeySetId(upgradeKeySets[i])) { 14157 KeySetManagerService ksms = mSettings.mKeySetManagerService; 14159 Set<PublicKey> upgradeSet = ksms.getPublicKeysFromKeySetLPr(upgradeKeySets[i]); 20485 KeySetManagerService ksms = mSettings.mKeySetManagerService; [all …]
|