Home
last modified time | relevance | path

Searched refs:mCredentialKey (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DHostAuth.java73 public long mCredentialKey; field in HostAuth
100 mCredentialKey = -1; in HostAuth()
120 if (mCredentialKey >= 0) { in getCredential()
121 mCredential = Credential.restoreCredentialsWithId(context, mCredentialKey); in getCredential()
140 if (mCredentialKey >= 0) { in getOrCreateCredential()
141 mCredential = Credential.restoreCredentialsWithId(context, mCredentialKey); in getOrCreateCredential()
154 mCredentialKey = -1; in removeCredential()
233 mCredentialKey = cursor.getLong(CONTENT_CREDENTIAL_KEY_COLUMN); in restore()
234 if (mCredentialKey != -1) { in restore()
250 values.put(HostAuthColumns.CREDENTIAL_KEY, mCredentialKey); in toContentValues()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DHostAuthTests.java208 assertEquals(orig.mCredentialKey, unparceled1.mCredentialKey); in testParceling()
219 assertEquals(orig.mCredentialKey, unparceled2.mCredentialKey); in testParceling()
250 assertEquals(-1, ha.mCredentialKey); // cred key is not serialized; field defaults to -1 in testDeserializeFromJSON()
263 before.mCredentialKey = 9873425; in testSerializeAndDeserializeWithJSON()
282 assertEquals(-1, after.mCredentialKey); // cred key is not serialized; field defaults to 0 in testSerializeAndDeserializeWithJSON()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOutgoingFragment.java357 account.mHostAuthSend.mCredentialKey = cred.mId; in saveSettingsAfterEdit()
DAccountSetupIncomingFragment.java517 account.mHostAuthRecv.mCredentialKey = cred.mId; in saveSettingsAfterEdit()