/packages/apps/Settings/src/com/android/settings/ |
D | CredentialStorage.java | 105 private final KeyStore mKeyStore = KeyStore.getInstance(); field in CredentialStorage 151 switch (mKeyStore.state()) { in handleUnlockOrInstall() 258 if (!mKeyStore.importKey(key, value, uid, flags)) { in installIfAvailable() 270 if (!mKeyStore.put(certName, certData, uid, flags)) { in installIfAvailable() 280 if (!mKeyStore.put(caListName, caListData, uid, flags)) { in installIfAvailable() 329 mKeyStore.reset(); in doInBackground() 454 mKeyStore.password(password); in onActivityResult() 529 mKeyStore.unlock(mOldPassword.getText().toString()); in onDismiss() 530 int error = mKeyStore.getLastError(); in onDismiss()
|
D | SecuritySettings.java | 125 private KeyStore mKeyStore; field in SecuritySettings 319 mKeyStore = KeyStore.getInstance(); // needs to be initialized for onResume() in createPreferenceHierarchy() 324 mKeyStore.isHardwareBacked() ? R.string.credential_storage_type_hardware in createPreferenceHierarchy() 582 mResetCredentials.setEnabled(!mKeyStore.isEmpty()); in onResume()
|
D | ChooseLockGeneric.java | 100 private KeyStore mKeyStore; field in ChooseLockGeneric.ChooseLockGenericFragment 114 mKeyStore = KeyStore.getInstance(); in onCreate() 282 if (!mKeyStore.isEmpty()) { in upgradeQualityForKeyStore()
|
/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.delKey(Credentials.USER_PRIVATE_KEY + alias)) {
|
D | KeyChainActivity.java | 75 private KeyStore mKeyStore = KeyStore.getInstance(); field in KeyChainActivity 111 if (!mKeyStore.isUnlocked()) { in onResume() 143 String[] aliasArray = mKeyStore.saw(Credentials.USER_PRIVATE_KEY); in doInBackground() 330 byte[] bytes = mKeyStore.get(Credentials.USER_CERTIFICATE + alias); in doInBackground() 364 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.password(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 | 102 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.password(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() 271 if (!mKeyStore.delete(PKEY_MAP_KEY)) { in savePkeyMap() 277 if (!mKeyStore.put(PKEY_MAP_KEY, bytes, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED)) { in savePkeyMap() 283 byte[] bytes = mKeyStore.get(PKEY_MAP_KEY); in getPkeyMap()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 80 private final KeyStore mKeyStore = KeyStore.getInstance(); field in VpnSettings 191 if (!mKeyStore.isUnlocked()) { in onResume() 213 final List<VpnProfile> profiles = loadVpnProfiles(mKeyStore); in onResume() 269 mKeyStore.put(Credentials.VPN + profile.key, profile.encode(), KeyStore.UID_SELF, in onClick() 338 mKeyStore.delete(Credentials.VPN + mSelectedKey); in onContextItemSelected()
|
D | VpnDialog.java | 43 private final KeyStore mKeyStore = KeyStore.getInstance(); field in VpnDialog 307 String[] certificates = mKeyStore.saw(prefix); in loadCertificates()
|