/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
D | MimeUtilityTest.java | 21 import com.android.emailcommon.internet.MimeUtility; 133 String result1 = MimeUtility.unfold(SHORT_PLAIN); in testEfficientUnfoldAndDecode() 134 String result2 = MimeUtility.decode(SHORT_PLAIN); in testEfficientUnfoldAndDecode() 135 String result3 = MimeUtility.unfoldAndDecode(SHORT_PLAIN); in testEfficientUnfoldAndDecode() 148 String result1 = MimeUtility.decode(SHORT_UNICODE_ENCODED); in testDecodeSimple() 158 String result1 = MimeUtility.unfoldAndDecode(SHORT_UNICODE_ENCODED); in testUnfoldAndDecodeSimple() 167 String result1 = MimeUtility.unfoldAndDecode(CALENDAR_SUBJECT_UNICODE); in testComplexDecode() 171 String degenerate1 = MimeUtility.unfoldAndDecode(CALENDAR_DEGENERATE_UNICODE_1); in testComplexDecode() 173 String degenerate2 = MimeUtility.unfoldAndDecode(CALENDAR_DEGENERATE_UNICODE_2); in testComplexDecode() 175 String degenerate3 = MimeUtility.unfoldAndDecode(CALENDAR_DEGENERATE_UNICODE_3); in testComplexDecode() [all …]
|
D | MimeMessageTest.java | 461 assertTrue(mm.getMimeType(), MimeUtility.mimeTypeMatches("text/html",mm.getMimeType())); in brokentestWhiteSpace()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
D | MimeMessage.java | 168 "Date: " + MimeUtility.unfoldAndDecode(getFirstHeader("Date"))); in getSentDate() 182 "Date: " + MimeUtility.unfoldAndDecode(getFirstHeader("Delivery-date"))); in getSentDate() 227 return MimeUtility.getHeaderParameter(getContentType(), null); in getMimeType() 243 mTo = Address.parse(MimeUtility.unfold(getFirstHeader("To"))); in getRecipients() 248 mCc = Address.parse(MimeUtility.unfold(getFirstHeader("CC"))); in getRecipients() 253 mBcc = Address.parse(MimeUtility.unfold(getFirstHeader("BCC"))); in getRecipients() 271 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), toLength)); in setRecipients() 279 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), ccLength)); in setRecipients() 287 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), bccLength)); in setRecipients() 298 return MimeUtility.unfoldAndDecode(getFirstHeader("Subject")); in getSubject() [all …]
|
D | MimeUtility.java | 43 public class MimeUtility { class 221 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) { in getTextFromPart() 314 contentTransferEncoding = MimeUtility.getHeaderParameter(contentTransferEncoding, null); in getInputStreamForContentTransferEncoding() 358 String dispositionType = MimeUtility.getHeaderParameter(disposition, null); in collectParts()
|
D | MimeMultipart.java | 44 mSubType = MimeUtility.getHeaderParameter(contentType, null).split("/")[1]; in MimeMultipart() 45 mBoundary = MimeUtility.getHeaderParameter(contentType, "boundary"); in MimeMultipart()
|
D | MimeBodyPart.java | 94 String name = MimeUtility.getHeaderParameter(getContentType(), "name"); in setBody() 136 return MimeUtility.getHeaderParameter(getContentType(), null); in getMimeType()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeMessage.java | 176 + MimeUtility.unfoldAndDecode(getFirstHeader("Date"))); in getSentDate() 188 + MimeUtility.unfoldAndDecode(getFirstHeader("Delivery-date"))); in getSentDate() 237 return MimeUtility.getHeaderParameter(getContentType(), null); in getMimeType() 253 mTo = Address.parse(MimeUtility.unfold(getFirstHeader("To"))); in getRecipients() 258 mCc = Address.parse(MimeUtility.unfold(getFirstHeader("CC"))); in getRecipients() 263 mBcc = Address.parse(MimeUtility.unfold(getFirstHeader("BCC"))); in getRecipients() 281 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients() 289 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients() 297 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients() 310 return MimeUtility.unfoldAndDecode(getFirstHeader("Subject")); in getSubject() [all …]
|
D | MimeUtility.java | 46 public class MimeUtility { class 230 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) { in getTextFromPart() 326 MimeUtility.getHeaderParameter(contentTransferEncoding, null); in getInputStreamForContentTransferEncoding() 374 String dispositionType = MimeUtility.getHeaderParameter(disposition, null); in collectParts()
|
D | MimeMultipart.java | 46 mSubType = MimeUtility.getHeaderParameter(contentType, null).split("/")[1]; in MimeMultipart() 47 mBoundary = MimeUtility.getHeaderParameter(contentType, "boundary"); in MimeMultipart()
|
D | MimeBodyPart.java | 99 String name = MimeUtility.getHeaderParameter(getContentType(), "name"); in setBody() 141 return MimeUtility.getHeaderParameter(getContentType(), null); in getMimeType()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 29 import com.android.emailcommon.internet.MimeUtility; 108 MimeUtility.collectParts(legacyMessage, viewables, attachments); in convertAndCheckcheckAddedAttachments() 203 MimeUtility.collectParts(legacyMessage, viewables, attachments); in brokentestAddDuplicateAttachments() 218 MimeUtility.collectParts(legacyMessage, viewables, attachments); in brokentestAddDuplicateAttachments() 290 String contentType = MimeUtility.unfoldAndDecode(expected.getContentType()); in checkAttachment() 291 String contentTypeName = MimeUtility.getHeaderParameter(contentType, "name"); in checkAttachment() 294 String sizeString = MimeUtility.getHeaderParameter(disposition, "size"); in checkAttachment() 295 String dispositionFilename = MimeUtility.getHeaderParameter(disposition, "filename"); in checkAttachment() 387 MimeUtility.collectParts(actual, viewables, attachments); in checkLegacyMessage() 391 String text = MimeUtility.getTextFromPart(viewable); in checkLegacyMessage()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | LegacyConversions.java | 31 import com.android.emailcommon.internet.MimeUtility; 178 final String disposition = MimeUtility.getHeaderParameter( in updateInlineAttachments() 179 MimeUtility.unfoldAndDecode(inlinePart.getDisposition()), null); in updateInlineAttachments() 197 final String contentType = MimeUtility.unfoldAndDecode(part.getContentType()); in mimePartToAttachment() 199 String name = MimeUtility.getHeaderParameter(contentType, "name"); in mimePartToAttachment() 201 final String contentDisposition = MimeUtility.unfoldAndDecode(part.getDisposition()); in mimePartToAttachment() 202 name = MimeUtility.getHeaderParameter(contentDisposition, "filename"); in mimePartToAttachment() 209 String s = MimeUtility.getHeaderParameter(disposition, "size"); in mimePartToAttachment()
|
D | AttachmentInfo.java | 19 import com.android.emailcommon.internet.MimeUtility; 126 if ((!MimeUtility.mimeTypeMatches(mContentType, in AttachmentInfo() 128 (MimeUtility.mimeTypeMatches(mContentType, in AttachmentInfo()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapFolder.java | 37 import com.android.voicemail.impl.mail.internet.MimeUtility; 437 in = MimeUtility.getInputStreamForContentTransferEncoding(in, contentTransferEncoding); in decodeBody() 539 if (MimeUtility.mimeTypeMatches(mimeType, MimeUtility.MIME_TYPE_RFC822)) { in parseBodyStructure() 550 "BODYSTRUCTURE " + MimeUtility.MIME_TYPE_RFC822 + " not yet supported."); in parseBodyStructure() 620 && (MimeUtility.getHeaderParameter(contentDisposition.toString(), "size") == null)) { in parseBodyStructure()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Attachment.java | 28 import com.android.emailcommon.internet.MimeUtility; 251 final String contentTypeHeader = MimeUtility.unfoldAndDecode(part.getContentType()); in Attachment() 252 name = MimeUtility.getHeaderParameter(contentTypeHeader, "name"); in Attachment() 255 MimeUtility.unfoldAndDecode(part.getDisposition()); in Attachment() 256 name = MimeUtility.getHeaderParameter(contentDisposition, "filename"); in Attachment()
|
D | Message.java | 36 import com.android.emailcommon.internet.MimeUtility; 462 MimeUtility.collectParts(mimeMessage, viewables, attachments); in Message()
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | ImapFolder.java | 38 import com.android.emailcommon.internet.MimeUtility; 801 in = MimeUtility.getInputStreamForContentTransferEncoding(in, contentTransferEncoding); in decodeBody() 911 if (MimeUtility.mimeTypeMatches(mimeType, MimeUtility.MIME_TYPE_RFC822)) { in parseBodyStructure() 921 throw new MessagingException("BODYSTRUCTURE " + MimeUtility.MIME_TYPE_RFC822 in parseBodyStructure() 985 && (MimeUtility.getHeaderParameter(contentDisposition.toString(), "size") in parseBodyStructure()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/ |
D | ConversionUtilities.java | 20 import com.android.emailcommon.internet.MimeUtility; 71 String text = MimeUtility.getTextFromPart(viewable); in parseBodyFields()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | Utilities.java | 29 import com.android.emailcommon.internet.MimeUtility; 119 MimeUtility.collectParts(message, viewables, attachments); in copyOneMessageToProvider()
|
D | AttachmentProvider.java | 33 import com.android.emailcommon.internet.MimeUtility; 316 if(MimeUtility.mimeTypeMatches(type, "image/*")) { in createThumbnail()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
D | Rfc822Output.java | 315 writer.append(MimeUtility.foldAndEncode2(value, name.length() + 2)); in writeEncodedHeader() 332 writer.append(MimeUtility.fold(Address.reformatToHeader(value), name.length() + 2)); in writeAddressHeader()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 41 import com.android.emailcommon.internet.MimeUtility; 1092 MimeUtility.collectParts(message1, viewables, attachments); in testNilMessage() 1105 MimeUtility.collectParts(message1, viewables, attachments); in testNilMessage() 1108 String text = MimeUtility.getTextFromPart(emptyBodyPart); in testNilMessage()
|
/packages/apps/UnifiedEmail/ |
D | proguard-test.flags | 15 -keep class com.android.emailcommon.internet.MimeUtility {
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | ImapService.java | 42 import com.android.emailcommon.internet.MimeUtility; 267 MimeUtility.collectParts(message, viewables, attachments); in loadUnsyncedMessages() 1592 MimeUtility.collectParts(message, viewables, attachments); in searchMailboxImpl()
|
/packages/apps/Email/ |
D | proguard-test.flags | 26 -keepclasseswithmembers class com.android.emailcommon.internet.MimeUtility {
|