HomeSort by relevance Sort by last modified time
    Searched refs:MimeUtility (Results 1 - 23 of 23) sorted by null

  /packages/apps/Email/tests/src/com/android/emailcommon/internet/
MimeUtilityTest.java 21 import com.android.emailcommon.internet.MimeUtility;
38 * This is a series of unit tests for the MimeUtility class. These tests must be locally
133 String result1 = MimeUtility.unfold(SHORT_PLAIN);
134 String result2 = MimeUtility.decode(SHORT_PLAIN);
135 String result3 = MimeUtility.unfoldAndDecode(SHORT_PLAIN);
148 String result1 = MimeUtility.decode(SHORT_UNICODE_ENCODED);
158 String result1 = MimeUtility.unfoldAndDecode(SHORT_UNICODE_ENCODED);
167 String result1 = MimeUtility.unfoldAndDecode(CALENDAR_SUBJECT_UNICODE);
171 String degenerate1 = MimeUtility.unfoldAndDecode(CALENDAR_DEGENERATE_UNICODE_1);
173 String degenerate2 = MimeUtility.unfoldAndDecode(CALENDAR_DEGENERATE_UNICODE_2)
    [all...]
MimeMessageTest.java 461 assertTrue(mm.getMimeType(), MimeUtility.mimeTypeMatches("text/html",mm.getMimeType()));
  /packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
MimeMessage.java 168 "Date: " + MimeUtility.unfoldAndDecode(getFirstHeader("Date")));
182 "Date: " + MimeUtility.unfoldAndDecode(getFirstHeader("Delivery-date")));
227 return MimeUtility.getHeaderParameter(getContentType(), null);
243 mTo = Address.parse(MimeUtility.unfold(getFirstHeader("To")));
248 mCc = Address.parse(MimeUtility.unfold(getFirstHeader("CC")));
253 mBcc = Address.parse(MimeUtility.unfold(getFirstHeader("BCC")));
271 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), toLength));
279 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), ccLength));
287 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), bccLength));
298 return MimeUtility.unfoldAndDecode(getFirstHeader("Subject"))
    [all...]
MimeMultipart.java 44 mSubType = MimeUtility.getHeaderParameter(contentType, null).split("/")[1];
45 mBoundary = MimeUtility.getHeaderParameter(contentType, "boundary");
MimeBodyPart.java 94 String name = MimeUtility.getHeaderParameter(getContentType(), "name");
136 return MimeUtility.getHeaderParameter(getContentType(), null);
MimeUtility.java 43 public class MimeUtility {
221 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) {
314 contentTransferEncoding = MimeUtility.getHeaderParameter(contentTransferEncoding, null);
358 String dispositionType = MimeUtility.getHeaderParameter(disposition, null);
  /packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
MimeMessage.java 176 + MimeUtility.unfoldAndDecode(getFirstHeader("Date")));
188 + MimeUtility.unfoldAndDecode(getFirstHeader("Delivery-date")));
237 return MimeUtility.getHeaderParameter(getContentType(), null);
253 mTo = Address.parse(MimeUtility.unfold(getFirstHeader("To")));
258 mCc = Address.parse(MimeUtility.unfold(getFirstHeader("CC")));
263 mBcc = Address.parse(MimeUtility.unfold(getFirstHeader("BCC")));
281 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH));
289 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH));
297 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH));
310 return MimeUtility.unfoldAndDecode(getFirstHeader("Subject"))
    [all...]
MimeMultipart.java 46 mSubType = MimeUtility.getHeaderParameter(contentType, null).split("/")[1];
47 mBoundary = MimeUtility.getHeaderParameter(contentType, "boundary");
MimeBodyPart.java 99 String name = MimeUtility.getHeaderParameter(getContentType(), "name");
141 return MimeUtility.getHeaderParameter(getContentType(), null);
MimeUtility.java 46 public class MimeUtility {
230 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) {
326 MimeUtility.getHeaderParameter(contentTransferEncoding, null);
374 String dispositionType = MimeUtility.getHeaderParameter(disposition, null);
  /packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
ConversionUtilities.java 20 import com.android.emailcommon.internet.MimeUtility;
71 String text = MimeUtility.getTextFromPart(viewable);
  /packages/apps/Email/tests/src/com/android/email/
LegacyConversionsTests.java 29 import com.android.emailcommon.internet.MimeUtility;
108 MimeUtility.collectParts(legacyMessage, viewables, attachments);
203 MimeUtility.collectParts(legacyMessage, viewables, attachments);
218 MimeUtility.collectParts(legacyMessage, viewables, attachments);
290 String contentType = MimeUtility.unfoldAndDecode(expected.getContentType());
291 String contentTypeName = MimeUtility.getHeaderParameter(contentType, "name");
294 String sizeString = MimeUtility.getHeaderParameter(disposition, "size");
295 String dispositionFilename = MimeUtility.getHeaderParameter(disposition, "filename");
387 MimeUtility.collectParts(actual, viewables, attachments);
391 String text = MimeUtility.getTextFromPart(viewable)
    [all...]
  /packages/apps/Email/provider_src/com/android/email/
LegacyConversions.java 31 import com.android.emailcommon.internet.MimeUtility;
178 final String disposition = MimeUtility.getHeaderParameter(
179 MimeUtility.unfoldAndDecode(inlinePart.getDisposition()), null);
197 final String contentType = MimeUtility.unfoldAndDecode(part.getContentType());
199 String name = MimeUtility.getHeaderParameter(contentType, "name");
201 final String contentDisposition = MimeUtility.unfoldAndDecode(part.getDisposition());
202 name = MimeUtility.getHeaderParameter(contentDisposition, "filename");
209 String s = MimeUtility.getHeaderParameter(disposition, "size");
AttachmentInfo.java 19 import com.android.emailcommon.internet.MimeUtility;
126 if ((!MimeUtility.mimeTypeMatches(mContentType,
128 (MimeUtility.mimeTypeMatches(mContentType,
  /packages/apps/Email/provider_src/com/android/email/provider/
Utilities.java 29 import com.android.emailcommon.internet.MimeUtility;
119 MimeUtility.collectParts(message, viewables, attachments);
AttachmentProvider.java 33 import com.android.emailcommon.internet.MimeUtility;
316 if(MimeUtility.mimeTypeMatches(type, "image/*")) {
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
Rfc822Output.java 315 writer.append(MimeUtility.foldAndEncode2(value, name.length() + 2));
332 writer.append(MimeUtility.fold(Address.reformatToHeader(value), name.length() + 2));
  /packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
ImapFolder.java 37 import com.android.voicemail.impl.mail.internet.MimeUtility;
427 * taken/condensed from MimeUtility.decodeBody
437 in = MimeUtility.getInputStreamForContentTransferEncoding(in, contentTransferEncoding);
539 if (MimeUtility.mimeTypeMatches(mimeType, MimeUtility.MIME_TYPE_RFC822)) {
550 "BODYSTRUCTURE " + MimeUtility.MIME_TYPE_RFC822 + " not yet supported.");
565 // because MimeUtility.getHeaderParameter doesn't recognize it,
620 && (MimeUtility.getHeaderParameter(contentDisposition.toString(), "size") == null)) {
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Attachment.java 28 import com.android.emailcommon.internet.MimeUtility;
251 final String contentTypeHeader = MimeUtility.unfoldAndDecode(part.getContentType());
252 name = MimeUtility.getHeaderParameter(contentTypeHeader, "name");
255 MimeUtility.unfoldAndDecode(part.getDisposition());
256 name = MimeUtility.getHeaderParameter(contentDisposition, "filename");
Message.java 36 import com.android.emailcommon.internet.MimeUtility;
462 MimeUtility.collectParts(mimeMessage, viewables, attachments);
  /packages/apps/Email/provider_src/com/android/email/mail/store/
ImapFolder.java 38 import com.android.emailcommon.internet.MimeUtility;
    [all...]
  /packages/apps/Email/tests/src/com/android/email/mail/store/
ImapStoreUnitTests.java 41 import com.android.emailcommon.internet.MimeUtility;
    [all...]
  /packages/apps/Email/provider_src/com/android/email/service/
ImapService.java 42 import com.android.emailcommon.internet.MimeUtility;
267 MimeUtility.collectParts(message, viewables, attachments);
    [all...]

Completed in 1758 milliseconds