Searched refs:ksms (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/PackageManagerServiceTests/server/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 | 2232 KeySetManagerService ksms = settings.getKeySetManagerService(); in verifyKeySetMetaData() local 2235 assertThat(KeySetUtils.getKeySetRefCount(ksms, 1), is(2)); in verifyKeySetMetaData() 2236 assertThat(KeySetUtils.getKeySetRefCount(ksms, 2), is(1)); in verifyKeySetMetaData() 2237 assertThat(KeySetUtils.getKeySetRefCount(ksms, 3), is(1)); in verifyKeySetMetaData() 2238 assertThat(KeySetUtils.getKeySetRefCount(ksms, 4), is(1)); in verifyKeySetMetaData() 2239 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 1), is(2)); in verifyKeySetMetaData() 2240 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 2), is(2)); in verifyKeySetMetaData() 2241 assertThat(KeySetUtils.getPubKeyRefCount(ksms, 3), is(1)); in verifyKeySetMetaData() 2247 assertThat(KeySetUtils.getPubKey(ksms, 1), is(keyA)); in verifyKeySetMetaData() 2248 assertThat(KeySetUtils.getPubKey(ksms, 2), is(keyB)); in verifyKeySetMetaData() [all …]
|
D | KeySetManagerServiceTest.java | 103 KeySetManagerService ksms = new KeySetManagerService(packagesMap); in testEncodePublicKey() local 109 assertEquals(ksms.encodePublicKey(keyA), KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey() 110 assertEquals(ksms.encodePublicKey(keyB), KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey() 111 assertEquals(ksms.encodePublicKey(keyC), KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ReconcilePackageUtils.java | 69 KeySetManagerService ksms, Settings settings, SystemConfig systemConfig) in reconcilePackages() argument 155 if (ksms.shouldCheckUpgradeKeySetLocked( in reconcilePackages() 157 if (ksms.checkUpgradeKeySetLocked(signatureCheckPs, parsedPackage)) { in reconcilePackages()
|
D | InstallPackageHelper.java | 440 final KeySetManagerService ksms = mPm.mSettings.getKeySetManagerService(); in commitReconciledScanResultLocked() local 442 ksms.removeAppKeySetDataLPw(pkg.getPackageName()); in commitReconciledScanResultLocked() 597 KeySetManagerService ksms = mPm.mSettings.getKeySetManagerService(); in commitPackageSettings() local 598 ksms.addScannedPackageLPw(pkg); in commitPackageSettings() 1435 final KeySetManagerService ksms = mPm.mSettings.getKeySetManagerService(); in preparePackageLI() local 1438 if (ksms.shouldCheckUpgradeKeySetLocked(signatureCheckPs, signatureCheckSus, in preparePackageLI() 1440 if (!ksms.checkUpgradeKeySetLocked(signatureCheckPs, parsedPackage)) { in preparePackageLI() 1462 ksms.removeAppKeySetDataLPw(parsedPackage.getPackageName()); in preparePackageLI() 1749 final KeySetManagerService ksms = mPm.mSettings.getKeySetManagerService(); in preparePackageLI() local 1750 if (ksms.shouldCheckUpgradeKeySetLocked(ps, sharedUserSetting, scanFlags)) { in preparePackageLI() [all …]
|
D | ComputerEngine.java | 5330 final KeySetManagerService ksms = mSettings.getKeySetManagerService(); in getKeySetByAlias() local 5331 return new KeySet(ksms.getKeySetByAliasAndPackageNameLPr(packageName, alias)); in getKeySetByAlias() 5353 final KeySetManagerService ksms = mSettings.getKeySetManagerService(); in getSigningKeySet() local 5354 return new KeySet(ksms.getSigningKeySetByPackageNameLPr(packageName)); in getSigningKeySet() 5376 final KeySetManagerService ksms = mSettings.getKeySetManagerService(); in isPackageSignedByKeySet() local 5377 return ksms.packageIsSignedByLPr(packageName, (KeySetHandle) ksh); in isPackageSignedByKeySet() 5401 final KeySetManagerService ksms = mSettings.getKeySetManagerService(); in isPackageSignedByKeySetExactly() local 5402 return ksms.packageIsSignedByExactlyLPr(packageName, (KeySetHandle) ksh); in isPackageSignedByKeySetExactly()
|