Searched refs:Attachment (Results 1 - 25 of 53) sorted by relevance

123

/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
H A DMockAttachment.java20 import com.android.mail.providers.Attachment;
24 public class MockAttachment extends Attachment {
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DAttachmentLoader.java28 import com.android.mail.providers.Attachment;
46 private Map<String, Attachment> mCache = Maps.newHashMap();
52 public Attachment get() {
54 Attachment m = mCache.get(uri);
56 m = new Attachment(this);
H A DMessageFooterView.java41 import com.android.mail.providers.Attachment;
140 // kick off load of Attachment objects in background thread
161 final List<Attachment> attachments;
176 private void renderAttachments(List<Attachment> attachments, boolean loaderResult) {
183 final List<Attachment> tiledAttachments = new ArrayList<Attachment>(maxSize);
184 final List<Attachment> barAttachments = new ArrayList<Attachment>(maxSize);
186 for (Attachment attachment : attachments) {
199 mMessageHeaderItem.getMessage().attachmentsJson = Attachment
[all...]
H A DAttachmentProgressDialogFragment.java26 import com.android.mail.providers.Attachment;
35 private Attachment mAttachment;
39 static AttachmentProgressDialogFragment newInstance(Attachment attachment) {
117 public boolean isShowingDialogForAttachment(Attachment attachment) {
H A DAttachmentActionHandler.java33 import com.android.mail.providers.Attachment;
51 private Attachment mAttachment;
84 public void setAttachment(Attachment attachment) {
111 * {@link #setAttachment(Attachment)} immediately.
124 Attachment attachment, int destination, int rendition, int additionalPriority,
143 public void startRedownloadingAttachment(Attachment attachment) {
283 Attachment attachment, FragmentManager fm) {
H A DConversationMessage.java29 import com.android.mail.providers.Attachment;
85 for (Attachment a : getAttachments()) {
/packages/apps/Email/provider_src/com/android/email/
H A DNotificationController.java22 import com.android.emailcommon.provider.EmailContent.Attachment;
27 void showDownloadForwardFailedNotificationSynchronous(Attachment attachment);
H A DLegacyConversions.java42 import com.android.emailcommon.provider.EmailContent.Attachment;
153 // transient public ArrayList<Attachment> mAttachments = null;
188 * Convert a MIME Part object into an Attachment object. Separated for unit testing.
195 protected static Attachment mimePartToAttachment(final Part part) throws MessagingException {
225 final Attachment localAttachment = new Attachment();
260 final Attachment localAttachment = mimePartToAttachment(part);
273 final Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId);
274 final Cursor cursor = context.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION,
279 final Attachment dbAttachmen
[all...]
/packages/apps/Email/tests/src/com/android/email/provider/
H A DPolicyTests.java28 import com.android.emailcommon.provider.EmailContent.Attachment;
47 Attachment.FLAG_POLICY_DISALLOWS_DOWNLOAD + ")!=0";
118 private Attachment setupSimpleAttachment(String name, long size, Account acct) {
119 Attachment att = ProviderTestUtils.setupAttachment(-1, name, size, false, mMockContext);
131 ArrayList<Attachment> atts = new ArrayList<Attachment>();
132 Attachment att1 = setupSimpleAttachment("fileName1", 10001L, acct);
134 Attachment att2 = setupSimpleAttachment("fileName2", 20001L, acct);
141 Attachment att3 = setupSimpleAttachment("fileName3", 70001L, acct);
143 Attachment att
[all...]
H A DAttachmentProviderTests.java35 import com.android.emailcommon.provider.EmailContent.Attachment;
59 super(AttachmentProvider.class, Attachment.ATTACHMENT_PROVIDER_LEGACY_URI_PREFIX);
107 Attachment newAttachment1 = ProviderTestUtils.setupAttachment(message1Id, "file1", 100,
114 Attachment newAttachment2 = ProviderTestUtils.setupAttachment(message1Id, "file2", 200,
121 Attachment newAttachment3 = ProviderTestUtils.setupAttachment(message1Id, "file3", 300,
226 Attachment.CONTENT_URI, AttachmentInfo.PROJECTION,
227 EmailContent.Attachment.PRECACHE_SELECTION,
228 null, Attachment.RECORD_ID + " DESC");
237 Attachment.CONTENT_URI, AttachmentInfo.PROJECTION,
238 EmailContent.Attachment
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/photo/
H A DMailPhotoViewController.java42 import com.android.mail.providers.Attachment;
172 final Attachment attachment = getCurrentAttachment();
191 List<Attachment> attachments = getAllAttachments();
194 for (final Attachment a : attachments) {
205 for (final Attachment a : attachments) {
234 final Attachment attachment = getCurrentAttachment();
241 // 1. Saved, Attachment Size
243 // 3. Default, Attachment Size
258 final Attachment attachment = getCurrentAttachment();
268 updateProgressAndEmptyViews(fragment, new Attachment(curso
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAttachmentTile.java36 import com.android.mail.providers.Attachment;
46 protected Attachment mAttachment;
69 public static boolean isTiledAttachment(final Attachment attachment) {
100 public Attachment getAttachment() {
109 protected void render(Attachment attachment, AttachmentPreviewCache attachmentPreviewCache) {
115 final Attachment prevAttachment = mAttachment;
124 if ((attachment.flags & Attachment.FLAG_DUMMY_ATTACHMENT) != 0) {
277 public AttachmentPreview(Attachment attachment, Bitmap preview) {
284 void set(Attachment attachment, Bitmap preview);
285 Bitmap get(Attachment attachmen
[all...]
H A DAttachmentTileGrid.java34 import com.android.mail.providers.Attachment;
54 private List<Attachment> mAttachments;
70 * Configures the grid to add {@link Attachment}s information to the views.
73 ConversationMessage message, List<Attachment> list, boolean loaderResult) {
81 for (Attachment attachment : list) {
86 private void addMessageTileFromAttachment(Attachment attachment, int index,
102 public ComposeAttachmentTile addComposeTileFromAttachment(Attachment attachment) {
233 public List<Attachment> getAttachments() {
253 public void set(Attachment attachment, Bitmap preview) {
265 public Bitmap get(Attachment attachmen
[all...]
/packages/apps/Email/provider_src/com/android/email/service/
H A DAttachmentService.java41 import com.android.emailcommon.provider.EmailContent.Attachment;
201 private DownloadRequest(final Context context, final Attachment attachment) {
504 * Simple routine to generate updated status values for the Attachment based on the
508 ContentValues getAttachmentUpdateValues(final Attachment attachment,
546 final Attachment attachment =
547 Attachment.restoreAttachmentWithId(AttachmentService.this, attachmentId);
561 LogUtils.d(LOG_TAG, "Attachment #%d is done", attachmentId);
583 LogUtils.d(LOG_TAG, "Attachment with id: %d will potentially be queued for download", id);
666 final int mask = Attachment.FLAG_DOWNLOAD_FORWARD | Attachment
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DAttachmentComposeView.java25 import com.android.mail.providers.Attachment;
38 private final Attachment mAttachment;
41 public AttachmentComposeView(Context c, Attachment attachment) {
H A DAttachmentsView.java37 import com.android.mail.providers.Attachment;
57 private final ArrayList<Attachment> mAttachments;
100 private void addAttachment(final Attachment attachment) {
150 final Attachment attachment) {
162 public ArrayList<Attachment> getAttachments() {
196 for (Attachment attachment : mAttachments) {
246 * Generate an {@link Attachment} object for a given local content URI. Attempts to populate
247 * the {@link Attachment#name}, {@link Attachment#size}, and {@link Attachment#contentTyp
[all...]
H A DComposeAttachmentTile.java10 import com.android.mail.providers.Attachment;
33 public void render(Attachment attachment, AttachmentPreviewCache attachmentPreviewCache) {
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/exchange/
H A DExchangeAttachment.java20 import com.android.mail.providers.Attachment;
22 public class ExchangeAttachment extends Attachment {
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java32 import com.android.emailcommon.provider.EmailContent.Attachment;
143 sUri = Uri.parse(Attachment.ATTACHMENT_PROVIDER_URI_PREFIX);
155 sUri = Uri.parse(Attachment.ATTACHMENT_PROVIDER_URI_PREFIX);
301 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, messageId);
302 Cursor c = context.getContentResolver().query(uri, Attachment.ID_PROJECTION,
306 long attachmentId = c.getLong(Attachment.ID_PROJECTION_COLUMN);
327 final Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, messageId);
396 public static void saveAttachment(Context context, InputStream in, Attachment attachment) {
397 final Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachment.mId);
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
H A DRfc822OutputTests.java27 import com.android.emailcommon.provider.EmailContent.Attachment;
147 msg.mAttachments = new ArrayList<Attachment>();
149 Attachment att = new Attachment();
151 att.mFlags = Attachment.FLAG_ICS_ALTERNATIVE_PART;
192 msg.mAttachments = new ArrayList<Attachment>();
194 Attachment att = new Attachment();
/packages/apps/Email/tests/src/com/android/email/mail/transport/
H A DSmtpSenderUnitTests.java29 import com.android.emailcommon.provider.EmailContent.Attachment;
147 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId);
194 private Attachment setupSimpleAttachment(Context context, long messageId) {
195 Attachment attachment = new Attachment();
211 private void expectSimpleAttachment(MockTransport mockTransport, Attachment attachment) {
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DRfc822Output.java27 import com.android.emailcommon.provider.EmailContent.Attachment;
124 boolean useSmartReply, boolean sendBcc, List<Attachment> attachments)
162 Arrays.asList(Attachment.restoreAttachmentsWithMessageId(context, message.mId));
180 if ((flags & Attachment.FLAG_ICS_ALTERNATIVE_PART) != 0) {
197 for (final Attachment att: attachments) {
215 Attachment attachment) throws IOException, MessagingException {
221 if ((attachment.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART) == 0) {
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DAttachment.java55 public class Attachment implements Parcelable { class in inherits:Parcelable
73 * Attachment file name. See {@link AttachmentColumns#NAME} Use {@link #setName(String)}.
78 * Attachment size in bytes. See {@link AttachmentColumns#SIZE}.
83 * The provider-generated URI for this Attachment. Must be globally unique.
179 public Attachment() { method in class:Attachment
182 public Attachment(Parcel in) { method in class:Attachment
200 public Attachment(Cursor cursor) { method in class:Attachment
226 public Attachment(JSONObject srcJson) { method in class:Attachment
247 public Attachment(Context context, Part part, Uri emlFileUri, String messageId, String cid, method in class:Attachment
301 public Attachment(ContentValue method in class:Attachment
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DAttachmentUtils.java30 import com.android.mail.providers.Attachment;
89 public static String getDisplayType(final Context context, final Attachment attachment) {
90 if ((attachment.flags & Attachment.FLAG_DUMMY_ATTACHMENT) != 0) {
165 * @param attachment Attachment to be cached
173 public static String cacheAttachmentUri(Context context, Attachment attachment,
282 public static boolean canDownloadAttachment(Context context, Attachment attachment) {
/packages/apps/Email/tests/src/com/android/email/
H A DLegacyConversionsTests.java41 import com.android.emailcommon.provider.EmailContent.Attachment;
112 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId);
113 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION,
118 Attachment attachment =
119 Attachment.getContent(mProviderContext, c, Attachment.class);
207 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId);
283 * Compare attachment that was converted from Part (expected) to Provider Attachment (actual)
288 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual,

Completed in 424 milliseconds

123