Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 67) sorted by relevance

123

/packages/apps/Mms/src/com/android/mms/model/
DMediaModelFactory.java46 PduPart part = findPart(pb, src); in getMediaModel() local
50 context, tag, src, (SMILRegionMediaElement) sme, layouts, part); in getMediaModel()
53 context, tag, src, sme, part, null); in getMediaModel()
58 PduPart part = null; in findPart() local
63 part = pb.getPartByContentId("<" + src.substring("cid:".length()) + ">"); in findPart()
65 part = pb.getPartByName(src); in findPart()
66 if (part == null) { in findPart()
67 part = pb.getPartByFileName(src); in findPart()
68 if (part == null) { in findPart()
69 part = pb.getPartByContentLocation(src); in findPart()
[all …]
DImageModel.java224 PduPart part = image.getResizedImageAsPart( in resizeMedia() local
229 if (part == null) { in resizeMedia()
235 mContentType = new String(part.getContentType()); in resizeMedia()
239 part.setContentLocation(srcBytes); in resizeMedia()
242 part.setContentId(contentId); in resizeMedia()
245 this.mSize = part.getData().length; in resizeMedia()
251 Uri newUri = persister.persistPart(part, messageId, null); in resizeMedia()
DSmilHelper.java103 PduPart part = body.getPart(i); in findSmilPart() local
104 if (Arrays.equals(part.getContentType(), in findSmilPart()
107 return part; in findSmilPart()
213 PduPart part = pb.getPart(i); in createSmilDocument() local
214 String contentType = new String(part.getContentType()); in createSmilDocument()
217 contentType = drmManagerClient.getOriginalMimeType(part.getDataUri()); in createSmilDocument()
224 ELEMENT_TAG_TEXT, document, part.generateLocation()); in createSmilDocument()
229 ELEMENT_TAG_IMAGE, document, part.generateLocation()); in createSmilDocument()
234 ELEMENT_TAG_VIDEO, document, part.generateLocation()); in createSmilDocument()
239 ELEMENT_TAG_AUDIO, document, part.generateLocation()); in createSmilDocument()
DSlideshowModel.java246 PduPart part = new PduPart(); in makePduBody() local
255 part.setCharset(text.getCharset()); in makePduBody()
259 part.setContentType(media.getContentType().getBytes()); in makePduBody()
271 part.setContentLocation(location.getBytes()); in makePduBody()
276 part.setContentId(location.getBytes()); in makePduBody()
282 part.setContentId(contentId.getBytes()); in makePduBody()
286 part.setData(((TextModel) media).getText().getBytes()); in makePduBody()
288 part.setDataUri(media.getUri()); in makePduBody()
293 pb.addPart(part); in makePduBody()
607 PduPart part = pb.getPartByContentLocation(media.getSrc()); in sync() local
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DMimeUtility.java200 for (String part : parts) { in getHeaderParameter()
201 if (part.trim().toLowerCase().startsWith(lowerCaseName)) { in getHeaderParameter()
202 String[] parameterParts = part.split("=", 2); in getHeaderParameter()
217 public static Part findFirstPartByMimeType(Part part, String mimeType) in findFirstPartByMimeType() argument
219 if (part.getBody() instanceof Multipart) { in findFirstPartByMimeType()
220 Multipart multipart = (Multipart)part.getBody(); in findFirstPartByMimeType()
229 else if (part.getMimeType().equalsIgnoreCase(mimeType)) { in findFirstPartByMimeType()
230 return part; in findFirstPartByMimeType()
235 public static Part findPartByContentId(Part part, String contentId) throws Exception { in findPartByContentId() argument
236 if (part.getBody() instanceof Multipart) { in findPartByContentId()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DMultipart.java28 public void addBodyPart(BodyPart part) throws MessagingException { in addBodyPart() argument
29 mParts.add(part); in addBodyPart()
32 public void addBodyPart(BodyPart part, int index) throws MessagingException { in addBodyPart() argument
33 mParts.add(index, part); in addBodyPart()
48 public boolean removeBodyPart(BodyPart part) throws MessagingException { in removeBodyPart() argument
49 return mParts.remove(part); in removeBodyPart()
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
Dgalaxy.rs89 static void createParticle(Particle_t *part, int idx, float scale) {
96 part->color.x = (uchar) (220 + id * 35);
97 part->color.y = 220;
98 part->color.z = 220;
100 part->color.x = 180;
101 part->color.y = 180;
102 part->color.z = (uchar) clamp(140.f + id * 115.f, 140.f, 255.f);
105 part->color.w = (uchar) (rsRand(1.2f, 2.1f) * 60);
116 part->position.x = rsRand(TWO_PI);
117 part->position.y = d;
[all …]
/packages/apps/Mms/src/com/android/mms/util/
DImageCacheService.java127 long part;
129 part = i;
131 long x = ((int) part & 1) != 0 ? POLY64REV : 0;
132 part = (part >> 1) ^ x;
134 sCrcTable[i] = part;
/packages/apps/Email/src/com/android/email/
DLegacyConversions.java188 Part part) throws MessagingException, IOException { in addOneAttachment() argument
193 String contentType = MimeUtility.unfoldAndDecode(part.getContentType()); in addOneAttachment()
196 String contentDisposition = MimeUtility.unfoldAndDecode(part.getDisposition()); in addOneAttachment()
202 String disposition = part.getDisposition(); in addOneAttachment()
212 String[] partIds = part.getHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA); in addOneAttachment()
216 localAttachment.mMimeType = part.getMimeType(); in addOneAttachment()
218 localAttachment.mContentId = part.getContentId(); in addOneAttachment()
266 saveAttachmentBody(context, part, localAttachment, localMessage.mAccountKey); in addOneAttachment()
289 public static void saveAttachmentBody(Context context, Part part, Attachment localAttachment, in saveAttachmentBody() argument
291 if (part.getBody() != null) { in saveAttachmentBody()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DRfc822OutputTests.java277 Entity part = partList.get(0); in testWriteToAlternativePart() local
278 assertEquals("text/plain", part.getMimeType()); in testWriteToAlternativePart()
279 part = partList.get(1); in testWriteToAlternativePart()
280 assertEquals("text/calendar", part.getMimeType()); in testWriteToAlternativePart()
281 header = part.getHeader(); in testWriteToAlternativePart()
321 Entity part = partList.get(0); in testWriteToMixedPart() local
322 assertEquals("text/plain", part.getMimeType()); in testWriteToMixedPart()
323 part = partList.get(1); in testWriteToMixedPart()
324 assertEquals("text/html", part.getMimeType()); in testWriteToMixedPart()
325 header = part.getHeader(); in testWriteToMixedPart()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DUtils.java143 long part;
145 part = i;
147 long x = ((int) part & 1) != 0 ? POLY64REV : 0;
148 part = (part >> 1) ^ x;
150 sCrcTable[i] = part;
/packages/apps/Email/src/org/apache/commons/io/output/
DByteArrayOutputStream.java155 int part = Math.min(remaining, currentBuffer.length - inBufferPos); in write() local
156 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part); in write()
157 remaining -= part; in write()
/packages/apps/Email/src/com/android/email/mail/store/
DImapFolder.java731 private static void parseBodyStructure(ImapList bs, Part part, String id) in parseBodyStructure() argument
761 part.setBody(mp); in parseBodyStructure()
821 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure()
872 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, in parseBodyStructure()
881 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, in parseBodyStructure()
889 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure()
893 if (part instanceof ImapMessage) { in parseBodyStructure()
894 ((ImapMessage) part).setSize(size); in parseBodyStructure()
895 } else if (part instanceof MimeBodyPart) { in parseBodyStructure()
896 ((MimeBodyPart) part).setSize(size); in parseBodyStructure()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java234 PduPart part = new PduPart(); in getResizedImageAsPart() local
245 part.setData(data); in getResizedImageAsPart()
247 part.setContentType(ContentType.IMAGE_JPEG.getBytes()); in getResizedImageAsPart()
249 return part; in getResizedImageAsPart()
DComposeMessageActivity.java1401 PduPart part = body.getPart(i); in haveSomethingToCopyToSDCard() local
1402 String type = new String(part.getContentType()); in haveSomethingToCopyToSDCard()
1436 PduPart part = body.getPart(i); in saveRingtone() local
1437 String type = new String(part.getContentType()); in saveRingtone()
1442 result &= copyPart(part, Long.toHexString(msgId)); in saveRingtone()
1467 PduPart part = body.getPart(i); in isDrmRingtoneWithRights() local
1468 String type = new String(part.getContentType()); in isDrmRingtoneWithRights()
1472 .getOriginalMimeType(part.getDataUri()); in isDrmRingtoneWithRights()
1473 … if (ContentType.isAudioType(mimeType) && DrmUtils.haveRightsForAction(part.getDataUri(), in isDrmRingtoneWithRights()
1501 PduPart part = body.getPart(i); in isForwardable() local
[all …]
/packages/experimental/
DREADME7 part of the Android Open Source Project.
/packages/apps/Calendar/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/wallpapers/LivePicker/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/providers/ApplicationsProvider/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/apps/Settings/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/apps/CertInstaller/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/providers/UserDictionaryProvider/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/providers/DrmProvider/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/providers/DownloadProvider/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or
/packages/apps/Camera/jni/
DNOTICE116 excluding those notices that do not pertain to any part of
119 (d) If the Work includes a "NOTICE" text file as part of its
123 pertain to any part of the Derivative Works, in at least one
125 as part of the Derivative Works; within the Source form or

123