Lines Matching refs:Credential

90         final Credential item = (Credential) parent.getItemAtPosition(position);  in onItemClick()
104 public static void show(Fragment target, Credential item) { in show()
118 final Credential item = (Credential) getArguments().getParcelable(ARG_CREDENTIAL); in onCreateDialog()
123 new Credential[] {item}).getView(0, null, null); in onCreateDialog()
199 private class AliasLoader extends AsyncTask<Void, Void, SortedMap<String, Credential>> {
201 protected SortedMap<String, Credential> doInBackground(Void... params) { in doInBackground()
203 SortedMap<String, Credential> credentials = new TreeMap<>(); in doInBackground()
205 for (final Credential.Type type : Credential.Type.values()) { in doInBackground()
212 Credential c = credentials.get(alias); in doInBackground()
214 credentials.put(alias, (c = new Credential(alias))); in doInBackground()
223 protected void onPostExecute(SortedMap<String, Credential> credentials) { in onPostExecute()
226 credentials.values().toArray(new Credential[0]))); in onPostExecute()
233 private static class CredentialAdapter extends ArrayAdapter<Credential> {
234 public CredentialAdapter(Context context, int resource, Credential[] objects) { in CredentialAdapter()
244 Credential item = getItem(position); in getView()
247 item.storedTypes.contains(Credential.Type.USER_PRIVATE_KEY) ? VISIBLE : GONE); in getView()
249 item.storedTypes.contains(Credential.Type.USER_CERTIFICATE) ? VISIBLE : GONE); in getView()
251 item.storedTypes.contains(Credential.Type.CA_CERTIFICATE) ? VISIBLE : GONE); in getView()
256 static class Credential implements Parcelable { class in UserCredentialsSettings
287 Credential(final String alias) { in Credential() method in UserCredentialsSettings.Credential
291 Credential(Parcel in) { in Credential() method in UserCredentialsSettings.Credential
316 public static final Parcelable.Creator<Credential> CREATOR
317 = new Parcelable.Creator<Credential>() {
318 public Credential createFromParcel(Parcel in) {
319 return new Credential(in);
322 public Credential[] newArray(int size) {
323 return new Credential[size];