HomeSort by relevance Sort by last modified time
    Searched refs:Attachment (Results 26 - 50 of 63) sorted by null

12 3

  /packages/apps/Email/tests/src/com/android/email/mail/transport/
SmtpSenderUnitTests.java 29 import com.android.emailcommon.provider.EmailContent.Attachment;
132 * Test: Open and send a single message with an empty attachment (no file) (sunny day)
144 // Creates an attachment with a bogus file (so we get headers only)
145 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId); local
146 attachment.save(mProviderContext);
152 expectSimpleAttachment(mockTransport, attachment);
190 * Prepare to send a simple attachment
192 private Attachment setupSimpleAttachment(Context context, long messageId) {
193 Attachment attachment = new Attachment() local
    [all...]
  /external/webkit/Source/WebKit2/Platform/CoreIPC/unix/
ConnectionUnix.cpp 163 Deque<Attachment> attachments;
167 AttachmentResourceGuard<Deque<Attachment>, Deque<Attachment>::iterator> attachementDisposer(attachments);
229 attachments.append(Attachment(fileDescriptors[i], attachmentSizes[i]));
315 Vector<Attachment> attachments = arguments->releaseAttachments();
316 AttachmentResourceGuard<Vector<Attachment>, Vector<Attachment>::iterator> attachementDisposer(attachments);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
EmailContent.java 463 // Boolean, no attachment = 0, attachment = 1
702 transient public ArrayList<Attachment> mAttachments = null;
    [all...]
Policy.java 220 * Review all attachment records for this account, and reset the "don't allow download" flag
230 Cursor c = resolver.query(Attachment.CONTENT_URI, ATTACHMENT_RESET_PROJECTION,
241 boolean wasRestricted = (flags & Attachment.FLAG_POLICY_DISALLOWS_DOWNLOAD) != 0;
245 flags |= Attachment.FLAG_POLICY_DISALLOWS_DOWNLOAD;
247 flags &= ~Attachment.FLAG_POLICY_DISALLOWS_DOWNLOAD;
251 resolver.update(ContentUris.withAppendedId(Attachment.CONTENT_URI, id),
  /external/webkit/Source/WebKit2/Platform/CoreIPC/
ArgumentEncoder.cpp 147 void ArgumentEncoder::addAttachment(const Attachment& attachment)
149 m_attachments.append(attachment);
152 Vector<Attachment> ArgumentEncoder::releaseAttachments()
154 Vector<Attachment> newList;
  /packages/apps/Email/tests/src/com/android/emailcommon/internet/
Rfc822OutputTests.java 24 import com.android.emailcommon.provider.EmailContent.Attachment;
246 msg.mAttachments = new ArrayList<Attachment>();
248 Attachment att = new Attachment();
250 att.mFlags = Attachment.FLAG_ICS_ALTERNATIVE_PART;
291 msg.mAttachments = new ArrayList<Attachment>();
293 Attachment att = new Attachment();
  /packages/apps/Email/src/com/android/email/activity/
MessageCompose.java 73 import com.android.emailcommon.provider.EmailContent.Attachment;
107 * N: add attachment
167 private final ArrayList<Attachment> mAttachments = new ArrayList<Attachment>();
177 private ArrayList<Attachment> mSourceAttachments = new ArrayList<Attachment>();
1585 Attachment attachment = new Attachment(); local
1656 final Attachment attachment = loadAttachmentInfo(uri); local
1700 Attachment attachment = (Attachment) attachmentView.getTag(); local
    [all...]
  /external/webkit/Source/WebKit2/Platform/
SharedMemory.h 34 #include "Attachment.h"
64 CoreIPC::Attachment releaseToAttachment() const;
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java 20 import com.android.emailcommon.provider.EmailContent.Attachment;
112 * The maximum size of an attachment we're willing to download (either View or Save)
114 * so we should probably factor that in. A 5MB attachment will generally be around
119 * The maximum size of an attachment we're willing to upload (measured as stored on disk).
121 * so we should probably factor that in. A 5MB attachment will generally be around
146 * Return the filename for a given attachment. This should be used by any code that is
157 * Return the directory for a given attachment. This should be used by any code that is
193 * @return A likely mime type for the attachment
261 * Resolve attachment id to content URI. Returns the resolved content URI (from the attachment
    [all...]
Utility.java 50 import com.android.emailcommon.provider.EmailContent.Attachment;
744 public static boolean attachmentExists(Context context, Attachment attachment) {
745 if (attachment == null) {
747 } else if (attachment.mContentBytes != null) {
749 } else if (TextUtils.isEmpty(attachment.mContentUri)) {
753 Uri fileUri = Uri.parse(attachment.mContentUri);
782 Attachment[] atts = Attachment.restoreAttachmentsWithMessageId(context, messageId);
783 for (Attachment att: atts)
    [all...]
  /packages/apps/Exchange/tests/src/com/android/exchange/utility/
CalendarUtilitiesTests.java 29 import com.android.emailcommon.provider.EmailContent.Attachment;
307 // And make sure we have an attachment
310 Attachment att = msg.mAttachments.get(0);
311 // And that the attachment has the correct elements
313 assertEquals(Attachment.FLAG_ICS_ALTERNATIVE_PART,
314 att.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART);
319 //TODO Check the contents of the attachment using an iCalendar parser
349 // And make sure we have an attachment
352 Attachment att = msg.mAttachments.get(0);
353 // And that the attachment has the correct element
    [all...]
  /packages/apps/Email/src/com/android/email/
LegacyConversions.java 40 import com.android.emailcommon.provider.EmailContent.Attachment;
148 // transient public ArrayList<Attachment> mAttachments = null;
170 * Add a single attachment part to the message
176 * position within the list of multipart/mixed elements. This would make every POP3 attachment
184 * @param part a single attachment part from POP or IMAP
190 Attachment localAttachment = new Attachment();
200 // Incoming attachment: Try to pull size from disposition (if not downloaded yet)
211 // This is only provided (and used) when we have structure but not the actual attachment
226 Log.d(Logging.LOG_TAG, "Add attachment " + localAttachment)
    [all...]
Controller.java 44 import com.android.emailcommon.provider.EmailContent.Attachment;
207 * Delete all Messages that live in the attachment mailbox
210 // Note: There should only be one attachment mailbox at present
250 * Returns the attachment mailbox (where we store eml attachment Emails), creating one
252 * @return the global attachment mailbox
291 * Create a Message from the Uri and store it in the attachment mailbox
301 // First, create a Pop3Message from the attachment and then parse it
735 * Delete a single attachment entry from the DB given its id.
740 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId)
    [all...]
  /packages/apps/Email/tests/src/com/android/email/provider/
ProviderTests.java 44 import com.android.emailcommon.provider.EmailContent.Attachment;
486 ArrayList<Attachment> atts = new ArrayList<Attachment>();
503 Attachment.CONTENT_URI,
504 Attachment.CONTENT_PROJECTION,
505 Attachment.MESSAGE_KEY + "=?",
509 Attachment.SIZE);
514 Attachment actual = EmailContent.getContent(c, Attachment.class);
535 ArrayList<Attachment> atts = new ArrayList<Attachment>()
    [all...]
ProviderTestUtils.java 22 import com.android.emailcommon.provider.EmailContent.Attachment;
216 * @param saveIt if true, write the new attachment directly to the DB
236 * Create a test attachment. A few fields are specified by params, and all other fields
240 * @param fileName the "file" to indicate in the attachment
241 * @param length the "length" of the attachment
242 * @param flags the flags to set in the attachment
243 * @param saveIt if true, write the new attachment directly to the DB
246 public static Attachment setupAttachment(long messageId, String fileName, long length,
248 Attachment att = new Attachment();
    [all...]
  /external/webkit/Source/WebKit2/Platform/unix/
SharedMemoryUnix.cpp 81 CoreIPC::Attachment attachment; local
82 if (!decoder->decode(attachment))
85 handle.adoptFromAttachment(attachment.releaseFileDescriptor(), attachment.size());
89 CoreIPC::Attachment SharedMemory::Handle::releaseToAttachment() const
95 return CoreIPC::Attachment(temp, m_size);
  /packages/apps/Email/src/com/android/email/provider/
EmailProvider.java 52 import com.android.emailcommon.provider.EmailContent.Attachment;
101 "vnd.android.cursor.item/email-attachment";
152 // Version 11: Add content and flags to attachment table
153 // Version 12: Add content_bytes to attachment table. content is deprecated.
157 // Version 16: Add accountKey to Attachment table
203 private static final int ATTACHMENT = ATTACHMENT_BASE;
244 Attachment.TABLE_NAME,
258 null, // Attachment
272 null, // Attachment
368 // insert into this URI causes an attachment to be added to the messag
    [all...]
AttachmentProvider.java 22 import com.android.emailcommon.provider.EmailContent.Attachment;
62 * Using the standard application context, account #10 and attachment # 20, this would be:
93 * Returns the mime type for a given attachment. There are three possible results:
94 * - If thumbnail Uri, always returns "image/png" (even if there's no attachment)
95 * - If the attachment does not exist, returns null
96 * - Returns the mime type of the attachment
108 uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, Long.parseLong(id));
129 * Open an attachment file. There are two "formats" - "raw", which returns an actual file,
236 * Returns a cursor based on the data in the attachments table, or null if the attachment
263 uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, Long.parseLong(id))
    [all...]
  /external/webkit/Tools/Scripts/webkitpy/common/net/bugzilla/
attachment.py 34 class Attachment(object):
102 log("Warning, attachment %s on bug %s has invalid %s (%s)" % (
  /packages/apps/Email/tests/src/com/android/email/
LegacyConversionsTests.java 37 import com.android.emailcommon.provider.EmailContent.Attachment;
224 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId);
225 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION,
230 Attachment attachment = Attachment.getContent(c, Attachment.class); local
231 if ("100".equals(attachment.mLocation)) {
232 checkAttachment("attachment1Part", attachments.get(0), attachment,
234 } else if ("101".equals(attachment.mLocation))
    [all...]
  /packages/apps/Email/tests/src/com/android/email/activity/
MessageComposeTests.java 40 import com.android.emailcommon.provider.EmailContent.Attachment;
812 * TODO: come up with a way to add a very small attachment
    [all...]
  /packages/apps/Exchange/src/com/android/exchange/adapter/
AttachmentLoader.java 24 import com.android.emailcommon.provider.EmailContent.Attachment;
45 * Handle EAS attachment loading, regardless of protocol version
53 private final Attachment mAttachment;
92 * Save away the contentUri for this Attachment and notify listeners
102 * Read the attachment data in chunks and write the data back out to our attachment file
103 * @param inputStream the InputStream we're reading the attachment from
104 * @param outputStream the OutputStream the attachment will be written to
117 mService.userLog("Expected attachment length: ", len);
122 mService.userLog("Attachment load reached EOF, totalRead: ", totalRead)
    [all...]
  /external/webkit/Tools/QueueStatusServer/model/
attachment.py 38 class Attachment(object):
41 memcache.delete(str(attachment_id), namespace="attachment-summary")
69 self._summary = memcache.get(str(self.id), namespace="attachment-summary")
73 memcache.set(str(self.id), self._summary, namespace="attachment-summary")
120 # We don't have any record of this attachment.
  /external/webkit/Tools/Scripts/webkitpy/tool/commands/
queuestest.py 31 from webkitpy.common.net.bugzilla import Attachment
  /packages/apps/Email/tests/src/com/android/emailcommon/utility/
UtilityMediumTests.java 23 import com.android.emailcommon.provider.EmailContent.Attachment;
97 // We return false with null attachment
104 Attachment attachment = ProviderTestUtils.setupAttachment(message.mId, "filename.ext", local
106 attachment.mContentBytes = null;
108 assertFalse(Utility.attachmentExists(mMockContext, attachment));
110 attachment.mContentBytes = new byte[0];
112 assertTrue(Utility.attachmentExists(mMockContext, attachment));
114 attachment.mContentBytes = null;
122 assertFalse(Utility.attachmentExists(mMockContext, attachment));
    [all...]

Completed in 804 milliseconds

12 3