Lines Matching refs:EmailContent
36 import com.android.emailcommon.provider.EmailContent;
37 import com.android.emailcommon.provider.EmailContent.Attachment;
78 super(EmailProvider.class, EmailContent.AUTHORITY);
104 EmailContent.Message localMessage = new EmailContent.Message();
118 EmailContent.Message localMessage = new EmailContent.Message();
179 EmailContent.Body localBody = new EmailContent.Body();
180 EmailContent.Message localMessage = new EmailContent.Message();
200 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage(
206 final EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage(
215 private void convertAndCheckcheckAddedAttachments(final EmailContent.Message localMessage,
287 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage(
305 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage(
319 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null));
323 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null));
331 assertEquals(4, EmailContent.count(mProviderContext, uri, null, null));
417 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual,
462 EmailContent.Message localMessage1 = ProviderTestUtils.setupMessage("make-legacy",
468 EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage("make-legacy",
473 localMessage2.mFlags &= ~EmailContent.Message.FLAG_TYPE_MASK;
479 EmailContent.Message localMessage3 = ProviderTestUtils.setupMessage("make-legacy",
481 localMessage3.mFlags &= ~EmailContent.Message.FLAG_TYPE_MASK;
482 localMessage3.mFlags |= EmailContent.Message.FLAG_TYPE_REPLY;
488 EmailContent.Message localMessage4 = ProviderTestUtils.setupMessage("make-legacy",
490 localMessage4.mFlags &= ~EmailContent.Message.FLAG_TYPE_MASK;
491 localMessage4.mFlags |= EmailContent.Message.FLAG_TYPE_FORWARD;
500 private void checkProviderMessage(String tag, Message expect, EmailContent.Message actual)
516 private void checkLegacyMessage(String tag, EmailContent.Message expect, Message actual)
560 int replyTypeFlags = expect.mFlags & EmailContent.Message.FLAG_TYPE_MASK;
562 assertEquals(tag, EmailContent.Message.FLAG_TYPE_REPLY, replyTypeFlags);
565 assertEquals(tag, EmailContent.Message.FLAG_TYPE_FORWARD, replyTypeFlags);