/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | AttachmentUtilitiesTests.java | 61 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", null)); in testInferMimeType() 62 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", "")); in testInferMimeType() 64 AttachmentUtilities.inferMimeType("a.eml", DEFAULT_LOWER)); in testInferMimeType() 66 AttachmentUtilities.inferMimeType("a.eMl", TEXT_PLAIN)); in testInferMimeType() 68 AttachmentUtilities.inferMimeType("a.eml", TYPE_IMG_PNG)); in testInferMimeType() 71 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_PNG, "Mime/TyPe")); in testInferMimeType() 72 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_ABC, "Mime/TyPe")); in testInferMimeType() 74 AttachmentUtilities.inferMimeType(FILE_NO_EXT, "Mime/TyPe")); in testInferMimeType() 75 assertEquals("mime/type", AttachmentUtilities.inferMimeType(null, "Mime/TyPe")); in testInferMimeType() 76 assertEquals("mime/type", AttachmentUtilities.inferMimeType("", "Mime/TyPe")); in testInferMimeType() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | AttachmentProviderTests.java | 38 import com.android.emailcommon.utility.AttachmentUtilities; 94 Uri attachment1Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery() 96 Uri attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery() 98 Uri attachment3Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery() 110 AttachmentUtilities.getAttachmentUri(account1.mId, attachment1Id).toString()); in testQuery() 117 AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id).toString()); in testQuery() 124 AttachmentUtilities.getAttachmentUri(account1.mId, attachment3Id).toString()); in testQuery() 129 attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id); in testQuery() 132 new String[] { AttachmentUtilities.Columns._ID, in testQuery() 133 AttachmentUtilities.Columns.DATA, in testQuery() [all …]
|
/packages/apps/Email/provider_src/com/android/email/ |
D | AttachmentInfo.java | 22 import com.android.emailcommon.utility.AttachmentUtilities; 110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType); in AttachmentInfo() 127 AttachmentUtilities.ACCEPTABLE_ATTACHMENT_VIEW_TYPES)) || in AttachmentInfo() 129 AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_VIEW_TYPES))) { in AttachmentInfo() 134 String extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo() 136 Utility.arrayContains(AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_EXTENSIONS, in AttachmentInfo() 151 extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo() 153 Utility.arrayContains(AttachmentUtilities.INSTALLABLE_ATTACHMENT_EXTENSIONS, in AttachmentInfo() 168 if (mSize > AttachmentUtilities.MAX_ATTACHMENT_DOWNLOAD_SIZE) { in AttachmentInfo() 210 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId); in getUriForIntent() [all …]
|
D | LegacyConversions.java | 45 import com.android.emailcommon.utility.AttachmentUtilities; 229 localAttachment.mMimeType = AttachmentUtilities.inferMimeType(name, part.getMimeType()); in mimePartToAttachment() 325 final File saveIn = AttachmentUtilities.getAttachmentDirectory(context, accountId); in saveAttachmentBody() 330 final File saveAs = AttachmentUtilities.getAttachmentFilename(context, accountId, in saveAttachmentBody() 350 final String contentUriString = AttachmentUtilities.getAttachmentUri( in saveAttachmentBody()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | AttachmentProvider.java | 37 import com.android.emailcommon.utility.AttachmentUtilities; 38 import com.android.emailcommon.utility.AttachmentUtilities.Columns; 109 if (AttachmentUtilities.FORMAT_THUMBNAIL.equals(format)) { in getType() 119 mimeType = AttachmentUtilities.inferMimeType(fileName, mimeType); in getType() 157 AttachmentUtilities.getAttachmentDirectory(context, Long.parseLong(accountId)); in openFile() 172 if (AttachmentUtilities.FORMAT_THUMBNAIL.equals(format)) { in openFile() 179 Uri attachmentUri = AttachmentUtilities. in openFile()
|
D | EmailProvider.java | 107 import com.android.emailcommon.utility.AttachmentUtilities; 1471 AttachmentUtilities.Columns._ID, in query() 1472 AttachmentUtilities.Columns.DATA, in query() 1490 if (AttachmentUtilities.Columns._ID.equals(column)) { in query() 1494 else if (AttachmentUtilities.Columns.DATA.equals(column)) { in query() 1498 else if (AttachmentUtilities.Columns.DISPLAY_NAME.equals(column)) { in query() 1502 else if (AttachmentUtilities.Columns.SIZE.equals(column)) { in query() 4104 final String raw = AttachmentUtilities.FORMAT_RAW; in createAttachmentUriColumnSQL() 4316 contentUri = AttachmentUtilities.getAttachmentUri(att.mAccountKey, id) in AttachmentsCursor() 5474 AttachmentUtilities.deleteAllAttachmentFiles(context, msg.mAccountKey, msg.mId); in uiDeleteMessage() [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceStub.java | 61 import com.android.emailcommon.utility.AttachmentUtilities; 229 AttachmentUtilities.saveAttachment(mContext, storePart.getBody().getInputStream(), in loadAttachment() 351 AttachmentUtilities.deleteAllMailboxAttachmentFiles( in updateFolderList() 493 AttachmentUtilities.deleteAllCachedAttachmentFiles(context, account.mId, messageId); in sendMailImpl() 500 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, in sendMailImpl() 511 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, in sendMailImpl()
|
D | Pop3Service.java | 54 import com.android.emailcommon.utility.AttachmentUtilities; 455 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, in synchronizePop3Mailbox()
|
D | AttachmentService.java | 47 import com.android.emailcommon.utility.AttachmentUtilities; 1354 pw.print(AttachmentUtilities.inferMimeType(fileName, null)); in dump()
|
D | ImapService.java | 63 import com.android.emailcommon.utility.AttachmentUtilities; 714 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, info.mId); in synchronizeMailboxGeneric()
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
D | MessageTestUtils.java | 25 import com.android.emailcommon.utility.AttachmentUtilities; 66 return AttachmentUtilities.getAttachmentUri(account.mId, attachmentId); in contentUri()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 47 public class AttachmentUtilities { class
|