Searched refs:AttachmentUtilities (Results 1 - 12 of 12) sorted by relevance

/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DAttachmentUtilitiesTests.java61 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", null));
62 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", ""));
64 AttachmentUtilities.inferMimeType("a.eml", DEFAULT_LOWER));
66 AttachmentUtilities.inferMimeType("a.eMl", TEXT_PLAIN));
68 AttachmentUtilities.inferMimeType("a.eml", TYPE_IMG_PNG));
71 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_PNG, "Mime/TyPe"));
72 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_ABC, "Mime/TyPe"));
74 AttachmentUtilities.inferMimeType(FILE_NO_EXT, "Mime/TyPe"));
75 assertEquals("mime/type", AttachmentUtilities.inferMimeType(null, "Mime/TyPe"));
76 assertEquals("mime/type", AttachmentUtilities
[all...]
/packages/apps/Email/tests/src/com/android/email/provider/
H A DAttachmentProviderTests.java38 import com.android.emailcommon.utility.AttachmentUtilities;
94 Uri attachment1Uri = AttachmentUtilities.getAttachmentUri(account1.mId,
96 Uri attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId,
98 Uri attachment3Uri = AttachmentUtilities.getAttachmentUri(account1.mId,
110 AttachmentUtilities.getAttachmentUri(account1.mId, attachment1Id).toString());
117 AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id).toString());
124 AttachmentUtilities.getAttachmentUri(account1.mId, attachment3Id).toString());
129 attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id);
132 new String[] { AttachmentUtilities.Columns._ID,
133 AttachmentUtilities
[all...]
/packages/apps/Email/provider_src/com/android/email/
H A DAttachmentInfo.java22 import com.android.emailcommon.utility.AttachmentUtilities;
110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType);
127 AttachmentUtilities.ACCEPTABLE_ATTACHMENT_VIEW_TYPES)) ||
129 AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_VIEW_TYPES))) {
134 String extension = AttachmentUtilities.getFilenameExtension(mName);
136 Utility.arrayContains(AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_EXTENSIONS,
151 extension = AttachmentUtilities.getFilenameExtension(mName);
153 Utility.arrayContains(AttachmentUtilities.INSTALLABLE_ATTACHMENT_EXTENSIONS,
168 if (mSize > AttachmentUtilities.MAX_ATTACHMENT_DOWNLOAD_SIZE) {
210 Uri contentUri = AttachmentUtilities
[all...]
H A DLegacyConversions.java45 import com.android.emailcommon.utility.AttachmentUtilities;
229 localAttachment.mMimeType = AttachmentUtilities.inferMimeType(name, part.getMimeType());
325 final File saveIn = AttachmentUtilities.getAttachmentDirectory(context, accountId);
330 final File saveAs = AttachmentUtilities.getAttachmentFilename(context, accountId,
350 final String contentUriString = AttachmentUtilities.getAttachmentUri(
/packages/apps/Email/provider_src/com/android/email/provider/
H A DAttachmentProvider.java37 import com.android.emailcommon.utility.AttachmentUtilities;
38 import com.android.emailcommon.utility.AttachmentUtilities.Columns;
109 if (AttachmentUtilities.FORMAT_THUMBNAIL.equals(format)) {
119 mimeType = AttachmentUtilities.inferMimeType(fileName, mimeType);
157 AttachmentUtilities.getAttachmentDirectory(context, Long.parseLong(accountId));
172 if (AttachmentUtilities.FORMAT_THUMBNAIL.equals(format)) {
179 Uri attachmentUri = AttachmentUtilities.getAttachmentUri(accountId, id);
H A DEmailProvider.java107 import com.android.emailcommon.utility.AttachmentUtilities;
1471 AttachmentUtilities.Columns._ID,
1472 AttachmentUtilities.Columns.DATA,
1490 if (AttachmentUtilities.Columns._ID.equals(column)) {
1494 else if (AttachmentUtilities.Columns.DATA.equals(column)) {
1498 else if (AttachmentUtilities.Columns.DISPLAY_NAME.equals(column)) {
1502 else if (AttachmentUtilities.Columns.SIZE.equals(column)) {
4104 final String raw = AttachmentUtilities.FORMAT_RAW;
4316 contentUri = AttachmentUtilities.getAttachmentUri(att.mAccountKey, id)
5474 AttachmentUtilities
[all...]
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMessageTestUtils.java25 import com.android.emailcommon.utility.AttachmentUtilities;
66 return AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
/packages/apps/Email/provider_src/com/android/email/service/
H A DEmailServiceStub.java61 import com.android.emailcommon.utility.AttachmentUtilities;
229 AttachmentUtilities.saveAttachment(mContext, storePart.getBody().getInputStream(),
351 AttachmentUtilities.deleteAllMailboxAttachmentFiles(
493 AttachmentUtilities.deleteAllCachedAttachmentFiles(context, account.mId, messageId);
500 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId,
511 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId,
H A DPop3Service.java54 import com.android.emailcommon.utility.AttachmentUtilities;
455 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId,
H A DAttachmentService.java47 import com.android.emailcommon.utility.AttachmentUtilities;
1354 pw.print(AttachmentUtilities.inferMimeType(fileName, null));
H A DImapService.java63 import com.android.emailcommon.utility.AttachmentUtilities;
714 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, info.mId);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java47 public class AttachmentUtilities { class

Completed in 196 milliseconds