Home
last modified time | relevance | path

Searched refs:body (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java156 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/UnifiedEmail/src/org/apache/james/mime4j/field/
DField.java60 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()
DDateTimeField.java38 …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()
DContentTypeField.java75 …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()
DAddressListField.java33 …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()
DMailboxListField.java35 …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()
DMailboxField.java35 …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()
DUnstructuredField.java34 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()
DContentTransferEncodingField.java54 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/src/com/android/email/provider/
DUtilities.java101 EmailContent.Body body = null; in copyOneMessageToProvider() local
103 body = EmailContent.Body.restoreBodyWithMessageId(context, localMessage.mId); in copyOneMessageToProvider()
105 if (body == null) { in copyOneMessageToProvider()
106 body = new EmailContent.Body(); in copyOneMessageToProvider()
124 body.mTextContent = data.textContent; in copyOneMessageToProvider()
125 body.mHtmlContent = data.htmlContent; in copyOneMessageToProvider()
126 body.mHtmlReply = data.htmlReply; in copyOneMessageToProvider()
127 body.mTextReply = data.textReply; in copyOneMessageToProvider()
128 body.mIntroText = data.introText; in copyOneMessageToProvider()
132 body.mMessageKey = localMessage.mId; in copyOneMessageToProvider()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DMessage.java89 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()
DEntity.java37 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/
DMimeBodyPart.java48 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()
DMimeMessage.java406 public void setBody(Body body) throws MessagingException { in setBody() argument
407 this.mBody = body; in setBody()
408 if (body instanceof Multipart) { in setBody()
409 Multipart multipart = ((Multipart)body); in setBody()
414 else if (body instanceof TextBody) { in setBody()
615 public void body(BodyDescriptor bd, InputStream in) throws IOException { in body() method in MimeMessage.MimeMessageBuilder
617 Body body = MimeUtility.decodeBody(in, bd.getTransferEncoding()); in body() local
619 ((Part)stack.peek()).setBody(body); in body()
/packages/apps/UnifiedEmail/assets/
Dscript.js180 documentWidth = document.body.offsetWidth;
545 if (scrollYPercent && document.body.offsetHeight > window.innerHeight) {
546 document.body.scrollTop = Math.floor(scrollYPercent * document.body.offsetHeight);
729 var body = msg.children[0]; // toss the outer div, it was just to render innerHTML into
731 document.body.appendChild(body);
732 document.body.appendChild(border);
740 var focusX = screenX + document.body.scrollLeft;
741 var focusY = screenY + document.body.scrollTop;
757 nextMsgTop = (i < len-1) ? getTotalOffset(msgDivs[i+1]).top : document.body.offsetHeight;
783 minScale: Math.min(document.body.offsetWidth / msgBodyDiv.scrollWidth, 1.0),
/packages/apps/Mms/src/com/android/mms/ui/
DComposeMessageActivity.java1395 PduBody body = null; in haveSomethingToCopyToSDCard() local
1397 body = SlideshowModel.getPduBody(this, in haveSomethingToCopyToSDCard()
1402 if (body == null) { in haveSomethingToCopyToSDCard()
1407 int partNum = body.getPartsNum(); in haveSomethingToCopyToSDCard()
1409 PduPart part = body.getPart(i); in haveSomethingToCopyToSDCard()
1431 PduBody body = null; in saveRingtone() local
1433 body = SlideshowModel.getPduBody(this, in saveRingtone()
1438 if (body == null) { in saveRingtone()
1442 int partNum = body.getPartsNum(); in saveRingtone()
1444 PduPart part = body.getPart(i); in saveRingtone()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMmsEmail.java499 String body; in parseMmsMimePart() local
501 body = partStr; in parseMmsMimePart()
503 body = parts[1]; in parseMmsMimePart()
546 newPart.data = decodeBody(body, partEncoding); in parseMmsMimePart()
549 private void parseMmsMimeBody(String body) { in parseMmsMimeBody() argument
551 newPart.data = decodeBody(body, encoding); in parseMmsMimeBody()
554 private byte[] decodeBody(String body, String encoding) { in decodeBody() argument
556 return Base64.decode(body, Base64.DEFAULT); in decodeBody()
560 return body.getBytes("UTF-8"); in decodeBody()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DRfc822Output.java92 /*package*/ static String[] buildBodyText(Body body, boolean useSmartReply) { in buildBodyText() argument
93 if (body == null) { in buildBodyText()
96 String[] messageBody = new String[] { body.mTextContent, body.mHtmlContent }; in buildBodyText()
97 final int pos = body.mQuotedTextStartPos; in buildBodyText()
156 Body body = Body.restoreBodyWithMessageId(context, message.mId); in writeTo() local
157 String[] bodyText = buildBodyText(body, useSmartReply); in writeTo()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DQuickResponseActivity.java86 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/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java395 String body) { in reportRenderingFeedback() argument
397 "android-gmail-readability@google.com", body, null, null, null /* extraValues */); in reportRenderingFeedback()
401 String toAddress, String body, String quotedText, String subject, in launch() argument
415 if (body != null) { in launch()
416 intent.putExtra(EXTRA_BODY, body); in launch()
1146 mBodyView = (EditText) findViewById(R.id.body); in findViews()
1251 String body = intent.getStringExtra(EXTRA_BODY); in initFromRefMessage() local
1252 if (body != null) { in initFromRefMessage()
1253 setBody(body, false /* withSignature */); in initFromRefMessage()
1319 final String body = message.bodyText; in initFromDraftMessage() local
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DHttpUtils.java209 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()
DSmsReceiverService.java499 StringBuilder body = new StringBuilder(); in replaceMessage() local
503 body.append(sms.getDisplayMessageBody()); in replaceMessage()
506 values.put(Inbox.BODY, replaceFormFeeds(body.toString())); in replaceMessage()
560 StringBuilder body = new StringBuilder(); in storeMessage() local
564 body.append(sms.getDisplayMessageBody()); in storeMessage()
567 values.put(Inbox.BODY, replaceFormFeeds(body.toString())); in storeMessage()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java218 Body body = new Body(); in setupBody() local
219 body.mMessageKey = messageId; in setupBody()
220 body.mHtmlContent = htmlContent; in setupBody()
221 body.mTextContent = textContent; in setupBody()
222 body.mSourceKey = messageId + 0x1000; in setupBody()
224 body.save(context); in setupBody()
226 return body; in setupBody()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessageModification.java113 public static void putBody(ContentValues values, String body) { in putBody() argument
114 values.put(MessageColumns.BODY_TEXT, body); in putBody()
123 public static void putBodyHtml(ContentValues values, String body) { in putBodyHtml() argument
124 values.put(MessageColumns.BODY_HTML, body); in putBodyHtml()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java459 Body body = Body.restoreBodyWithMessageId(context, attachment.mMessageKey); in saveAttachment() local
460 if (body != null && body.mHtmlContent != null) { in saveAttachment()
462 String html = body.mHtmlContent; in saveAttachment()
469 ContentUris.withAppendedId(Body.CONTENT_URI, body.mId), cv, null, null); in saveAttachment()

1234