Home
last modified time | relevance | path

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

1234567

/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.java392 final PduPart part = new PduPart(); in loadParts() local
396 part.setCharset(charset); in loadParts()
402 part.setContentDisposition(contentDisposition); in loadParts()
408 part.setContentId(contentId); in loadParts()
414 part.setContentLocation(contentLocation); in loadParts()
420 part.setContentType(contentType); in loadParts()
428 part.setFilename(fileName); in loadParts()
434 part.setName(name); in loadParts()
440 part.setDataUri(partURI); in loadParts()
487 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/datamodel/data/
DMessageData.java231 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 …]
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()
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()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java302 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 …]
/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/modules/Bluetooth/android/app/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 …]
/packages/modules/adb/daemon/
Dlogging.cpp48 for (const auto& part : android::base::Split(std::string(str), ",")) { in ParseLogStatus() local
49 if (part == "cnxn") { in ParseLogStatus()
51 } else if (part == "service") { in ParseLogStatus()
53 } else if (part == "shell") { in ParseLogStatus()
55 } else if (part == "all") { in ParseLogStatus()
/packages/services/Car/car_product/car_ui_portrait/bootanimation/
DREADME6 zip -0qry -i \*.txt \*.png \*.wav @ ../bootanimation.zip *.txt part*
27 * **PROGRESS:** whether to show a progress percentage on the last part
36 + `p` -- this part will play unless interrupted by the end of the boot
37 + `c` -- this part will play to completion, no matter what
39 continue playing. Only the first interrupted `f` part is faded out, other subsequent `f`
42 * **PAUSE:** number of FRAMES to delay after this part ends
43 * **PATH:** directory in which to find the frames for this part (e.g. `part0`)
46 part
/packages/modules/GeoTZ/tzbb_data/
DDATA_LICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/input_polygons/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/data/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/data/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/mergetzs2ranges/data/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/data/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/createtzs2protodatafile/data/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/output_data/odbl/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/output_polygons/
DLICENSE52 “Collective Database” – Means this Database in unmodified form as part
58 or the Database as part of a Collective Database in any way that enables
79 the whole or a Substantial part of the Contents, as well as any similar
84 other alteration of the Database or of a Substantial part of the
86 Re-utilising the whole or a Substantial part of the Contents in a new
90 Substantial part of the Contents to another medium by any means or in
103 or sounds) resulting from using the whole or a Substantial part of the
105 Database, or this Database as part of a Collective Database.
112 or a Substantial part of the Contents by the distribution of copies, by
118 Extraction or Re-utilisation of a Substantial part of the Contents.
[all …]

1234567