/packages/apps/Settings/src/com/android/settings/ |
D | CredentialStorage.java | 106 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CredentialStorage 147 if (ACTION_UNLOCK.equals(action) && mKeyStore.state() == KeyStore.State.UNINITIALIZED) { in onResume() 164 switch (mKeyStore.state()) { in handleUnlockOrInstall() 273 if (!mKeyStore.importKey(key, value, uid, flags)) { in installIfAvailable() 285 if (!mKeyStore.put(certName, certData, uid, flags)) { in installIfAvailable() 295 if (!mKeyStore.put(caListName, caListData, uid, flags)) { in installIfAvailable() 348 mKeyStore.clearUid(UserHandle.getUid(pi.id, uid)); in doInBackground() 477 mKeyStore.unlock(password); in onActivityResult() 552 mKeyStore.unlock(mOldPassword.getText().toString()); in onDismiss() 553 int error = mKeyStore.getLastError(); in onDismiss()
|
D | SecuritySettings.java | 128 private KeyStore mKeyStore; field in SecuritySettings 290 mKeyStore = KeyStore.getInstance(); // needs to be initialized for onResume() in createPreferenceHierarchy() 295 mKeyStore.isHardwareBacked() ? R.string.credential_storage_type_hardware in createPreferenceHierarchy() 622 mResetCredentials.setEnabled(!mKeyStore.isEmpty()); in onResume()
|
D | ChooseLockGeneric.java | 95 private KeyStore mKeyStore; field in ChooseLockGeneric.ChooseLockGenericFragment 139 mKeyStore = KeyStore.getInstance(); in onCreate()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 92 private final KeyStore mKeyStore = KeyStore.getInstance(); 102 if (!mKeyStore.grant(keystoreAlias, uid)) { 118 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias); 125 if (!mKeyStore.isUnlocked()) { 127 + mKeyStore.state().toString()); 155 if (!mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, privateKey, -1, 160 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertificate, -1, 163 if (!mKeyStore.delete(Credentials.USER_PRIVATE_KEY + alias)) {
|
D | KeyChainActivity.java | 83 private KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainActivity 119 if (!mKeyStore.isUnlocked()) { in onResume() 199 String[] aliasArray = mKeyStore.list(Credentials.USER_PRIVATE_KEY); in doInBackground() 377 byte[] bytes = mKeyStore.get(Credentials.USER_CERTIFICATE + alias); in doInBackground() 411 if (mKeyStore.isUnlocked()) { in onActivityResult()
|
/packages/apps/Settings/tests/src/com/android/settings/vpn2/ |
D | CertInstallerHelper.java | 67 private KeyStore mKeyStore = KeyStore.getInstance(); field in CertInstallerHelper 73 mKeyStore.reset(); in CertInstallerHelper() 74 mKeyStore.onUserPasswordChanged(CERT_STORE_PASSWORD); in CertInstallerHelper() 183 if (!mKeyStore.importKey(key, value, mUid, flags)) { in installCertificate() 194 if (!mKeyStore.put(certName, certData, mUid, flags)) { in installCertificate() 206 if (!mKeyStore.put(caListName, caListData, mUid, flags)) { in installCertificate()
|
D | VpnTests.java | 100 private KeyStore mKeyStore = KeyStore.getInstance(); field in VpnTests 187 byte[] value = mKeyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecUserCert); in printKeyStore() 191 byte[] value = mKeyStore.get(Credentials.CA_CERTIFICATE + profile.ipsecCaCert); in printKeyStore() 195 byte[] value = mKeyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecServerCert); in printKeyStore()
|
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/ |
D | KeyChainServiceTestSupport.java | 30 private final KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainServiceTestSupport 36 return mKeyStore.reset(); 40 return mKeyStore.onUserPasswordChanged(password); 44 return mKeyStore.put(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED); 48 return mKeyStore.importKey(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstaller.java | 74 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CertInstaller 136 && !mKeyStore.isUnlocked()); in needsKeyStoreAccess() 272 if (!mKeyStore.delete(PKEY_MAP_KEY)) { in savePkeyMap() 278 if (!mKeyStore.put(PKEY_MAP_KEY, bytes, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED)) { in savePkeyMap() 284 byte[] bytes = mKeyStore.get(PKEY_MAP_KEY); in getPkeyMap()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 89 private final KeyStore mKeyStore = KeyStore.getInstance(); field in VpnSettings 217 for (VpnProfile profile : loadVpnProfiles(mKeyStore)) { in handleMessage()
|
D | ConfigDialog.java | 49 private final KeyStore mKeyStore = KeyStore.getInstance(); field in ConfigDialog 338 String[] certificates = mKeyStore.list(prefix); in loadCertificates()
|