Home
last modified time | relevance | path

Searched refs:MimeHeader (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java28 import com.android.emailcommon.internet.MimeHeader;
151 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/jpg"); in brokentestAttachmentDispositions()
152 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in brokentestAttachmentDispositions()
153 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in brokentestAttachmentDispositions()
155 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "100"); in brokentestAttachmentDispositions()
160 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/gif"); in brokentestAttachmentDispositions()
161 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in brokentestAttachmentDispositions()
162 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in brokentestAttachmentDispositions()
164 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "101"); in brokentestAttachmentDispositions()
169 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in brokentestAttachmentDispositions()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeUtilityTest.java20 import com.android.emailcommon.internet.MimeHeader;
318 cid2bp.addHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, "inline; filename=\"im2.gif\""); in brokentestCollectParts()
321 cid3bp.addHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, "attachment; filename=\"im3.gif\""); in brokentestCollectParts()
327 cid5bp.addHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, "inline"); // no filename attr in brokentestCollectParts()
370 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/plain"); in testGetTextFromPartContentTypeCase()
376 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/PLAIN"); in testGetTextFromPartContentTypeCase()
382 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/other"); in testGetTextFromPartContentTypeCase()
413 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=utf-8"); in testContentTypeCharset()
419 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=windows-1252"); in testContentTypeCharset()
426 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in testContentTypeCharset()
[all …]
DMimeHeaderUnitTests.java19 import com.android.emailcommon.internet.MimeHeader;
38 MimeHeader header = new MimeHeader(); in testWriteToString()
57 header.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "value3"); in testWriteToString()
DMimeBodyPartTest.java20 import com.android.emailcommon.internet.MimeHeader;
47 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId()
51 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId()
DMimeMessageTest.java142 message.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId()
146 message.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId()
410 message.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "value2"); in testWriteToHeader()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeBodyPart.java34 protected MimeHeader mHeader = new MimeHeader();
35 protected MimeHeader mExtendedHeader;
54 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in MimeBodyPart()
95 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
103 setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType); in setBody()
104 setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in setBody()
110 String contentType = getFirstHeader(MimeHeader.HEADER_CONTENT_TYPE); in getContentType()
120 String contentDisposition = getFirstHeader(MimeHeader.HEADER_CONTENT_DISPOSITION); in getDisposition()
130 String contentId = getFirstHeader(MimeHeader.HEADER_CONTENT_ID); in getContentId()
175 mExtendedHeader = new MimeHeader(); in setExtendedHeader()
DMimeMessage.java56 private MimeHeader mHeader;
57 private MimeHeader mExtendedHeader;
159 private MimeHeader getMimeHeaders() { in getMimeHeaders()
161 mHeader = new MimeHeader(); in getMimeHeaders()
207 final String contentType = getFirstHeader(MimeHeader.HEADER_CONTENT_TYPE); in getContentType()
217 return getFirstHeader(MimeHeader.HEADER_CONTENT_DISPOSITION); in getDisposition()
222 final String contentId = getFirstHeader(MimeHeader.HEADER_CONTENT_ID); in getContentId()
406 setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType()); in setBody()
410 setHeader(MimeHeader.HEADER_CONTENT_TYPE, String.format("%s;\n charset=utf-8", in setBody()
412 setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in setBody()
[all …]
DMimeHeader.java27 public class MimeHeader { class
/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java28 import com.android.emailcommon.internet.MimeHeader;
222 final String[] partIds = part.getHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA); in mimePartToAttachment()
396 message.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "multipart/mixed"); in makeMessage()
500 bp.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in addAttachmentPart()
501 bp.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, "attachment;\n " in addAttachmentPart()
505 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, contentId); in addAttachmentPart()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java36 import com.android.emailcommon.internet.MimeHeader;
669 fetchPart.getHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA); in fetchInternal()
755 MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING); in fetchInternal()
944 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure()
995 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in parseBodyStructure()
1004 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, in parseBodyStructure()
1012 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure()
1024 part.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, id); in parseBodyStructure()
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceStub.java37 import com.android.emailcommon.internet.MimeHeader;
198 storePart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, in loadAttachment()
200 storePart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, in loadAttachment()
207 storePart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64"); in loadAttachment()
213 storeMessage.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "multipart/mixed"); in loadAttachment()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMessageTestUtils.java20 import com.android.emailcommon.internet.MimeHeader;
80 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, contentId); in bodyPart()
96 textPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in textPart()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java34 import com.android.emailcommon.internet.MimeHeader;
486 final String[] cids = viewablePart.getHeader(MimeHeader.HEADER_CONTENT_ID); in Message()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DConversionUtilities.java19 import com.android.emailcommon.internet.MimeHeader;