Home | History | Annotate | Download | only in settings

Lines Matching refs:certHolder

344             List<CertHolder> certHolders = mData.mCertHoldersByUserId.valueAt(groupPosition);
355 public CertHolder getChild(int groupPosition, int childPosition) {
424 public void remove(CertHolder certHolder) {
425 mData.remove(certHolder);
467 private View getViewForCertificate(CertHolder certHolder, Tab mTab, View convertView,
484 holder.mSubjectPrimaryView.setText(certHolder.mSubjectPrimary);
485 holder.mSubjectSecondaryView.setText(certHolder.mSubjectSecondary);
487 holder.mSwitch.setChecked(!certHolder.mDeleted);
490 new UserHandle(certHolder.mProfileId)));
547 @Override public CertHolder getItem(int position) {
641 private final SparseArray<List<CertHolder>> mCertHoldersByUserId =
642 new SparseArray<List<CertHolder>>();
651 private class AliasLoader extends AsyncTask<Void, Integer, SparseArray<List<CertHolder>>> {
661 mCertHoldersByUserId.put(profile.getIdentifier(), new ArrayList<CertHolder>());
677 @Override protected SparseArray<List<CertHolder>> doInBackground(Void... params) {
678 SparseArray<List<CertHolder>> certHoldersByProfile =
679 new SparseArray<List<CertHolder>>();
702 return new SparseArray<List<CertHolder>>();
712 return new SparseArray<List<CertHolder>>();
718 certHoldersByProfile.put(profileId, new ArrayList<CertHolder>(0));
722 List<CertHolder> certHolders = new ArrayList<CertHolder>(max);
729 certHolders.add(new CertHolder(service, mAdapter,
739 return new SparseArray<List<CertHolder>>();
742 return new SparseArray<List<CertHolder>>();
753 @Override protected void onPostExecute(SparseArray<List<CertHolder>> certHolders) {
776 List<CertHolder> certHolders = mCertHoldersByUserId.get(mTrustAllCaUserId);
781 List<CertHolder> unapprovedUserCertHolders = new ArrayList<>();
784 for (CertHolder cert : certHolders) {
798 public void remove(CertHolder certHolder) {
800 final List<CertHolder> certs = mCertHoldersByUserId.get(certHolder.mProfileId);
802 certs.remove(certHolder);
808 /* package */ static class CertHolder implements Comparable<CertHolder> {
821 private CertHolder(IKeyChainService service,
867 @Override public int compareTo(CertHolder o) {
875 if (!(o instanceof CertHolder)) {
878 CertHolder other = (CertHolder) o;
907 private void showTrustAllCaDialog(List<CertHolder> unapprovedCertHolders) {
908 final CertHolder[] arr = unapprovedCertHolders.toArray(
909 new CertHolder[unapprovedCertHolders.size()]);
923 private void showCertDialog(final CertHolder certHolder) {
925 .setCertHolder(certHolder)
930 public List<X509Certificate> getX509CertsFromCertHolder(CertHolder certHolder) {
934 certHolder.mProfileId);
936 List<String> chain = service.getCaCertificateChainAliases(certHolder.mAlias, true);
946 + certHolder.mAlias, ex);
952 public void removeOrInstallCert(CertHolder certHolder) {
953 new AliasOperation(certHolder).execute();
972 private final CertHolder mCertHolder;
974 private AliasOperation(CertHolder certHolder) {
975 mCertHolder = certHolder;