Home | History | Annotate | Download | only in provider

Lines Matching refs:ACCOUNT

43 import com.android.emailcommon.provider.Account;
131 new ContentCache("Account", Account.CONTENT_PROJECTION, MAX_CACHED_ACCOUNTS);
143 private static final int ACCOUNT = ACCOUNT_BASE;
224 Account.TABLE_NAME,
254 Account.CONTENT_PROJECTION,
307 matcher.addURI(EmailContent.AUTHORITY, "account", ACCOUNT);
308 // A specific account
309 // insert into this URI causes a mailbox to be added to the account
310 matcher.addURI(EmailContent.AUTHORITY, "account/#", ACCOUNT_ID);
311 matcher.addURI(EmailContent.AUTHORITY, "account/default", ACCOUNT_DEFAULT_ID);
356 // Atomically a constant value to a particular field of a mailbox/account
385 CONTENT_VALUES_RESET_NEW_MESSAGE_COUNT.put(Account.NEW_MESSAGE_COUNT, 0);
394 // All quick responses associated with a particular account id
395 matcher.addURI(EmailContent.AUTHORITY, "quickresponse/account/#",
491 // Delete orphaned mailboxes/messages/policies (account no longer exists)
493 Account.TABLE_NAME);
495 Account.TABLE_NAME);
497 Account.TABLE_NAME);
517 if (tableUri == Account.CONTENT_URI) {
569 preCacheTable(Account.CONTENT_URI, Account.CONTENT_PROJECTION, null);
575 // Create a map from account,type to a mailbox
594 * Restore user Account and HostAuth data from our backup database
613 Cursor c = mainDatabase.query(Account.TABLE_NAME, EmailContent.ID_PROJECTION, null, null,
618 Log.w(TAG, "restoreIfNeeded: Account exists.");
620 return; // At least one account exists.
716 case ACCOUNT:
759 // Account deletion will clear all of the caches, as HostAuth's,
800 case ACCOUNT:
805 case ACCOUNT:
821 case ACCOUNT:
862 // Use the email- prefix because message, mailbox, and account are so generic (e.g. SMS, IM)
890 case ACCOUNT:
891 return "vnd.android.cursor.dir/email-account";
893 return "vnd.android.cursor.item/email-account";
939 case ACCOUNT:
957 case ACCOUNT:
960 // Cache new account, host auth, policy, and some mailbox rows
965 } else if (match == ACCOUNT) {
989 // Hmm, a problem here is that we can't link the account as well, so it must be
1001 // This implies adding a mailbox to an account.
1121 long accountId = Account.NO_ACCOUNT;
1122 // Find the account with "isDefault" set, or the lowest account ID otherwise.
1131 accountCursor.getInt(Account.CONTENT_IS_DEFAULT_COLUMN) == 1;
1132 long iterId = accountCursor.getLong(Account.CONTENT_ID_COLUMN);
1137 } else if ((accountId == Account.NO_ACCOUNT) || (iterId < accountId)) {
1164 case ACCOUNT:
1169 if (match == ACCOUNT && Arrays.equals(projection, EmailContent.COUNT_COLUMNS) &&
1217 // All quick responses for the given account
1305 * Copy the Account and HostAuth tables from one database to another
1321 toDatabase.delete(Account.TABLE_NAME, null, null);
1324 // Get our account cursor
1325 Cursor c = fromDatabase.query(Account.TABLE_NAME, Account.CONTENT_PROJECTION,
1332 Account account = new Account();
1333 account.restore(c);
1336 // state of the account, and we've reset that...
1339 account.mSecuritySyncKey = null;
1340 account.mSyncKey = null;
1341 account.mPolicyKey = 0;
1345 account.mHostAuthKeyRecv);
1347 // The account might have gone away, though very unlikely
1349 account.mHostAuthKeyRecv = toDatabase.insert(HostAuth.TABLE_NAME, null,
1353 if (account.mHostAuthKeySend > 0) {
1354 hostAuth = restoreHostAuth(fromDatabase, account.mHostAuthKeySend);
1356 // since we checked the validity of the account above, and the
1359 account.mHostAuthKeySend = toDatabase.insert(
1363 // Now, create the account in the "to" database
1364 toDatabase.insert(Account.TABLE_NAME, null, account.toContentValues());
1379 Log.w(TAG, "Exception while copying account tables", ex);
1394 * Backup account data, returning the number of accounts backed up
1404 Log.e(TAG, "Account backup failed!");
1417 * Restore account data, returning the number of accounts restored
1429 Log.e(TAG, "Account recovery failed?");
1565 case ACCOUNT:
1571 case ACCOUNT:
1612 newMessageCount.put(Account.NEW_MESSAGE_COUNT, set);
1623 notificationUri = Account.CONTENT_URI; // Only notify account cursors.
1628 // Affects all accounts. Just invalidate all account cache.
1630 notificationUri = Account.CONTENT_URI; // Only notify account cursors.
1660 case ACCOUNT:
1662 baseUri = Account.NOTIFIER_URI;
1713 // Ideally this intent would contain information about which account changed, to limit the
1714 // updates to that particular account. Unfortunately, that information is not available in