/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | FolderSyncParser.java | 346 Mailbox mailbox = new Mailbox(); in addParser() local 347 mailbox.mDisplayName = name; in addParser() 348 mailbox.mServerId = serverId; in addParser() 349 mailbox.mAccountKey = mAccountId; in addParser() 350 mailbox.mType = Mailbox.TYPE_MAIL; in addParser() 353 mailbox.mSyncInterval = Mailbox.CHECK_INTERVAL_NEVER; in addParser() 356 mailbox.mType = Mailbox.TYPE_INBOX; in addParser() 357 mailbox.mSyncInterval = mAccount.mSyncInterval; in addParser() 360 mailbox.mType = Mailbox.TYPE_CONTACTS; in addParser() 361 mailbox.mSyncInterval = mAccount.mSyncInterval; in addParser() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/ |
D | MailboxField.java | 32 private final Mailbox mailbox; field in MailboxField 35 …ld(final String name, final String body, final String raw, final Mailbox mailbox, final ParseExcep… in MailboxField() argument 37 this.mailbox = mailbox; in MailboxField() 42 return mailbox; in getMailbox() 53 Mailbox mailbox = null; in parse() local 58 mailbox = mailboxList.get(0); in parse() 67 return new MailboxField(name, body, raw, mailbox, parseException); in parse()
|
/packages/apps/Email/src/com/android/email/mail/ |
D | Store.java | 183 protected static void updateMailbox(Mailbox mailbox, long accountId, String mailboxPath, in updateMailbox() argument 185 mailbox.mAccountKey = accountId; in updateMailbox() 186 mailbox.mDelimiter = delimiter; in updateMailbox() 192 mailbox.mDisplayName = displayPath; in updateMailbox() 194 mailbox.mFlags = Mailbox.FLAG_HOLDS_MAIL | Mailbox.FLAG_ACCEPTS_MOVED_MAIL; in updateMailbox() 196 mailbox.mFlagVisible = true; in updateMailbox() 199 mailbox.mServerId = mailboxPath; in updateMailbox() 205 mailbox.mType = type; in updateMailbox() 207 mailbox.mVisibleLimit = Email.VISIBLE_LIMIT_DEFAULT; in updateMailbox()
|
/packages/apps/Email/src/com/android/email/ |
D | MessagingController.java | 528 public void downloadFlagAndEnvelope(final Account account, final Mailbox mailbox, in downloadFlagAndEnvelope() argument 564 message, account.mId, mailbox.mId); in downloadFlagAndEnvelope() 618 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, searchParams.mMailboxId); in searchMailboxImpl() local 620 if (account == null || mailbox == null || destMailbox == null) { in searchMailboxImpl() 630 Folder remoteFolder = remoteStore.getFolder(mailbox.mServerId); in searchMailboxImpl() 687 message, account.mId, mailbox.mId); in searchMailboxImpl() 696 localMessage.mProtocolSearchInfo = mailbox.mServerId; in searchMailboxImpl() 729 private SyncResults synchronizeMailboxGeneric(final Account account, final Mailbox mailbox) in synchronizeMailboxGeneric() argument 742 if (mailbox.mType == Mailbox.TYPE_DRAFTS || mailbox.mType == Mailbox.TYPE_OUTBOX) { in synchronizeMailboxGeneric() 743 int totalMessages = EmailContent.count(mContext, mailbox.getUri(), null, null); in synchronizeMailboxGeneric() [all …]
|
D | FolderProperties.java | 140 public String getDisplayName(Mailbox mailbox) { in getDisplayName() argument 141 return getDisplayName(mailbox.mType, mailbox.mId, mailbox.mDisplayName); in getDisplayName()
|
D | Controller.java | 296 Mailbox mailbox = getAttachmentMailbox(); in loadMessageFromUri() local 297 if (mailbox == null) return null; in loadMessageFromUri() 307 LegacyConversions.updateMessageFields(msg, pop3Message, 0, mailbox.mId); in loadMessageFromUri() 419 Mailbox mailbox = in updateMailbox() 421 if (account == null || mailbox == null || in updateMailbox() 422 mailbox.mType == Mailbox.TYPE_SEARCH) { in updateMailbox() 425 mLegacyController.synchronizeMailbox(account, mailbox, mLegacyListener); in updateMailbox() 686 Mailbox mailbox = Mailbox.restoreMailboxWithId(mProviderContext, mailboxId); in loadMoreMessages() 687 if (mailbox == null) { in loadMoreMessages() 690 if (mailbox.mType == Mailbox.TYPE_SEARCH) { in loadMoreMessages() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessagesAdapter.java | 123 boolean found, Account account, Mailbox mailbox, boolean isEasAccount, in MessagesCursor() argument 128 mMailbox = mailbox; in MessagesCursor() 316 Mailbox mailbox = null; in loadExtras() local 324 mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId); in loadExtras() 325 if (mailbox != null) { in loadExtras() 326 account = Account.restoreAccountWithId(mContext, mailbox.mAccountKey); in loadExtras() 332 mailbox = null; in loadExtras() 337 return wrapCursor(baseCursor, found, account, mailbox, isEasAccount, in loadExtras() 348 boolean found, Account account, Mailbox mailbox, boolean isEasAccount, in wrapCursor() argument 350 return new MessagesCursor(cursor, found, account, mailbox, isEasAccount, in wrapCursor() [all …]
|
D | UIControllerBase.java | 696 private static boolean shouldDoGlobalSearch(Account account, Mailbox mailbox) { in shouldDoGlobalSearch() argument 698 && (mailbox.mType == Mailbox.TYPE_INBOX); in shouldDoGlobalSearch() 709 Mailbox mailbox = getSearchableMailbox(); in getSearchHint() local 711 if (mailbox == null) { in getSearchHint() 715 if (shouldDoGlobalSearch(account, mailbox)) { in getSearchHint() 720 String mailboxName = FolderProperties.getInstance(mActivity).getDisplayName(mailbox); in getSearchHint() 804 Mailbox mailbox = getMessageListFragment().getMailbox(); in onPrepareOptionsMenu() local 805 mailboxHasServerCounterpart = (mailbox != null) in onPrepareOptionsMenu() 806 && mailbox.loadsFromServer(protocol); in onPrepareOptionsMenu()
|
D | MailboxFragmentAdapter.java | 575 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); in loadInBackground() local 576 if (mailbox == null) continue; in loadInBackground() 583 addMailboxRow(recentCursor, mailboxId, mailbox.mDisplayName, mailbox.mType, in loadInBackground() 584 unreadCount, messageCount, ROW_TYPE_MAILBOX, mailbox.mFlags, in loadInBackground() 585 mailbox.mAccountKey); in loadInBackground()
|
D | MessageViewFragment.java | 294 protected void onMessageShown(long messageId, Mailbox mailbox) { in onMessageShown() argument 295 super.onMessageShown(messageId, mailbox); in onMessageShown() 299 && mailbox.canHaveMessagesMoved(); in onMessageShown() 309 enableReplyForwardButtons(Mailbox.isMailboxTypeReplyAndForwardable(mailbox.mType)); in onMessageShown()
|
D | RecentMailboxManager.java | 161 long mailbox = Controller.getInstance(mContext).findOrCreateMailboxOfType( 163 touchMailboxSynchronous(accountId, mailbox, time);
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
D | SyncAdapterTestCase.java | 80 Mailbox mailbox = new Mailbox(); in getTestService() local 81 mailbox.mId = -1; in getTestService() 82 return getTestService(mAccount, mailbox); in getTestService() 85 EasSyncService getTestService(Account account, Mailbox mailbox) { in getTestService() argument 88 service.mMailbox = mailbox; in getTestService()
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
D | SyncAdapterTestCase.java | 80 Mailbox mailbox = new Mailbox(); in getTestService() local 81 mailbox.mId = -1; in getTestService() 82 return getTestService(mAccount, mailbox); in getTestService() 85 EasSyncService getTestService(Account account, Mailbox mailbox) { in getTestService() argument 88 service.mMailbox = mailbox; in getTestService()
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | ImapStore.java | 326 final Mailbox mailbox = folder.mMailbox; in createHierarchy() local 327 int delimiterIdx = mailbox.mServerId.lastIndexOf(mailbox.mDelimiter); in createHierarchy() 339 mailbox.mParentKey = parentKey; in createHierarchy() 356 Mailbox mailbox = Mailbox.getMailboxForPath(context, accountId, mailboxPath); in addMailbox() local 357 if (mailbox.isSaved()) { in addMailbox() 360 folder.mHash = mailbox.getHashes(); in addMailbox() 362 updateMailbox(mailbox, accountId, mailboxPath, delimiter, selectable, in addMailbox() 368 folder.mHash = mailbox.getHashes(); in addMailbox() 370 mailbox.save(mContext); in addMailbox() 372 folder.mMailbox = mailbox; in addMailbox()
|
D | Pop3Store.java | 163 Mailbox mailbox = Mailbox.getMailboxForPath(mContext, mAccount.mId, POP3_MAILBOX_NAME); in updateFolders() local 164 updateMailbox(mailbox, mAccount.mId, POP3_MAILBOX_NAME, '\0', true, Mailbox.TYPE_INBOX); in updateFolders() 166 mailbox.mParentKey = Mailbox.NO_MAILBOX; in updateFolders() 167 if (mailbox.isSaved()) { in updateFolders() 168 mailbox.update(mContext, mailbox.toContentValues()); in updateFolders() 170 mailbox.save(mContext); in updateFolders()
|
D | ImapFolder.java | 1058 final Mailbox mailbox = mMailbox; in save() local 1059 if (!mailbox.isSaved()) { in save() 1060 mailbox.save(context); in save() 1061 mHash = mailbox.getHashes(); in save() 1063 Object[] hash = mailbox.getHashes(); in save() 1065 mailbox.update(context, mailbox.toContentValues()); in save()
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | RecentMailboxManagerTest.java | 93 for (Mailbox mailbox : mMailboxArray) { in testTouch() 95 Mailbox untouchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId); in testTouch() 96 if (!defaultRecents.contains(mailbox.mType)) { in testTouch() 101 mManager.touch(1L, mailbox.mId).get(); in testTouch() 104 Mailbox touchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId); in testTouch() 111 for (Mailbox mailbox : mMailboxArray) { in testTouch() 113 Mailbox touchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId); in testTouch()
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/ |
D | MailboxList.java | 66 Mailbox mailbox = get(i); in print() local 67 System.out.println(mailbox.toString()); in print()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | MailboxSettings.java | 345 final Mailbox mailbox = mMailbox; in saveToDatabase() local 354 if (mailbox.mType == Mailbox.TYPE_INBOX) { in saveToDatabase() 359 cv.put(MailboxColumns.SYNC_INTERVAL, mailbox.mSyncInterval); in saveToDatabase() 360 cv.put(MailboxColumns.SYNC_LOOKBACK, mailbox.mSyncLookback); in saveToDatabase() 361 uri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailbox.mId); in saveToDatabase() 372 RefreshManager.getInstance(context).refreshMessageList(account.mId, mailbox.mId, in saveToDatabase()
|
/packages/apps/Email/src/com/android/email/widget/ |
D | EmailWidgetLoader.java | 145 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId); in loadInBackground() local 146 if (mailbox != null) { in loadInBackground() 147 mailboxName = mailbox.mDisplayName; // regular mailbox in loadInBackground()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | ExchangeService.java | 629 Mailbox mailbox = in deleteAccountPIMData() 631 if (mailbox != null) { in deleteAccountPIMData() 632 EasSyncService service = EasSyncService.getServiceForMailbox(exchangeService, mailbox); in deleteAccountPIMData() 636 mailbox = in deleteAccountPIMData() 638 if (mailbox != null) { in deleteAccountPIMData() 639 EasSyncService service = EasSyncService.getServiceForMailbox(exchangeService, mailbox); in deleteAccountPIMData() 968 Mailbox mailbox = Mailbox.restoreMailboxOfType(INSTANCE, in onChange() 971 if (mailbox == null) return; in onChange() 979 stopManualSync(mailbox.mId); in onChange() 983 INSTANCE, mailbox); in onChange() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Mailbox.java | 283 Mailbox mailbox = null; in restoreMailboxForPath() local 285 mailbox = getContent(c, Mailbox.class); in restoreMailboxForPath() 292 return mailbox; in restoreMailboxForPath() 303 Mailbox mailbox = restoreMailboxForPath(context, accountId, path); in getMailboxForPath() local 304 if (mailbox == null) { in getMailboxForPath() 305 mailbox = new Mailbox(); in getMailboxForPath() 307 return mailbox; in getMailboxForPath()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 918 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId); 920 if (mailbox == null) { 933 long lastNotifiedMessageId = mailbox.mLastNotifiedMessageKey; 939 ContentValues values = mailbox.toContentValues(); 945 new String[] { Long.toString(mailbox.mId) }); 1178 Mailbox mailbox = 1182 if (mailbox == null) { 1195 new String[] { Long.toString(mailbox.mId) }, 1199 context, ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailbox.mId), 1204 ContentValues values = mailbox.toContentValues(); [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/ |
D | AddressListParser.jj | 183 void mailbox() : 184 {/*@bgen(jjtree) mailbox */ 190 {/*@bgen(jjtree) mailbox */ 265 [ mailbox() ] 268 [ mailbox() ]
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityMediumTests.java | 100 Mailbox mailbox = in testAttachmentExists() local 102 Message message = ProviderTestUtils.setupMessage("foo", account.mId, mailbox.mId, false, in testAttachmentExists()
|