Home | History | Annotate | Download | only in activity

Lines Matching refs:Mailbox

31 import com.android.email.provider.EmailContent.Mailbox;
168 * Open a specific mailbox.
174 * @param id mailbox key
181 * Open a specific mailbox by account & type
185 * @param mailboxType the type of mailbox to open (e.g. @see EmailContent.Mailbox.TYPE_INBOX)
196 Intent i = createIntent(context, -1, -1, Mailbox.TYPE_INBOX);
202 * Return an intent to open a specific mailbox by account & type.
206 * @param mailboxId the ID of the mailbox to open, or -1
207 * @param mailboxType the type of mailbox to open (e.g. @see Mailbox.TYPE_INBOX) or -1
224 * @param mailboxType The folder name to open (typically Mailbox.TYPE_INBOX)
267 // Show the appropriate account/mailbox specified by an {@link Intent}.
272 * Show the appropriate account/mailbox specified by an {@link Intent}.
277 // Specific mailbox ID was provided - go directly to it
284 int mailboxType = intent.getIntExtra(EXTRA_MAILBOX_TYPE, Mailbox.TYPE_INBOX);
302 // TODO set title to "account > mailbox (#unread)"
496 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, itemView.mMailboxId);
497 if (mailbox == null) {
501 switch (mailbox.mType) {
502 case EmailContent.Mailbox.TYPE_DRAFTS:
505 case EmailContent.Mailbox.TYPE_OUTBOX:
508 case EmailContent.Mailbox.TYPE_TRASH:
554 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mMailboxId);
555 if (mailbox != null) {
556 mController.updateMailbox(mailbox.mAccountKey, mMailboxId, mControllerCallback);
564 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mMailboxId);
565 if (mailbox != null) {
566 MailboxList.actionHandleAccount(this, mailbox.mAccountKey);
583 EmailContent.Mailbox mailbox =
584 EmailContent.Mailbox.restoreMailboxWithId(this, mailboxId);
585 if (mailbox == null) {
588 return mailbox.mAccountKey;
617 EmailContent.Mailbox mailbox = EmailContent.Mailbox.restoreMailboxWithId(this, mailboxId);
618 if (mailbox == null) {
622 if (mailbox.mType == EmailContent.Mailbox.TYPE_DRAFTS) {
625 final boolean disableReply = (mailbox.mType == EmailContent.Mailbox.TYPE_TRASH);
627 // mailbox, instead of the mailboxId of the particular message that is opened
651 if (mMailboxId == Mailbox.QUERY_ALL_OUTBOX) {
836 * Only when the user explicitly opens the mailbox (not onResume, for example)
838 * Only when the mailbox is "stale" (currently set to 5 minutes since last refresh)
844 || (mMailboxId < 0)) { // Check if this mailbox is synthetic/combined
909 * @param mailboxId the ID of the mailbox
911 * @param mailboxType {@code Mailbox.TYPE_} constant, or -1
915 if (mailboxId == Mailbox.QUERY_ALL_INBOXES
916 || mailboxId == Mailbox.QUERY_ALL_UNREAD
917 || mailboxId == Mailbox.QUERY_ALL_FAVORITES) {
921 if (mailboxId == Mailbox.QUERY_ALL_DRAFTS || mailboxType == Mailbox.TYPE_DRAFTS) {
925 if (mailboxId == Mailbox.QUERY_ALL_OUTBOX || mailboxType == Mailbox.TYPE_OUTBOX) {
942 * mailboxIs != -1: A specific mailbox - check its type, then look up its account
952 Uri uri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId);
969 case Mailbox.TYPE_OUTBOX:
971 case Mailbox.TYPE_DRAFTS:
1061 * Async task for finding a single mailbox by type (possibly even going to the network).
1063 * This is much too complex, as implemented. It uses this AsyncTask to check for a mailbox,
1098 // See if we can find the requested mailbox in the DB.
1099 long mailboxId = Mailbox.findMailboxOfType(MessageList.this, mAccountId, mMailboxType);
1100 if (mailboxId == Mailbox.NO_MAILBOX) {
1101 // Mailbox not found. Does the account really exists?
1131 if (mailboxId == null || mailboxId == Mailbox.NO_MAILBOX) {
1220 if (mMailboxKey == Mailbox.QUERY_ALL_INBOXES) {
1240 if (mMailboxKey == Mailbox.QUERY_ALL_INBOXES) {
1242 } else if (mMailboxKey == Mailbox.QUERY_ALL_FAVORITES) {
1244 } else if (mMailboxKey == Mailbox.QUERY_ALL_DRAFTS) {
1246 } else if (mMailboxKey == Mailbox.QUERY_ALL_OUTBOX) {
1256 Cursor c = MessageList.this.mResolver.query(Mailbox.CONTENT_URI,
1398 * Called from any thread to look for a mailbox of a specific type. This is designed
1400 * not to recurse, in case the mailbox is not found after this.