Lines Matching refs:MailboxColumns
46 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
111 private static final String[] PROJECTION = new String[] { MailboxColumns.ID,
112 MailboxColumns.ID + " AS " + ORIGINAL_ID,
113 MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, MailboxColumns.UNREAD_COUNT,
114 MailboxColumns.MESSAGE_COUNT, ROW_TYPE_MAILBOX + " AS " + ROW_TYPE,
115 MailboxColumns.FLAGS, MailboxColumns.ACCOUNT_KEY };
121 private static final String[] SUBMAILBOX_PROJECTION = new String[] { MailboxColumns.ID,
122 MailboxColumns.ID + " AS " + ORIGINAL_ID,
123 MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, MailboxColumns.UNREAD_COUNT,
124 MailboxColumns.MESSAGE_COUNT, ROW_TYPE_SUBMAILBOX + " AS " + ROW_TYPE,
125 MailboxColumns.FLAGS, MailboxColumns.ACCOUNT_KEY };
126 private static final String[] CURMAILBOX_PROJECTION = new String[] { MailboxColumns.ID,
127 MailboxColumns.ID + " AS " + ORIGINAL_ID,
128 MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, MailboxColumns.UNREAD_COUNT,
129 MailboxColumns.MESSAGE_COUNT, ROW_TYPE_CURMAILBOX + " AS " + ROW_TYPE,
130 MailboxColumns.FLAGS, MailboxColumns.ACCOUNT_KEY };
133 MailboxColumns.ID, ORIGINAL_ID, MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE,
134 MailboxColumns.UNREAD_COUNT, MailboxColumns.MESSAGE_COUNT, ROW_TYPE, MailboxColumns.FLAGS,
135 MailboxColumns.ACCOUNT_KEY };
138 private static final String ALL_MAILBOX_SELECTION = MailboxColumns.ACCOUNT_KEY + "=?" +
142 + " AND " + MailboxColumns.TYPE + "!=" + Mailbox.TYPE_MAIL;
145 + " AND " + MailboxColumns.PARENT_KEY + "=?"
146 + " AND " + MailboxColumns.TYPE + "=" + Mailbox.TYPE_MAIL;
148 private static final String MAILBOX_SELECTION = MailboxColumns.ACCOUNT_KEY + "=?"
149 + " AND " + MailboxColumns.ID + "=?";
151 private static final String MAILBOX_ORDER_BY = "CASE " + MailboxColumns.TYPE
160 + " ," + MailboxColumns.DISPLAY_NAME;
288 final String name = cursor.getString(cursor.getColumnIndex(MailboxColumns.DISPLAY_NAME));
306 return cursor.getInt(cursor.getColumnIndex(MailboxColumns.TYPE));
310 return cursor.getInt(cursor.getColumnIndex(MailboxColumns.MESSAGE_COUNT));
314 return cursor.getInt(cursor.getColumnIndex(MailboxColumns.UNREAD_COUNT));
318 return cursor.getLong(cursor.getColumnIndex(MailboxColumns.ACCOUNT_KEY));
326 return cursor.getInt(cursor.getColumnIndex(MailboxColumns.FLAGS));
579 new String[] { MailboxColumns.MESSAGE_COUNT }, null, null, null, 0);
582 new String[] { MailboxColumns.UNREAD_COUNT }, null, null, null, 0);