Home
last modified time | relevance | path

Searched refs:EmailContent (Results 1 – 25 of 111) sorted by relevance

12345

/packages/apps/Email/src/com/android/email/
DMessagingController.java50 import com.android.emailcommon.provider.EmailContent;
51 import com.android.emailcommon.provider.EmailContent.Attachment;
52 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
53 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
54 import com.android.emailcommon.provider.EmailContent.MessageColumns;
55 import com.android.emailcommon.provider.EmailContent.SyncColumns;
276 EmailContent.MailboxColumns.ACCOUNT_KEY + "=?", in listFolders()
400 EmailContent.RECORD_ID,
424 private void saveOrUpdate(EmailContent content, Context context) { in saveOrUpdate()
476 EmailContent.Message.FLAG_LOADED_COMPLETE); in loadUnsyncedMessages()
[all …]
DLegacyConversions.java39 import com.android.emailcommon.provider.EmailContent;
40 import com.android.emailcommon.provider.EmailContent.Attachment;
41 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
77 public static boolean updateMessageFields(EmailContent.Message localMessage, Message message, in updateMessageFields()
100 localMessage.mFlags |= EmailContent.Message.FLAG_REPLIED_TO; in updateMessageFields()
105 if (localMessage.mFlagLoaded != EmailContent.Message.FLAG_LOADED_COMPLETE) { in updateMessageFields()
107 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_UNLOADED; in updateMessageFields()
109 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_PARTIAL; in updateMessageFields()
161 public static void updateAttachments(Context context, EmailContent.Message localMessage, in updateAttachments()
187 private static void addOneAttachment(Context context, EmailContent.Message localMessage, in addOneAttachment()
[all …]
DController.java43 import com.android.emailcommon.provider.EmailContent;
44 import com.android.emailcommon.provider.EmailContent.Attachment;
45 import com.android.emailcommon.provider.EmailContent.Body;
46 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
47 import com.android.emailcommon.provider.EmailContent.Message;
48 import com.android.emailcommon.provider.EmailContent.MessageColumns;
99 EmailContent.RECORD_ID,
100 EmailContent.MessageColumns.ACCOUNT_KEY
214 c = resolver.query(Mailbox.CONTENT_URI, EmailContent.ID_PROJECTION, in deleteAttachmentMessages()
217 long mailboxId = c.getLong(EmailContent.ID_PROJECTION_COLUMN); in deleteAttachmentMessages()
[all …]
DNotificationController.java51 import com.android.emailcommon.provider.EmailContent;
52 import com.android.emailcommon.provider.EmailContent.AccountColumns;
53 import com.android.emailcommon.provider.EmailContent.Attachment;
54 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
55 import com.android.emailcommon.provider.EmailContent.Message;
56 import com.android.emailcommon.provider.EmailContent.MessageColumns;
333 Account.CONTENT_URI, EmailContent.ID_PROJECTION, in registerMessageNotification()
337 long id = c.getLong(EmailContent.ID_PROJECTION_COLUMN); in registerMessageNotification()
493 messageCursor.getLong(EmailContent.ID_PROJECTION_COLUMN); in createNewMessageNotification()
855 Message.CONTENT_URI, EmailContent.ID_PROJECTION, in onChange()
[all …]
/packages/apps/Email/src/com/android/email/provider/
DEmailProvider.java44 import com.android.emailcommon.provider.EmailContent;
45 import com.android.emailcommon.provider.EmailContent.AccountColumns;
46 import com.android.emailcommon.provider.EmailContent.Attachment;
47 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
48 import com.android.emailcommon.provider.EmailContent.Body;
49 import com.android.emailcommon.provider.EmailContent.BodyColumns;
50 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
51 import com.android.emailcommon.provider.EmailContent.Message;
52 import com.android.emailcommon.provider.EmailContent.MessageColumns;
53 import com.android.emailcommon.provider.EmailContent.PolicyColumns;
[all …]
DDBHelper.java35 import com.android.emailcommon.provider.EmailContent;
36 import com.android.emailcommon.provider.EmailContent.AccountColumns;
37 import com.android.emailcommon.provider.EmailContent.Attachment;
38 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
39 import com.android.emailcommon.provider.EmailContent.Body;
40 import com.android.emailcommon.provider.EmailContent.BodyColumns;
41 import com.android.emailcommon.provider.EmailContent.HostAuthColumns;
42 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
43 import com.android.emailcommon.provider.EmailContent.Message;
44 import com.android.emailcommon.provider.EmailContent.MessageColumns;
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java36 import com.android.emailcommon.provider.EmailContent;
37 import com.android.emailcommon.provider.EmailContent.Attachment;
78 super(EmailProvider.class, EmailContent.AUTHORITY); in LegacyConversionsTests()
104 EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields()
118 EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFieldsNoMessageId()
179 EmailContent.Body localBody = new EmailContent.Body(); in testUpdateBodyFieldsNullText()
180 EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateBodyFieldsNullText()
200 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in testAddAttachments()
206 final EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage( in testAddAttachments()
215 private void convertAndCheckcheckAddedAttachments(final EmailContent.Message localMessage, in convertAndCheckcheckAddedAttachments()
[all …]
DControllerProviderOpsTests.java27 import com.android.emailcommon.provider.EmailContent;
28 import com.android.emailcommon.provider.EmailContent.Body;
29 import com.android.emailcommon.provider.EmailContent.Message;
54 super(EmailProvider.class, EmailContent.AUTHORITY); in ControllerProviderOpsTests()
201 assertEquals(boxDestId, EmailContent.Message.restoreMessageWithId(mProviderContext, in testMoveMessage()
203 assertEquals(boxDestId, EmailContent.Message.restoreMessageWithId(mProviderContext, in testMoveMessage()
239 Message restored = EmailContent.Message.restoreMessageWithId(mProviderContext, in testDeleteMessage()
253 assertNull(EmailContent.Message.restoreMessageWithId(mProviderContext, messageId)); in testDeleteMessage()
265 assertNull(EmailContent.Message.restoreMessageWithId(mProviderContext, messageId)); in testDeleteMessage()
288 EmailContent.Message.restoreMessageWithId(mProviderContext, message1Id); in testDeleteMessageNoTrash()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityMediumTests.java22 import com.android.emailcommon.provider.EmailContent;
23 import com.android.emailcommon.provider.EmailContent.Attachment;
24 import com.android.emailcommon.provider.EmailContent.Message;
25 import com.android.emailcommon.provider.EmailContent.MessageColumns;
51 super(EmailProvider.class, EmailContent.AUTHORITY); in UtilityMediumTests()
156 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong()
159 EmailContent.ID_PROJECTION_COLUMN)); in testGetFirstRowLong()
162 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong()
165 EmailContent.ID_PROJECTION_COLUMN)); in testGetFirstRowLong()
169 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DEmailContent.java62 public abstract class EmailContent { class
76 Uri.parse("content://" + EmailContent.AUTHORITY + "/mailboxNotification");
84 Uri.parse("content://" + EmailContent.AUTHORITY + "/mailboxMostRecentMessage");
157 public static <T extends EmailContent> T restoreContentWithId(Context context, in restoreContentWithId()
177 static public <T extends EmailContent> T getContent(Cursor cursor, Class<T> klass) { in getContent()
239 return uri.buildUpon().appendQueryParameter(EmailContent.PARAMETER_LIMIT, in uriWithLimit()
246 protected EmailContent() { in EmailContent() method in EmailContent
279 public static final class Body extends EmailContent implements BodyColumns {
283 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/body");
465 mBaseUri = EmailContent.Body.CONTENT_URI; in restore()
[all …]
DAccount.java34 import com.android.emailcommon.provider.EmailContent.AccountColumns;
41 public final class Account extends EmailContent implements AccountColumns, Parcelable {
44 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/account");
46 Uri.parse(EmailContent.CONTENT_URI + "/accountIdAddToField");
48 Uri.parse(EmailContent.CONTENT_URI + "/resetNewMessageCount");
50 Uri.parse(EmailContent.CONTENT_NOTIFIER_URI + "/account");
52 Uri.parse(EmailContent.CONTENT_URI + "/account/default");
224 return EmailContent.restoreContentWithId(context, Account.class, in restoreAccountWithId()
DMailbox.java30 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
31 import com.android.emailcommon.provider.EmailContent.SyncColumns;
34 public class Mailbox extends EmailContent implements SyncColumns, MailboxColumns, Parcelable {
37 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox");
39 Uri.parse(EmailContent.CONTENT_URI + "/mailboxIdAddToField");
41 Uri.parse(EmailContent.CONTENT_URI + "/mailboxIdFromAccountAndType");
241 return EmailContent.restoreContentWithId(context, Mailbox.class, in restoreMailboxWithId()
DQuickResponse.java20 import com.android.emailcommon.provider.EmailContent;
21 import com.android.emailcommon.provider.EmailContent.QuickResponseColumns;
36 public final class QuickResponse extends EmailContent
40 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI
43 EmailContent.CONTENT_URI + "/quickresponse/account");
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DEmailSyncAdapterTests.java24 import com.android.emailcommon.provider.EmailContent;
25 import com.android.emailcommon.provider.EmailContent.Body;
26 import com.android.emailcommon.provider.EmailContent.Message;
27 import com.android.emailcommon.provider.EmailContent.MessageColumns;
28 import com.android.emailcommon.provider.EmailContent.SyncColumns;
121 assertEquals(3, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
131 assertEquals(0, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
133 assertEquals(3, EmailContent.count(mProviderContext, Message.DELETED_CONTENT_URI, in testSendDeletedItems()
147 assertEquals(1, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
188 assertEquals(numMessages, EmailContent.count(mProviderContext, Message.CONTENT_URI, in setupAccountMailboxAndMessages()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DEmailSyncAdapterTests.java24 import com.android.emailcommon.provider.EmailContent;
25 import com.android.emailcommon.provider.EmailContent.Body;
26 import com.android.emailcommon.provider.EmailContent.Message;
27 import com.android.emailcommon.provider.EmailContent.MessageColumns;
28 import com.android.emailcommon.provider.EmailContent.SyncColumns;
121 assertEquals(3, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
131 assertEquals(0, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
133 assertEquals(3, EmailContent.count(mProviderContext, Message.DELETED_CONTENT_URI, in testSendDeletedItems()
147 assertEquals(1, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
188 assertEquals(numMessages, EmailContent.count(mProviderContext, Message.CONTENT_URI, in setupAccountMailboxAndMessages()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java48 import com.android.emailcommon.provider.EmailContent;
49 import com.android.emailcommon.provider.EmailContent.AccountColumns;
50 import com.android.emailcommon.provider.EmailContent.Attachment;
51 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
52 import com.android.emailcommon.provider.EmailContent.HostAuthColumns;
53 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
54 import com.android.emailcommon.provider.EmailContent.Message;
55 import com.android.emailcommon.provider.EmailContent.MessageColumns;
647 EmailContent.AUTHORITY.equals(original.getAuthority())) {
648 return EmailContent.uriWithLimit(original, 1);
[all …]
DConversionUtilities.java23 import com.android.emailcommon.provider.EmailContent;
60 public static boolean updateBodyFields(EmailContent.Body body, in updateBodyFields()
61 EmailContent.Message localMessage, ArrayList<Part> viewables) in updateBodyFields()
94 localMessage.mFlags &= ~EmailContent.Message.FLAG_TYPE_MASK; in updateBodyFields()
96 ? EmailContent.Message.FLAG_TYPE_REPLY in updateBodyFields()
97 : EmailContent.Message.FLAG_TYPE_FORWARD; in updateBodyFields()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java22 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
23 import com.android.emailcommon.provider.EmailContent.Message;
24 import com.android.emailcommon.provider.EmailContent.MessageColumns;
54 super(EmailProvider.class, EmailContent.AUTHORITY); in MailboxTests()
120 String selection = EmailContent.MailboxColumns.ACCOUNT_KEY + "=?"; in testDelete()
124 int numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
132 numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
140 numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
444 getProvider().update(Message.CONTENT_URI, values, EmailContent.ID_SELECTION, in testMessageCount()
456 getProvider().delete(Message.CONTENT_URI, EmailContent.ID_SELECTION, in testMessageCount()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DExchangeService.java54 import com.android.emailcommon.provider.EmailContent;
55 import com.android.emailcommon.provider.EmailContent.Attachment;
56 import com.android.emailcommon.provider.EmailContent.Body;
57 import com.android.emailcommon.provider.EmailContent.BodyColumns;
58 import com.android.emailcommon.provider.EmailContent.HostAuthColumns;
59 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
60 import com.android.emailcommon.provider.EmailContent.Message;
61 import com.android.emailcommon.provider.EmailContent.SyncColumns;
1685 int syncStatus = EmailContent.SYNC_STATUS_BACKGROUND; in requestSync()
1711 syncStatus = EmailContent.SYNC_STATUS_USER; in requestSync()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DAccountBackupRestoreTests.java20 import com.android.emailcommon.provider.EmailContent;
41 super(EmailProvider.class, EmailContent.AUTHORITY); in AccountBackupRestoreTests()
102 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore()
103 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
114 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore()
115 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
123 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore()
124 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DEmailSyncAdapter.java45 import com.android.emailcommon.provider.EmailContent;
46 import com.android.emailcommon.provider.EmailContent.AccountColumns;
47 import com.android.emailcommon.provider.EmailContent.Attachment;
48 import com.android.emailcommon.provider.EmailContent.Body;
49 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
50 import com.android.emailcommon.provider.EmailContent.Message;
51 import com.android.emailcommon.provider.EmailContent.MessageColumns;
52 import com.android.emailcommon.provider.EmailContent.SyncColumns;
108 new String[] {EmailContent.RECORD_ID, SyncColumns.SERVER_ID};
1139 Cursor c = getServerIdCursor(msg.mServerId, EmailContent.ID_PROJECTION);
[all …]
/packages/apps/Email/src/com/android/email/activity/
DMessageOrderManager.java27 import com.android.emailcommon.provider.EmailContent;
28 import com.android.emailcommon.provider.EmailContent.Message;
214 mCurrentMessageId = mCursor.getLong(EmailContent.ID_PROJECTION_COLUMN); in setCurrentMessageIdFromCursor()
261 && mCursor.getLong(EmailContent.ID_PROJECTION_COLUMN) != mCurrentMessageId) { in adjustCursorPosition()
354 final Cursor cursor = mContentResolver.query(EmailContent.Message.CONTENT_URI, in openNewCursor()
355 EmailContent.ID_PROJECTION, in openNewCursor()
358 null, EmailContent.MessageColumns.TIMESTAMP + " DESC"); in openNewCursor()
DMessagesAdapter.java37 import com.android.emailcommon.provider.EmailContent;
38 import com.android.emailcommon.provider.EmailContent.Message;
39 import com.android.emailcommon.provider.EmailContent.MessageColumns;
57 EmailContent.RECORD_ID, MessageColumns.MAILBOX_KEY, MessageColumns.ACCOUNT_KEY,
297 super(context, EmailContent.Message.CONTENT_URI, in MessagesCursorLoader()
299 EmailContent.MessageColumns.TIMESTAMP + " DESC"); in MessagesCursorLoader()
336 final int countAccounts = EmailContent.count(mContext, Account.CONTENT_URI); in loadExtras()
/packages/apps/Email/src/com/android/email/service/
DAttachmentDownloadService.java41 import com.android.emailcommon.provider.EmailContent;
42 import com.android.emailcommon.provider.EmailContent.Attachment;
43 import com.android.emailcommon.provider.EmailContent.Message;
352 Uri lookupUri = EmailContent.uriWithLimit(Attachment.CONTENT_URI, in processQueue()
355 EmailContent.Attachment.PRECACHE_INBOX_SELECTION, in processQueue()
366 EmailContent.delete(mContext, Attachment.CONTENT_URI, id); in processQueue()
578 EmailContent.delete(mContext, Attachment.CONTENT_URI, attachment.mId); in endDownload()
598 EmailContent.delete(mContext, Attachment.CONTENT_URI, attachment.mId); in endDownload()
884 EmailContent.ID_PROJECTION, "(" + Attachment.FLAGS + " & ?) != 0", in run()
890 this, c.getLong(EmailContent.ID_PROJECTION_COLUMN)); in run()
/packages/apps/Email/src/com/android/email/widget/
DEmailWidgetLoader.java22 import com.android.emailcommon.provider.EmailContent;
23 import com.android.emailcommon.provider.EmailContent.Message;
24 import com.android.emailcommon.provider.EmailContent.MessageColumns;
46 EmailContent.RECORD_ID, MessageColumns.DISPLAY_NAME, MessageColumns.TIMESTAMP,
120 messageCount = EmailContent.count(mContext, Message.CONTENT_URI, selection, in loadInBackground()
132 int accountCount = EmailContent.count(mContext, Account.CONTENT_URI); in loadInBackground()

12345