Home | History | Annotate | Download | only in email

Lines Matching refs:account

42 import com.android.emailcommon.provider.Account;
87 // Note that 0 is a syntactically valid account key; however there can never be an account
88 // with id = 0, so attempts to restore the account will return null. Null values are
270 * Returns the search mailbox for the specified account, creating one if necessary
271 * @return the search mailbox for the passed in account
340 * Request a remote update of mailboxes for an account.
417 Account account =
418 Account.restoreAccountWithId(mProviderContext, accountId);
421 if (account == null || mailbox == null ||
425 mLegacyController.synchronizeMailbox(account, mailbox, mLegacyListener);
453 final long accountId = Account.getAccountIdForMessageId(mProviderContext, messageId);
490 * @param accountId the account id
494 * Does not validate the input in other ways (e.g. does not verify the existence of account).
536 * Create a mailbox given the account and mailboxType.
565 if (accountId == Account.NO_ACCOUNT) {
568 if (accountId == Account.NO_ACCOUNT) {
571 Email.log("no account found for message " + messageId);
598 final Account account =
599 Account.restoreAccountWithId(mProviderContext, accountId);
600 if (account == null) {
606 mLegacyController.sendPendingMessages(account, sentboxId, mLegacyListener);
612 * Try to send all pending messages for a given account
614 * @param accountId the account for which to send messages
643 * For each account:
645 * write limit into all mailboxes for that account
654 Account.CONTENT_URI,
655 Account.ID_PROJECTION,
658 long accountId = c.getLong(Account.ID_PROJECTION_COLUMN);
659 String protocol = Account.getProtocol(mProviderContext, accountId);
698 Account account = Account.restoreAccountWithId(mProviderContext,
700 if (account == null) {
711 mLegacyController.synchronizeMailbox(account, mailbox, mLegacyListener);
781 // 1. Get the message's account
782 Account account = Account.getAccountForMessageId(mProviderContext, messageId);
784 account == null) return;
787 long trashMailboxId = findOrCreateMailboxOfType(account.mId, Mailbox.TYPE_TRASH);
795 AttachmentUtilities.deleteAllAttachmentFiles(mProviderContext, account.mId,
813 if (isMessagingController(account)) {
814 mLegacyController.processPendingActions(account.mId);
825 * account.
838 Account account = Account.getAccountForMessageId(mProviderContext, messageIds[0]);
839 if (account != null) {
848 if (isMessagingController(account)) {
849 mLegacyController.processPendingActions(account.mId);
893 long accountId = Account.getAccountIdForMessageId(mProviderContext, messageId);
894 if (accountId == Account.NO_ACCOUNT) return;
974 * @param accountId the id of the account to be searched
984 // Save this away (per account)
1053 * @param accountId the owner account
1089 // TODO make this more efficient, caching the account, smaller lookup here, etc.
1098 * For a given account id, return a service proxy if applicable, or null.
1115 public boolean isMessagingController(Account account) {
1116 if (account == null) return false;
1117 return isMessagingController(account.mId);
1123 String protocol = Account.getProtocol(mProviderContext, accountId);
1131 * Delete an account.
1143 * Delete an account synchronously.
1148 // Get the account URI.
1149 final Account account = Account.restoreAccountWithId(context, accountId);
1150 if (account == null) {
1154 // Delete account data, attachments, PIM data, etc.
1157 // Now delete the account itself
1158 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
1173 Log.w(Logging.LOG_TAG, "Exception while deleting account", e);
1178 * Delete all synced data, but don't delete the actual account. This is used when security
1180 * wish to keep the account configured (e.g. to accept remote wipe commands).
1182 * The only mailbox not deleted is the account mailbox (if any)
1183 * Also, clear the sync keys on the remaining account, since the data is gone.
1187 * @param accountId The account to wipe.
1207 cv.putNull(Account.SYNC_KEY);
1208 resolver.update(Account.CONTENT_URI, cv, Account.ID_SELECTION, accountIdArgs);
1220 Log.w(Logging.LOG_TAG, "Exception while deleting account synced data", e);
1244 * @param accountId The account being operated on
1256 * @param accountId The account being operated on
1294 * @param accountId The account being operated on
1328 * @param accountId The account being operated on
1349 mAccountId = Account.getAccountIdForMessageId(mProviderContext, mMessageId);
1457 final long accountId = Account.getAccountIdForMessageId(mProviderContext, messageId);
1467 final long accountId = Account.getAccountIdForMessageId(mProviderContext, messageId);
1477 final long accountId = Account.getAccountIdForMessageId(mProviderContext, messageId);
1604 final long accountId = Account.getAccountIdForMessageId(mProviderContext, messageId);
1690 // Don't generate error if the account is uninitialized