Home | History | Annotate | Download | only in provider

Lines Matching defs:hostAuth

54 import com.android.emailcommon.provider.HostAuth;
133 new ContentCache("HostAuth", HostAuth.CONTENT_PROJECTION, MAX_CACHED_ACCOUNTS * 2);
169 private static final int HOSTAUTH = HOSTAUTH_BASE;
228 HostAuth.TABLE_NAME,
258 HostAuth.CONTENT_PROJECTION,
351 // All hostauth records
352 matcher.addURI(EmailContent.AUTHORITY, "hostauth", HOSTAUTH);
353 // A specific hostauth
354 matcher.addURI(EmailContent.AUTHORITY, "hostauth
570 preCacheTable(HostAuth.CONTENT_URI, HostAuth.CONTENT_PROJECTION, null);
594 * Restore user Account and HostAuth data from our backup database
759 // Account deletion will clear all of the caches, as HostAuth's,
801 case HOSTAUTH:
814 case HOSTAUTH:
823 case HOSTAUTH:
899 case HOSTAUTH:
900 return "vnd.android.cursor.dir/email-hostauth";
902 return "vnd.android.cursor.item/email-hostauth";
940 case HOSTAUTH:
958 case HOSTAUTH:
1165 case HOSTAUTH:
1284 * Restore a HostAuth from a database, given its unique id
1287 * @return a fully populated HostAuth or null if the row does not exist
1289 private static HostAuth restoreHostAuth(SQLiteDatabase db, long id) {
1290 Cursor c = db.query(HostAuth.TABLE_NAME, HostAuth.CONTENT_PROJECTION,
1291 HostAuth.RECORD_ID + "=?", new String[] {Long.toString(id)}, null, null, null);
1294 HostAuth hostAuth = new HostAuth();
1295 hostAuth.restore(c);
1296 return hostAuth;
1305 * Copy the Account and HostAuth tables from one database to another
1322 toDatabase.delete(HostAuth.TABLE_NAME, null, null);
1344 HostAuth hostAuth = restoreHostAuth(fromDatabase,
1348 if (hostAuth == null) continue;
1349 account.mHostAuthKeyRecv = toDatabase.insert(HostAuth.TABLE_NAME, null,
1350 hostAuth.toContentValues());
1352 // EAS accounts have no send HostAuth
1354 hostAuth = restoreHostAuth(fromDatabase, account.mHostAuthKeySend);
1358 if (hostAuth == null) continue;
1360 HostAuth.TABLE_NAME, null, hostAuth.toContentValues());
1566 case HOSTAUTH:
1573 case HOSTAUTH: