/packages/apps/Email/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() 177 int qm1 = body.indexOf('?', endScan + 2); in decodeEncodedWords() 178 int qm2 = body.indexOf('?', qm1 + 1); in decodeEncodedWords() 184 int end = begin == -1 ? -1 : body.indexOf("?=", endScan); in decodeEncodedWords() 187 return body; in decodeEncodedWords() 189 sb.append(body.substring(previousEnd)); in decodeEncodedWords() 194 String sep = body.substring(previousEnd, begin); in decodeEncodedWords() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
D | Rfc822Output.java | 101 /*package*/ static String getHtmlAlternate(Body body, boolean useSmartReply) { in getHtmlAlternate() argument 102 if (body.mHtmlReply == null) { in getHtmlAlternate() 106 String htmlContent = TextUtils.htmlEncode(body.mTextContent); // Escape HTML reserved chars in getHtmlAlternate() 109 if (body.mIntroText != null) { in getHtmlAlternate() 110 String htmlIntro = TextUtils.htmlEncode(body.mIntroText); in getHtmlAlternate() 115 String htmlBody = getHtmlBody(body.mHtmlReply); in getHtmlAlternate() 124 /*package*/ static String[] buildBodyText(Body body, int flags, boolean useSmartReply) { in buildBodyText() argument 126 if (body == null) { in buildBodyText() 129 String text = body.mTextContent; in buildBodyText() 134 String intro = body.mIntroText == null ? "" : body.mIntroText; in buildBodyText() [all …]
|
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() 83 public void setBody(Body body) throws MessagingException { in setBody() argument 84 this.mBody = body; in setBody() 85 if (body instanceof com.android.emailcommon.mail.Multipart) { in setBody() 87 ((com.android.emailcommon.mail.Multipart)body); in setBody() 91 else if (body instanceof TextBody) { in setBody()
|
D | MimeMessage.java | 369 public void setBody(Body body) throws MessagingException { in setBody() argument 370 this.mBody = body; in setBody() 371 if (body instanceof Multipart) { in setBody() 372 Multipart multipart = ((Multipart)body); in setBody() 377 else if (body instanceof TextBody) { in setBody() 567 public void body(BodyDescriptor bd, InputStream in) throws IOException { in body() method in MimeMessage.MimeMessageBuilder 569 Body body = MimeUtility.decodeBody(in, bd.getTransferEncoding()); in body() local 571 ((Part)stack.peek()).setBody(body); in body()
|
/packages/apps/Email/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 | 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 | 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 | 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/Email/tests/src/com/android/emailcommon/internet/ |
D | Rfc822OutputTests.java | 116 Body body = Body.restoreBodyWithMessageId(mMockContext, message.mId); in createTestBody() local 117 return body; in createTestBody() 210 Body body = createTestBody(msg); in testBuildBodyTextWithForward() local 211 String[] bodyParts = Rfc822Output.buildBodyText(body, msg.mFlags, false); in testBuildBodyTextWithForward() 350 Body body = createTestBody(message); in testGetHtmlAlternate() local 354 html = Rfc822Output.getHtmlAlternate(body, false); in testGetHtmlAlternate() 358 html = Rfc822Output.getHtmlAlternate(body, true); in testGetHtmlAlternate() 365 body = createTestBody(message); in testGetHtmlAlternate() 367 html = Rfc822Output.getHtmlAlternate(body, false); in testGetHtmlAlternate() 374 body = createTestBody(message); in testGetHtmlAlternate() [all …]
|
/packages/apps/Email/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/Email/src/com/android/email/activity/ |
D | MessageCompose.java | 850 public void onMessageLoaded(Message message, Body body) { in resumeDraft() 851 message.mHtml = body.mHtmlContent; in resumeDraft() 852 message.mText = body.mTextContent; in resumeDraft() 853 message.mHtmlReply = body.mHtmlReply; in resumeDraft() 854 message.mTextReply = body.mTextReply; in resumeDraft() 855 message.mIntroText = body.mIntroText; in resumeDraft() 856 message.mSourceKey = body.mSourceKey; in resumeDraft() 920 public void onMessageLoaded(Message message, Body body) { in loadSourceMessage() 921 message.mHtml = body.mHtmlContent; in loadSourceMessage() 922 message.mText = body.mTextContent; in loadSourceMessage() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ComposeMessageActivity.java | 1392 PduBody body = null; in haveSomethingToCopyToSDCard() local 1394 body = SlideshowModel.getPduBody(this, in haveSomethingToCopyToSDCard() 1399 if (body == null) { in haveSomethingToCopyToSDCard() 1404 int partNum = body.getPartsNum(); in haveSomethingToCopyToSDCard() 1406 PduPart part = body.getPart(i); in haveSomethingToCopyToSDCard() 1428 PduBody body = null; in saveRingtone() local 1430 body = SlideshowModel.getPduBody(this, in saveRingtone() 1435 if (body == null) { in saveRingtone() 1439 int partNum = body.getPartsNum(); in saveRingtone() 1441 PduPart part = body.getPart(i); in saveRingtone() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 221 Body body = new Body(); in setupBody() local 222 body.mMessageKey = messageId; in setupBody() 223 body.mTextContent = textContent; in setupBody() 224 body.mHtmlContent = htmlContent; in setupBody() 225 body.mTextReply = "text reply " + messageId; in setupBody() 226 body.mHtmlReply = "html reply " + messageId; in setupBody() 227 body.mSourceKey = messageId + 0x1000; in setupBody() 228 body.mIntroText = "intro text " + messageId; in setupBody() 230 body.save(context); in setupBody() 232 return body; in setupBody()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | ConversionUtilities.java | 60 public static boolean updateBodyFields(EmailContent.Body body, in updateBodyFields() argument 64 body.mMessageKey = localMessage.mId; in updateBodyFields() 117 body.mTextContent = text; in updateBodyFields() 122 body.mHtmlContent = text; in updateBodyFields() 128 body.mHtmlReply = sbHtmlReply.toString(); in updateBodyFields() 131 body.mTextReply = sbTextReply.toString(); in updateBodyFields() 134 body.mIntroText = sbIntroText.toString(); in updateBodyFields()
|
/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/Mms/src/com/android/mms/transaction/ |
D | HttpUtils.java | 209 byte[] body = null; in httpConnection() 213 body = new byte[(int) entity.getContentLength()]; in httpConnection() 216 dis.readFully(body); in httpConnection() 251 body = new byte[offset]; in httpConnection() 252 System.arraycopy(tempBody, 0, body, 0, offset); in httpConnection() 272 return body; in httpConnection()
|
D | SmsReceiverService.java | 497 StringBuilder body = new StringBuilder(); in replaceMessage() local 501 body.append(sms.getDisplayMessageBody()); in replaceMessage() 504 values.put(Inbox.BODY, replaceFormFeeds(body.toString())); in replaceMessage() 558 StringBuilder body = new StringBuilder(); in storeMessage() local 562 body.append(sms.getDisplayMessageBody()); in storeMessage() 565 values.put(Inbox.BODY, replaceFormFeeds(body.toString())); in storeMessage()
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | SmilHelper.java | 100 private static PduPart findSmilPart(PduBody body) { in findSmilPart() argument 101 int partNum = body.getPartsNum(); in findSmilPart() 103 PduPart part = body.getPart(i); in findSmilPart() 191 SMILElement body = (SMILElement) document.createElement("body"); in createSmilDocument() local 192 smil.appendChild(body); in createSmilDocument()
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | SmtpSenderUnitTests.java | 113 Body body = new Body(); in testSendMessageWithBody() local 114 body.mMessageKey = message.mId; in testSendMessageWithBody() 115 body.mTextContent = TEST_STRING; in testSendMessageWithBody() 116 body.save(mProviderContext); in testSendMessageWithBody()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractDownloadProviderFunctionalTest.java | 228 MockResponse buildResponse(int status, String body) { in buildResponse() argument 229 return new MockResponse().setResponseCode(status).setBody(body) in buildResponse() 234 MockResponse buildResponse(int status, byte[] body) { in buildResponse() argument 235 return new MockResponse().setResponseCode(status).setBody(body) in buildResponse()
|