Lines Matching refs:alias
111 public boolean isUserSelectable(String alias) { in chooseCertificate()
114 return connection.getService().isUserSelectable(alias); in chooseCertificate()
142 @Override public void alias(String alias) { in chooseCertificate()
144 if (alias != null) { in chooseCertificate()
145 finishWithAliasFromPolicy(alias); in chooseCertificate()
180 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS); in chooseCertificate() local
182 devicePolicyManager.choosePrivateKeyAlias(mSenderUid, uri, alias, callback); in chooseCertificate()
187 callback.alias(null); in chooseCertificate()
216 public boolean shouldPresentCertificate(String alias) { in shouldPresentCertificate() argument
217 X509Certificate cert = loadCertificate(mKeyStore, alias); in shouldPresentCertificate()
223 cert.getSubjectDN().getName(), alias)); in shouldPresentCertificate()
297 String alias = getIntent().getStringExtra(KeyChain.EXTRA_ALIAS); in displayCertChooserDialog() local
299 if (alias != null) { in displayCertChooserDialog()
301 int adapterPosition = adapter.mAliases.indexOf(alias); in displayCertChooserDialog()
317 String alias = ((adapterPosition >= 0) in displayCertChooserDialog()
320 finish(alias); in displayCertChooserDialog()
431 String alias = mAliases.get(adapterPosition); in getView() local
433 holder.mAliasTextView.setText(alias); in getView()
464 String alias = mAliases.get(mAdapterPosition); in doInBackground() local
465 X509Certificate cert = loadCertificate(mKeyStore, alias); in doInBackground()
487 private void finish(String alias) { in finish() argument
488 finish(alias, false); in finish()
491 private void finishWithAliasFromPolicy(String alias) { in finishWithAliasFromPolicy() argument
492 finish(alias, true); in finishWithAliasFromPolicy()
495 private void finish(String alias, boolean isAliasFromPolicy) { in finish() argument
496 if (alias == null) { in finish()
500 result.putExtra(Intent.EXTRA_TEXT, alias); in finish()
507 new ResponseSender(keyChainAliasResponse, alias, isAliasFromPolicy).execute(); in finish()
518 private ResponseSender(IKeyChainAliasCallback keyChainAliasResponse, String alias, in ResponseSender() argument
521 mAlias = alias; in ResponseSender()
544 mKeyChainAliasResponse.alias(mAlias); in doInBackground()
565 private static X509Certificate loadCertificate(KeyStore keyStore, String alias) { in loadCertificate() argument
566 byte[] bytes = keyStore.get(Credentials.USER_CERTIFICATE + alias); in loadCertificate()