Home
last modified time | relevance | path

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

123456789

/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/
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()
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 …]
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/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/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/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/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapbMessageMime.java207 for (MimePart part : mParts) { in getMessageAsText()
208 if (part.mContentType.toUpperCase().contains("TEXT")) { in getMessageAsText()
209 sb.append(new String(part.mData)); in getMessageAsText()
372 for (MimePart part : mParts) { in updateCharset()
373 if (part.mContentType != null && part.mContentType.toUpperCase().contains("TEXT")) { in updateCharset()
385 for (MimePart part : mParts) { in getSize()
386 messageSize += part.mData.length; in getSize()
535 for (MimePart part : mParts) { in encodeMime()
538 part.encodePlainText(sb); in encodeMime()
541 for (MimePart part : mParts) { in encodeMime()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/rust/test/SP/
DBV-15-C.in46 repeat 3 times with (part in peer_p192_public_key()) {
49 data: part,
66 repeat 3 times with (part in local_p192_public_key(&context)) {
69 data: part,
DBV-27-C.in52 repeat 3 times with (part in peer_p192_public_key()) {
55 data: part,
72 repeat 3 times with (part in local_p192_public_key(&context)) {
75 data: part,
DBV-17-C.in46 repeat 3 times with (part in peer_p192_public_key()) {
49 data: part,
66 repeat 3 times with (part in local_p192_public_key(&context)) {
69 data: part,
DBV-25-C.in46 repeat 3 times with (part in peer_p192_public_key()) {
49 data: part,
66 repeat 3 times with (part in local_p192_public_key(&context)) {
69 data: part,
DBV-36-C.in46 repeat 3 times with (part in peer_p192_public_key()) {
49 data: part,
66 repeat 3 times with (part in local_p192_public_key(&context)) {
69 data: part,
DBV-11-C.in46 repeat 3 times with (part in peer_p192_public_key()) {
49 data: part,
66 repeat 3 times with (part in local_p192_public_key(&context)) {
69 data: part,
DBV-09-C.in46 repeat 3 times with (part in peer_p192_public_key()) {
49 data: part,
66 repeat 3 times with (part in local_p192_public_key(&context)) {
69 data: part,
DBV-14bis-C.in51 repeat 3 times with (part in peer_p192_public_key()) {
54 data: part,
71 repeat 3 times with (part in local_p192_public_key(&context)) {
74 data: part,
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/viewcapture_analysis/
DAnomalyDetector.java48 for (String part : pathToIgnore.split("\\|")) { in buildIgnoreNodesTree()
50 IgnoreNode child = currentIgnoreNode.children.get(part); in buildIgnoreNodesTree()
52 currentIgnoreNode.children.put(part, child = new IgnoreNode()); in buildIgnoreNodesTree()
/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;

123456789