Home
last modified time | relevance | path

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

123

/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java55 import com.android.emailcommon.provider.EmailContent;
56 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
57 import com.android.emailcommon.provider.EmailContent.MessageColumns;
58 import com.android.emailcommon.provider.EmailContent.SyncColumns;
277 EmailContent.Message.FLAG_LOADED_COMPLETE); in loadUnsyncedMessages()
313 final EmailContent.Message localMessage; in downloadFlagAndEnvelope()
315 localMessage = new EmailContent.Message(); in downloadFlagAndEnvelope()
317 localMessage = EmailContent.Message.restoreMessageWithId( in downloadFlagAndEnvelope()
403 localOldestCursor = resolver.query(EmailContent.Message.CONTENT_URI, in synchronizeMailboxGeneric()
405 EmailContent.MessageColumns.ACCOUNT_KEY + "=?" + " AND " + in synchronizeMailboxGeneric()
[all …]
DEmailServiceStub.java47 import com.android.emailcommon.provider.EmailContent;
48 import com.android.emailcommon.provider.EmailContent.Attachment;
49 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
50 import com.android.emailcommon.provider.EmailContent.Body;
51 import com.android.emailcommon.provider.EmailContent.BodyColumns;
52 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
53 import com.android.emailcommon.provider.EmailContent.MessageColumns;
117 ContentResolver.requestSync(acct, EmailContent.AUTHORITY, extras); in requestSync()
137 final EmailContent.Message message = in loadAttachment()
138 EmailContent.Message.restoreMessageWithId(mContext, attachment.mMessageKey); in loadAttachment()
[all …]
DPop3Service.java45 import com.android.emailcommon.provider.EmailContent;
46 import com.android.emailcommon.provider.EmailContent.Attachment;
47 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
48 import com.android.emailcommon.provider.EmailContent.Message;
49 import com.android.emailcommon.provider.EmailContent.MessageColumns;
50 import com.android.emailcommon.provider.EmailContent.SyncColumns;
144 EmailContent.RECORD_ID, MessageColumns.FLAG_LOADED, SyncColumns.SERVER_ID
184 int flag = EmailContent.Message.FLAG_LOADED_COMPLETE; in loadUnsyncedMessages()
191 flag = EmailContent.Message.FLAG_LOADED_PARTIAL; in loadUnsyncedMessages()
247 EmailContent.Message.CONTENT_URI, in synchronizePop3Mailbox()
[all …]
DPopImapSyncAdapterService.java37 import com.android.emailcommon.provider.EmailContent;
38 import com.android.emailcommon.provider.EmailContent.AccountColumns;
39 import com.android.emailcommon.provider.EmailContent.Message;
40 import com.android.emailcommon.provider.EmailContent.MessageColumns;
125 final int syncStatus = uiRefresh ? EmailContent.SYNC_STATUS_USER : in sync()
126 EmailContent.SYNC_STATUS_BACKGROUND; in sync()
137 EmailContent.LAST_SYNC_RESULT_SUCCESS); in sync()
157 EmailContent.LAST_SYNC_RESULT_CONNECTION_ERROR); in sync()
164 EmailContent.LAST_SYNC_RESULT_AUTH_ERROR); in sync()
171 EmailContent.LAST_SYNC_RESULT_SERVER_ERROR); in sync()
[all …]
DAttachmentService.java40 import com.android.emailcommon.provider.EmailContent;
41 import com.android.emailcommon.provider.EmailContent.Attachment;
42 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
43 import com.android.emailcommon.provider.EmailContent.Message;
668 EmailContent.ID_PROJECTION, "(" + AttachmentColumns.FLAGS + " & ?) != 0", in run()
675 this, c.getLong(EmailContent.ID_PROJECTION_COLUMN)); in run()
918 final Uri lookupUri = EmailContent.uriWithLimit(Attachment.CONTENT_URI, in processQueue()
922 EmailContent.Attachment.PRECACHE_INBOX_SELECTION, in processQueue()
934 EmailContent.delete(this, Attachment.CONTENT_URI, att.mId); in processQueue()
1137 EmailContent.delete(this, Attachment.CONTENT_URI, attachment.mId); in endDownload()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java39 import com.android.emailcommon.provider.EmailContent;
40 import com.android.emailcommon.provider.EmailContent.AccountColumns;
41 import com.android.emailcommon.provider.EmailContent.Attachment;
42 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
43 import com.android.emailcommon.provider.EmailContent.Body;
44 import com.android.emailcommon.provider.EmailContent.BodyColumns;
45 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
46 import com.android.emailcommon.provider.EmailContent.Message;
47 import com.android.emailcommon.provider.EmailContent.MessageColumns;
48 import com.android.emailcommon.provider.EmailContent.PolicyColumns;
[all …]
DPolicyTests.java27 import com.android.emailcommon.provider.EmailContent;
28 import com.android.emailcommon.provider.EmailContent.Attachment;
29 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
30 import com.android.emailcommon.provider.EmailContent.Message;
52 super(EmailProvider.class, EmailContent.AUTHORITY); in PolicyTests()
95 assertEquals(0, EmailContent.count(mMockContext, Policy.CONTENT_URI)); in testSetAndClearAccountPolicy()
112 assertEquals(0, EmailContent.count(mMockContext, Policy.CONTENT_URI)); in testSetAndClearAccountPolicy()
148 assertEquals(4, EmailContent.count(mMockContext, Attachment.CONTENT_URI)); in testSetAttachmentFlagsForNewPolicy()
150 assertEquals(0, EmailContent.count(mMockContext, Attachment.CONTENT_URI, in testSetAttachmentFlagsForNewPolicy()
155 assertEquals(4, EmailContent.count(mMockContext, Attachment.CONTENT_URI, in testSetAttachmentFlagsForNewPolicy()
[all …]
DAccountBackupRestoreTests.java27 import com.android.emailcommon.provider.EmailContent;
43 super(EmailProvider.class, EmailContent.AUTHORITY); in AccountBackupRestoreTests()
98 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore()
99 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
110 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore()
111 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
119 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore()
120 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
/packages/apps/Email/provider_src/com/android/email/provider/
DUtilities.java34 import com.android.emailcommon.provider.EmailContent;
35 import com.android.emailcommon.provider.EmailContent.Attachment;
36 import com.android.emailcommon.provider.EmailContent.MessageColumns;
37 import com.android.emailcommon.provider.EmailContent.SyncColumns;
59 EmailContent.Message localMessage = null; in copyOneMessageToProvider()
63 EmailContent.Message.CONTENT_URI, in copyOneMessageToProvider()
64 EmailContent.Message.CONTENT_PROJECTION, in copyOneMessageToProvider()
65 EmailContent.MessageColumns.ACCOUNT_KEY + "=?" + in copyOneMessageToProvider()
77 localMessage = EmailContent.getContent(context, c, EmailContent.Message.class); in copyOneMessageToProvider()
79 localMessage = new EmailContent.Message(); in copyOneMessageToProvider()
[all …]
DEmailConversationCursor.java33 import com.android.emailcommon.provider.EmailContent;
76 if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_BACKGROUND in EmailConversationCursor()
77 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_USER in EmailConversationCursor()
78 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_LIVE in EmailConversationCursor()
79 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_INITIAL_SYNC_NEEDED) { in EmailConversationCursor()
82 } else if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_NONE) { in EmailConversationCursor()
141 final Uri refreshUri = Uri.parse(EmailContent.CONTENT_URI + in respond()
180 … final String senderString = getString(getColumnIndex(EmailContent.MessageColumns.DISPLAY_NAME)); in generateConversationInfo()
182 final String fromString = getString(getColumnIndex(EmailContent.MessageColumns.FROM_LIST)); in generateConversationInfo()
206 EmailContent.MessageColumns.TO_LIST)); in generateConversationInfo()
[all …]
DEmailProvider.java82 import com.android.emailcommon.provider.EmailContent;
83 import com.android.emailcommon.provider.EmailContent.AccountColumns;
84 import com.android.emailcommon.provider.EmailContent.Attachment;
85 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
86 import com.android.emailcommon.provider.EmailContent.Body;
87 import com.android.emailcommon.provider.EmailContent.BodyColumns;
88 import com.android.emailcommon.provider.EmailContent.HostAuthColumns;
89 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
90 import com.android.emailcommon.provider.EmailContent.Message;
91 import com.android.emailcommon.provider.EmailContent.MessageColumns;
[all …]
DDBHelper.java39 import com.android.emailcommon.provider.EmailContent;
40 import com.android.emailcommon.provider.EmailContent.AccountColumns;
41 import com.android.emailcommon.provider.EmailContent.Attachment;
42 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
43 import com.android.emailcommon.provider.EmailContent.Body;
44 import com.android.emailcommon.provider.EmailContent.BodyColumns;
45 import com.android.emailcommon.provider.EmailContent.HostAuthColumns;
46 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
47 import com.android.emailcommon.provider.EmailContent.Message;
48 import com.android.emailcommon.provider.EmailContent.MessageColumns;
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java40 import com.android.emailcommon.provider.EmailContent;
41 import com.android.emailcommon.provider.EmailContent.Attachment;
63 super(EmailProvider.class, EmailContent.AUTHORITY); in LegacyConversionsTests()
88 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAddAttachments()
94 final EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage( in brokentestAddAttachments()
103 private void convertAndCheckcheckAddedAttachments(final EmailContent.Message localMessage, in convertAndCheckcheckAddedAttachments()
176 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAttachmentDispositions()
194 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAddDuplicateAttachments()
208 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null)); in brokentestAddDuplicateAttachments()
212 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null)); in brokentestAddDuplicateAttachments()
[all …]
DLegacyConversionsTest.java32 import com.android.emailcommon.provider.EmailContent;
33 import com.android.emailcommon.provider.EmailContent.Attachment;
64 final EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields_Basic()
101 final EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields_PlainAddresses()
143 final EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields_EncodedAddresses()
172 final EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields_NoMessageId()
DSecurityPolicyTests.java31 import com.android.emailcommon.provider.EmailContent;
32 import com.android.emailcommon.provider.EmailContent.Message;
52 super(EmailProvider.class, EmailContent.AUTHORITY); in SecurityPolicyTests()
411 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testWipeExpiringAccounts()
412 assertEquals(2, EmailContent.count(mMockContext, Mailbox.CONTENT_URI)); in testWipeExpiringAccounts()
413 assertEquals(4, EmailContent.count(mMockContext, Message.CONTENT_URI)); in testWipeExpiringAccounts()
429 assertEquals(3, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testWipeExpiringAccounts()
430 assertEquals(3, EmailContent.count(mMockContext, Mailbox.CONTENT_URI)); in testWipeExpiringAccounts()
431 assertEquals(6, EmailContent.count(mMockContext, Message.CONTENT_URI)); in testWipeExpiringAccounts()
437 assertEquals(3, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testWipeExpiringAccounts()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DEmailContent.java74 public abstract class EmailContent { class
235 public static <T extends EmailContent> T restoreContentWithId(Context context, in restoreContentWithId()
240 public static <T extends EmailContent> T restoreContentWithId(final Context context, in restoreContentWithId()
338 WeakReference<EmailContent> mContent;
340 public SelfContentObserver(final EmailContent content) { in SelfContentObserver()
342 mContent = new WeakReference<EmailContent>(content); in SelfContentObserver()
352 EmailContent content = mContent.get(); in onChange()
361 static public <T extends EmailContent> T getContent(final Context context, final Cursor cursor, in getContent()
424 return uri.buildUpon().appendQueryParameter(EmailContent.PARAMETER_LIMIT, in uriWithLimit()
431 protected EmailContent() { in EmailContent() method in EmailContent
[all …]
DQuickResponse.java22 import com.android.emailcommon.provider.EmailContent.QuickResponseColumns;
28 public abstract class QuickResponse extends EmailContent
35 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/quickresponse"); in initQuickResponse()
36 ACCOUNT_ID_URI = Uri.parse(EmailContent.CONTENT_URI + "/quickresponse/account"); in initQuickResponse()
/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java41 import com.android.emailcommon.provider.EmailContent;
42 import com.android.emailcommon.provider.EmailContent.Attachment;
43 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
78 public static boolean updateMessageFields(final EmailContent.Message localMessage, in updateMessageFields()
105 localMessage.mFlags |= EmailContent.Message.FLAG_REPLIED_TO; in updateMessageFields()
110 if (localMessage.mFlagLoaded != EmailContent.Message.FLAG_LOADED_COMPLETE) { in updateMessageFields()
112 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_UNLOADED; in updateMessageFields()
114 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_PARTIAL; in updateMessageFields()
166 final EmailContent.Message localMessage, final ArrayList<Part> attachments) in updateAttachments()
175 final EmailContent.Message localMessage, final ArrayList<Part> inlineAttachments) in updateInlineAttachments()
[all …]
DSecurityPolicy.java43 import com.android.emailcommon.provider.EmailContent;
44 import com.android.emailcommon.provider.EmailContent.AccountColumns;
45 import com.android.emailcommon.provider.EmailContent.PolicyColumns;
568 context.getContentResolver().applyBatch(EmailContent.AUTHORITY, ops); in setAccountPolicy()
588 ContentResolver.requestSync(amAccount, EmailContent.AUTHORITY, extras); in syncAccount()
721 Cursor c = cr.query(Account.CONTENT_URI, EmailContent.ID_PROJECTION, in deleteSecuredAccounts()
727 long accountId = c.getLong(EmailContent.ID_PROJECTION_COLUMN); in deleteSecuredAccounts()
795 EmailContent.ID_PROJECTION_COLUMN, -1L);
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DAccountTest.java30 json.put(EmailContent.AccountColumns.DISPLAY_NAME, "David Hasselhoff"); in testDeserializeFromJSON()
31 json.put(EmailContent.AccountColumns.EMAIL_ADDRESS, "dhoff@example.com"); in testDeserializeFromJSON()
32 json.put(EmailContent.AccountColumns.SYNC_LOOKBACK, 42); in testDeserializeFromJSON()
33 json.put(EmailContent.AccountColumns.SYNC_INTERVAL, 99); in testDeserializeFromJSON()
36 json.put(EmailContent.AccountColumns.FLAGS, 22); in testDeserializeFromJSON()
37 json.put(EmailContent.AccountColumns.SENDER_NAME, "Friend of Kitt"); in testDeserializeFromJSON()
38 json.put(EmailContent.AccountColumns.PROTOCOL_VERSION, "protocol version 3.14"); in testDeserializeFromJSON()
39 json.put(EmailContent.AccountColumns.SIGNATURE, "David with a heart over the i"); in testDeserializeFromJSON()
40 json.put(EmailContent.AccountColumns.PING_DURATION, 77); in testDeserializeFromJSON()
DHostAuthTests.java225 json.put(EmailContent.HostAuthColumns.PROTOCOL, "IMAP"); in testDeserializeFromJSON()
226 json.put(EmailContent.HostAuthColumns.ADDRESS, "dhoff@example.com"); in testDeserializeFromJSON()
227 json.put(EmailContent.HostAuthColumns.PORT, 1337); in testDeserializeFromJSON()
228 json.put(EmailContent.HostAuthColumns.FLAGS, 293847); in testDeserializeFromJSON()
229 json.put(EmailContent.HostAuthColumns.LOGIN, "dhoff"); in testDeserializeFromJSON()
230 json.put(EmailContent.HostAuthColumns.PASSWORD, "daknightrida"); in testDeserializeFromJSON()
231 json.put(EmailContent.HostAuthColumns.DOMAIN, "example.com"); in testDeserializeFromJSON()
232 json.put(EmailContent.HostAuthColumns.CLIENT_CERT_ALIAS, "I'm a client cert alias"); in testDeserializeFromJSON()
DMailboxTests.java32 import com.android.emailcommon.provider.EmailContent.MailboxColumns;
33 import com.android.emailcommon.provider.EmailContent.Message;
34 import com.android.emailcommon.provider.EmailContent.MessageColumns;
56 super(EmailProvider.class, EmailContent.AUTHORITY); in MailboxTests()
122 String selection = EmailContent.MailboxColumns.ACCOUNT_KEY + "=?"; in testDelete()
126 int numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
134 numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
142 numBoxes = EmailContent.count(c, Mailbox.CONTENT_URI, selection, selArgs); in testDelete()
407 getProvider().update(Message.CONTENT_URI, values, EmailContent.ID_SELECTION, in testMessageCount()
419 getProvider().delete(Message.CONTENT_URI, EmailContent.ID_SELECTION, in testMessageCount()
[all …]
/packages/apps/Email/tests/src/com/android/email/service/
DAttachmentServiceTests.java24 import com.android.emailcommon.provider.EmailContent;
453 final EmailContent.Attachment attachment = new EmailContent.Attachment(); in testServiceCallbackAttachmentCompleteUpdate()
466 final EmailContent.Attachment attachment = new EmailContent.Attachment(); in testServiceCallbackAttachmentErrorUpdate()
479 final EmailContent.Attachment attachment = new EmailContent.Attachment(); in testServiceCallbackAttachmentInProgressUpdate()
489 assertTrue(values.containsKey(EmailContent.AttachmentColumns.UI_STATE)); in testServiceCallbackAttachmentInProgressUpdate()
490 assertTrue(values.containsKey(EmailContent.AttachmentColumns.UI_DOWNLOADED_SIZE)); in testServiceCallbackAttachmentInProgressUpdate()
492 assertTrue(values.getAsInteger(EmailContent.AttachmentColumns.UI_STATE) == in testServiceCallbackAttachmentInProgressUpdate()
495 EmailContent.AttachmentColumns.UI_DOWNLOADED_SIZE).intValue() == 750); in testServiceCallbackAttachmentInProgressUpdate()
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java44 import com.android.emailcommon.provider.EmailContent;
45 import com.android.emailcommon.provider.EmailContent.Attachment;
46 import com.android.emailcommon.provider.EmailContent.Message;
91 EmailContent.init(context); in EmailNotificationController()
267 Account.CONTENT_URI, EmailContent.ID_PROJECTION, in registerMessageNotification()
271 long id = c.getLong(EmailContent.ID_PROJECTION_COLUMN); in registerMessageNotification()
616 ContentUris.withAppendedId(EmailContent.MAILBOX_NOTIFICATION_URI, accountId), in refreshNotificationsForAccountInternal()
621 mailboxCursor.getLong(EmailContent.NOTIFICATION_MAILBOX_ID_COLUMN); in refreshNotificationsForAccountInternal()
625 EmailContent.NOTIFICATION_MAILBOX_UNSEEN_COUNT_COLUMN); in refreshNotificationsForAccountInternal()
633 EmailContent.NOTIFICATION_MAILBOX_UNREAD_COUNT_COLUMN); in refreshNotificationsForAccountInternal()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.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.HostAuthColumns;
40 import com.android.emailcommon.provider.EmailContent.Message;
552 EmailContent.AUTHORITY.equals(original.getAuthority())) {
553 return EmailContent.uriWithLimit(original, 1);

123