Home
last modified time | relevance | path

Searched refs:Credential (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java82 final Credential item = (Credential) view.getTag(); in onClick()
111 public static void show(Fragment target, Credential item) { in show()
125 final Credential item = (Credential) getArguments().getParcelable(ARG_CREDENTIAL); in onCreateDialog()
182 private class RemoveCredentialsTask extends AsyncTask<Credential, Void, Credential[]> {
192 protected Credential[] doInBackground(Credential... credentials) { in doInBackground()
193 for (final Credential credential : credentials) { in doInBackground()
203 private void deleteWifiCredential(final Credential credential) { in deleteWifiCredential()
205 final EnumSet<Credential.Type> storedTypes = credential.getStoredTypes(); in deleteWifiCredential()
208 if (storedTypes.contains(Credential.Type.USER_KEY)) { in deleteWifiCredential()
212 if (storedTypes.contains(Credential.Type.USER_CERTIFICATE)) { in deleteWifiCredential()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUserCredentialsSettings.java82 final Credential item = (Credential) view.getTag(); in onClick()
111 public static void show(Fragment target, Credential item) { in show()
125 final Credential item = (Credential) getArguments().getParcelable(ARG_CREDENTIAL); in onCreateDialog()
182 private class RemoveCredentialsTask extends AsyncTask<Credential, Void, Credential[]> {
192 protected Credential[] doInBackground(Credential... credentials) { in doInBackground()
193 for (final Credential credential : credentials) { in doInBackground()
203 private void deleteWifiCredential(final Credential credential) { in deleteWifiCredential()
205 final EnumSet<Credential.Type> storedTypes = credential.getStoredTypes(); in deleteWifiCredential()
208 if (storedTypes.contains(Credential.Type.USER_KEY)) { in deleteWifiCredential()
212 if (storedTypes.contains(Credential.Type.USER_CERTIFICATE)) { in deleteWifiCredential()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DCredential.java18 public class Credential extends EmailContent implements Parcelable, BaseColumns { class
23 public static final Credential EMPTY = new Credential(-1, "", "", "", 0);
63 public Credential() { in Credential() method in Credential
67 public Credential(long id, String providerId, String accessToken, String refreshToken, in Credential() method in Credential
81 public static Credential restoreCredentialsWithId(Context context, long id) { in restoreCredentialsWithId()
82 return EmailContent.restoreContentWithId(context, Credential.class, in restoreCredentialsWithId()
83 Credential.CONTENT_URI, CredentialQuery.PROJECTION, id); in restoreCredentialsWithId()
107 public static final Parcelable.Creator<Credential> CREATOR
108 = new Parcelable.Creator<Credential>() {
110 public Credential createFromParcel(Parcel in) {
[all …]
DHostAuth.java77 public transient Credential mCredential;
118 public Credential getCredential(Context context) { in getCredential()
121 mCredential = Credential.restoreCredentialsWithId(context, mCredentialKey); in getCredential()
137 public Credential getOrCreateCredential(Context context) { in getOrCreateCredential()
141 mCredential = Credential.restoreCredentialsWithId(context, mCredentialKey); in getOrCreateCredential()
143 mCredential = new Credential(); in getOrCreateCredential()
290 h.mCredential = Credential.fromJson(credJson); in fromJson()
450 Credential.EMPTY.writeToParcel(dest, flags); in writeToParcel()
477 mCredential = new Credential(in); in HostAuth()
478 if (mCredential.equals(Credential.EMPTY)) { in HostAuth()
DEmailContent.java192 Credential.initCredential(); in init()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUserCredentialsTest.java19 import static com.android.settings.UserCredentialsSettings.Credential;
40 Credential c = new Credential(alias, Process.SYSTEM_UID); in testCredentialIsParcelable()
42 c.storedTypes.add(Credential.Type.CA_CERTIFICATE); in testCredentialIsParcelable()
43 c.storedTypes.add(Credential.Type.USER_KEY); in testCredentialIsParcelable()
49 Credential r = Credential.CREATOR.createFromParcel(p); in testCredentialIsParcelable()
/packages/apps/Email/provider_src/com/android/email/mail/internet/
DAuthenticationCache.java11 import com.android.emailcommon.provider.Credential;
99 final Credential credential = hostAuth.getOrCreateCredential(context); in getEntry()
108 final Credential credential = hostAuth.getCredential(context); in getEntry()
146 final Credential cred = hostAuth.getOrCreateCredential(context); in saveEntry()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DHostAuthTests.java233 json.put(HostAuth.JSON_TAG_CREDENTIAL, Credential.EMPTY.toJson()); in testDeserializeFromJSON()
247 assertEquals(Credential.EMPTY, ha.mCredential); in testDeserializeFromJSON()
264 before.mCredential = Credential.EMPTY; in testSerializeAndDeserializeWithJSON()
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java38 import com.android.emailcommon.provider.Credential;
106 " begin delete from " + Credential.TABLE_NAME +
107 " where " + Credential._ID + "=old." + HostAuthColumns.CREDENTIAL_KEY +
243 String s = " (" + Credential._ID + " integer primary key autoincrement, " in createCredentialsTable()
244 + Credential.PROVIDER_COLUMN + " text," in createCredentialsTable()
245 + Credential.ACCESS_TOKEN_COLUMN + " text," in createCredentialsTable()
246 + Credential.REFRESH_TOKEN_COLUMN + " text," in createCredentialsTable()
247 + Credential.EXPIRATION_COLUMN + " integer" in createCredentialsTable()
249 db.execSQL("create table " + Credential.TABLE_NAME + s); in createCredentialsTable()
DEmailProvider.java81 import com.android.emailcommon.provider.Credential;
307 array.put(CREDENTIAL_BASE >> BASE_SHIFT, Credential.TABLE_NAME);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DHostAuthCompat.java7 import com.android.emailcommon.provider.Credential;
61 hostAuth.mCredential = new Credential(); in toHostAuth()
/packages/apps/Email/src/com/android/email/activity/setup/
DAuthenticationView.java20 import com.android.emailcommon.provider.Credential;
144 final Credential cred = hostAuth.getCredential(getContext()); in setAuthInfo()
DAccountSetupIncomingFragment.java49 import com.android.emailcommon.provider.Credential;
511 final Credential cred = account.mHostAuthRecv.mCredential; in saveSettingsAfterEdit()
561 Credential cred = recvAuth.getOrCreateCredential(getActivity()); in collectUserInputInternal()
DAccountSetupOutgoingFragment.java47 import com.android.emailcommon.provider.Credential;
351 final Credential cred = account.mHostAuthSend.mCredential; in saveSettingsAfterEdit()
DAccountSetupCredentialsFragment.java41 import com.android.emailcommon.provider.Credential;
344 Credential cred = hostAuth.getOrCreateCredential(context); in populateHostAuthWithResults()
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java32 import com.android.emailcommon.provider.Credential;
74 Credential cred = sendAuth.getCredential(context); in SmtpSender()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapStore.java42 import com.android.emailcommon.provider.Credential;
120 final Credential cred = recvAuth.getCredential(context); in ImapStore()
/packages/apps/Settings/tests/uitests/assets/
Dsearch_results_list131 Credential storage;credentials_management