HomeSort by relevance Sort by last modified time
    Searched defs:mailbox (Results 1 - 22 of 22) sorted by null

  /packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/
MailboxList.java 25 * An immutable, random-access list of Mailbox objects.
34 * @param mailboxes An ArrayList that contains only Mailbox objects.
54 public Mailbox get(int index) {
57 return (Mailbox)mailboxes.get(index);
61 * Dumps a representation of this mailbox list to
66 Mailbox mailbox = get(i); local
67 System.out.println(mailbox.toString());
  /packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/
MailboxField.java 27 import org.apache.james.mime4j.field.address.Mailbox;
32 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) {
37 this.mailbox = mailbox;
41 public Mailbox getMailbox() {
42 return mailbox;
53 Mailbox mailbox = null; local
    [all...]
  /packages/apps/Exchange/tests/src/com/android/exchange/adapter/
SyncAdapterTestCase.java 25 import com.android.emailcommon.provider.Mailbox;
40 public Mailbox mMailbox;
80 Mailbox mailbox = new Mailbox(); local
81 mailbox.mId = -1;
82 return getTestService(mAccount, mailbox);
85 EasSyncService getTestService(Account account, Mailbox mailbox) {
88 service.mMailbox = mailbox;
    [all...]
  /packages/apps/Email/tests/src/com/android/emailcommon/utility/
UtilityMediumTests.java 26 import com.android.emailcommon.provider.Mailbox;
90 Mailbox mailbox = local
91 ProviderTestUtils.setupMailbox("mailbox", account.mId, true, mMockContext);
92 Message message = ProviderTestUtils.setupMessage("foo", account.mId, mailbox.mId, false,
UtilityUnitTests.java 27 import com.android.emailcommon.provider.Mailbox;
294 Mailbox mailbox = ProviderTestUtils.setupMailbox("box", account.mId, true, providerContext); local
297 Attachment att = ProviderTestUtils.setupAttachment(mailbox.mId, "name", 123, true,
312 return Utility.getFirstRowLong(mockContext, Mailbox.CONTENT_URI,
325 Mailbox mailbox1_1 = ProviderTestUtils.setupMailbox("mbox1_1", account1.mId, true,
326 mockContext, Mailbox.TYPE_INBOX);
327 Mailbox mailbox1_2 = ProviderTestUtils.setupMailbox("mbox1_2", account1.mId, true,
328 mockContext, Mailbox.TYPE_MAIL);
329 Mailbox mailbox1_3 = ProviderTestUtils.setupMailbox("mbox1_3", account1.mId, true
    [all...]
  /packages/apps/Email/src/com/android/email/widget/
EmailWidgetLoader.java 25 import com.android.emailcommon.provider.Mailbox;
85 * Gets the count to be shown on the widget header. If the currently viewed mailbox ID is
86 * not {@link Mailbox#QUERY_ALL_FAVORITES}, it is the unread count, which is different from
96 /** Gets the display name of the mailbox */
118 if (mMailboxId != Mailbox.QUERY_ALL_FAVORITES) {
145 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId); local
146 if (mailbox != null) {
147 mailboxName = mailbox.mDisplayName; // regular mailbo
    [all...]
  /packages/apps/Email/src/com/android/email/mail/store/
Pop3Store.java 39 import com.android.emailcommon.provider.Mailbox;
59 /** The name of the only mailbox available to POP3 accounts */
155 Mailbox.TYPE_DRAFTS,
156 Mailbox.TYPE_OUTBOX,
157 Mailbox.TYPE_SENT,
158 Mailbox.TYPE_TRASH
163 Mailbox mailbox = Mailbox.getMailboxForPath(mContext, mAccount.mId, POP3_MAILBOX_NAME); local
164 updateMailbox(mailbox, mAccount.mId, POP3_MAILBOX_NAME, '\0', true, Mailbox.TYPE_INBOX)
    [all...]
ImapStore.java 45 import com.android.emailcommon.provider.Mailbox;
319 * Creates a mailbox hierarchy out of the flat data provided by the server.
326 final Mailbox mailbox = folder.mMailbox; local
327 int delimiterIdx = mailbox.mServerId.lastIndexOf(mailbox.mDelimiter);
328 long parentKey = Mailbox.NO_MAILBOX;
332 final Mailbox parentMailbox = (parentFolder == null) ? null : parentFolder.mMailbox;
336 |= (Mailbox.FLAG_HAS_CHILDREN | Mailbox.FLAG_CHILDREN_VISIBLE)
356 Mailbox mailbox = Mailbox.getMailboxForPath(context, accountId, mailboxPath); local
    [all...]
ImapFolder.java 49 import com.android.emailcommon.provider.Mailbox;
75 /** The local mailbox associated with this remote folder */
76 Mailbox mMailbox;
1059 final Mailbox mailbox = mMailbox; local
    [all...]
  /packages/apps/Email/src/com/android/email/activity/setup/
MailboxSettings.java 42 import com.android.emailcommon.provider.Mailbox;
48 * "Mailbox settings" activity.
50 * 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";
68 // Account and Mailbox -- directly loaded by LoadMailboxTask
70 private Mailbox mMailbox;
77 * Starts the activity for a mailbox.
89 final long mailboxId = getIntent().getLongExtra(EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX)
313 final Mailbox mailbox = mMailbox; local
    [all...]
  /packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/parser/
AddressListParser.java 192 final public void mailbox() throws ParseException { method in class:AddressListParser
193 /*@bgen(jjtree) mailbox */
281 mailbox(); method
302 mailbox(); method
  /packages/apps/Email/src/com/android/email/activity/
MailboxFragmentAdapter.java 48 import com.android.emailcommon.provider.Mailbox;
55 * 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
568 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); local
    [all...]
MessagesAdapter.java 40 import com.android.emailcommon.provider.Mailbox;
105 /** Whether the mailbox is found. */
107 /** {@link Account} that owns the mailbox. Null for combined mailboxes. */
109 /** {@link Mailbox} for the loaded mailbox. Null for combined mailboxes. */
110 public final Mailbox mMailbox;
113 /** {@code true} if the loaded mailbox can be refreshed. */
119 boolean found, Account account, Mailbox mailbox, boolean isEasAccount,
124 mMailbox = mailbox;
305 Mailbox mailbox = null; local
    [all...]
UIControllerBase.java 41 import com.android.emailcommon.provider.Mailbox;
542 openMailbox(accountId, Mailbox.QUERY_ALL_INBOXES);
544 long inboxId = Mailbox.findMailboxOfType(mActivity, accountId, Mailbox.TYPE_INBOX);
545 if (inboxId == Mailbox.NO_MAILBOX) {
562 * Returns the id of the parent mailbox used for the mailbox list fragment.
569 : Mailbox.NO_MAILBOX;
573 * Returns the id of the mailbox used for the message list fragment.
580 : Mailbox.NO_MAILBOX
703 Mailbox mailbox = getSearchableMailbox(); local
796 Mailbox mailbox = getMessageListFragment().getMailbox(); local
    [all...]
  /packages/apps/Exchange/src/com/android/exchange/
EasOutboxService.java 39 import com.android.emailcommon.provider.Mailbox;
82 public EasOutboxService(Context _context, Mailbox _mailbox) {
262 // Then, we need the serverId of the mailbox
263 cols = Utility.getRowColumns(context, Mailbox.CONTENT_URI, boxId,
314 // The reference message and mailbox are called item and collection in EAS
505 Mailbox mailbox = Mailbox.restoreMailboxOfType(context, accountId, Mailbox.TYPE_OUTBOX); local
506 if (mailbox != null)
    [all...]
EasSyncService.java 51 import com.android.emailcommon.provider.Mailbox;
118 '=' + Mailbox.CHECK_INTERVAL_PING;
120 MailboxColumns.SYNC_INTERVAL + " IN (" + Mailbox.CHECK_INTERVAL_PING +
121 ',' + Mailbox.CHECK_INTERVAL_PUSH + ") AND " + MailboxColumns.TYPE + "!=\"" +
122 Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + '\"';
125 '=' + Mailbox.CHECK_INTERVAL_PUSH_HOLD;
137 // The amount of time the account mailbox will sleep if there are no pingable mailboxes
142 "Account mailbox sleeping for " + (ACCOUNT_MAILBOX_SLEEP_TIME / MINUTES) + "m";
242 public EasSyncService(Context _context, Mailbox _mailbox) {
1883 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); local
2239 Mailbox mailbox = target.mMailbox; local
    [all...]
ExchangeService.java 61 import com.android.emailcommon.provider.Mailbox;
109 // The ExchangeService's mailbox "id"
128 // Mailbox was marked push
146 Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + " and " + MailboxColumns.SYNC_INTERVAL +
147 " IN (" + Mailbox.CHECK_INTERVAL_PING + ',' + Mailbox.CHECK_INTERVAL_PUSH + ')';
149 MailboxColumns.ACCOUNT_KEY + "=? and type in (" + Mailbox.TYPE_INBOX + ','
150 + Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + ',' + Mailbox.TYPE_CONTACTS + ','
151 + Mailbox.TYPE_CALENDAR + ')'
1304 Mailbox mailbox = new Mailbox(); local
    [all...]
  /packages/apps/Exchange/src/com/android/exchange/adapter/
FolderSyncParser.java 32 import com.android.emailcommon.provider.Mailbox;
75 // Chunk size for our mailbox commits
84 MailboxColumns.TYPE + "!=" + Mailbox.TYPE_EAS_ACCOUNT_MAILBOX;
118 UNINITIALIZED_PARENT_KEY.put(MailboxColumns.PARENT_KEY, Mailbox.PARENT_KEY_UNINITIALIZED);
139 // only the account mailbox
143 mContentResolver.delete(Mailbox.CONTENT_URI, ALL_BUT_ACCOUNT_MAILBOX,
172 // Save away any mailbox sync information that is NOT default
175 mContentResolver.delete(Mailbox.CONTENT_URI, ALL_BUT_ACCOUNT_MAILBOX,
210 return mContentResolver.query(Mailbox.CONTENT_URI, MAILBOX_ID_COLUMNS_PROJECTION,
219 // Find the mailbox in this account with the given serverI
344 Mailbox mailbox = new Mailbox(); local
547 Mailbox mailbox = addParser(); local
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
Mailbox.java 34 public class Mailbox extends EmailContent implements SyncColumns, MailboxColumns, Parcelable {
35 public static final String TABLE_NAME = "Mailbox";
37 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox");
124 // Sentinel values for the mSyncInterval field of both Mailbox records
128 // Ping indicates that the EAS mailbox is synced based on a "ping" from the server
130 // Push-Hold indicates an EAS push or ping Mailbox shouldn't sync just yet
139 public static final Integer[] INVALID_DROP_TARGETS = new Integer[] {Mailbox.TYPE_DRAFTS,
140 Mailbox.TYPE_OUTBOX, Mailbox.TYPE_SENT};
143 MailboxColumns.TYPE + "<" + Mailbox.TYPE_NOT_EMAIL
263 Mailbox mailbox = null; local
283 Mailbox mailbox = restoreMailboxForPath(context, accountId, path); local
    [all...]
  /packages/apps/Email/src/com/android/email/
Controller.java 50 import com.android.emailcommon.provider.Mailbox;
95 MailboxColumns.TYPE + "=" + Mailbox.TYPE_ATTACHMENT;
112 Mailbox.TYPE_EAS_ACCOUNT_MAILBOX;
207 * Delete all Messages that live in the attachment mailbox
210 // Note: There should only be one attachment mailbox at present
214 c = resolver.query(Mailbox.CONTENT_URI, EmailContent.ID_PROJECTION,
232 * Get a mailbox based on a sqlite WHERE clause
234 private Mailbox getGlobalMailboxWhere(String where) {
235 Cursor c = mProviderContext.getContentResolver().query(Mailbox.CONTENT_URI,
236 Mailbox.CONTENT_PROJECTION, where, null, null)
296 Mailbox mailbox = getAttachmentMailbox(); local
790 Mailbox mailbox = Mailbox.getMailboxForMessageId(mProviderContext, messageId); local
    [all...]
MessagingController.java 56 import com.android.emailcommon.provider.Mailbox;
74 * 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
146 private Mailbox mLastSearchRemoteMailbox = null;
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
274 Mailbox.CONTENT_URI,
280 // Step 3: Remove any local mailbox not on the remote list
283 // Short circuit if we have a remote mailbox with the same nam
616 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, searchParams.mMailboxId); local
1121 Mailbox mailbox = new Mailbox(); local
1166 Mailbox mailbox = getRemoteMailboxForMessage(oldMessage); local
1231 Mailbox mailbox = null; local
1327 Mailbox mailbox = null; local
    [all...]
  /packages/apps/Email/tests/src/com/android/email/mail/store/
ImapStoreUnitTests.java 57 import com.android.emailcommon.provider.Mailbox;
87 * {@link Mailbox#FLAG_ACCEPTS_MOVED_MAIL} and {@link Mailbox#FLAG_HOLDS_MAIL}.
538 * TODO: Test the process of opening and indexing a mailbox with one unread message in it.
2307 Mailbox mailbox = new Mailbox(); local
    [all...]

Completed in 940 milliseconds