/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduBody.java | 44 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 …]
|
D | PduParser.java | 843 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/ |
D | MimeUtility.java | 191 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/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeUtility.java | 201 for (String part : parts) { in getHeaderParameter() 202 if (part.trim().toLowerCase().startsWith(lowerCaseName)) { in getHeaderParameter() 203 String[] parameterParts = part.split("=", 2); in getHeaderParameter() 225 public static String getTextFromPart(Part part) { in getTextFromPart() argument 227 if (part != null && part.getBody() != null) { in getTextFromPart() 228 InputStream in = part.getBody().getInputStream(); in getTextFromPart() 229 String mimeType = part.getMimeType(); in getTextFromPart() 243 String charset = getHeaderParameter(part.getContentType(), "charset"); in getTextFromPart() 371 public static void collectParts(Part part, ArrayList<Part> viewables, in collectParts() argument 373 String disposition = part.getDisposition(); in collectParts() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduPersister.java | 391 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 …]
|
D | PduParser.java | 877 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 …]
|
D | PduBody.java | 39 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()
|
D | PduComposer.java | 933 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/ |
D | WidgetConversationService.java | 181 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/ |
D | MmsUtils.java | 304 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() 341 final boolean isGif = ImageUtils.isGif(contentType, part.getContentUri()); in makePduBody() 345 totalLength += addPicturePart(context, pb, index, part, in makePduBody() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessageData.java | 231 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() 674 for (final MessagePartData part : mParts) { in getMessageText() 675 if (!part.isAttachment() && !TextUtils.isEmpty(part.getText())) { in getMessageText() 679 text.append(part.getText()); in getMessageText() 695 final MessagePartData part = mParts.get(i); in consolidateText() local 696 if (firstTextPart == null && !part.isAttachment()) { in consolidateText() [all …]
|
D | DraftMessageData.java | 150 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()
|
D | ConversationMessageData.java | 360 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/ |
D | BluetoothMapbMessageMime.java | 185 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 …]
|
D | BluetoothMapContentObserver.java | 2951 for (MimePart part : msg.getMimeParts()) { in pushMmsToFolder() 2955 if (part.mContentType != null && part.mContentType.toUpperCase() in pushMmsToFolder() 2959 if (part.mPartName != null) { in pushMmsToFolder() 2960 values.put(Mms.Part.FILENAME, part.mPartName); in pushMmsToFolder() 2961 values.put(Mms.Part.NAME, part.mPartName); in pushMmsToFolder() 2967 if (part.mContentId != null) { in pushMmsToFolder() 2968 values.put(Mms.Part.CONTENT_ID, part.mContentId); in pushMmsToFolder() 2970 if (part.mPartName != null) { in pushMmsToFolder() 2971 values.put(Mms.Part.CONTENT_ID, "<" + part.mPartName + ">"); in pushMmsToFolder() 2977 if (part.mContentLocation != null) { in pushMmsToFolder() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | Multipart.java | 27 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/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Multipart.java | 28 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/apps/Email/tests/src/com/android/emailcommon/internet/ |
D | Rfc822OutputTests.java | 178 Entity part = partList.get(0); in testWriteToAlternativePart() local 179 assertEquals("text/plain", part.getMimeType()); in testWriteToAlternativePart() 180 part = partList.get(1); in testWriteToAlternativePart() 181 assertEquals("text/calendar", part.getMimeType()); in testWriteToAlternativePart() 182 header = part.getHeader(); in testWriteToAlternativePart() 222 Entity part = partList.get(0); in testWriteToMixedPart() local 223 assertEquals("text/plain", part.getMimeType()); in testWriteToMixedPart() 224 part = partList.get(1); in testWriteToMixedPart() 225 assertEquals("text/html", part.getMimeType()); in testWriteToMixedPart() 226 header = part.getHeader(); in testWriteToMixedPart()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | LegacyConversions.java | 195 protected static Attachment mimePartToAttachment(final Part part) throws MessagingException { in mimePartToAttachment() argument 197 final String contentType = MimeUtility.unfoldAndDecode(part.getContentType()); in mimePartToAttachment() 201 final String contentDisposition = MimeUtility.unfoldAndDecode(part.getDisposition()); in mimePartToAttachment() 207 final String disposition = part.getDisposition(); in mimePartToAttachment() 222 final String[] partIds = part.getHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA); in mimePartToAttachment() 229 localAttachment.mMimeType = AttachmentUtilities.inferMimeType(name, part.getMimeType()); in mimePartToAttachment() 232 localAttachment.mContentId = part.getContentId(); in mimePartToAttachment() 258 final EmailContent.Message localMessage, final Part part) in addOneAttachment() argument 260 final Attachment localAttachment = mimePartToAttachment(part); in addOneAttachment() 307 saveAttachmentBody(context, part, localAttachment, localMessage.mAccountKey); in addOneAttachment() [all …]
|
/packages/services/Car/car-lib/api/ |
D | test-baseline.txt | 9 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.Ev… 11 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.Fu… 13 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 15 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 17 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 19 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 21 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha…
|
D | baseline.txt | 9 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.Ev… 11 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.Fu… 13 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 15 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 17 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 19 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha… 21 …Typedef references constant which isn't part of the API, skipping in documentation: android.car.ha…
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleDatabaseOperations.java | 626 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/ |
D | ImapFolder.java | 483 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/ |
D | Utils.java | 144 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/ |
D | VideoThumbnailView.java | 220 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()
|