Home | History | Annotate | Download | only in email

Lines Matching refs:Attachment

20 import com.android.emailcommon.provider.EmailContent.Attachment;
38 * Encapsulates commonly used attachment information related to suitability for viewing and saving,
39 * based on the attachment's filename and mimetype.
59 /** Attachment not denied */
61 /** Attachment suspected of being malware */
63 /** Attachment too large; must download over wi-fi */
65 /** No receiving intent to handle attachment type */
82 /** Whether or not this attachment can be viewed */
84 /** Whether or not this attachment can be saved */
86 /** Whether or not this attachment can be installed [only true for APKs] */
88 /** Reason(s) why this attachment is denied from being viewed */
91 public AttachmentInfo(Context context, Attachment attachment) {
92 this(context, attachment.mId, attachment.mSize, attachment.mFileName, attachment.mMimeType,
93 attachment.mAccountKey, attachment.mFlags);
144 if ((flags & Attachment.FLAG_POLICY_DISALLOWS_DOWNLOAD) != 0) {
177 // Check to see if any activities can view this attachment; if none, we can't view it
194 * Returns an <code>Intent</code> to load the given attachment.
196 * @param accountId the account associated with the attachment (or 0 if we don't need to
198 * @return an Intent suitable for viewing the attachment
220 * An attachment is eligible for download if it can either be viewed or saved (or both)
221 * @return whether the attachment is eligible for download
247 return "{Attachment " + mId + ":" + mName + "," + mContentType + "," + mSize + "}";