Home
last modified time | relevance | path

Searched refs:Mailbox (Results 1 – 25 of 84) sorted by relevance

1234

/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMailboxUtilitiesTests.java21 import com.android.emailcommon.provider.Mailbox;
46 Mailbox.FLAG_ACCEPTS_MOVED_MAIL | Mailbox.FLAG_HOLDS_MAIL |
47 Mailbox.FLAG_HAS_CHILDREN | Mailbox.FLAG_CHILDREN_VISIBLE |
48 Mailbox.FLAG_SUPPORTS_SETTINGS;
50 Mailbox.FLAG_ACCEPTS_MOVED_MAIL | Mailbox.FLAG_HOLDS_MAIL |
51 Mailbox.FLAG_SUPPORTS_SETTINGS;
59 mNullParentKey.putNull(Mailbox.PARENT_KEY); in setUp()
75 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in brokentestSetupParentKeyAndFlag()
76 mProviderContext, Mailbox.TYPE_DRAFTS); in brokentestSetupParentKeyAndFlag()
77 Mailbox box2 = EmailContentSetupUtils.setupMailbox("box2", mAccount.mId, true, in brokentestSetupParentKeyAndFlag()
[all …]
DEmailContentSetupUtils.java21 import com.android.emailcommon.provider.Mailbox;
54 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox()
56 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL, null); in setupMailbox()
59 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox()
64 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox()
65 Context context, int type, Mailbox parentBox) { in setupMailbox()
66 Mailbox box = new Mailbox(); in setupMailbox()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java75 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), in getMessageCount()
80 private static Message createMessage(Context c, Mailbox b, boolean starred, boolean read, in createMessage()
101 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testSave()
104 Mailbox box2 = Mailbox.restoreMailboxWithId(c, box1Id); in testSave()
117 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testDelete()
119 Mailbox box2 = ProviderTestUtils.setupMailbox("box2", account1Id, true, c); in testDelete()
126 int numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
130 Uri uri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, box1Id); in testDelete()
134 numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
138 uri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, box2Id); in testDelete()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailbox.java45 public class Mailbox extends EmailContent implements MailboxColumns, Parcelable { class
270 public static final Integer[] INVALID_DROP_TARGETS = new Integer[] {Mailbox.TYPE_DRAFTS,
271 Mailbox.TYPE_OUTBOX, Mailbox.TYPE_SENT};
274 MailboxColumns.TYPE + "<" + Mailbox.TYPE_NOT_EMAIL +
288 + MailboxColumns.TYPE + "=" + Mailbox.TYPE_OUTBOX + " or "
412 public Mailbox() { in Mailbox() method in Mailbox
419 case Mailbox.TYPE_INBOX: in getSystemMailboxName()
422 case Mailbox.TYPE_OUTBOX: in getSystemMailboxName()
425 case Mailbox.TYPE_DRAFTS: in getSystemMailboxName()
428 case Mailbox.TYPE_TRASH: in getSystemMailboxName()
[all …]
DMailboxUtilities.java38 Mailbox.PARENT_KEY_UNINITIALIZED + ")";
54 long parentId = parentCursor.getLong(Mailbox.CONTENT_ID_COLUMN); in setFlagsAndChildrensParentKey()
56 int parentType = parentCursor.getInt(Mailbox.CONTENT_TYPE_COLUMN); in setFlagsAndChildrensParentKey()
57 String parentServerId = parentCursor.getString(Mailbox.CONTENT_SERVER_ID_COLUMN); in setFlagsAndChildrensParentKey()
59 if (parentType <= Mailbox.TYPE_NOT_EMAIL) { in setFlagsAndChildrensParentKey()
60 parentFlags |= Mailbox.FLAG_HOLDS_MAIL + Mailbox.FLAG_SUPPORTS_SETTINGS; in setFlagsAndChildrensParentKey()
63 if (parentType == Mailbox.TYPE_MAIL || parentType == Mailbox.TYPE_TRASH || in setFlagsAndChildrensParentKey()
64 parentType == Mailbox.TYPE_JUNK || parentType == Mailbox.TYPE_INBOX) { in setFlagsAndChildrensParentKey()
65 parentFlags |= Mailbox.FLAG_ACCEPTS_MOVED_MAIL; in setFlagsAndChildrensParentKey()
73 Cursor childCursor = resolver.query(Mailbox.CONTENT_URI, in setFlagsAndChildrensParentKey()
[all …]
/packages/apps/Email/src/com/android/email/provider/
DDBHelper.java49 import com.android.emailcommon.provider.Mailbox;
75 "create trigger mailbox_delete before delete on " + Mailbox.TABLE_NAME +
87 " begin delete from " + Mailbox.TABLE_NAME +
195 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.MESSAGE_COUNT + in createMessageCountTriggers()
203 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.MESSAGE_COUNT + in createMessageCountTriggers()
211 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.MESSAGE_COUNT + in createMessageCountTriggers()
214 "; update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.MESSAGE_COUNT + in createMessageCountTriggers()
246 + "(select " + MailboxColumns.TYPE + " from " + Mailbox.TABLE_NAME in createDeleteDuplicateMessagesTrigger()
248 + MessageColumns.MAILBOX_KEY + ")!=" + Mailbox.TYPE_SEARCH in createDeleteDuplicateMessagesTrigger()
260 + " and (select " + Mailbox.TABLE_NAME + "." + MailboxColumns.TYPE + " from " in createDeleteDuplicateMessagesTrigger()
[all …]
DEmailProvider.java88 import com.android.emailcommon.provider.Mailbox;
271 array.put(MAILBOX_BASE >> BASE_SHIFT, Mailbox.TABLE_NAME);
413 db.execSQL("update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.PARENT_KEY + "=" in fixParentKeys()
414 + "(select " + Mailbox.ID + " from " + Mailbox.TABLE_NAME + " as b where " in fixParentKeys()
415 + Mailbox.TABLE_NAME + "." + MailboxColumns.PARENT_SERVER_ID + "=" in fixParentKeys()
417 + Mailbox.TABLE_NAME + "." + MailboxColumns.PARENT_SERVER_ID + " not null and " in fixParentKeys()
418 + Mailbox.TABLE_NAME + "." + MailboxColumns.ACCOUNT_KEY in fixParentKeys()
419 + "=b." + Mailbox.ACCOUNT_KEY + ")"); in fixParentKeys()
425 db.execSQL("update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.PARENT_KEY in fixParentKeys()
426 + "=" + Mailbox.NO_MAILBOX + " where " + MailboxColumns.PARENT_KEY in fixParentKeys()
[all …]
DFolderPickerActivity.java34 import com.android.emailcommon.provider.Mailbox;
75 mMailboxType = i.getIntExtra(MAILBOX_TYPE_EXTRA, Mailbox.TYPE_TRASH); in onCreate()
76 long trashMailboxId = Mailbox.findMailboxOfType(this, mAccountId, Mailbox.TYPE_TRASH); in onCreate()
78 if (trashMailboxId != Mailbox.NO_MAILBOX && mInSetup) { in onCreate()
188 Mailbox ofType = Mailbox.restoreMailboxOfType(this, mAccountId, mMailboxType); in select()
190 values.put(MailboxColumns.TYPE, Mailbox.TYPE_MAIL); in select()
192 ContentUris.withAppendedId(Mailbox.CONTENT_URI, ofType.mId), values, in select()
197 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, id); in select()
201 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailbox.mId), values, in select()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DFolderSyncParser.java37 import com.android.emailcommon.provider.Mailbox;
76 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_USER_GENERIC, Mailbox.TYPE_MAIL); in MAILBOX_TYPE_MAP.put()
77 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_INBOX, Mailbox.TYPE_INBOX); in MAILBOX_TYPE_MAP.put()
78 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_DRAFTS, Mailbox.TYPE_DRAFTS); in MAILBOX_TYPE_MAP.put()
79 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_DELETED, Mailbox.TYPE_TRASH); in MAILBOX_TYPE_MAP.put()
80 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_SENT, Mailbox.TYPE_SENT); in MAILBOX_TYPE_MAP.put()
81 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_OUTBOX, Mailbox.TYPE_OUTBOX); in MAILBOX_TYPE_MAP.put()
83 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_CALENDAR, Mailbox.TYPE_CALENDAR); in MAILBOX_TYPE_MAP.put()
84 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_CONTACTS, Mailbox.TYPE_CONTACTS); in MAILBOX_TYPE_MAP.put()
87 MAILBOX_TYPE_MAP.put(Eas.MAILBOX_TYPE_USER_MAIL, Mailbox.TYPE_MAIL); in MAILBOX_TYPE_MAP.put()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DFolderSyncParserTests.java26 import com.android.emailcommon.provider.Mailbox;
55 private Mailbox setupBoxSync(int interval, int lookback, String serverId) { in setupBoxSync()
57 Mailbox box = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, false, in setupBoxSync()
58 mProviderContext, Mailbox.TYPE_MAIL); in setupBoxSync()
70 private boolean syncOptionsSame(Mailbox a, Mailbox b) { in syncOptionsSame()
89 Mailbox box1 = setupBoxSync(Account.CHECK_INTERVAL_NEVER, SyncWindow.SYNC_WINDOW_ACCOUNT, in brokentestSaveAndRestoreMailboxSyncOptions()
91 Mailbox box2 = setupBoxSync(Account.CHECK_INTERVAL_NEVER, SyncWindow.SYNC_WINDOW_ACCOUNT, in brokentestSaveAndRestoreMailboxSyncOptions()
93 Mailbox boxa = setupBoxSync(Account.CHECK_INTERVAL_NEVER, SyncWindow.SYNC_WINDOW_1_MONTH, in brokentestSaveAndRestoreMailboxSyncOptions()
95 Mailbox boxb = setupBoxSync(Account.CHECK_INTERVAL_NEVER, SyncWindow.SYNC_WINDOW_2_WEEKS, in brokentestSaveAndRestoreMailboxSyncOptions()
97 Mailbox boxc = setupBoxSync(Account.CHECK_INTERVAL_PUSH, SyncWindow.SYNC_WINDOW_ACCOUNT, in brokentestSaveAndRestoreMailboxSyncOptions()
[all …]
/packages/apps/Email/emailsync/src/com/android/emailsync/
DSyncManager.java56 import com.android.emailcommon.provider.Mailbox;
129 MailboxColumns.ACCOUNT_KEY + "=? and type in (" + Mailbox.TYPE_INBOX + ','
130 + Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + ',' + Mailbox.TYPE_CONTACTS + ','
131 + Mailbox.TYPE_CALENDAR + ')';
133 MailboxColumns.ACCOUNT_KEY + "=? and type = " + Mailbox.TYPE_INBOX ;
136 "(" + MailboxColumns.TYPE + '=' + Mailbox.TYPE_OUTBOX
137 + " or " + MailboxColumns.SYNC_INTERVAL + "<" + Mailbox.CHECK_INTERVAL_NEVER + ')'
260 public abstract AbstractSyncService getServiceForMailbox(Context context, Mailbox mailbox); in getServiceForMailbox()
291 public abstract void onStartService(Mailbox mailbox); in onStartService()
379 int cnt = Mailbox.count(context, Mailbox.CONTENT_URI, "accountKey=" in AccountObserver()
[all …]
/packages/apps/Exchange/src/com/android/exchange/
DExchangeService.java41 import com.android.emailcommon.provider.Mailbox;
78 Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + " and " + MailboxColumns.SYNC_INTERVAL +
79 " IN (" + Mailbox.CHECK_INTERVAL_PING + ',' + Mailbox.CHECK_INTERVAL_PUSH + ')';
219 Mailbox inbox = Mailbox.restoreMailboxOfType(context, account.mId, in collectAccounts()
220 Mailbox.TYPE_INBOX); in collectAccounts()
222 ((inbox.mFlags & Mailbox.FLAG_ACCEPTS_MOVED_MAIL) == 0)) { in collectAccounts()
224 inbox.mFlags | Mailbox.FLAG_ACCEPTS_MOVED_MAIL); in collectAccounts()
226 ContentUris.withAppendedId(Mailbox.CONTENT_URI, inbox.mId), cv, in collectAccounts()
309 Mailbox mailbox = Mailbox.restoreMailboxOfType(INSTANCE, in onChangeInBackground()
310 mAccountId, Mailbox.TYPE_CALENDAR); in onChangeInBackground()
[all …]
DEasAccountService.java39 import com.android.emailcommon.provider.Mailbox;
70 '=' + Mailbox.CHECK_INTERVAL_PING;
72 MailboxColumns.SYNC_INTERVAL + " IN (" + Mailbox.CHECK_INTERVAL_PING +
73 ',' + Mailbox.CHECK_INTERVAL_PUSH + ") AND " + MailboxColumns.TYPE + "!=\"" +
74 Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + '\"';
77 '=' + Mailbox.CHECK_INTERVAL_PUSH_HOLD;
81 MailboxColumns.ACCOUNT_KEY + "=? and type in (" + Mailbox.TYPE_INBOX + ','
82 + Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + ',' + Mailbox.TYPE_CONTACTS + ','
83 + Mailbox.TYPE_CALENDAR + ')';
134 protected EasAccountService(Context _context, Mailbox _mailbox) { in EasAccountService()
[all …]
DEasSyncService.java49 import com.android.emailcommon.provider.Mailbox;
182 protected EasSyncService(Context _context, Mailbox _mailbox) { in EasSyncService()
206 public static EasSyncService getServiceForMailbox(Context context, Mailbox m) { in getServiceForMailbox()
208 case Mailbox.TYPE_EAS_ACCOUNT_MAILBOX: in getServiceForMailbox()
210 case Mailbox.TYPE_OUTBOX: in getServiceForMailbox()
1076 Mailbox srcMailbox = null; in messageMoveRequest()
1079 srcMailbox = Mailbox.restoreMailboxWithId(mContext, c.getLong(0)); in messageMoveRequest()
1084 Mailbox dstMailbox = Mailbox.restoreMailboxWithId(mContext, req.mMailboxId); in messageMoveRequest()
1148 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, msg.mMailboxKey); in sendMeetingResponse()
1376 int type = c.getInt(Mailbox.CONTENT_TYPE_COLUMN);
[all …]
/packages/apps/Email/tests/src/com/android/email/
DControllerProviderOpsTests.java26 import com.android.emailcommon.provider.Mailbox;
68 Mailbox.getSystemMailboxName(mContext, -1); in testGetMailboxServerName()
74 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX)); in testGetMailboxServerName()
75 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX)); in testGetMailboxServerName()
76 assertEquals("Trash", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_TRASH)); in testGetMailboxServerName()
77 assertEquals("Sent", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_SENT)); in testGetMailboxServerName()
78 assertEquals("Junk", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_JUNK)); in testGetMailboxServerName()
83 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX)); in testGetMailboxServerName()
84 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX)); in testGetMailboxServerName()
85 assertEquals("Trash", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_TRASH)); in testGetMailboxServerName()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java50 import com.android.emailcommon.provider.Mailbox;
152 db.update(Mailbox.TABLE_NAME, values, null, null); in setMinusOneToMessageCounts()
158 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), in getMessageCount()
168 Context c, Mailbox b, boolean starred, boolean read, int flagLoaded) { in createMessage()
396 c = mMockContext.getContentResolver().query(Mailbox.CONTENT_URI, in getUnreadCount()
438 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, mMockContext); in testMessageSave()
485 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, mMockContext); in testMessageWithAttachment()
535 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, mMockContext); in testMessageSaveWithJustAttachments()
596 Mailbox box = ProviderTestUtils.setupMailbox("box1", account.mId, true, mMockContext); in testMessageSaveAddsSnippet()
682 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, mMockContext); in testLookupBodyIdWithMessageId()
[all …]
DAttachmentProviderTests.java37 import com.android.emailcommon.provider.Mailbox;
162 private static Message createMessage(Context c, Mailbox b) { in createMessage()
176 Mailbox b1 = ProviderTestUtils.setupMailbox( in testInboxQuery()
177 "box1", a1.mId, true, mMockContext, Mailbox.TYPE_INBOX); in testInboxQuery()
178 Mailbox b2 = ProviderTestUtils.setupMailbox( in testInboxQuery()
179 "box2", a1.mId, true, mMockContext, Mailbox.TYPE_MAIL); in testInboxQuery()
180 Mailbox b3 = ProviderTestUtils.setupMailbox( in testInboxQuery()
181 "box3", a2.mId, true, mMockContext, Mailbox.TYPE_INBOX); in testInboxQuery()
182 Mailbox b4 = ProviderTestUtils.setupMailbox( in testInboxQuery()
183 "box4", a2.mId, true, mMockContext, Mailbox.TYPE_MAIL); in testInboxQuery()
[all …]
/packages/apps/Email/src/com/android/email/service/
DEmailServiceStub.java55 import com.android.emailcommon.provider.Mailbox;
99 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); in requestSync()
107 final Bundle extras = Mailbox.createSyncBundle(mailboxId); in requestSync()
114 extras.putInt(Mailbox.SYNC_EXTRA_DELTA_MESSAGE_COUNT, deltaMessageCount); in requestSync()
157 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey); in loadAttachment()
159 if (mailbox.mType == Mailbox.TYPE_OUTBOX) { in loadAttachment()
168 mailbox = Mailbox.restoreMailboxWithId(mContext, sourceMsg.mMailboxKey); in loadAttachment()
172 } else if (mailbox.mType == Mailbox.TYPE_SEARCH && message.mMainMailboxKey != 0) { in loadAttachment()
173 mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMainMailboxKey); in loadAttachment()
289 for (final int type : Mailbox.REQUIRED_FOLDER_TYPES) { in updateFolderList()
[all …]
DImapService.java57 import com.android.emailcommon.provider.Mailbox;
91 private static Mailbox mLastSearchRemoteMailbox = null;
141 final Account account, final Mailbox folder, final boolean loadMore, in synchronizeMailboxSynchronous()
220 Folder remoteFolder, ArrayList<Message> messages, final Mailbox toMailbox) in loadUnsyncedMessages()
247 final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages, in downloadFlagAndEnvelope()
320 final Account account, final Mailbox mailbox, final boolean loadMore, in synchronizeMailboxGeneric()
332 if (mailbox.mType == Mailbox.TYPE_DRAFTS || mailbox.mType == Mailbox.TYPE_OUTBOX) { in synchronizeMailboxGeneric()
400 if (mailbox.mType == Mailbox.TYPE_TRASH || mailbox.mType == Mailbox.TYPE_SENT) { in synchronizeMailboxGeneric()
706 private static Mailbox getRemoteMailboxForMessage( in getRemoteMailboxForMessage()
716 Cursor c = context.getContentResolver().query(Mailbox.CONTENT_URI, in getRemoteMailboxForMessage()
[all …]
DPopImapSyncAdapterService.java40 import com.android.emailcommon.provider.Mailbox;
84 private static boolean loadsFromServer(Context context, Mailbox m, String protocol) { in loadsFromServer()
90 return m.mType != Mailbox.TYPE_DRAFTS in loadsFromServer()
91 && m.mType != Mailbox.TYPE_OUTBOX in loadsFromServer()
92 && m.mType != Mailbox.TYPE_SEARCH; in loadsFromServer()
95 return Mailbox.TYPE_INBOX == m.mType; in loadsFromServer()
105 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId); in sync()
111 if ((mailbox.mType != Mailbox.TYPE_OUTBOX) && in sync()
121 Uri mailboxUri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId); in sync()
124 values.put(Mailbox.UI_SYNC_STATUS, in sync()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/
DExchangeServiceAccountTests.java23 import com.android.emailcommon.provider.Mailbox;
52 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", acct1.mId, true, in brokentestReleaseSyncHolds()
54 Mailbox box2 = EmailContentSetupUtils.setupMailbox("box2", acct1.mId, true, in brokentestReleaseSyncHolds()
57 Mailbox box3 = EmailContentSetupUtils.setupMailbox("box3", acct2.mId, true, in brokentestReleaseSyncHolds()
59 Mailbox box4 = EmailContentSetupUtils.setupMailbox("box4", acct2.mId, true, in brokentestReleaseSyncHolds()
107 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", acct1.mId, true, in brokentestIsSyncable()
108 mProviderContext, Mailbox.TYPE_DRAFTS); in brokentestIsSyncable()
109 Mailbox box2 = EmailContentSetupUtils.setupMailbox("box2", acct1.mId, true, in brokentestIsSyncable()
110 mProviderContext, Mailbox.TYPE_OUTBOX); in brokentestIsSyncable()
111 Mailbox box3 = EmailContentSetupUtils.setupMailbox("box2", acct1.mId, true, in brokentestIsSyncable()
[all …]
/packages/apps/Exchange/src/com/android/exchange/service/
DEmailSyncAdapterService.java54 import com.android.emailcommon.provider.Mailbox;
249 final Cursor c = Mailbox.getMailboxesForPush(service.getContentResolver(), in modifyPing()
254 final int mailboxType = c.getInt(Mailbox.CONTENT_TYPE_COLUMN); in modifyPing()
255 if (authsToSync.contains(Mailbox.getAuthority(mailboxType))) { in modifyPing()
270 extras.putBoolean(Mailbox.SYNC_EXTRA_PUSH_ONLY, true); in modifyPing()
678 final long[] mailboxIds = Mailbox.getMailboxIdsFromBundle(extras); in onPerformSync()
679 final int mailboxType = extras.getInt(Mailbox.SYNC_EXTRA_MAILBOX_TYPE, in onPerformSync()
680 Mailbox.TYPE_NONE); in onPerformSync()
684 final boolean pushOnly = Mailbox.isPushOnlyExtras(extras); in onPerformSync()
686 final boolean accountOnly = Mailbox.isAccountOnlyExtras(extras); in onPerformSync()
[all …]
/packages/apps/Exchange/src/com/android/exchange/eas/
DEasPing.java31 import com.android.emailcommon.provider.Mailbox;
149 final Cursor c = Mailbox.getMailboxesForPush(mContext.getContentResolver(), in getRequestEntity()
159 final Mailbox mailbox = new Mailbox(); in getRequestEntity()
290 private Serializer handleOneMailbox(Serializer s, final Mailbox mailbox) throws IOException { in handleOneMailbox()
294 Mailbox.getAuthority(mailbox.mType))) { in handleOneMailbox()
328 final Cursor c = mContext.getContentResolver().query(Mailbox.CONTENT_URI, in requestSyncForSyncList()
329 Mailbox.CONTENT_PROJECTION, WHERE_ACCOUNT_KEY_AND_SERVER_ID, in requestSyncForSyncList()
378 final long mailboxId = c.getLong(Mailbox.CONTENT_ID_COLUMN); in requestSyncForSyncList()
379 final int contentType = c.getInt(Mailbox.CONTENT_TYPE_COLUMN); in requestSyncForSyncList()
390 case Mailbox.TYPE_CALENDAR: in requestSyncForSyncList()
[all …]
DEasSyncBase.java10 import com.android.emailcommon.provider.Mailbox;
36 private final Mailbox mMailbox;
42 public EasSyncBase(final Context context, final Account account, final Mailbox mailbox) { in EasSyncBase()
162 case Mailbox.TYPE_MAIL: in getCollectionTypeHandler()
163 case Mailbox.TYPE_INBOX: in getCollectionTypeHandler()
164 case Mailbox.TYPE_DRAFTS: in getCollectionTypeHandler()
165 case Mailbox.TYPE_SENT: in getCollectionTypeHandler()
166 case Mailbox.TYPE_TRASH: in getCollectionTypeHandler()
167 case Mailbox.TYPE_JUNK: in getCollectionTypeHandler()
169 case Mailbox.TYPE_CALENDAR: { in getCollectionTypeHandler()
[all …]
DEasSearch.java8 import com.android.emailcommon.provider.Mailbox;
75 final Mailbox searchMailbox = Mailbox.restoreMailboxWithId(mContext, mDestMailboxId); in getRequestEntity()
84 statusValues.put(Mailbox.UI_SYNC_STATUS, UIProvider.SyncStatus.LIVE_QUERY); in getRequestEntity()
94 final Mailbox inbox = in getRequestEntity()
95 Mailbox.restoreMailboxOfType(mContext, mAccount.mId, Mailbox.TYPE_INBOX); in getRequestEntity()
139 statusValues.put(Mailbox.SYNC_TIME, System.currentTimeMillis()); in getRequestEntity()
140 statusValues.put(Mailbox.UI_SYNC_STATUS, UIProvider.SyncStatus.NO_SYNC); in getRequestEntity()
155 final Mailbox searchMailbox = Mailbox.restoreMailboxWithId(mContext, mDestMailboxId); in handleResponse()

1234