HomeSort by relevance Sort by last modified time
    Searched refs:Attachment (Results 1 - 25 of 30) sorted by null

1 2

  /packages/apps/Email/src/com/android/exchange/
PartRequest.java 20 import com.android.email.provider.EmailContent.Attachment;
23 * PartRequest is the EAS wrapper for attachment loading requests. In addition to information about
24 * the attachment to be loaded, it also contains the callback to be used for status/progress
28 public Attachment mAttachment;
33 public PartRequest(Attachment _att) {
39 public PartRequest(Attachment _att, String _destination, String _contentUriString) {
  /external/webkit/WebKitTools/QueueStatusServer/handlers/
dashboard.py 32 from model.attachment import Attachment
36 attachments = Attachment.recent(limit=25)
39 "summaries" : [attachment.summary() for attachment in attachments],
statusbubble.py 32 from model.attachment import Attachment
37 attachment = Attachment(int(attachment_id))
40 "summary" : attachment.summary()
updatestatus.py 33 from model.attachment import Attachment
66 Attachment.dirty(patch_id)
  /packages/apps/Email/src/com/android/email/mail/transport/
Rfc822Output.java 22 import com.android.email.provider.EmailContent.Attachment;
155 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, messageId);
157 Attachment.CONTENT_PROJECTION, null, null, null);
176 // Move to the first attachment; this must succeed because multipart is true
179 // If we've got one attachment and it's an ics "attachment", we want to send
181 int flags = attachmentsCursor.getInt(Attachment.CONTENT_FLAGS_COLUMN);
182 if ((flags & Attachment.FLAG_ICS_ALTERNATIVE_PART) != 0) {
201 Attachment attachment local
    [all...]
  /packages/apps/Email/tests/src/com/android/email/mail/transport/
Rfc822OutputTests.java 21 import com.android.email.provider.EmailContent.Attachment;
165 msg.mAttachments = new ArrayList<Attachment>();
167 Attachment att = new Attachment();
169 att.mFlags = Attachment.FLAG_ICS_ALTERNATIVE_PART;
209 msg.mAttachments = new ArrayList<Attachment>();
211 Attachment att = new Attachment();
SmtpSenderUnitTests.java 23 import com.android.email.provider.EmailContent.Attachment;
194 * Test: Open and send a single message with an empty attachment (no file) (sunny day)
206 // Creates an attachment with a bogus file (so we get headers only)
207 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, false); local
208 attachment.save(mProviderContext);
214 expectSimpleAttachment(mockTransport, attachment);
224 * Test: Open and send a single message with an attachment (sunny day)
236 // Creates an attachment with a real file
237 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, true) local
267 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, true); local
308 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, true); local
363 Attachment attachment = new Attachment(); local
    [all...]
  /packages/apps/Email/tests/src/com/android/email/provider/
AttachmentProviderTests.java 24 import com.android.email.provider.EmailContent.Attachment;
110 Account account1 = ProviderTestUtils.setupAccount("attachment-query", false, mMockContext);
119 // attachment we add will be id=1 and the 2nd will have id=2. This could fail on
130 // Test with an attached database, but no attachment found - should return null
135 // Add a couple of attachment entries. Note, query() just uses the DB, and does not
137 Attachment newAttachment1 = ProviderTestUtils.setupAttachment(message1Id, "file1", 100,
144 Attachment newAttachment2 = ProviderTestUtils.setupAttachment(message1Id, "file2", 200,
151 Attachment newAttachment3 = ProviderTestUtils.setupAttachment(message1Id, "file3", 300,
212 // Test with an attached database, but no attachment found - should return null
217 // Add a couple of attachment entries. Note, getType() just uses the DB, and does no
    [all...]
ProviderTests.java 21 import com.android.email.provider.EmailContent.Attachment;
412 ArrayList<Attachment> atts = new ArrayList<Attachment>();
429 Attachment.CONTENT_URI,
430 Attachment.CONTENT_PROJECTION,
431 Attachment.MESSAGE_KEY + "=?",
435 Attachment.SIZE);
440 Attachment actual = EmailContent.getContent(c, Attachment.class);
451 atts = new ArrayList<Attachment>();
    [all...]
ProviderTestUtils.java 21 import com.android.email.provider.EmailContent.Attachment;
183 * Create a test attachment. A few fields are specified by params, and all other fields
187 * @param fileName the "file" to indicate in the attachment
188 * @param length the "length" of the attachment
189 * @param saveIt if true, write the new attachment directly to the DB
192 public static Attachment setupAttachment(long messageId, String fileName, long length,
194 Attachment att = new Attachment();
354 public static void assertAttachmentEqual(String caller, Attachment expect, Attachment actual)
    [all...]
  /external/webkit/WebKitTools/Scripts/webkitpy/commands/
queuestest.py 31 from webkitpy.bugzilla import Attachment
46 mock_work_item = Attachment({
  /packages/apps/Email/tests/src/com/android/exchange/utility/
CalendarUtilitiesTests.java 23 import com.android.email.provider.EmailContent.Attachment;
261 // And make sure we have an attachment
264 Attachment att = msg.mAttachments.get(0);
265 // And that the attachment has the correct elements
267 assertEquals(Attachment.FLAG_ICS_ALTERNATIVE_PART,
268 att.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART);
273 //TODO Check the contents of the attachment using an iCalendar parser
300 // And make sure we have an attachment
303 Attachment att = msg.mAttachments.get(0);
304 // And that the attachment has the correct element
    [all...]
  /packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.java 21 import com.android.email.provider.EmailContent.Attachment;
61 * Using the standard application context, account #10 and attachment # 20, this would be:
108 * Return the filename for a given attachment. This should be used by any code that is
119 * Return the directory for a given attachment. This should be used by any code that is
146 * Returns the mime type for a given attachment. There are three possible results:
147 * - If thumbnail Uri, always returns "image/png" (even if there's no attachment)
148 * - If the attachment does not exist, returns null
149 * - Returns the mime type of the attachment
160 uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, Long.parseLong(id));
189 * @return A likely mime type for the attachment
    [all...]
EmailProvider.java 22 import com.android.email.provider.EmailContent.Attachment;
82 // Version 11: Add content and flags to attachment table
83 // Version 12: Add content_bytes to attachment table. content is deprecated.
114 private static final int ATTACHMENT = ATTACHMENT_BASE;
150 EmailContent.Attachment.TABLE_NAME,
219 // insert into this URI causes an attachment to be added to the message
222 // A specific attachment
223 matcher.addURI(EMAIL_AUTHORITY, "attachment", ATTACHMENT);
224 // A specific attachment (the header information
    [all...]
EmailContent.java 407 // Boolean, no attachment = 0, attachment = 1
559 transient public ArrayList<Attachment> mAttachments = null;
723 for (Attachment a : mAttachments) {
724 // Save the id of the attachment record
    [all...]
  /packages/apps/Email/tests/src/com/android/email/
LegacyConversionsTests.java 42 import com.android.email.provider.EmailContent.Attachment;
238 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId);
239 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION,
244 Attachment attachment = Attachment.getContent(c, Attachment.class); local
245 if ("101".equals(attachment.mLocation)) {
246 checkAttachment("attachment1Part", attachments.get(0), attachment);
247 } else if ("102".equals(attachment.mLocation))
321 Attachment attachment = Attachment.getContent(c, Attachment.class); local
    [all...]
  /packages/apps/Email/src/com/android/email/activity/
MessageCompose.java 31 import com.android.email.provider.EmailContent.Attachment;
665 mLoadAttachmentsTask = new AsyncTask<Long, Void, Attachment[]>() {
667 protected Attachment[] doInBackground(Long... messageIds) {
668 return Attachment.restoreAttachmentsWithMessageId(MessageCompose.this,
672 protected void onPostExecute(Attachment[] attachments) {
676 for (Attachment attachment : attachments) {
677 addAttachment(attachment);
1035 Attachment attachment = new Attachment(); local
1108 Attachment attachment = (Attachment) attachmentView.getTag(); local
1285 Attachment attachment = loadAttachmentInfo(uri); local
    [all...]
MessageView.java 31 import com.android.email.provider.EmailContent.Attachment;
149 private long mLoadAttachmentId; // the attachment being saved/viewed
217 AttachmentInfo attachment = local
219 attachment.viewButton.setEnabled(msg.arg1 == 1);
220 attachment.downloadButton.setEnabled(msg.arg1 == 1);
309 * Encapsulates known information about a single attachment.
361 mAttachmentIcon = (ImageView) findViewById(R.id.attachment);
727 private void onDownloadAttachment(AttachmentInfo attachment) {
730 * Abort early if there's no place to save the attachment. We don't want to spend
739 mLoadAttachmentId = attachment.attachmentId
987 AttachmentInfo attachment = (AttachmentInfo) mAttachments.getChildAt(i).getTag(); local
1617 Attachment attachment = local
    [all...]
  /packages/apps/Email/src/com/android/email/
LegacyConversions.java 36 import com.android.email.provider.EmailContent.Attachment;
157 // transient public ArrayList<Attachment> mAttachments = null;
276 * Add a single attachment part to the message
282 * position within the list of multipart/mixed elements. This would make every POP3 attachment
290 * @param part a single attachment part from POP or IMAP
297 Attachment localAttachment = new Attachment();
309 // or later, when the actual attachment file is created.)
345 // TODO: a downloaded legacy attachment - see if the above code works
347 // Incoming attachment: Try to pull size from disposition (if not downloaded yet
    [all...]
Controller.java 25 import com.android.email.provider.EmailContent.Attachment;
555 * Delete a single attachment entry from the DB given its id.
560 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId);
604 // 4. Drop non-essential data for the message (e.g. attachment files)
713 * Request that an attachment be loaded. It will be stored at a location controlled
716 * @param attachmentId the attachment to load
727 Attachment attachInfo = Attachment.restoreAttachmentWithId(mProviderContext, attachmentId);
730 // The attachment has already been downloaded, so we will just "pretend" to download it
    [all...]
  /external/webkit/WebKitTools/QueueStatusServer/model/
attachment.py 37 class Attachment(object):
40 memcache.delete(str(attachment_id), namespace="attachment-summary")
67 self._summary = memcache.get(str(self.id), namespace="attachment-summary")
71 memcache.set(str(self.id), self._summary, namespace="attachment-summary")
97 # We don't have any record of this attachment.
  /packages/apps/Email/src/com/android/exchange/adapter/
EmailSyncAdapter.java 29 import com.android.email.provider.EmailContent.Attachment;
140 ArrayList<Attachment> atts = new ArrayList<Attachment>();
327 private void attachmentsParser(ArrayList<Attachment> atts, Message msg) throws IOException {
340 private void attachmentParser(ArrayList<Attachment> atts, Message msg) throws IOException {
366 Attachment att = new Attachment();
    [all...]
  /external/webkit/WebKitTools/Scripts/webkitpy/
mock_bugzillatool.py 31 from webkitpy.bugzilla import Bug, Attachment
249 for attachment in bug.attachments(include_obsolete=True):
250 if attachment.id() == int(attachment_id):
251 return attachment
scm_unittest.py 43 from webkitpy.bugzilla import Attachment # FIXME: This should not be needed
172 return Attachment(patch, None) # FIXME: This is a hack, scm.py shouldn't be fetching attachment data.
  /packages/apps/Email/src/com/android/exchange/utility/
CalendarUtilities.java 25 import com.android.email.provider.EmailContent.Attachment;
    [all...]

Completed in 462 milliseconds

1 2