Home
last modified time | relevance | path

Searched refs:mCredential (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DHostAuthCompat.java41 if (hostAuth.mCredential != null) { in HostAuthCompat()
42 mProviderId = hostAuth.mCredential.mProviderId; in HostAuthCompat()
43 mAccessToken = hostAuth.mCredential.mAccessToken; in HostAuthCompat()
44 mRefreshToken = hostAuth.mCredential.mRefreshToken; in HostAuthCompat()
45 mExpiration = hostAuth.mCredential.mExpiration; in HostAuthCompat()
61 hostAuth.mCredential = new Credential(); in toHostAuth()
62 hostAuth.mCredential.mProviderId = mProviderId; in toHostAuth()
63 hostAuth.mCredential.mAccessToken = mAccessToken; in toHostAuth()
64 hostAuth.mCredential.mRefreshToken = mRefreshToken; in toHostAuth()
65 hostAuth.mCredential.mExpiration = mExpiration; in toHostAuth()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DHostAuth.java77 public transient Credential mCredential; field in HostAuth
119 if (mCredential == null) { in getCredential()
121 mCredential = Credential.restoreCredentialsWithId(context, mCredentialKey); in getCredential()
124 return mCredential; in getCredential()
139 if (mCredential == null) { in getOrCreateCredential()
141 mCredential = Credential.restoreCredentialsWithId(context, mCredentialKey); in getOrCreateCredential()
143 mCredential = new Credential(); in getOrCreateCredential()
146 return mCredential; in getOrCreateCredential()
153 mCredential = null; in removeCredential()
267 if (mCredential != null) { in toJson()
[all …]
DAccount.java648 if (mHostAuthRecv.mCredential != null) { in save()
650 ops.add(ContentProviderOperation.newInsert(mHostAuthRecv.mCredential.mBaseUri) in save()
651 .withValues(mHostAuthRecv.mCredential.toContentValues()) in save()
666 if (mHostAuthSend.mCredential != null) { in save()
667 if (mHostAuthRecv.mCredential != null && in save()
668 mHostAuthRecv.mCredential.equals(mHostAuthSend.mCredential)) { in save()
673 ops.add(ContentProviderOperation.newInsert(mHostAuthSend.mCredential.mBaseUri) in save()
674 .withValues(mHostAuthSend.mCredential.toContentValues()) in save()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DHostAuthTests.java209 assertEquals(orig.mCredential, unparceled1.mCredential); in testParceling()
220 assertEquals(orig.mCredential, unparceled2.mCredential); in testParceling()
247 assertEquals(Credential.EMPTY, ha.mCredential); in testDeserializeFromJSON()
264 before.mCredential = Credential.EMPTY; in testSerializeAndDeserializeWithJSON()
279 assertEquals(before.mCredential, after.mCredential); in testSerializeAndDeserializeWithJSON()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOutgoingFragment.java351 final Credential cred = account.mHostAuthSend.mCredential; in saveSettingsAfterEdit()
DAccountSetupIncomingFragment.java511 final Credential cred = account.mHostAuthRecv.mCredential; in saveSettingsAfterEdit()