/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageKeySetData.java | 50 protected void setProperSigningKeySet(long ks) { in setProperSigningKeySet() argument 51 if (ks == mProperSigningKeySet) { in setProperSigningKeySet() 59 mProperSigningKeySet = ks; in setProperSigningKeySet() 60 addSigningKeySet(ks); in setProperSigningKeySet() 68 protected void addSigningKeySet(long ks) { in addSigningKeySet() argument 69 mSigningKeySets = ArrayUtils.appendLong(mSigningKeySets, ks); in addSigningKeySet() 72 protected void removeSigningKeySet(long ks) { in removeSigningKeySet() argument 73 mSigningKeySets = ArrayUtils.removeLong(mSigningKeySets, ks); in removeSigningKeySet() 79 Long ks = mKeySetAliases.get(alias); in addUpgradeKeySet() local 80 if (ks != null) { in addUpgradeKeySet() [all …]
|
D | KeySetManagerService.java | 84 public boolean packageIsSignedByLPr(String packageName, KeySetHandle ks) { in packageIsSignedByLPr() argument 92 long id = getIdByKeySetLPr(ks); in packageIsSignedByLPr() 108 public boolean packageIsSignedByExactlyLPr(String packageName, KeySetHandle ks) { in packageIsSignedByExactlyLPr() argument 118 long id = getIdByKeySetLPr(ks); in packageIsSignedByExactlyLPr() 138 KeySetHandle ks = addKeySetLPw(keys); in addDefinedKeySetToPackageLPw() local 139 long id = getIdByKeySetLPr(ks); in addDefinedKeySetToPackageLPw() 171 KeySetHandle ks = addKeySetLPw(signingKeys); in addSigningKeySetToPackageLPw() local 172 long id = getIdByKeySetLPr(ks); in addSigningKeySetToPackageLPw() 198 private long getIdByKeySetLPr(KeySetHandle ks) { in getIdByKeySetLPr() argument 201 if (ks.equals(value)) { in getIdByKeySetLPr() [all …]
|
D | PackageManagerService.java | 13540 public boolean isPackageSignedByKeySet(String packageName, KeySet ks) { in isPackageSignedByKeySet() argument 13541 if (packageName == null || ks == null) { in isPackageSignedByKeySet() 13550 IBinder ksh = ks.getToken(); in isPackageSignedByKeySet() 13560 public boolean isPackageSignedByKeySetExactly(String packageName, KeySet ks) { in isPackageSignedByKeySetExactly() argument 13561 if (packageName == null || ks == null) { in isPackageSignedByKeySetExactly() 13570 IBinder ksh = ks.getToken(); in isPackageSignedByKeySetExactly()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 105 final KeyStore ks = KeyStore.getInstance(); 108 ks.resetUid(userSysUid); 115 ks.syncUid(parentSysUid, userSysUid); 270 final KeyStore ks = KeyStore.getInstance(); in maybeUpdateKeystore() local 278 if (!ks.isEmpty()) { in maybeUpdateKeystore() 286 ks.resetUid(profileUid); in maybeUpdateKeystore() 288 ks.passwordUid(password, profileUid); in maybeUpdateKeystore() 399 final KeyStore ks = KeyStore.getInstance(); in removeUser() local 401 ks.resetUid(userUid); in removeUser()
|
D | MountService.java | 2881 KeySpec ks = new PBEKeySpec(mKey.toCharArray(), obbInfo.salt, in handleExecute() local 2883 SecretKey key = factory.generateSecret(ks); in handleExecute()
|
/frameworks/base/core/java/android/content/pm/ |
D | KeySet.java | 50 KeySet ks = (KeySet) o; in equals() local 51 return token == ks.token; in equals()
|
D | IPackageManager.aidl | 457 boolean isPackageSignedByKeySet(String packageName, in KeySet ks); in isPackageSignedByKeySet() argument 458 boolean isPackageSignedByKeySetExactly(String packageName, in KeySet ks); in isPackageSignedByKeySetExactly() argument
|
D | PackageManager.java | 3831 public abstract boolean isSignedBy(String packageName, KeySet ks); in isSignedBy() argument 3839 public abstract boolean isSignedByExactly(String packageName, KeySet ks); in isSignedByExactly() argument
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 1553 KeySet ks; in getKeySetByAlias() local 1555 ks = mPM.getKeySetByAlias(packageName, alias); in getKeySetByAlias() 1559 return ks; in getKeySetByAlias() 1566 KeySet ks; in getSigningKeySet() local 1568 ks = mPM.getSigningKeySet(packageName); in getSigningKeySet() 1572 return ks; in getSigningKeySet() 1577 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument 1579 Preconditions.checkNotNull(ks); in isSignedBy() 1581 return mPM.isPackageSignedByKeySet(packageName, ks); in isSignedBy() 1589 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 3353 KeySet ks; in testGetSigningKeySet() local 3355 ks = pm.getSigningKeySet(null); in testGetSigningKeySet() 3360 ks = pm.getSigningKeySet("keysets.test.bogus.package"); in testGetSigningKeySet() 3367 ks = pm.getSigningKeySet(otherPkgName); in testGetSigningKeySet() 3372 ks = pm.getSigningKeySet(mContext.getPackageName()); in testGetSigningKeySet() 3373 assertNotNull(ks); in testGetSigningKeySet() 3384 KeySet ks; in testGetKeySetByAlias() local 3386 ks = pm.getKeySetByAlias(null, null); in testGetKeySetByAlias() 3391 ks = pm.getKeySetByAlias(null, "keysetBogus"); in testGetKeySetByAlias() 3396 ks = pm.getKeySetByAlias("keysets.test.bogus.package", null); in testGetKeySetByAlias() [all …]
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 657 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument 663 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument
|
/frameworks/base/tests/CoreTests/android/core/ |
D | SSLSocketTest.java | 322 KeyStore ks = KeyStore.getInstance("BKS"); in testDefaultAlgorithms() local 327 assertEquals("BKS", ks.getType()); in testDefaultAlgorithms()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 1391 KeySpec ks = new PBEKeySpec(pwArray, salt, rounds, PBKDF2_KEY_SIZE); in buildCharArrayKey() local 1392 return keyFactory.generateSecret(ks); in buildCharArrayKey()
|