/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageKeySetData.java | 44 protected void setProperSigningKeySet(long ks) { in setProperSigningKeySet() argument 45 mProperSigningKeySet = ks; in setProperSigningKeySet() 59 Long ks = mKeySetAliases.get(alias); in addUpgradeKeySet() local 60 if (ks != null) { in addUpgradeKeySet() 61 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySet() 73 protected void addUpgradeKeySetById(long ks) { in addUpgradeKeySetById() argument 74 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySetById() 105 protected void addDefinedKeySet(long ks, String alias) { in addDefinedKeySet() argument 106 mKeySetAliases.put(alias, ks); in addDefinedKeySet()
|
D | KeySetManagerService.java | 129 public boolean packageIsSignedByLPr(String packageName, KeySetHandle ks) { in packageIsSignedByLPr() argument 137 long id = getIdByKeySetLPr(ks); in packageIsSignedByLPr() 155 public boolean packageIsSignedByExactlyLPr(String packageName, KeySetHandle ks) { in packageIsSignedByExactlyLPr() argument 165 long id = getIdByKeySetLPr(ks); in packageIsSignedByExactlyLPr() 256 KeySetHandle ks = addKeySetLPw(signingKeys); in addSigningKeySetToPackageLPw() local 257 long id = ks.getId(); in addSigningKeySetToPackageLPw() 266 private long getIdByKeySetLPr(KeySetHandle ks) { in getIdByKeySetLPr() argument 269 if (ks.equals(value)) { in getIdByKeySetLPr() 291 KeySetHandle ks = addKeySetLPw(pubKeys); in addDefinedKeySetsToPackageLPw() local 292 newKeySetAliases.put(alias, ks.getId()); in addDefinedKeySetsToPackageLPw() [all …]
|
D | PackageManagerService.java | 20771 public boolean isPackageSignedByKeySet(String packageName, KeySet ks) { in isPackageSignedByKeySet() argument 20772 if (packageName == null || ks == null) { in isPackageSignedByKeySet() 20781 IBinder ksh = ks.getToken(); in isPackageSignedByKeySet() 20791 public boolean isPackageSignedByKeySetExactly(String packageName, KeySet ks) { in isPackageSignedByKeySetExactly() argument 20792 if (packageName == null || ks == null) { in isPackageSignedByKeySetExactly() 20801 IBinder ksh = ks.getToken(); in isPackageSignedByKeySetExactly()
|
/frameworks/base/core/java/android/security/net/config/ |
D | RootTrustManagerFactorySpi.java | 52 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit() argument 53 if (ks != null) { in engineInit() 54 mApplicationConfig = new ApplicationConfig(new KeyStoreConfigSource(ks)); in engineInit()
|
D | KeyStoreConfigSource.java | 31 public KeyStoreConfigSource(KeyStore ks) { in KeyStoreConfigSource() argument 35 new CertificatesEntryRef(new KeyStoreCertificateSource(ks), false)) in KeyStoreConfigSource()
|
D | KeyStoreCertificateSource.java | 40 public KeyStoreCertificateSource(KeyStore ks) { in KeyStoreCertificateSource() argument 41 mKeyStore = ks; in KeyStoreCertificateSource()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | OSUClient.java | 60 public OSUClient(OSUInfo osuInfo, KeyStore ks) throws MalformedURLException { in OSUClient() argument 63 mKeyStore = ks; in OSUClient() 66 public OSUClient(String osu, KeyStore ks) throws MalformedURLException { in OSUClient() argument 69 mKeyStore = ks; in OSUClient() 420 Network network, KeyManager km, KeyStore ks) in retrieveCerts() argument 423 List<X509Certificate> aaaCerts = getCerts(ppsRoot, AAACertPath, network, km, ks); in retrieveCerts() 425 certs.put(OSUCertType.Remediation, getCerts(ppsRoot, RemdCertPath, network, km, ks)); in retrieveCerts() 426 certs.put(OSUCertType.Policy, getCerts(ppsRoot, PolicyCertPath, network, km, ks)); in retrieveCerts() 430 KeyManager km, KeyStore ks) in getCerts() argument 441 OSUSocketFactory.getSocketFactory(ks, null, OSUManager.FLOW_PROVISIONING, in getCerts()
|
D | OSUSocketFactory.java | 78 public static OSUSocketFactory getSocketFactory(KeyStore ks, HomeSP homeSP, int flowType, in getSocketFactory() argument 86 return new OSUSocketFactory(ks, homeSP, flowType, network, url, km); in getSocketFactory() 89 private OSUSocketFactory(KeyStore ks, HomeSP homeSP, int flowType, Network network, in OSUSocketFactory() argument 93 mTrustManager = new WFATrustManager(ks, homeSP, flowType); in OSUSocketFactory() 221 private WFATrustManager(KeyStore ks, HomeSP homeSP, int flowType) in WFATrustManager() argument 223 mKeyStore = ks; in WFATrustManager()
|
D | OSUManager.java | 121 KeyStore ks = null; in OSUManager() local 124 ks = loadKeyStore(new File(context.getFilesDir(), KEYSTORE_FILE), in OSUManager() 129 mKeyStore = ks; in OSUManager()
|
/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 | 551 boolean isPackageSignedByKeySet(String packageName, in KeySet ks); in isPackageSignedByKeySet() argument 552 boolean isPackageSignedByKeySetExactly(String packageName, in KeySet ks); in isPackageSignedByKeySetExactly() argument
|
D | PackageManager.java | 5525 public abstract boolean isSignedBy(String packageName, KeySet ks); in isSignedBy() argument 5533 public abstract boolean isSignedByExactly(String packageName, KeySet ks); in isSignedByExactly() argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/ |
D | ConfigBuilder.java | 124 KeyStore ks = KeyStore.getInstance("PKCS12"); in parse() local 126 ks.load(in, new char[0]); in parse() 128 Log.d(TAG, "---- Start PKCS12 info " + octets.length + ", size " + ks.size()); in parse() 129 Enumeration<String> aliases = ks.aliases(); in parse() 132 clientKey = (PrivateKey) ks.getKey(alias, null); in parse() 134 Certificate[] chain = ks.getCertificateChain(alias); in parse()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 3253 KeySet ks; in testGetSigningKeySet() local 3255 ks = pm.getSigningKeySet(null); in testGetSigningKeySet() 3260 ks = pm.getSigningKeySet("keysets.test.bogus.package"); in testGetSigningKeySet() 3267 ks = pm.getSigningKeySet(otherPkgName); in testGetSigningKeySet() 3273 ks = pm.getSigningKeySet(mContext.getPackageName()); in testGetSigningKeySet() 3274 assertNotNull(ks); in testGetSigningKeySet() 3285 KeySet ks; in testGetKeySetByAlias() local 3287 ks = pm.getKeySetByAlias(null, null); in testGetKeySetByAlias() 3292 ks = pm.getKeySetByAlias(null, "keysetBogus"); in testGetKeySetByAlias() 3297 ks = pm.getKeySetByAlias("keysets.test.bogus.package", null); in testGetKeySetByAlias() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 431 final KeyStore ks = KeyStore.getInstance(); 434 ks.onUserAdded(userHandle, parentHandle); 748 final KeyStore ks = KeyStore.getInstance(); in setKeystorePassword() local 749 ks.onUserPasswordChanged(userHandle, password); in setKeystorePassword() 754 final KeyStore ks = KeyStore.getInstance(); in unlockKeystore() local 755 ks.unlock(userHandle, password); in unlockKeystore() 1594 final KeyStore ks = KeyStore.getInstance(); 1595 ks.onUserRemoved(userId);
|
D | MountService.java | 3459 KeySpec ks = new PBEKeySpec(mKey.toCharArray(), obbInfo.salt, 3461 SecretKey key = factory.generateSecret(ks);
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/est/ |
D | ESTHandler.java | 83 KeyManager km, KeyStore ks, HomeSP homeSP, int flowType) in ESTHandler() argument 88 mSocketFactory = OSUSocketFactory.getSocketFactory(ks, homeSP, flowType, in ESTHandler()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 772 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument 777 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 875 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument 881 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 2177 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument 2179 Preconditions.checkNotNull(ks); in isSignedBy() 2181 return mPM.isPackageSignedByKeySet(packageName, ks); in isSignedBy() 2189 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument 2191 Preconditions.checkNotNull(ks); in isSignedByExactly() 2193 return mPM.isPackageSignedByKeySetExactly(packageName, ks); in isSignedByExactly()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 938 KeyStore ks = KeyStore.getInstance("AndroidCAStore"); in verifyCert() local 939 ks.load(null, null); in verifyCert() 940 PKIXParameters params = new PKIXParameters(ks); in verifyCert()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 1567 KeySpec ks = new PBEKeySpec(pwArray, salt, rounds, PBKDF2_KEY_SIZE); in buildCharArrayKey() local 1568 return keyFactory.generateSecret(ks); in buildCharArrayKey()
|