Lines Matching refs:mailbox
34 import com.android.emailcommon.provider.Mailbox;
75 mMailboxType = i.getIntExtra(MAILBOX_TYPE_EXTRA, Mailbox.TYPE_TRASH);
76 long trashMailboxId = Mailbox.findMailboxOfType(this, mAccountId, Mailbox.TYPE_TRASH);
77 // If we already have a trash mailbox, we're done (if in setup; a race?)
78 if (trashMailboxId != Mailbox.NO_MAILBOX && mInSetup) {
187 // If we already have a mailbox of this type, change it back to generic mail type
188 Mailbox ofType = Mailbox.restoreMailboxOfType(this, mAccountId, mMailboxType);
190 values.put(MailboxColumns.TYPE, Mailbox.TYPE_MAIL);
192 ContentUris.withAppendedId(Mailbox.CONTENT_URI, ofType.mId), values,
196 // Change this mailbox to be of the desired type
197 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, id);
198 if (mailbox != null) {
201 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailbox.mId), values,