/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
D | DecoderUtil.java | 156 public static String decodeEncodedWords(String body) { in decodeEncodedWords() argument 160 if (body.indexOf("=?") == -1) { in decodeEncodedWords() 161 return body; in decodeEncodedWords() 170 int begin = body.indexOf("=?", previousEnd); in decodeEncodedWords() 178 int qm1 = body.indexOf('?', begin + 2); in decodeEncodedWords() 182 int qm2 = body.indexOf('?', qm1 + 1); in decodeEncodedWords() 186 int end = body.indexOf("?=", qm2 + 1); in decodeEncodedWords() 192 String sep = body.substring(previousEnd, begin); in decodeEncodedWords() 194 String decoded = decodeEncodedWord(body, begin, end); in decodeEncodedWords() 197 sb.append(body.substring(begin, end)); in decodeEncodedWords() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
D | MimeBodyPart.java | 32 protected Body body; field in MimeBodyPart 44 public MimeBodyPart(Body body) throws MessagingException { in MimeBodyPart() argument 45 this(body, null); in MimeBodyPart() 48 public MimeBodyPart(Body body, String mimeType) throws MessagingException { in MimeBodyPart() argument 52 setBody(body); in MimeBodyPart() 81 return body; in getBody() 85 public void setBody(Body body) throws MessagingException { in setBody() argument 86 this.body = body; in setBody() 87 if (body instanceof Multipart) { in setBody() 89 ((Multipart) body); in setBody() [all …]
|
D | TextBody.java | 28 String body; field in TextBody 30 public TextBody(String body) { in TextBody() argument 31 this.body = body; in TextBody() 36 byte[] bytes = body.getBytes("UTF-8"); in writeTo() 46 return body; in getText() 53 byte[] b = body.getBytes("UTF-8"); in getInputStream()
|
D | MimeMessage.java | 68 private Body body; field in MimeMessage 135 body = null; in init() 409 return body; in getBody() 413 public void setBody(Body body) throws MessagingException { in setBody() argument 414 this.body = body; in setBody() 415 if (body instanceof Multipart) { in setBody() 416 final Multipart multipart = ((Multipart) body); in setBody() 420 } else if (body instanceof TextBody) { in setBody() 539 if (body != null) { in writeTo() 540 body.writeTo(out); in writeTo() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
D | Field.java | 60 private final String body; field in Field 63 protected Field(final String name, final String body, final String raw) { in Field() argument 65 this.body = body; in Field() 101 String body = unfolded.substring(fieldMatcher.end()); in parse() local 102 if (body.length() > 0 && body.charAt(0) == ' ') { in parse() 103 body = body.substring(1); in parse() 106 return parser.parse(name, body, raw); in parse() 143 return body; in getBody()
|
D | DateTimeField.java | 38 …protected DateTimeField(String name, String body, String raw, Date date, ParseException parseExcep… in DateTimeField() argument 39 super(name, body, raw); in DateTimeField() 55 public Field parse(final String name, String body, final String raw) { in parse() argument 59 body = LogUtils.cleanUpMimeDate(body); in parse() 62 date = DateTime.parse(body).getDate(); in parse() 66 log.debug("Parsing value '" + body + "': "+ e.getMessage()); in parse() 70 return new DateTimeField(name, body, raw, date, parseException); in parse()
|
D | AddressListField.java | 33 …protected AddressListField(String name, String body, String raw, AddressList addressList, ParseExc… in AddressListField() argument 34 super(name, body, raw); in AddressListField() 50 public Field parse(final String name, final String body, final String raw) { in parse() argument 54 addressList = AddressList.parse(body); in parse() 58 log.debug("Parsing value '" + body + "': "+ e.getMessage()); in parse() 62 return new AddressListField(name, body, raw, addressList, parseException); in parse()
|
D | MailboxListField.java | 35 …protected MailboxListField(final String name, final String body, final String raw, final MailboxLi… in MailboxListField() argument 36 super(name, body, raw); in MailboxListField() 52 public Field parse(final String name, final String body, final String raw) { in parse() argument 56 mailboxList = AddressList.parse(body).flatten(); in parse() 60 log.debug("Parsing value '" + body + "': "+ e.getMessage()); in parse() 64 return new MailboxListField(name, body, raw, mailboxList, parseException); in parse()
|
D | MailboxField.java | 35 …protected MailboxField(final String name, final String body, final String raw, final Mailbox mailb… in MailboxField() argument 36 super(name, body, raw); in MailboxField() 52 public Field parse(final String name, final String body, final String raw) { in parse() argument 56 MailboxList mailboxList = AddressList.parse(body).flatten(); in parse() 63 log.debug("Parsing value '" + body + "': "+ e.getMessage()); in parse() 67 return new MailboxField(name, body, raw, mailbox, parseException); in parse()
|
D | ContentTypeField.java | 75 …protected ContentTypeField(String name, String body, String raw, String mimeType, Map<String, Stri… in ContentTypeField() argument 76 super(name, body, raw); in ContentTypeField() 211 public Field parse(final String name, final String body, final String raw) { in parse() argument 216 ContentTypeParser parser = new ContentTypeParser(new StringReader(body)); in parse() 222 log.debug("Parsing value '" + body + "': "+ e.getMessage()); in parse() 228 log.debug("Parsing value '" + body + "': "+ e.getMessage()); in parse() 256 return new ContentTypeField(name, body, raw, mimeType, parameters, parseException); in parse()
|
D | UnstructuredField.java | 34 protected UnstructuredField(String name, String body, String raw, String value) { in UnstructuredField() argument 35 super(name, body, raw); in UnstructuredField() 44 public Field parse(final String name, final String body, final String raw) { in parse() argument 45 final String value = DecoderUtil.decodeEncodedWords(body); in parse() 46 return new UnstructuredField(name, body, raw, value); in parse()
|
D | ContentTransferEncodingField.java | 54 protected ContentTransferEncodingField(String name, String body, String raw, String encoding) { in ContentTransferEncodingField() argument 55 super(name, body, raw); in ContentTransferEncodingField() 83 public Field parse(final String name, final String body, final String raw) { in parse() argument 84 final String encoding = body.trim().toLowerCase(); in parse() 85 return new ContentTransferEncodingField(name, body, raw, encoding); in parse()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessageMime.java | 653 String body; in parseMimePart() local 661 body = partStr; in parseMimePart() 711 body = parts[1]; in parseMimePart() 712 if (body.length() > 2) { in parseMimePart() 713 if (body.charAt(body.length() - 2) == '\r' in parseMimePart() 714 && body.charAt(body.length() - 2) == '\n') { in parseMimePart() 715 body = body.substring(0, body.length() - 2); in parseMimePart() 720 newPart.mData = decodeBody(body, partEncoding, newPart.mCharsetName); in parseMimePart() 723 private void parseMimeBody(String body) { in parseMimeBody() argument 726 newPart.mData = decodeBody(body, mMyEncoding, mCharset); in parseMimeBody() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/ |
D | Message.java | 89 Body body = getBody(); in writeTo() local 90 if (body instanceof Multipart) { in writeTo() 91 Multipart mp = (Multipart) body; in writeTo() 94 body.writeTo(out); in writeTo() 175 public void body(BodyDescriptor bd, InputStream is) throws IOException { in body() method in Message.MessageBuilder 185 Body body = null; in body() local 187 body = new MemoryTextBody(is, bd.getCharset()); in body() 189 body = new MemoryBinaryBody(is); in body() 192 ((Entity) stack.peek()).setBody(body); in body()
|
D | Entity.java | 37 private Body body = null; field in Entity 84 return body; in getBody() 92 public void setBody(Body body) { in setBody() argument 93 this.body = body; in setBody() 94 body.setParent(this); in setBody()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeBodyPart.java | 48 public MimeBodyPart(Body body) throws MessagingException { in MimeBodyPart() argument 49 this(body, null); in MimeBodyPart() 52 public MimeBodyPart(Body body, String mimeType) throws MessagingException { in MimeBodyPart() argument 56 setBody(body); in MimeBodyPart() 89 public void setBody(Body body) throws MessagingException { in setBody() argument 90 this.mBody = body; in setBody() 91 if (body instanceof com.android.emailcommon.mail.Multipart) { in setBody() 93 ((com.android.emailcommon.mail.Multipart)body); in setBody() 97 else if (body instanceof TextBody) { in setBody()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | Utilities.java | 104 EmailContent.Body body = null; in copyOneMessageToProvider() local 106 body = EmailContent.Body.restoreBodyWithMessageId(context, localMessage.mId); in copyOneMessageToProvider() 108 if (body == null) { in copyOneMessageToProvider() 109 body = new EmailContent.Body(); in copyOneMessageToProvider() 127 body.mTextContent = data.textContent; in copyOneMessageToProvider() 128 body.mHtmlContent = data.htmlContent; in copyOneMessageToProvider() 132 body.mMessageKey = localMessage.mId; in copyOneMessageToProvider() 133 saveOrUpdate(body, context); in copyOneMessageToProvider()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyBackupAgent.java | 695 final MmsBody body = getMmsBody(mmsId); 696 if (body != null && body.equals(mms.body)) { 848 final MmsBody body = getMmsBody(mmsId); 850 if (body == null || body.text == null) { 890 jsonWriter.name(MMS_BODY_KEY).value(body.text); 892 jsonWriter.name(MMS_BODY_CHARSET_KEY).value(body.charSet); 968 mms.body = new MmsBody(bodyText, bodyCharset); 1008 String body = null; 1018 body = (body == null ? text : body.concat(text)); 1024 return (body == null ? null : new MmsBody(body, charSet)); [all …]
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | QuickResponseActivity.java | 86 String body = null; in onItemClick() local 88 body = mResponses[position]; in onItemClick() 92 new QueryThread(mEventId, body).start(); in onItemClick() 99 QueryThread(long eventId, String body) { in QueryThread() argument 101 mBody = body; in QueryThread()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
D | Rfc822Output.java | 92 /*package*/ static String[] buildBodyText(Body body, boolean useSmartReply) { in buildBodyText() argument 93 if (body == null) { in buildBodyText() 96 final String[] messageBody = new String[] { body.mTextContent, body.mHtmlContent }; in buildBodyText() 97 final int pos = body.mQuotedTextStartPos; in buildBodyText() 156 final Body body = Body.restoreBodyWithMessageId(context, message.mId); in writeTo() local 157 final String[] bodyText = buildBodyText(body, useSmartReply); in writeTo()
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 461 String body) { in reportRenderingFeedback() argument 463 "android-gmail-readability@google.com", body, null, null, null /* extraValues */); in reportRenderingFeedback() 467 String toAddress, String body, String quotedText, String subject, in launch() argument 482 if (body != null) { in launch() 483 intent.putExtra(EXTRA_BODY, body); in launch() 543 String body = Html.escapeHtml(text); in escapeAndReplaceHtml() local 545 return body.replaceAll("( | )", "<br>"); in escapeAndReplaceHtml() 1145 int mode, Spanned body) { in createMessage() argument 1158 message.bodyHtml = spannedBodyToHtml(body, true); in createMessage() 1159 message.bodyText = body.toString(); in createMessage() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduPersister.java | 551 final PduBody body = loadBody(msgId, msgType); in load() local 552 return createPdu(msgType, headers, body); in load() 619 final PduBody body = loadBody(msgId, msgType); in load() local 620 pdu = createPdu(msgType, headers, body); in load() 660 private GenericPdu createPdu(final int msgType, final PduHeaders headers, final PduBody body) in createPdu() argument 670 return new RetrieveConf(headers, body); in createPdu() 672 return new SendReq(headers, body); in createPdu() 705 final PduBody body = new PduBody(); in loadBody() local 715 body.addPart(parts[i]); in loadBody() 720 return body; in loadBody() [all …]
|
D | MultimediaMessagePdu.java | 44 public MultimediaMessagePdu(PduHeaders header, PduBody body) { in MultimediaMessagePdu() argument 46 mMessageBody = body; in MultimediaMessagePdu() 72 public void setBody(PduBody body) { in setBody() argument 73 mMessageBody = body; in setBody()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | MultimediaMessagePdu.java | 42 public MultimediaMessagePdu(PduHeaders header, PduBody body) { in MultimediaMessagePdu() argument 44 mMessageBody = body; in MultimediaMessagePdu() 70 public void setBody(PduBody body) { in setBody() argument 71 mMessageBody = body; in setBody()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | ThreadingTest.java | 55 final String body = "DOWNLOAD " + i + " CONTENTS"; in testFilenameRace() local 56 enqueueResponse(new MockResponse().setResponseCode(HTTP_OK).setBody(body) in testFilenameRace() 61 downloads.add(Pair.create(d, body)); in testFilenameRace() 62 expectedBodies.add(body); in testFilenameRace()
|