Home
last modified time | relevance | path

Searched refs:contentId (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/mail/
DMessageTestUtils.java80 public static BodyPart bodyPart(String mimeType, String contentId) throws MessagingException { in bodyPart() argument
82 if (contentId != null) { in bodyPart()
83 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, contentId); in bodyPart()
114 public static BodyPart imagePart(String mimeType, String contentId, in imagePart() argument
120 if (contentId != null) { in imagePart()
121 imagePart.setHeader(MimeHeader.HEADER_CONTENT_ID, contentId); in imagePart()
256 public TextBuilder addCidImg(String contentId) { in addCidImg() argument
257 return addTag("img", "SRC", "cid:" + contentId); in addCidImg()
/packages/apps/Email/src/com/android/email/mail/internet/
DEmailHtmlUtil.java58 String contentId = part.getContentId(); in resolveInlineImage() local
60 contentId != null && in resolveInlineImage()
68 String contentIdRe = "\\s+(?i)src=\"cid(?-i):\\Q" + contentId + "\\E\""; in resolveInlineImage()
DMimeBodyPart.java120 String contentId = getFirstHeader(MimeHeader.HEADER_CONTENT_ID); in getContentId() local
121 if (contentId == null) { in getContentId()
125 return REMOVE_OPTIONAL_BRACKETS.matcher(contentId).replaceAll("$1"); in getContentId()
DMimeUtility.java227 public static Part findPartByContentId(Part part, String contentId) throws Exception { in findPartByContentId() argument
232 Part ret = findPartByContentId(bodyPart, contentId); in findPartByContentId()
239 if (contentId.equals(cid)) { in findPartByContentId()
DMimeMessage.java175 String contentId = getFirstHeader(MimeHeader.HEADER_CONTENT_ID); in getContentId() local
176 if (contentId == null) { in getContentId()
180 return REMOVE_OPTIONAL_BRACKETS.matcher(contentId).replaceAll("$1"); in getContentId()
/packages/apps/Email/src/com/android/email/mail/store/
DLocalStore.java836 String contentId = cursor.getString(6); in fetch() local
851 bp.setHeader(MimeHeader.HEADER_CONTENT_ID, contentId); in fetch()
1352 String contentId = attachment.getContentId(); in saveAttachment() local
1362 cv.put("content_id", contentId); in saveAttachment()
1370 cv.put("content_id", contentId); in saveAttachment()
/packages/apps/Mms/src/com/android/mms/model/
DSlideshowModel.java238 String contentId = (index == -1) ? location in makePduBody() local
240 part.setContentId(contentId.getBytes()); in makePduBody()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java581 String contentId = "Image" + System.currentTimeMillis(); in saveBitmapAsPart() local
582 part.setContentLocation((contentId + ".jpg").getBytes()); in saveBitmapAsPart()
583 part.setContentId(contentId.getBytes()); in saveBitmapAsPart()