/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/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 | 302 for (final MessagePartData part : message.getParts()) { in makePduBody() 303 if (part.isAttachment()) { in makePduBody() 304 final String contentType = part.getContentType(); in makePduBody() 308 totalLength += getDataLength(context, part.getContentUri()); in makePduBody() 310 totalLength += getMediaFileSize(part.getContentUri()); in makePduBody() 330 for (final MessagePartData part : message.getParts()) { in makePduBody() 332 if (part.isAttachment()) { in makePduBody() 333 String contentType = part.getContentType(); in makePduBody() 343 final boolean isGif = ImageUtils.isGif(contentType, part.getContentUri()); in makePduBody() 348 totalLength += addPicturePart(context, pb, index, part, in makePduBody() [all …]
|
D | DatabaseMessages.java | 408 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/ |
D | MessageData.java | 231 for (final MessagePartData part : content.getParts()) { in createDraftMessage() 232 message.mParts.add(part); in createDraftMessage() 369 public void addPart(final MessagePartData part) { in addPart() argument 370 if (part instanceof PendingAttachmentData) { in addPart() 375 mParts.add(part); in addPart() 680 for (final MessagePartData part : mParts) { in getMessageText() 681 if (!part.isAttachment() && !TextUtils.isEmpty(part.getText())) { in getMessageText() 685 text.append(part.getText()); in getMessageText() 701 final MessagePartData part = mParts.get(i); in consolidateText() local 702 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() 459 for (MessagePartData part : mAttachments) { in getVideoAttachmentCount() 460 if (part.isVideo()) { in getVideoAttachmentCount() 464 for (MessagePartData part : mPendingAttachments) { in getVideoAttachmentCount() 465 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 | 3005 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 …]
|
D | BluetoothMapContent.java | 1299 String part = c.getString(c.getColumnIndex("text")); in getTextPartsMms() local 1300 if (part != null) { in getTextPartsMms() 1301 text += part; in getTextPartsMms() 3817 BluetoothMapbMessageMime.MimePart part; in extractMmsParts() local 3841 part = message.addMimePart(); in extractMmsParts() 3842 part.mContentType = contentType; in extractMmsParts() 3843 part.mPartName = name; in extractMmsParts() 3844 part.mContentId = cid; in extractMmsParts() 3845 part.mContentLocation = cl; in extractMmsParts() 3846 part.mContentDisposition = cdisp; in extractMmsParts() [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/services/Car/car-lib/api/ |
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…
|
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…
|
/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 | 484 private static void parseBodyStructure(ImapList bs, Part part, String id) in parseBodyStructure() argument 514 part.setBody(mp); in parseBodyStructure() 575 part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType.toString()); in parseBodyStructure() 630 part.setHeader(MimeHeader.HEADER_CONTENT_DISPOSITION, contentDisposition.toString()); in parseBodyStructure() 638 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding.getString()); in parseBodyStructure() 645 part.setHeader(MimeHeader.HEADER_CONTENT_ID, cid.getString()); in parseBodyStructure() 649 if (part instanceof ImapMessage) { in parseBodyStructure() 650 ((ImapMessage) part).setSize(size); in parseBodyStructure() 651 } else if (part instanceof MimeBodyPart) { in parseBodyStructure() 652 ((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()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 366 for(final MessagePartData part : initialDraft.getParts()) { in testBugleDatabaseDraftOperations() 367 if (part.isAttachment()) { in testBugleDatabaseDraftOperations() 368 assertEquals(part.getContentUri(), mOutputUri); in testBugleDatabaseDraftOperations() 370 assertEquals(part.getText(), initialMessage); in testBugleDatabaseDraftOperations() 412 for(final MessagePartData part : anotherDraft.getParts()) { in testBugleDatabaseDraftOperations() 413 if (part.isAttachment()) { in testBugleDatabaseDraftOperations() 414 assertEquals(part.getContentUri(), mAnotherUri); in testBugleDatabaseDraftOperations() 416 assertEquals(part.getText(), draftMessage); in testBugleDatabaseDraftOperations()
|
/packages/apps/Dialer/java/com/android/dialer/logging/ |
D | contact_lookup_result.proto | 33 // Phone number was identified via the places part of the People API. 36 // Phone number was identified via the profile part of the People API. 52 // via the places part of the People API. 56 // via the profile part of the People API.
|