Searched refs:mailbox (Results 1 - 25 of 36) sorted by relevance

12

/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/
H A DMailboxField.java32 private final Mailbox mailbox; field in class:MailboxField
35 protected MailboxField(final String name, final String body, final String raw, final Mailbox mailbox, final ParseException parseException) { argument
37 this.mailbox = mailbox;
42 return mailbox;
53 Mailbox mailbox = null;
58 mailbox = mailboxList.get(0);
67 return new MailboxField(name, body, raw, mailbox, parseException);
/packages/apps/Email/src/com/android/email/mail/
H A DStore.java180 * Updates the fields within the given mailbox. Only the fields that are important to
183 protected static void updateMailbox(Mailbox mailbox, long accountId, String mailboxPath, argument
185 mailbox.mAccountKey = accountId;
186 mailbox.mDelimiter = delimiter;
192 mailbox.mDisplayName = displayPath;
194 mailbox.mFlags = Mailbox.FLAG_HOLDS_MAIL | Mailbox.FLAG_ACCEPTS_MOVED_MAIL;
196 mailbox.mFlagVisible = true;
197 //mailbox.mParentKey;
198 //mailbox.mParentServerId;
199 mailbox
[all...]
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DFolderSyncParser.java75 // Chunk size for our mailbox commits
139 // only the account mailbox
172 // Save away any mailbox sync information that is NOT default
219 // Find the mailbox in this account with the given serverId
270 * For every mailbox in this account that has a non-default interval or lookback, save those
293 * For every set of saved mailbox sync options, try to find and restore those values
344 Mailbox mailbox = new Mailbox();
345 mailbox.mDisplayName = name;
346 mailbox.mServerId = serverId;
347 mailbox
415 isValidMailFolder(Mailbox mailbox, HashMap<String, Mailbox> mailboxMap) argument
[all...]
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/
H A DMailboxList.java61 * Dumps a representation of this mailbox list to
66 Mailbox mailbox = get(i);
67 System.out.println(mailbox.toString());
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
H A DSyncAdapterTestCase.java80 Mailbox mailbox = new Mailbox();
81 mailbox.mId = -1;
82 return getTestService(mAccount, mailbox);
85 EasSyncService getTestService(Account account, Mailbox mailbox) { argument
88 service.mMailbox = mailbox;
/packages/apps/Email/src/com/android/email/activity/
H A DMessagesAdapter.java107 /** Whether the mailbox is found. */
109 /** {@link Account} that owns the mailbox. Null for combined mailboxes. */
111 /** {@link Mailbox} for the loaded mailbox. Null for combined mailboxes. */
115 /** {@code true} if the loaded mailbox can be refreshed. */
121 boolean found, Account account, Mailbox mailbox, boolean isEasAccount,
126 mMailbox = mailbox;
313 Mailbox mailbox = null;
318 // Magic mailbox.
321 mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId);
322 if (mailbox !
120 MessagesCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts) argument
344 wrapCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts) argument
355 SearchResultsCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts, Mailbox searchedMailbox, int resultsCount) argument
419 wrapCursor(Cursor cursor, boolean found, Account account, Mailbox mailbox, boolean isEasAccount, boolean isRefreshable, int countTotalAccounts) argument
[all...]
H A DUIControllerBase.java568 * Returns the id of the parent mailbox used for the mailbox list fragment.
579 * Returns the id of the mailbox used for the message list fragment.
674 * Determines the mailbox to search, if a search was to be initiated now.
675 * This will return {@code null} if the UI is not focused on any particular mailbox to search
684 // If already in a search, future searches will search the original mailbox.
694 * initiates a search on the given mailbox.
696 private static boolean shouldDoGlobalSearch(Account account, Mailbox mailbox) { argument
698 && (mailbox.mType == Mailbox.TYPE_INBOX);
709 Mailbox mailbox
[all...]
H A DRecentMailboxManager.java72 /** Mailbox types for default "recent mailbox" entries if none exist */
95 /** Updates the specified mailbox's touch time. Returns an async task for test only. */
129 /** Updates the last touched time for the mailbox in the background */
161 long mailbox = Controller.getInstance(mContext).findOrCreateMailboxOfType(
163 touchMailboxSynchronous(accountId, mailbox, time);
H A DMailboxFragmentAdapter.java55 * Mailbox cursor adapter for the mailbox list fragment.
57 * A mailbox cursor may contain one of several different types of data. Currently, this
59 * 1. The standard inbox, mailbox view
60 * 2. The combined mailbox view
73 /** Callback for setting background of mailbox list items during a drag */
92 // The following types are used when drilling into a mailbox
93 /** The current mailbox */
105 * Projection for a typical mailbox or account row.
108 * this column, we define a "mailbox_id" column that contains the real mailbox ID; which
117 * Projection used to retrieve immediate children for a mailbox
[all...]
H A DMessageViewFragment.java78 /** Whether or not the message can be moved from the mailbox it's in. */
110 * Called right before the current message will be deleted or moved to another mailbox.
296 protected void onMessageShown(long messageId, Mailbox mailbox) { argument
297 super.onMessageShown(messageId, mailbox);
301 && mailbox.canHaveMessagesMoved();
311 enableReplyForwardButtons(Mailbox.isMailboxTypeReplyAndForwardable(mailbox.mType));
/packages/apps/Email/src/com/android/email/
H A DMessagingController.java74 * that require remote mailbox access. This class is used to serialize and
141 * Simple cache for last search result mailbox by account and serverId, since the most common
142 * case will be repeated use of the same mailbox
256 // TODO For now, mailbox addition occurs in the server-dependent store implementation,
257 // but, mailbox removal occurs here. Instead, each store should be responsible for
280 // Step 3: Remove any local mailbox not on the remote list
283 // Short circuit if we have a remote mailbox with the same name
300 // Drop all attachment files related to this mailbox
303 // Delete the mailbox; database triggers take care of related
420 // Note: mailbox ke
528 downloadFlagAndEnvelope(final Account account, final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages, HashMap<String, LocalMessageInfo> localMessageMap, final ArrayList<Long> unseenMessages) argument
729 synchronizeMailboxGeneric(final Account account, final Mailbox mailbox) argument
1416 processUploadMessage(ContentResolver resolver, Store remoteStore, Account account, Mailbox mailbox, long messageId) argument
1460 processPendingDataChange(Store remoteStore, Mailbox mailbox, boolean changeRead, boolean changeFlagged, boolean changeMailbox, boolean changeAnswered, EmailContent.Message oldMessage, final EmailContent.Message newMessage) argument
[all...]
H A DFolderProperties.java109 * Return the display name for a mailbox for UI. For normal mailboxes, it just returns
114 * @param mailboxId ID of a mailbox.
115 * @param originalDisplayName Display name of the mailbox stored in the database.
126 * Same as {@link #getDisplayName(int, long, String)}, but gets information form a mailbox
140 public String getDisplayName(Mailbox mailbox) { argument
141 return getDisplayName(mailbox.mType, mailbox.mId, mailbox.mDisplayName);
145 * Return the message count which should be shown with a mailbox name. Depending on
146 * the mailbox typ
[all...]
H A DController.java207 * Delete all Messages that live in the attachment mailbox
210 // Note: There should only be one attachment mailbox at present
232 * Get a mailbox based on a sqlite WHERE clause
250 * Returns the attachment mailbox (where we store eml attachment Emails), creating one
252 * @return the global attachment mailbox
270 * Returns the search mailbox for the specified account, creating one if necessary
271 * @return the search mailbox for the passed in account
291 * Create a Message from the Uri and store it in the attachment mailbox
296 Mailbox mailbox = getAttachmentMailbox();
297 if (mailbox
[all...]
/packages/apps/Email/src/com/android/email/widget/
H A DEmailWidgetLoader.java85 * Gets the count to be shown on the widget header. If the currently viewed mailbox ID is
96 /** Gets the display name of the mailbox */
145 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId);
146 if (mailbox != null) {
147 mailboxName = mailbox.mDisplayName; // regular mailbox
169 * @param mailboxId The mailbox to load; may either be a real mailbox or the pseudo mailbox
181 /** Sets the loader's selection and arguments depending upon the account and mailbox */
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DMailboxSettings.java50 * It's used to update per-mailbox sync settings. It normally updates Mailbox settings, unless
51 * the target mailbox is Inbox, in which case it updates Account settings instead.
60 private static final String BUNDLE_MAILBOX = "MailboxSettings.mailbox";
77 * Starts the activity for a mailbox.
173 finish(); // Account or mailbox removed.
188 // Update the title with the mailbox name.
306 Log.i(Logging.LOG_TAG, "Saving mailbox settings...");
313 final Mailbox mailbox = mMailbox;
322 if (mailbox.mType == Mailbox.TYPE_INBOX) {
327 cv.put(MailboxColumns.SYNC_INTERVAL, mailbox
[all...]
/packages/apps/Email/src/com/android/email/mail/store/
H A DImapStore.java319 * Creates a mailbox hierarchy out of the flat data provided by the server.
326 final Mailbox mailbox = folder.mMailbox;
327 int delimiterIdx = mailbox.mServerId.lastIndexOf(mailbox.mDelimiter);
339 mailbox.mParentKey = parentKey;
345 * exist in the local database, a new row will immediately be created in the mailbox table.
348 * @param accountId The ID of the account the mailbox is to be associated with
349 * @param mailboxPath The path of the mailbox to add
351 * @param selectable If {@code true}, the mailbox can be selected and used to store messages.
356 Mailbox mailbox
[all...]
H A DImapFolder.java75 /** The local mailbox associated with this remote folder */
1059 final Mailbox mailbox = mMailbox;
1060 if (!mailbox.isSaved()) {
1061 mailbox.save(context);
1062 mHash = mailbox.getHashes();
1064 Object[] hash = mailbox.getHashes();
1066 mailbox.update(context, mailbox.toContentValues());
1095 throw new MessagingException("Can't open mailbox: "
H A DPop3Store.java59 /** The name of the only mailbox available to POP3 accounts */
163 Mailbox mailbox = Mailbox.getMailboxForPath(mContext, mAccount.mId, POP3_MAILBOX_NAME);
164 updateMailbox(mailbox, mAccount.mId, POP3_MAILBOX_NAME, '\0', true, Mailbox.TYPE_INBOX);
165 // Force the parent key to be "no mailbox" for the mail POP3 mailbox
166 mailbox.mParentKey = Mailbox.NO_MAILBOX;
167 if (mailbox.isSaved()) {
168 mailbox.update(mContext, mailbox.toContentValues());
170 mailbox
[all...]
/packages/apps/Email/tests/src/com/android/email/activity/
H A DRecentMailboxManagerTest.java37 * Tests for the recent mailbox manager.
93 for (Mailbox mailbox : mMailboxArray) {
95 Mailbox untouchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId);
96 if (!defaultRecents.contains(mailbox.mType)) {
100 // Touch the mailbox
101 mManager.touch(1L, mailbox.mId).get();
104 Mailbox touchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId);
111 for (Mailbox mailbox : mMailboxArray) {
113 Mailbox touchedMailbox = Mailbox.restoreMailboxWithId(mMockContext, mailbox.mId);
237 // The search mailbox shoul
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMailbox.java37 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox");
128 // Ping indicates that the EAS mailbox is synced based on a "ping" from the server
152 /** The "main" mailbox for the account, almost always referred to as "Inbox" */
155 /** Generic mailbox that holds mail */
157 /** Parent-only mailbox; does not hold any mail */
159 /** Drafts mailbox */
161 /** Local mailbox associated with the account's outgoing mail */
181 // A mailbox that holds Messages that are attachments
188 /** Has children in the mailbox hierarchy */
201 // Magic mailbox I
[all...]
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/parser/
H A DAddressListParser.jj183 void mailbox() :
184 {/*@bgen(jjtree) mailbox */
190 {/*@bgen(jjtree) mailbox */
265 [ mailbox() ]
268 [ mailbox() ]
/packages/apps/Exchange/src/com/android/exchange/
H A DEasOutboxService.java262 // Then, we need the serverId of the mailbox
314 // The reference message and mailbox are called item and collection in EAS
505 Mailbox mailbox = Mailbox.restoreMailboxOfType(context, accountId, Mailbox.TYPE_OUTBOX);
506 if (mailbox != null) {
507 msg.mMailboxKey = mailbox.mId;
H A DExchangeService.java109 // The ExchangeService's mailbox "id"
187 // Keeps track of running services (by mailbox id)
190 // Keeps track of services whose last sync ended with an error (by mailbox id)
193 // Keeps track of which services require a wake lock (by mailbox id)
195 // Keeps track of PendingIntents for mailbox alarms (by mailbox id)
427 // If the mailbox is no longer around, remove the entry in the map
580 Mailbox mailbox =
582 if (mailbox != null) {
583 EasSyncService service = new EasSyncService(exchangeService, mailbox);
[all...]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityMediumTests.java100 Mailbox mailbox =
101 ProviderTestUtils.setupMailbox("mailbox", account.mId, true, mMockContext);
102 Message message = ProviderTestUtils.setupMessage("foo", account.mId, mailbox.mId, false,
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DUtility.java895 * Updates the last seen message key in the mailbox data base for the INBOX of the currently
918 Mailbox mailbox =
921 // mailbox has been removed
922 if (mailbox == null) {
925 // We use the highest _id for the account the mailbox table as the "last seen
935 new String[] { Long.toString(mailbox.mId) },
939 context, ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailbox.mId),
944 ContentValues values = mailbox.toContentValues();
950 new String[] { Long.toString(mailbox.mId) });

Completed in 1604 milliseconds

12