/packages/apps/Email/src/com/android/exchange/ |
D | PartRequest.java | 20 import com.android.email.provider.EmailContent.Attachment; 28 public Attachment mAttachment; 33 public PartRequest(Attachment _att) { in PartRequest() 39 public PartRequest(Attachment _att, String _destination, String _contentUriString) { in PartRequest()
|
D | SyncManager.java | 28 import com.android.email.provider.EmailContent.Attachment; 341 Attachment att = Attachment.restoreAttachmentWithId(SyncManager.this, attachmentId);
|
D | EasSyncService.java | 30 import com.android.email.provider.EmailContent.Attachment; 892 Attachment att = req.mAttachment; in getAttachment()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | AttachmentProviderTests.java | 24 import com.android.email.provider.EmailContent.Attachment; 137 Attachment newAttachment1 = ProviderTestUtils.setupAttachment(message1Id, "file1", 100, in testQuery() 144 Attachment newAttachment2 = ProviderTestUtils.setupAttachment(message1Id, "file2", 200, in testQuery() 151 Attachment newAttachment3 = ProviderTestUtils.setupAttachment(message1Id, "file3", 300, in testQuery() 219 Attachment newAttachment2 = ProviderTestUtils.setupAttachment(message1Id, "file2", 100, in testGetType() 224 Attachment newAttachment3 = ProviderTestUtils.setupAttachment(message1Id, "file3", 100, in testGetType() 229 Attachment newAttachment4 = ProviderTestUtils.setupAttachment(message1Id, "file4.doc", 100, in testGetType() 234 Attachment newAttachment5 = ProviderTestUtils.setupAttachment(message1Id, "file5.xyz", 100, in testGetType() 239 Attachment newAttachment6 = ProviderTestUtils.setupAttachment(message1Id, "file6", 100, in testGetType() 348 Attachment newAttachment = ProviderTestUtils.setupAttachment(message1Id, "file", 100, in testOpenFile() [all …]
|
D | ProviderTests.java | 21 import com.android.email.provider.EmailContent.Attachment; 412 ArrayList<Attachment> atts = new ArrayList<Attachment>(); in testMessageSave() 429 Attachment.CONTENT_URI, in testMessageSave() 430 Attachment.CONTENT_PROJECTION, in testMessageSave() 431 Attachment.MESSAGE_KEY + "=?", in testMessageSave() 435 Attachment.SIZE); in testMessageSave() 440 Attachment actual = EmailContent.getContent(c, Attachment.class); in testMessageSave() 451 atts = new ArrayList<Attachment>(); in testMessageSave() 469 Attachment.CONTENT_URI, in testMessageSave() 470 Attachment.CONTENT_PROJECTION, in testMessageSave() [all …]
|
D | ProviderTestUtils.java | 21 import com.android.email.provider.EmailContent.Attachment; 192 public static Attachment setupAttachment(long messageId, String fileName, long length, in setupAttachment() 194 Attachment att = new Attachment(); in setupAttachment() 354 public static void assertAttachmentEqual(String caller, Attachment expect, Attachment actual) { in assertAttachmentEqual()
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
D | Rfc822Output.java | 22 import com.android.email.provider.EmailContent.Attachment; 152 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, messageId); in writeTo() 154 Attachment.CONTENT_PROJECTION, null, null, null); in writeTo() 178 int flags = attachmentsCursor.getInt(Attachment.CONTENT_FLAGS_COLUMN); in writeTo() 179 if ((flags & Attachment.FLAG_ICS_ALTERNATIVE_PART) != 0) { in writeTo() 198 Attachment attachment = in writeTo() 199 Attachment.getContent(attachmentsCursor, Attachment.class); in writeTo() 219 Attachment attachment) throws IOException, MessagingException { in writeOneAttachment() 225 if ((attachment.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART) == 0) { in writeOneAttachment()
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | SmtpSenderUnitTests.java | 23 import com.android.email.provider.EmailContent.Attachment; 149 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, false); in testSendMessageWithEmptyAttachment() 179 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, true); in testSendMessageWithAttachment() 209 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, true); in testSendMessageWithTwoAttachments() 213 Attachment attachment2 = setupSimpleAttachment(mProviderContext, message.mId, true); in testSendMessageWithTwoAttachments() 250 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, true); in testSendMessageWithBodyAndAttachment() 303 private Attachment setupSimpleAttachment(Context context, long messageId, boolean withBody) in setupSimpleAttachment() 305 Attachment attachment = new Attachment(); in setupSimpleAttachment() 332 private void expectSimpleAttachment(MockTransport mockTransport, Attachment attachment) { in expectSimpleAttachment()
|
D | Rfc822OutputTests.java | 22 import com.android.email.provider.EmailContent.Attachment; 184 msg.mAttachments = new ArrayList<Attachment>(); in testWriteToAlternativePart() 186 Attachment att = new Attachment(); in testWriteToAlternativePart() 188 att.mFlags = Attachment.FLAG_ICS_ALTERNATIVE_PART; in testWriteToAlternativePart() 229 msg.mAttachments = new ArrayList<Attachment>(); in testWriteToMixedPart() 231 Attachment att = new Attachment(); in testWriteToMixedPart()
|
/packages/apps/Email/tests/src/com/android/exchange/utility/ |
D | CalendarUtilitiesTests.java | 23 import com.android.email.provider.EmailContent.Attachment; 273 Attachment att = msg.mAttachments.get(0); in testCreateMessageForEntity_Reply() 276 assertEquals(Attachment.FLAG_ICS_ALTERNATIVE_PART, in testCreateMessageForEntity_Reply() 277 att.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART); in testCreateMessageForEntity_Reply() 312 Attachment att = msg.mAttachments.get(0); in testCreateMessageForEntity_Invite_AllDay() 315 assertEquals(Attachment.FLAG_ICS_ALTERNATIVE_PART, in testCreateMessageForEntity_Invite_AllDay() 316 att.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART); in testCreateMessageForEntity_Invite_AllDay() 374 Attachment att = msg.mAttachments.get(0); in testCreateMessageForEntity_Invite() 377 assertEquals(Attachment.FLAG_ICS_ALTERNATIVE_PART, in testCreateMessageForEntity_Invite() 378 att.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART); in testCreateMessageForEntity_Invite() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageCompose.java | 31 import com.android.email.provider.EmailContent.Attachment; 673 mLoadAttachmentsTask = new AsyncTask<Long, Void, Attachment[]>() { in onPostExecute() 675 protected Attachment[] doInBackground(Long... messageIds) { in onPostExecute() 676 return Attachment.restoreAttachmentsWithMessageId(MessageCompose.this, in onPostExecute() 680 protected void onPostExecute(Attachment[] attachments) { in onPostExecute() 684 for (Attachment attachment : attachments) { in onPostExecute() 844 private Attachment[] getAttachmentsFromUI() { in getAttachmentsFromUI() 846 Attachment[] attachments = new Attachment[count]; in getAttachmentsFromUI() 848 attachments[i] = (Attachment) mAttachments.getChildAt(i).getTag(); in getAttachmentsFromUI() 867 final Attachment[] attachments = getAttachmentsFromUI(); in getOrCreateDraftId() [all …]
|
D | MessageView.java | 31 import com.android.email.provider.EmailContent.Attachment; 1003 private void addAttachment(Attachment attachment) { in addAttachment() 1279 private class LoadAttachmentsTask extends AsyncTask<Long, Void, Attachment[]> { 1281 protected Attachment[] doInBackground(Long... messageIds) { in doInBackground() 1282 return Attachment.restoreAttachmentsWithMessageId(MessageView.this, messageIds[0]); in doInBackground() 1286 protected void onPostExecute(Attachment[] attachments) { in onPostExecute() 1291 for (Attachment attachment : attachments) { in onPostExecute() 1618 Attachment attachment = in doFinishLoadAttachment() 1619 Attachment.restoreAttachmentWithId(MessageView.this, attachmentId); in doFinishLoadAttachment()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 42 import com.android.email.provider.EmailContent.Attachment; 238 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId); in convertAndCheckcheckAddedAttachments() 239 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION, in convertAndCheckcheckAddedAttachments() 244 Attachment attachment = Attachment.getContent(c, Attachment.class); in convertAndCheckcheckAddedAttachments() 279 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId); in testAddDuplicateAttachments() 315 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId); in testLocalUpgradeAttachments() 316 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION, in testLocalUpgradeAttachments() 321 Attachment attachment = Attachment.getContent(c, Attachment.class); in testLocalUpgradeAttachments() 424 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual) in checkAttachment()
|
/packages/apps/Email/src/com/android/email/provider/ |
D | EmailContent.java | 559 transient public ArrayList<Attachment> mAttachments = null; 723 for (Attachment a : mAttachments) { in save() 778 for (Attachment att: mAttachments) { in addSaveOps() 779 ops.add(ContentProviderOperation.newInsert(Attachment.CONTENT_URI) in addSaveOps() 781 .withValueBackReference(Attachment.MESSAGE_KEY, messageBackValue) in addSaveOps() 1654 public static final class Attachment extends EmailContent implements AttachmentColumns { class in EmailContent 1701 public Attachment() { in Attachment() method in EmailContent.Attachment 1711 public static Attachment restoreAttachmentWithId (Context context, long id) { in restoreAttachmentWithId() 1712 Uri u = ContentUris.withAppendedId(Attachment.CONTENT_URI, id); in restoreAttachmentWithId() 1713 Cursor c = context.getContentResolver().query(u, Attachment.CONTENT_PROJECTION, in restoreAttachmentWithId() [all …]
|
D | AttachmentProvider.java | 21 import com.android.email.provider.EmailContent.Attachment; 163 uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, Long.parseLong(id)); in getType() 337 uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, Long.parseLong(id)); in query() 440 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, messageId); in deleteAllAttachmentFiles() 441 Cursor c = context.getContentResolver().query(uri, Attachment.ID_PROJECTION, in deleteAllAttachmentFiles() 445 long attachmentId = c.getLong(Attachment.ID_PROJECTION_COLUMN); in deleteAllAttachmentFiles()
|
D | EmailProvider.java | 22 import com.android.email.provider.EmailContent.Attachment; 150 EmailContent.Attachment.TABLE_NAME, 347 " begin delete from " + Attachment.TABLE_NAME + in createMessageTable() 513 db.execSQL("create table " + Attachment.TABLE_NAME + s); in createAttachmentTable() 514 db.execSQL(createIndex(Attachment.TABLE_NAME, AttachmentColumns.MESSAGE_KEY)); in createAttachmentTable() 519 db.execSQL("drop table " + Attachment.TABLE_NAME); in resetAttachmentTable() 764 db.execSQL("alter table " + Attachment.TABLE_NAME in onUpgrade() 766 db.execSQL("alter table " + Attachment.TABLE_NAME in onUpgrade() 777 db.execSQL("alter table " + Attachment.TABLE_NAME in onUpgrade() 859 whereWith(Attachment.MESSAGE_KEY + "=" + id, selection), selectionArgs); in delete() [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | LegacyConversions.java | 36 import com.android.email.provider.EmailContent.Attachment; 297 Attachment localAttachment = new Attachment(); in addOneAttachment() 380 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId); in addOneAttachment() 381 Cursor cursor = context.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION, in addOneAttachment() 386 Attachment dbAttachment = new Attachment().restore(cursor); in addOneAttachment() 416 localMessage.mAttachments = new ArrayList<Attachment>(); in addOneAttachment() 436 public static void saveAttachmentBody(Context context, Part part, Attachment localAttachment, in saveAttachmentBody() 466 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId); in saveAttachmentBody()
|
D | Controller.java | 25 import com.android.email.provider.EmailContent.Attachment; 566 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId); in deleteAttachment() 748 Attachment attachInfo = Attachment.restoreAttachmentWithId(mProviderContext, attachmentId); in loadAttachment()
|
D | MessagingController.java | 37 import com.android.email.provider.EmailContent.Attachment; 1819 Attachment attachment = in loadAttachment() 1820 Attachment.restoreAttachmentWithId(mContext, attachmentId); in loadAttachment() 1917 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, id); in pruneCachedAttachments()
|
/packages/apps/Email/src/com/android/exchange/adapter/ |
D | EmailSyncAdapter.java | 29 import com.android.email.provider.EmailContent.Attachment; 140 ArrayList<Attachment> atts = new ArrayList<Attachment>(); in addData() 327 private void attachmentsParser(ArrayList<Attachment> atts, Message msg) throws IOException { in attachmentsParser() 340 private void attachmentParser(ArrayList<Attachment> atts, Message msg) throws IOException { in attachmentParser() 366 Attachment att = new Attachment(); in attachmentParser()
|
/packages/apps/Email/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 25 import com.android.email.provider.EmailContent.Attachment; 1679 Attachment att = new Attachment(); in createMessageForEntity() 1685 att.mFlags = Attachment.FLAG_ICS_ALTERNATIVE_PART; in createMessageForEntity() 1688 msg.mAttachments = new ArrayList<Attachment>(); in createMessageForEntity()
|
/packages/apps/Email/ |
D | proguard.flags | 63 -keepclasseswithmembers class com.android.email.provider.EmailContent$Attachment {
|