Home
last modified time | relevance | path

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

12345

/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduBody.java44 private void putPartToMaps(PduPart part) { in putPartToMaps() argument
46 byte[] contentId = part.getContentId(); in putPartToMaps()
48 mPartMapByContentId.put(new String(contentId), part); in putPartToMaps()
52 byte[] contentLocation = part.getContentLocation(); in putPartToMaps()
55 mPartMapByContentLocation.put(clc, part); in putPartToMaps()
59 byte[] name = part.getName(); in putPartToMaps()
62 mPartMapByName.put(clc, part); in putPartToMaps()
66 byte[] fileName = part.getFilename(); in putPartToMaps()
69 mPartMapByFileName.put(clc, part); in putPartToMaps()
80 public boolean addPart(PduPart part) { in addPart() argument
[all …]
DPduParser.java843 PduPart part = new PduPart(); in parseParts() local
854 part.setContentType(contentType); in parseParts()
856 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*" in parseParts()
862 part.setName(name); in parseParts()
868 part.setCharset(charset); in parseParts()
875 if (false == parsePartHeaders(pduDataStream, part, partHeaderLen)) { in parseParts()
887 if ((null == part.getContentLocation()) in parseParts()
888 && (null == part.getName()) in parseParts()
889 && (null == part.getFilename()) in parseParts()
890 && (null == part.getContentId())) { in parseParts()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeUtility.java191 for (String part : parts) { in getHeaderParameter()
192 if (part.trim().toLowerCase().startsWith(lowerCaseName)) { in getHeaderParameter()
193 String[] parameterParts = part.split("=", 2); in getHeaderParameter()
216 public static String getTextFromPart(Part part) { in getTextFromPart() argument
218 if (part != null && part.getBody() != null) { in getTextFromPart()
219 InputStream in = part.getBody().getInputStream(); in getTextFromPart()
220 String mimeType = part.getMimeType(); in getTextFromPart()
234 String charset = getHeaderParameter(part.getContentType(), "charset"); in getTextFromPart()
355 public static void collectParts(Part part, ArrayList<Part> viewables, ArrayList<Part> attachments) in collectParts() argument
357 String disposition = part.getDisposition(); in collectParts()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java391 final PduPart part = new PduPart(); in loadParts() local
395 part.setCharset(charset); in loadParts()
401 part.setContentDisposition(contentDisposition); in loadParts()
407 part.setContentId(contentId); in loadParts()
413 part.setContentLocation(contentLocation); in loadParts()
419 part.setContentType(contentType); in loadParts()
427 part.setFilename(fileName); in loadParts()
433 part.setName(name); in loadParts()
439 part.setDataUri(partURI); in loadParts()
486 part.setData(baos.toByteArray()); in loadParts()
[all …]
DPduParser.java877 PduPart part = new PduPart(); in parseParts() local
888 part.setContentType(contentType); in parseParts()
890 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*" in parseParts()
896 part.setName(name); in parseParts()
902 part.setCharset(charset); in parseParts()
909 if (false == parsePartHeaders(pduDataStream, part, partHeaderLen)) { in parseParts()
921 if ((null == part.getContentLocation()) in parseParts()
922 && (null == part.getName()) in parseParts()
923 && (null == part.getFilename()) in parseParts()
924 && (null == part.getContentId())) { in parseParts()
[all …]
DPduBody.java39 public boolean addPart(PduPart part) { in addPart() argument
40 if (null == part) { in addPart()
44 return mParts.add(part); in addPart()
54 public void addPart(int index, PduPart part) { in addPart() argument
55 if (null == part) { in addPart()
59 mParts.add(index, part); in addPart()
DPduComposer.java933 PduPart part; in makeMessageBody() local
935 part = body.getPart(0); in makeMessageBody()
937 final byte[] start = part.getContentId(); in makeMessageBody()
949 appendTextString(part.getContentType()); in makeMessageBody()
963 part = body.getPart(i); in makeMessageBody()
970 final byte[] partContentType = part.getContentType(); in makeMessageBody()
990 byte[] name = part.getName(); in makeMessageBody()
993 name = part.getFilename(); in makeMessageBody()
996 name = part.getContentLocation(); in makeMessageBody()
1015 final int charset = part.getCharset(); in makeMessageBody()
[all …]
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationService.java181 for (MessagePartData part : attachments) { in getViewAt()
182 final boolean videoWithThumbnail = part.isVideo() in getViewAt()
185 if (part.isImage() || videoWithThumbnail) { in getViewAt()
186 final Uri uri = part.getContentUri(); in getViewAt()
188 remoteViews.setViewVisibility(R.id.playButton, part.isVideo() ? in getViewAt()
191 getAttachmentBitmap(part)); in getViewAt()
195 part.getContentType()); in getViewAt()
197 } else if (part.isVideo()) { in getViewAt()
201 if (part.isAudio()) { in getViewAt()
205 if (part.isVCard()) { in getViewAt()
[all …]
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java304 for (final MessagePartData part : message.getParts()) { in makePduBody()
305 if (part.isAttachment()) { in makePduBody()
306 final String contentType = part.getContentType(); in makePduBody()
310 totalLength += getDataLength(context, part.getContentUri()); in makePduBody()
312 totalLength += getMediaFileSize(part.getContentUri()); in makePduBody()
332 for (final MessagePartData part : message.getParts()) { in makePduBody()
334 if (part.isAttachment()) { in makePduBody()
335 String contentType = part.getContentType(); in makePduBody()
345 final boolean isGif = ImageUtils.isGif(contentType, part.getContentUri()); in makePduBody()
350 totalLength += addPicturePart(context, pb, index, part, in makePduBody()
[all …]
DDatabaseMessages.java408 public void addPart(final MmsPart part) { in addPart() argument
409 mParts.add(part); in addPart()
435 for (final MmsPart part : mParts) { in processParts()
436 sizeOfParts += part.mSize; in processParts()
552 for (final MmsPart part : mParts) { in writeToParcel()
553 out.writeParcelable(part, 0); in writeToParcel()
800 final MmsPart part = new MmsPart(); in get() local
801 part.load(cursor, loadMedia); in get()
802 return part; in get()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessageData.java231 for (final MessagePartData part : content.getParts()) { in createDraftMessage()
232 message.mParts.add(part); in createDraftMessage()
367 public void addPart(final MessagePartData part) { in addPart() argument
368 if (part instanceof PendingAttachmentData) { in addPart()
373 mParts.add(part); in addPart()
678 for (final MessagePartData part : mParts) { in getMessageText()
679 if (!part.isAttachment() && !TextUtils.isEmpty(part.getText())) { in getMessageText()
683 text.append(part.getText()); in getMessageText()
699 final MessagePartData part = mParts.get(i); in consolidateText() local
700 if (firstTextPart == null && !part.isAttachment()) { in consolidateText()
[all …]
DDraftMessageData.java150 for (final MessagePartData part : message.getParts()) { in updateFromMessageData()
151 if (part.isAttachment() && getAttachmentCount() >= getAttachmentLimit()) { in updateFromMessageData()
156 if (part instanceof PendingAttachmentData) { in updateFromMessageData()
159 final PendingAttachmentData data = (PendingAttachmentData) part; in updateFromMessageData()
162 } else if (part.isAttachment()) { in updateFromMessageData()
163 addOneAttachmentNoNotify(part); in updateFromMessageData()
447 for (MessagePartData part : mAttachments) { in getVideoAttachmentCount()
448 if (part.isVideo()) { in getVideoAttachmentCount()
452 for (MessagePartData part : mPendingAttachments) { in getVideoAttachmentCount()
453 if (part.isVideo()) { in getVideoAttachmentCount()
DConversationMessageData.java360 for (final MessagePartData part : mParts) {
361 if (part.isText()) {
382 for (final MessagePartData part : mParts) {
383 if (part.isText()) {
386 firstTextPart = part.getText();
400 final String partText = part.getText();
420 for (final MessagePartData part : mParts) {
421 if (part.isAttachment()) {
437 for (final MessagePartData part : mParts) {
438 if (part.isAttachment()) {
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMime.java185 for (MimePart part : mParts) { in getMessageAsText()
186 if (part.mContentType.toUpperCase().contains("TEXT")) { in getMessageAsText()
187 sb.append(new String(part.mData)); in getMessageAsText()
350 for (MimePart part : mParts) { in updateCharset()
351 if (part.mContentType != null && part.mContentType.toUpperCase().contains("TEXT")) { in updateCharset()
365 for (MimePart part : mParts) { in getSize()
366 messageSize += part.mData.length; in getSize()
518 for (MimePart part : mParts) { in encodeMime()
521 part.encodePlainText(sb); in encodeMime()
524 for (MimePart part : mParts) { in encodeMime()
[all …]
DBluetoothMapContentObserver.java3005 for (MimePart part : msg.getMimeParts()) { in pushMmsToFolder()
3009 if (part.mContentType != null && part.mContentType.toUpperCase() in pushMmsToFolder()
3013 if (part.mPartName != null) { in pushMmsToFolder()
3014 values.put(Mms.Part.FILENAME, part.mPartName); in pushMmsToFolder()
3015 values.put(Mms.Part.NAME, part.mPartName); in pushMmsToFolder()
3021 if (part.mContentId != null) { in pushMmsToFolder()
3022 values.put(Mms.Part.CONTENT_ID, part.mContentId); in pushMmsToFolder()
3024 if (part.mPartName != null) { in pushMmsToFolder()
3025 values.put(Mms.Part.CONTENT_ID, "<" + part.mPartName + ">"); in pushMmsToFolder()
3031 if (part.mContentLocation != null) { in pushMmsToFolder()
[all …]
DBluetoothMapContent.java1299 String part = c.getString(c.getColumnIndex("text")); in getTextPartsMms() local
1300 if (part != null) { in getTextPartsMms()
1301 text += part; in getTextPartsMms()
3819 BluetoothMapbMessageMime.MimePart part; in extractMmsParts() local
3843 part = message.addMimePart(); in extractMmsParts()
3844 part.mContentType = contentType; in extractMmsParts()
3845 part.mPartName = name; in extractMmsParts()
3846 part.mContentId = cid; in extractMmsParts()
3847 part.mContentLocation = cl; in extractMmsParts()
3848 part.mContentDisposition = cdisp; in extractMmsParts()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMultipart.java27 public void addBodyPart(BodyPart part) throws MessagingException { in addBodyPart() argument
28 parts.add(part); in addBodyPart()
31 public void addBodyPart(BodyPart part, int index) throws MessagingException { in addBodyPart() argument
32 parts.add(index, part); in addBodyPart()
47 public boolean removeBodyPart(BodyPart part) throws MessagingException { in removeBodyPart() argument
48 return parts.remove(part); in removeBodyPart()
/packages/services/Car/surround_view/service-impl/
DAnimationModule.cpp121 for (const auto& part : mPartsMap) { in initCarPartStatus() local
124 if (mPartsToAnimationMap.find(part.first) != mPartsToAnimationMap.end()) { in initCarPartStatus()
125 childIds = mPartsToAnimationMap.at(part.first).childIds; in initCarPartStatus()
128 mCarPartsStatusMap.emplace(std::make_pair(part.first, in initCarPartStatus()
130 .partId = part.first, in initCarPartStatus()
140 for (const auto& part : eachVhalToParts.second) { in initCarPartStatus() local
141 if (mCarPartsStatusMap.at(part).vhalProgressMap.find(eachVhalToParts.first) != in initCarPartStatus()
142 mCarPartsStatusMap.at(part).vhalProgressMap.end()) { in initCarPartStatus()
143 mCarPartsStatusMap.at(part).vhalProgressMap.at(eachVhalToParts.first) = 0.0f; in initCarPartStatus()
145 mCarPartsStatusMap.at(part).vhalProgressMap.emplace( in initCarPartStatus()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java626 for (final MessagePartData part : message.getParts()) { in addSnippetTextAndPreviewToContentValues()
627 if (part.isAttachment() && in addSnippetTextAndPreviewToContentValues()
628 ContentType.isConversationListPreviewableType(part.getContentType())) { in addSnippetTextAndPreviewToContentValues()
629 uriString = part.getContentUri().toString(); in addSnippetTextAndPreviewToContentValues()
630 type = part.getContentType(); in addSnippetTextAndPreviewToContentValues()
755 for (final MessagePartData part : draftMessage.getParts()) { in updateConversationDraftSnippetAndPreviewInTransaction()
756 if (part.isAttachment() && in updateConversationDraftSnippetAndPreviewInTransaction()
757 ContentType.isConversationListPreviewableType(part.getContentType())) { in updateConversationDraftSnippetAndPreviewInTransaction()
758 uriString = part.getContentUri().toString(); in updateConversationDraftSnippetAndPreviewInTransaction()
759 type = part.getContentType(); in updateConversationDraftSnippetAndPreviewInTransaction()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java483 private static void parseBodyStructure(ImapList bs, Part part, String id) in parseBodyStructure() argument
513 part.setBody(mp); in parseBodyStructure()
574 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure()
629 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, contentDisposition.toString()); in parseBodyStructure()
637 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding.getString()); in parseBodyStructure()
644 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure()
648 if (part instanceof ImapMessage) { in parseBodyStructure()
649 ((ImapMessage) part).setSize(size); in parseBodyStructure()
650 } else if (part instanceof MimeBodyPart) { in parseBodyStructure()
651 ((MimeBodyPart) part).setSize(size); in parseBodyStructure()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DUtils.java144 long part;
146 part = i;
148 long x = ((int) part & 1) != 0 ? POLY64REV : 0;
149 part = (part >> 1) ^ x;
151 sCrcTable[i] = part;
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java220 public void setSource(final MessagePartData part, final boolean incomingMessage) { in setSource() argument
221 if (part == null) { in setSource()
224 mVideoSource = part.getContentUri(); in setSource()
231 new MessagePartVideoThumbnailRequestDescriptor(part)); in setSource()
235 mVideoWidth = part.getWidth(); in setSource()
236 mVideoHeight = part.getHeight(); in setSource()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java367 for(final MessagePartData part : initialDraft.getParts()) { in testBugleDatabaseDraftOperations()
368 if (part.isAttachment()) { in testBugleDatabaseDraftOperations()
369 assertEquals(part.getContentUri(), mOutputUri); in testBugleDatabaseDraftOperations()
371 assertEquals(part.getText(), initialMessage); in testBugleDatabaseDraftOperations()
413 for(final MessagePartData part : anotherDraft.getParts()) { in testBugleDatabaseDraftOperations()
414 if (part.isAttachment()) { in testBugleDatabaseDraftOperations()
415 assertEquals(part.getContentUri(), mAnotherUri); in testBugleDatabaseDraftOperations()
417 assertEquals(part.getText(), draftMessage); in testBugleDatabaseDraftOperations()
/packages/apps/Dialer/java/com/android/dialer/logging/
Dcontact_lookup_result.proto34 // Phone number was identified via the places part of the People API.
37 // Phone number was identified via the profile part of the People API.
53 // via the places part of the People API.
57 // via the profile part of the People API.
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java1066 public boolean apply(final MessagePartData part) {
1067 return part.isVideo();
1073 public boolean apply(final MessagePartData part) {
1074 return part.isAudio();
1080 public boolean apply(final MessagePartData part) {
1081 return part.isVCard();
1087 public boolean apply(final MessagePartData part) {
1088 return part.isImage();

12345