Searched refs:mailboxType (Results 1 - 9 of 9) sorted by relevance

/packages/apps/Email/src/com/android/email/
H A DFolderProperties.java113 * @param mailboxType Such as {@link Mailbox#TYPE_INBOX}
117 public String getDisplayName(int mailboxType, long mailboxId, String originalDisplayName) { argument
118 String name = getDisplayName(mailboxType, mailboxId);
148 * @param mailboxType Such as {@link Mailbox#TYPE_INBOX}
152 public int getMessageCount(int mailboxType, int unreadCount, int totalCount) { argument
153 switch (mailboxType) {
H A DController.java475 * @param mailboxType the mailbox type (e.g. Mailbox.TYPE_DRAFTS).
477 public void saveToMailbox(final EmailContent.Message message, final int mailboxType) { argument
479 long mailboxId = findOrCreateMailboxOfType(accountId, mailboxType);
491 * @param mailboxType the mailbox type (e.g. EmailContent.Mailbox.TYPE_TRASH)
493 * Returns Mailbox.NO_MAILBOX if the accountId or mailboxType are negative.
496 public synchronized long findOrCreateMailboxOfType(long accountId, int mailboxType) { argument
497 if (accountId < 0 || mailboxType < 0) {
501 Mailbox.findMailboxOfType(mProviderContext, accountId, mailboxType);
502 return mailboxId == Mailbox.NO_MAILBOX ? createMailbox(accountId, mailboxType) : mailboxId;
510 public static String getMailboxServerName(Context context, int mailboxType) { argument
540 createMailbox(long accountId, int mailboxType) argument
[all...]
H A DMessagingController.java288 int mailboxType = localFolderCursor.getInt(MAILBOX_COLUMN_TYPE);
290 switch (mailboxType) {
/packages/apps/Email/src/com/android/email/activity/
H A DMailboxFinder.java70 * Creates an instance for {@code accountId} and {@code mailboxType}. (But won't start yet)
74 public MailboxFinder(Context context, long accountId, int mailboxType, Callback callback) { argument
81 mMailboxType = mailboxType;
H A DMailboxFragmentAdapter.java476 int mailboxType, int unreadCount, int messageCount, int rowType, int flags,
486 row.add(mailboxType);
495 int mailboxType, boolean showAlways) {
502 cursor, id, "", mailboxType, count, count, ROW_TYPE_MAILBOX, Mailbox.FLAG_NONE,
475 addMailboxRow(MatrixCursor cursor, long mailboxId, String displayName, int mailboxType, int unreadCount, int messageCount, int rowType, int flags, long accountId) argument
494 addCombinedMailboxRow(Context context, MatrixCursor cursor, long id, int mailboxType, boolean showAlways) argument
H A DMessageListFragment.java803 private int callbackTypeForMailboxType(int mailboxType) { argument
804 switch (mailboxType) {
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMailboxFinderTest.java108 private long createMailbox(long accountId, int mailboxType) { argument
112 box.mType = mailboxType;
122 private void createAndStartFinder(final long accountId, final int mailboxType) argument
127 mMailboxFinder = new MailboxFinder(mProviderContext, accountId, mailboxType,
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMailbox.java231 public static Mailbox newSystemMailbox(long accountId, int mailboxType, String name) { argument
232 if (mailboxType == Mailbox.TYPE_MAIL) {
237 box.mType = mailboxType;
/packages/apps/Exchange/src/com/android/exchange/
H A DExchangeService.java2217 int mailboxType = c.getInt(Mailbox.CONTENT_TYPE_COLUMN);
2218 if (!isMailboxSyncable(account, mailboxType)) {
2246 } else if (mailboxType == Mailbox.TYPE_OUTBOX) {

Completed in 150 milliseconds