Home
last modified time | relevance | path

Searched refs:FolderType (Results 1 – 24 of 24) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolder.java37 import com.android.mail.providers.UIProvider.FolderType;
626 !TextUtils.isEmpty(folder.bgColor) && (folder.type & FolderType.INBOX_SECTION) == 0; in setFolderBlockColor()
690 return !isType(UIProvider.FolderType.DEFAULT); in isProviderFolder()
743 return isType(FolderType.INBOX); in isInbox()
750 return isType(FolderType.SEARCH); in isSearch()
757 return isType(FolderType.SPAM); in isSpam()
764 return isType(FolderType.TRASH); in isTrash()
771 return isType(FolderType.DRAFT); in isDraft()
786 return isType(FolderType.SENT); in isSent()
793 return isType(FolderType.OUTBOX); in isOutbox()
[all …]
DUIProvider.java823 public static final class FolderType { class in UIProvider
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DFolder.java30 public enum FolderType { enum in Folder
97 public abstract boolean canCreate(FolderType type); in canCreate()
103 public abstract boolean create(FolderType type) throws MessagingException; in create()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java2775 + " WHEN " + Mailbox.TYPE_INBOX + " THEN " + UIProvider.FolderType.INBOX
2776 + " WHEN " + Mailbox.TYPE_DRAFTS + " THEN " + UIProvider.FolderType.DRAFT
2777 + " WHEN " + Mailbox.TYPE_OUTBOX + " THEN " + UIProvider.FolderType.OUTBOX
2778 + " WHEN " + Mailbox.TYPE_SENT + " THEN " + UIProvider.FolderType.SENT
2779 + " WHEN " + Mailbox.TYPE_TRASH + " THEN " + UIProvider.FolderType.TRASH
2780 + " WHEN " + Mailbox.TYPE_JUNK + " THEN " + UIProvider.FolderType.SPAM
2781 + " WHEN " + Mailbox.TYPE_STARRED + " THEN " + UIProvider.FolderType.STARRED
2782 + " WHEN " + Mailbox.TYPE_UNREAD + " THEN " + UIProvider.FolderType.UNREAD
2785 + " ELSE " + UIProvider.FolderType.DEFAULT + " END";
4501 case UIProvider.FolderType.INBOX: in getFolderDisplayName()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DMultiFoldersSelectionDialog.java34 import com.android.mail.providers.UIProvider.FolderType;
143 ImmutableSet.of(FolderType.INBOX_SECTION), originalChecked, in onCreate()
151 ImmutableSet.of(FolderType.INBOX_SECTION), originalChecked, in onCreate()
DConversationsInOutboxTipView.java79 if ((folder.type & UIProvider.FolderType.SENT) > 0) {
99 if ((folder.type & UIProvider.FolderType.OUTBOX) > 0) {
DAddableFolderSelectorAdapter.java92 if (Folder.isType(type, UIProvider.FolderType.INBOX) in filterFolders()
93 || Folder.isType(type, UIProvider.FolderType.DEFAULT)) { in filterFolders()
DActionBarController.java39 import com.android.mail.providers.UIProvider.FolderType;
240 && mFolder.isType(FolderType.SPAM) && mFolder.totalCount > 0 in validateVolatileMenuOptionVisibility()
398 final boolean isOutbox = mFolder.isType(FolderType.OUTBOX); in setConversationModeOptions()
DRecentFolderList.java30 import com.android.mail.providers.UIProvider.FolderType;
204 if (folder.isProviderFolder() || folder.isType(FolderType.SEARCH)) { in touchFolder()
DFolderListFragment.java61 import com.android.mail.providers.UIProvider.FolderType;
198 private int mSelectedFolderType = FolderType.INBOX;
591 mSelectedFolderType = FolderType.INBOX; in changeAccount()
1081 if (!currentFolderFound && !Folder.isType(FolderType.SEARCH, mSelectedFolderType) in recalculateDividedListFolders()
DEmptyFolderDialogFragment.java89 final int dialogTitleId = Folder.isType(mFolderType, UIProvider.FolderType.SPAM) ? in onCreateDialog()
DFolderDisplayer.java32 import com.android.mail.providers.UIProvider.FolderType;
DConversationListFragment.java1076 if (mFolder.isType(UIProvider.FolderType.OUTBOX)) { in setSwipeAction()
DAbstractActivityController.java96 import com.android.mail.providers.UIProvider.FolderType;
902 if (folder != null && folder.isType(FolderType.SEARCH)) { in onFolderChanged()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java33 import com.android.emailcommon.mail.Folder.FolderType;
288 assertFalse(mFolder.canCreate(FolderType.HOLDS_FOLDERS)); in testSmallFolderFunctions()
289 assertFalse(mFolder.canCreate(FolderType.HOLDS_MESSAGES)); in testSmallFolderFunctions()
290 assertFalse(mFolder.create(FolderType.HOLDS_FOLDERS)); in testSmallFolderFunctions()
291 assertFalse(mFolder.create(FolderType.HOLDS_MESSAGES)); in testSmallFolderFunctions()
DImapStoreUnitTests.java49 import com.android.emailcommon.mail.Folder.FolderType;
517 assertTrue(mFolder.canCreate(FolderType.HOLDS_FOLDERS)); in testSmallFolderFunctions()
518 assertTrue(mFolder.canCreate(FolderType.HOLDS_MESSAGES)); in testSmallFolderFunctions()
1541 assertTrue(folder.canCreate(FolderType.HOLDS_MESSAGES)); in testCreate()
1548 assertTrue(folder.create(FolderType.HOLDS_MESSAGES)); in testCreate()
1559 assertFalse(folder.create(FolderType.HOLDS_MESSAGES)); in testCreate()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DSelectedConversationsActionMenu.java41 import com.android.mail.providers.UIProvider.FolderType;
172 if (mFolder.isType(UIProvider.FolderType.STARRED)) { in onActionItemClicked()
414 final boolean showRemoveFolder = mFolder != null && mFolder.isType(FolderType.DEFAULT) in onPrepareActionMode()
465 boolean shouldShowDiscardOutbox = mFolder != null && mFolder.isType(FolderType.OUTBOX); in onPrepareActionMode()
470 final boolean showDelete = mFolder != null && !mFolder.isType(FolderType.OUTBOX) in onPrepareActionMode()
DConversationItemView.java74 import com.android.mail.providers.UIProvider.FolderType;
561 ignoreFolderType = FolderType.INBOX; in bind()
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DBaseWidgetProvider.java39 import com.android.mail.providers.UIProvider.FolderType;
136 final int folderType = intent.getIntExtra(EXTRA_FOLDER_TYPE, FolderType.DEFAULT); in onReceive()
266 folder == null ? FolderType.DEFAULT : folder.type, in doInBackground()
450 updateWidgetInternal(context, widgetId, null, FolderType.DEFAULT, 0, null, null, in validateAllWidgetInformation()
DWidgetService.java52 import com.android.mail.providers.UIProvider.FolderType;
255 mFolderType = intent.getIntExtra(WidgetProvider.EXTRA_FOLDER_TYPE, FolderType.DEFAULT); in MailFactory()
444 if ((mFolderType & FolderType.INBOX) != 0) {
445 ignoreFolderType = FolderType.INBOX;
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMockFolder.java40 public boolean canCreate(FolderType type) { in canCreate()
45 public boolean create(FolderType type) { in create()
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java47 import com.android.emailcommon.mail.Folder.FolderType;
448 if (!remoteFolder.create(FolderType.HOLDS_MESSAGES)) { in synchronizeMailboxGeneric()
1225 remoteTrashFolder.create(FolderType.HOLDS_MESSAGES); in processPendingMoveToTrash()
1333 if (!remoteFolder.create(FolderType.HOLDS_MESSAGES)) { in processPendingAppend()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DPop3Store.java297 public boolean canCreate(FolderType type) { in canCreate()
302 public boolean create(FolderType type) { in create()
DImapFolder.java224 public boolean canCreate(FolderType type) { in canCreate()
229 public boolean create(FolderType type) throws MessagingException { in create()