Lines Matching defs:attachmentPart
258 BodyPart attachmentPart;
261 attachmentPart = MessageTestUtils.bodyPart("image/jpg", null);
262 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/jpg");
263 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
264 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION,
266 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "100");
267 sourceAttachments[0] = attachmentPart;
270 attachmentPart = MessageTestUtils.bodyPart("image/gif", null);
271 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "image/gif");
272 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
273 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION,
275 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "101");
276 sourceAttachments[1] = attachmentPart;
279 attachmentPart = MessageTestUtils.bodyPart("text/calendar", null);
280 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE,
282 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "7bit");
283 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "102");
284 sourceAttachments[2] = attachmentPart;
355 BodyPart attachmentPart = MessageTestUtils.bodyPart("image/jpg", null);
358 attachmentPart
359 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, "base64");
360 attachmentPart.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION,
362 attachmentPart.setHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA, "10" + i);
364 attachmentParts[i] = attachmentPart;