Home | History | Annotate | Download | only in service

Lines Matching refs:Mailbox

41 import com.android.emailcommon.provider.Mailbox;
82 * @return whether or not this mailbox retrieves its data from the server (as opposed to just
83 * a local mailbox that is never synced).
85 private static boolean loadsFromServer(Context context, Mailbox m, String protocol) {
91 return m.mType != Mailbox.TYPE_DRAFTS
92 && m.mType != Mailbox.TYPE_OUTBOX
93 && m.mType != Mailbox.TYPE_SEARCH;
96 return Mailbox.TYPE_INBOX == m.mType;
106 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
107 if (mailbox == null) return;
108 Account account = Account.restoreAccountWithId(context, mailbox.mAccountKey);
112 if ((mailbox.mType != Mailbox.TYPE_OUTBOX) &&
113 !loadsFromServer(context, mailbox, protocol)) {
114 // This is an update to a message in a non-syncing mailbox; delete this from the
117 new String[] {Long.toString(mailbox.mId)});
120 LogUtils.d(TAG, "About to sync mailbox: " + mailbox.mDisplayName);
122 Uri mailboxUri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId);
124 // Set mailbox sync state
125 values.put(Mailbox.UI_SYNC_STATUS,
131 if (mailbox.mType == Mailbox.TYPE_OUTBOX) {
139 mailbox, deltaMessageCount != 0, uiRefresh);
142 mailbox, deltaMessageCount);
173 values.put(Mailbox.UI_SYNC_STATUS, EmailContent.SYNC_STATUS_NONE);
174 values.put(Mailbox.SYNC_TIME, System.currentTimeMillis());
228 // Get the id for the mailbox we want to sync.
229 long [] mailboxIds = Mailbox.getMailboxIdsFromBundle(extras);
231 // No mailbox specified, just sync the inbox.
233 final long inboxId = Mailbox.findMailboxOfType(context, acct.mId,
234 Mailbox.TYPE_INBOX);
235 if (inboxId != Mailbox.NO_MAILBOX) {
245 extras.getInt(Mailbox.SYNC_EXTRA_DELTA_MESSAGE_COUNT, 0);