Lines Matching refs:mailboxId
76 public String getCombinedMailboxName(long mailboxId) {
81 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) {
83 } else if (mailboxId == Mailbox.QUERY_ALL_FAVORITES) {
85 } else if (mailboxId == Mailbox.QUERY_ALL_DRAFTS) {
87 } else if (mailboxId == Mailbox.QUERY_ALL_OUTBOX) {
99 private String getDisplayName(int type, long mailboxId) {
100 String name = getCombinedMailboxName(mailboxId);
114 * @param mailboxId ID of a mailbox.
117 public String getDisplayName(int mailboxType, long mailboxId, String originalDisplayName) {
118 String name = getDisplayName(mailboxType, mailboxId);
185 public static int getMessageCountForCombinedMailbox(Context context, long mailboxId) {
186 Preconditions.checkState(mailboxId < -1L);
187 if ((mailboxId == Mailbox.QUERY_ALL_INBOXES)
188 || (mailboxId == Mailbox.QUERY_ALL_UNREAD)) {
191 } else if (mailboxId == Mailbox.QUERY_ALL_FAVORITES) {
194 } else if (mailboxId == Mailbox.QUERY_ALL_DRAFTS) {
197 } else if (mailboxId == Mailbox.QUERY_ALL_OUTBOX) {
206 public Drawable getIcon(int type, long mailboxId, int mailboxFlags) {
207 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) {
209 } else if (mailboxId == Mailbox.QUERY_ALL_FAVORITES) {
211 } else if (mailboxId == Mailbox.QUERY_ALL_DRAFTS) {
213 } else if (mailboxId == Mailbox.QUERY_ALL_OUTBOX) {