Home | History | Annotate | Download | only in provider

Lines Matching full:mailbox

28 import com.android.email.provider.EmailContent.Mailbox;
103 private static final int MAILBOX = MAILBOX_BASE;
148 EmailContent.Mailbox.TABLE_NAME,
185 "create trigger mailbox_delete before delete on " + Mailbox.TABLE_NAME +
202 // insert into this URI causes a mailbox to be added to the account
205 matcher.addURI(EMAIL_AUTHORITY, "account/#/mailbox", ACCOUNT_MAILBOXES);
208 matcher.addURI(EMAIL_AUTHORITY, "mailbox", MAILBOX);
209 // A specific mailbox
210 // insert into this URI causes a message to be added to the mailbox
212 matcher.addURI(EMAIL_AUTHORITY, "mailbox/#", MAILBOX_ID);
213 // The messages in a specific mailbox
214 matcher.addURI(EMAIL_AUTHORITY, "mailbox/#/message", MAILBOX_MESSAGES);
248 // Atomically a constant value to a particular field of a mailbox/account
268 // All deleted messages from a specific mailbox
270 matcher.addURI(EMAIL_AUTHORITY, "deletedMessage/mailbox/#", DELETED_MESSAGE_MAILBOX);
351 // Add triggers to keep unread count accurate per mailbox
353 // Insert a message; if flagRead is zero, add to the unread count of the message's mailbox
356 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT +
361 // Delete a message; if flagRead is zero, decrement the unread count of the msg's mailbox
364 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT +
369 // Change a message's mailbox
373 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT +
376 "; update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT +
385 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT +
425 " begin delete from " + Mailbox.TABLE_NAME +
482 db.execSQL("create table " + Mailbox.TABLE_NAME + s);
484 + " on " + Mailbox.TABLE_NAME + " (" + MailboxColumns.SERVER_ID + ")");
486 + " on " + Mailbox.TABLE_NAME + " (" + MailboxColumns.ACCOUNT_KEY + ")");
487 // Deleting a Mailbox deletes associated Messages in all three tables
493 db.execSQL("drop table " + Mailbox.TABLE_NAME);
608 // Get the mailbox key and see if we've already found this mailbox
611 // If we already know this mailbox doesn't exist, mark the message for deletion
614 // If we don't know about this mailbox, we'll try to find it
617 Cursor boxCursor = database.query(Mailbox.TABLE_NAME,
618 Mailbox.ID_PROJECTION, WHERE_ID, bindArray, null, null, null);
816 case MAILBOX:
867 case MAILBOX:
899 // Use the email- prefix because message, mailbox, and account are so generic (e.g. SMS, IM)
915 case MAILBOX:
916 return "vnd.android.cursor.dir/email-mailbox";
918 return "vnd.android.cursor.item/email-mailbox";
959 case MAILBOX:
973 // This implies adding a message to a mailbox
987 // This implies adding a mailbox to an account.
990 resultUri = insert(Mailbox.CONTENT_URI, values);
1066 case MAILBOX:
1154 if (match == MAILBOX_ID || match == MAILBOX) {
1221 case MAILBOX: