HomeSort by relevance Sort by last modified time
    Searched refs:AttachmentUtilities (Results 1 - 18 of 18) sorted by null

  /packages/apps/Email/tests/src/com/android/emailcommon/utility/
AttachmentUtilitiesTests.java 59 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", null));
60 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", ""));
62 AttachmentUtilities.inferMimeType("a.eml", DEFAULT_LOWER));
64 AttachmentUtilities.inferMimeType("a.eMl", TEXT_PLAIN));
66 AttachmentUtilities.inferMimeType("a.eml", TYPE_IMG_PNG));
69 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_PNG, "Mime/TyPe"));
70 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_ABC, "Mime/TyPe"));
72 AttachmentUtilities.inferMimeType(FILE_NO_EXT, "Mime/TyPe"));
73 assertEquals("mime/type", AttachmentUtilities.inferMimeType(null, "Mime/TyPe"));
74 assertEquals("mime/type", AttachmentUtilities.inferMimeType("", "Mime/TyPe"))
    [all...]
UtilityUnitTests.java 298 Uri uri = AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
304 Uri notExistUri = AttachmentUtilities.getAttachmentUri(account.mId, 123456789);
  /packages/apps/Email/tests/src/com/android/email/provider/
AttachmentProviderTests.java 38 import com.android.emailcommon.utility.AttachmentUtilities;
95 Uri attachment1Uri = AttachmentUtilities.getAttachmentUri(account1.mId,
97 Uri attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId,
99 Uri attachment3Uri = AttachmentUtilities.getAttachmentUri(account1.mId,
111 AttachmentUtilities.getAttachmentUri(account1.mId, attachment1Id).toString());
118 AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id).toString());
125 AttachmentUtilities.getAttachmentUri(account1.mId, attachment3Id).toString());
130 attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id);
133 new String[] { AttachmentUtilities.Columns._ID,
134 AttachmentUtilities.Columns.DATA
    [all...]
  /packages/apps/Email/src/com/android/email/
AttachmentInfo.java 21 import com.android.emailcommon.utility.AttachmentUtilities;
103 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType);
120 AttachmentUtilities.ACCEPTABLE_ATTACHMENT_VIEW_TYPES)) ||
122 AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_VIEW_TYPES))) {
127 String extension = AttachmentUtilities.getFilenameExtension(mName);
129 Utility.arrayContains(AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_EXTENSIONS,
144 extension = AttachmentUtilities.getFilenameExtension(mName);
146 Utility.arrayContains(AttachmentUtilities.INSTALLABLE_ATTACHMENT_EXTENSIONS,
161 if (mSize > AttachmentUtilities.MAX_ATTACHMENT_DOWNLOAD_SIZE) {
203 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId)
    [all...]
LegacyConversions.java 42 import com.android.emailcommon.utility.AttachmentUtilities;
221 String mimeType = AttachmentUtilities.inferMimeType(name, part.getMimeType());
303 File saveIn = AttachmentUtilities.getAttachmentDirectory(context, accountId);
307 File saveAs = AttachmentUtilities.getAttachmentFilename(context, accountId,
316 String contentUriString = AttachmentUtilities.getAttachmentUri(
  /packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.java 37 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.
EmailProvider.java 99 import com.android.emailcommon.utility.AttachmentUtilities;
    [all...]
  /packages/apps/Email/tests/src/com/android/emailcommon/mail/
MessageTestUtils.java 25 import com.android.emailcommon.utility.AttachmentUtilities;
66 return AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
  /packages/apps/Email/src/com/android/email/service/
EmailServiceStub.java 60 import com.android.emailcommon.utility.AttachmentUtilities;
225 AttachmentUtilities.saveAttachment(mContext, storePart.getBody().getInputStream(),
336 AttachmentUtilities.deleteAllMailboxAttachmentFiles(
461 AttachmentUtilities.deleteAllCachedAttachmentFiles(context, account.mId, messageId);
468 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId,
479 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId,
Pop3Service.java 53 import com.android.emailcommon.utility.AttachmentUtilities;
451 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId,
AttachmentDownloadService.java 47 import com.android.emailcommon.utility.AttachmentUtilities;
    [all...]
ImapService.java 60 import com.android.emailcommon.utility.AttachmentUtilities;
641 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, info.mId);
    [all...]
  /packages/apps/Exchange/src/com/android/exchange/adapter/
AttachmentLoader.java 23 import com.android.emailcommon.utility.AttachmentUtilities;
111 AttachmentUtilities.saveAttachment(mContext, in, mAttachment);
FolderSyncParser.java 39 import com.android.emailcommon.utility.AttachmentUtilities;
298 AttachmentUtilities.deleteAllMailboxAttachmentFiles(mContext,
    [all...]
EmailSyncParser.java 33 import com.android.emailcommon.utility.AttachmentUtilities;
    [all...]
EmailSyncAdapter.java 59 import com.android.emailcommon.utility.AttachmentUtilities;
147 AttachmentUtilities.deleteAllMailboxAttachmentFiles(mContext, mAccount.mId, mMailbox.mId);
    [all...]
  /packages/apps/Exchange/src/com/android/exchange/eas/
EasLoadAttachment.java 26 import com.android.emailcommon.utility.AttachmentUtilities;
264 AttachmentUtilities.saveAttachment(mContext, in, attachment);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java 49 public class AttachmentUtilities {

Completed in 1807 milliseconds