Home
last modified time | relevance | path

Searched refs:Part (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeUtilityTest.java27 import com.android.emailcommon.mail.Part;
315 final Part cid1bp = MessageTestUtils.bodyPart("image/gif; name=\"im1.gif\"", cid1); in brokentestCollectParts()
317 final Part cid2bp = MessageTestUtils.bodyPart("image/gif", cid2); in brokentestCollectParts()
320 final Part cid3bp = MessageTestUtils.bodyPart("image/gif", cid3); in brokentestCollectParts()
324 final Part cid4bp = MessageTestUtils.bodyPart("image/gif", cid4); // no name attr in brokentestCollectParts()
326 final Part cid5bp = MessageTestUtils.bodyPart("image/gif", cid5); in brokentestCollectParts()
330 final ArrayList<Part> view1 = new ArrayList<Part>(); in brokentestCollectParts()
331 final ArrayList<Part> attach1 = new ArrayList<Part>(); in brokentestCollectParts()
337 final ArrayList<Part> view2 = new ArrayList<Part>(); in brokentestCollectParts()
338 final ArrayList<Part> attach2 = new ArrayList<Part>(); in brokentestCollectParts()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java40 import android.provider.Telephony.Mms.Part;
203 " AFTER UPDATE of " + Part.MSG_ID + " ON part " +
631 new String[] { Part._ID, Part.TEXT }, in populateWordsTable()
776 Part._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + in createMmsTables()
777 Part.MSG_ID + " INTEGER," + in createMmsTables()
778 Part.SEQ + " INTEGER DEFAULT 0," + in createMmsTables()
779 Part.CONTENT_TYPE + " TEXT," + in createMmsTables()
780 Part.NAME + " TEXT," + in createMmsTables()
781 Part.CHARSET + " INTEGER," + in createMmsTables()
782 Part.CONTENT_DISPOSITION + " TEXT," + in createMmsTables()
[all …]
DTelephonyBackupAgent.java243 Telephony.Mms.Part.TEXT,
244 Telephony.Mms.Part.CHARSET
1012 Telephony.Mms.Part.CONTENT_TYPE + "=?", new String[]{ContentType.TEXT_PLAIN},
1135 values.put(Telephony.Mms.Part.MSG_ID, dummyId);
1136 values.put(Telephony.Mms.Part.SEQ, -1);
1137 values.put(Telephony.Mms.Part.CONTENT_TYPE, ContentType.APP_SMIL);
1138 values.put(Telephony.Mms.Part.NAME, "smil.xml");
1139 values.put(Telephony.Mms.Part.CONTENT_ID, "<smil>");
1140 values.put(Telephony.Mms.Part.CONTENT_LOCATION, "smil.xml");
1141 values.put(Telephony.Mms.Part.TEXT, smil);
[all …]
DMmsProvider.java43 import android.provider.Telephony.Mms.Part;
144 qb.appendWhere(Part.MSG_ID + "=" + uri.getPathSegments().get(0)); in query()
148 qb.appendWhere(Part._ID + "=" + uri.getPathSegments().get(1)); in query()
232 finalSortOrder = Part.SEQ; in query()
279 TABLE_PART, new String[] { Part.CONTENT_TYPE }, in getType()
280 Part._ID + " = ?", new String[] { uri.getLastPathSegment() }, in getType()
432 boolean containsDataPath = values != null && values.containsKey(Part._DATA); in insert()
436 finalValues.put(Part.MSG_ID, uri.getPathSegments().get(0)); in insert()
472 path = values.getAsString(Part._DATA); in insert()
509 finalValues.put(Part._DATA, path); in insert()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java39 import com.android.emailcommon.mail.Part;
106 ArrayList<Part> viewables = new ArrayList<Part>(); in convertAndCheckcheckAddedAttachments()
107 ArrayList<Part> attachments = new ArrayList<Part>(); in convertAndCheckcheckAddedAttachments()
201 ArrayList<Part> viewables = new ArrayList<Part>(); in brokentestAddDuplicateAttachments()
202 ArrayList<Part> attachments = new ArrayList<Part>(); in brokentestAddDuplicateAttachments()
216 viewables = new ArrayList<Part>(); in brokentestAddDuplicateAttachments()
217 attachments = new ArrayList<Part>(); in brokentestAddDuplicateAttachments()
288 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual, in checkAttachment()
385 ArrayList<Part> viewables = new ArrayList<Part>(); in checkLegacyMessage()
386 ArrayList<Part> attachments = new ArrayList<Part>(); in checkLegacyMessage()
[all …]
DLegacyConversionsTest.java31 import com.android.emailcommon.mail.Part;
186 ArrayList<Part> viewables = new ArrayList<Part>(); in testUpdateBodyFieldsNullText()
256 final Part attPart = inBody.getBodyPart(0); in testAttachmentRoundTrip()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java412 smilPart.put(Telephony.Mms.Part.SEQ, -1); in createBodyCursor()
413 smilPart.put(Telephony.Mms.Part.CONTENT_TYPE, APP_SMIL); in createBodyCursor()
414 smilPart.put(Telephony.Mms.Part.NAME, "smil.xml"); in createBodyCursor()
415 smilPart.put(Telephony.Mms.Part.CONTENT_ID, "<smil>"); in createBodyCursor()
416 smilPart.put(Telephony.Mms.Part.CONTENT_LOCATION, "smil.xml"); in createBodyCursor()
417 smilPart.put(Telephony.Mms.Part.TEXT, smil); in createBodyCursor()
422 bodyPart.put(Telephony.Mms.Part.SEQ, 0); in createBodyCursor()
423 bodyPart.put(Telephony.Mms.Part.CONTENT_TYPE, TEXT_PLAIN); in createBodyCursor()
424 bodyPart.put(Telephony.Mms.Part.NAME, srcName); in createBodyCursor()
425 bodyPart.put(Telephony.Mms.Part.CONTENT_ID, "<"+srcName+">"); in createBodyCursor()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMessage.java25 import com.android.emailcommon.mail.Part;
557 expect(Part.class); in startMessage()
560 ((Part)stack.peek()).setBody(m); in startMessage()
576 expect(Part.class); in startHeader()
581 expect(Part.class); in field()
584 ((Part)stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
592 expect(Part.class); in endHeader()
597 expect(Part.class); in startMultipart()
599 final Part e = (Part)stack.peek(); in startMultipart()
611 expect(Part.class); in body()
[all …]
DMimeUtility.java30 import com.android.emailcommon.mail.Part;
225 public static String getTextFromPart(Part part) { in getTextFromPart()
371 public static void collectParts(Part part, ArrayList<Part> viewables, in collectParts()
372 ArrayList<Part> attachments) throws MessagingException { in collectParts()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java27 import com.android.voicemail.impl.mail.Part;
571 expect(Part.class); in startMessage()
574 ((Part) stack.peek()).setBody(m); in startMessage()
590 expect(Part.class); in startHeader()
595 expect(Part.class); in field()
598 ((Part) stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
606 expect(Part.class); in endHeader()
611 expect(Part.class); in startMultipart()
613 final Part e = (Part) stack.peek(); in startMultipart()
625 expect(Part.class); in body()
[all …]
DMimeUtility.java28 import com.android.voicemail.impl.mail.Part;
216 public static String getTextFromPart(Part part) { in getTextFromPart()
355 public static void collectParts(Part part, ArrayList<Part> viewables, ArrayList<Part> attachments) in collectParts()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java31 import android.provider.Telephony.Mms.Part;
171 Part._ID,
172 Part.CHARSET,
173 Part.CONTENT_DISPOSITION,
174 Part.CONTENT_ID,
175 Part.CONTENT_LOCATION,
176 Part.CONTENT_TYPE,
177 Part.FILENAME,
178 Part.NAME,
179 Part.TEXT
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java2957 values.put(Mms.Part.CONTENT_TYPE, "text/plain"); in pushMmsToFolder()
2958 values.put(Mms.Part.CHARSET, 106); in pushMmsToFolder()
2960 values.put(Mms.Part.FILENAME, part.mPartName); in pushMmsToFolder()
2961 values.put(Mms.Part.NAME, part.mPartName); in pushMmsToFolder()
2963 values.put(Mms.Part.FILENAME, "text_" + count + ".txt"); in pushMmsToFolder()
2964 values.put(Mms.Part.NAME, "text_" + count + ".txt"); in pushMmsToFolder()
2968 values.put(Mms.Part.CONTENT_ID, part.mContentId); in pushMmsToFolder()
2971 values.put(Mms.Part.CONTENT_ID, "<" + part.mPartName + ">"); in pushMmsToFolder()
2973 values.put(Mms.Part.CONTENT_ID, "<text_" + count + ">"); in pushMmsToFolder()
2978 values.put(Mms.Part.CONTENT_LOCATION, part.mContentLocation); in pushMmsToFolder()
[all …]
/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java40 import com.android.emailcommon.mail.Part;
166 final EmailContent.Message localMessage, final ArrayList<Part> attachments) in updateAttachments()
169 for (Part attachmentPart : attachments) { in updateAttachments()
175 final EmailContent.Message localMessage, final ArrayList<Part> inlineAttachments) in updateInlineAttachments()
177 for (final Part inlinePart : inlineAttachments) { in updateInlineAttachments()
195 protected static Attachment mimePartToAttachment(final Part part) throws MessagingException { in mimePartToAttachment()
258 final EmailContent.Message localMessage, final Part part) in addOneAttachment()
319 public static void saveAttachmentBody(final Context context, final Part part, in saveAttachmentBody()
/packages/apps/Email/provider_src/com/android/email/provider/
DUtilities.java32 import com.android.emailcommon.mail.Part;
117 ArrayList<Part> viewables = new ArrayList<Part>(); in copyOneMessageToProvider()
118 ArrayList<Part> attachments = new ArrayList<Part>(); in copyOneMessageToProvider()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DFetchProfile.java77 public Part getFirstPart() { in getFirstPart()
79 if (o instanceof Part) { in getFirstPart()
80 return (Part) o; in getFirstPart()
DMultipart.java22 protected Part mParent;
56 public Part getParent() throws MessagingException { in getParent()
60 public void setParent(Part parent) throws MessagingException { in setParent()
DBodyPart.java19 public abstract class BodyPart implements Part {
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DFetchProfile.java71 public Part getFirstPart() { in getFirstPart()
73 if (o instanceof Part) { in getFirstPart()
74 return (Part) o; in getFirstPart()
DMultipart.java21 protected Part parent;
55 public Part getParent() throws MessagingException { in getParent()
59 public void setParent(Part parent) throws MessagingException { in setParent()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java39 import com.android.emailcommon.mail.Part;
460 ArrayList<Part> viewables = new ArrayList<Part>(); in Message()
461 ArrayList<Part> attachments = new ArrayList<Part>(); in Message()
478 for (final Part attachmentPart : attachments) { in Message()
485 for (final Part viewablePart : viewables) { in Message()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DConversionUtilities.java22 import com.android.emailcommon.mail.Part;
64 public static BodyFieldData parseBodyFields(ArrayList<Part> viewables) in parseBodyFields()
70 for (Part viewable : viewables) { in parseBodyFields()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java54 import com.android.emailcommon.mail.Part;
877 final Part part1 = mimeMultipart.getBodyPart(0); in testFetchBodyStructureMultipart()
878 final Part part2 = mimeMultipart.getBodyPart(1); in testFetchBodyStructureMultipart()
879 final Part part3 = mimeMultipart.getBodyPart(2); in testFetchBodyStructureMultipart()
880 final Part part4 = mimeMultipart.getBodyPart(3); in testFetchBodyStructureMultipart()
1039 Part part1 = mimeMultipart.getBodyPart(1); in testFetchAttachment()
1090 ArrayList<Part> viewables = new ArrayList<Part>(); in testNilMessage()
1091 ArrayList<Part> attachments = new ArrayList<Part>(); in testNilMessage()
1094 Part emptyBodyPart = viewables.get(0); in testNilMessage()
1103 viewables = new ArrayList<Part>(); in testNilMessage()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java53 import com.android.emailcommon.mail.Part;
265 ArrayList<Part> viewables = new ArrayList<Part>(); in loadUnsyncedMessages()
266 ArrayList<Part> attachments = new ArrayList<Part>(); in loadUnsyncedMessages()
270 for (Part part : viewables) { in loadUnsyncedMessages()
1590 ArrayList<Part> viewables = new ArrayList<>(); in searchMailboxImpl()
1591 ArrayList<Part> attachments = new ArrayList<>(); in searchMailboxImpl()
1595 for (Part part : viewables) { in searchMailboxImpl()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java563 Mms.Part._ID,
564 Mms.Part.MSG_ID,
565 Mms.Part.CHARSET,
566 Mms.Part.CONTENT_TYPE,
567 Mms.Part.TEXT,

12