Home
last modified time | relevance | path

Searched refs:AttachmentColumns (Results 1 – 23 of 23) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAttachment.java32 import com.android.mail.providers.UIProvider.AttachmentColumns;
205 name = cursor.getString(cursor.getColumnIndex(AttachmentColumns.NAME)); in Attachment()
206 size = cursor.getInt(cursor.getColumnIndex(AttachmentColumns.SIZE)); in Attachment()
207 uri = Uri.parse(cursor.getString(cursor.getColumnIndex(AttachmentColumns.URI))); in Attachment()
208 contentType = cursor.getString(cursor.getColumnIndex(AttachmentColumns.CONTENT_TYPE)); in Attachment()
209 state = cursor.getInt(cursor.getColumnIndex(AttachmentColumns.STATE)); in Attachment()
210 destination = cursor.getInt(cursor.getColumnIndex(AttachmentColumns.DESTINATION)); in Attachment()
211 downloadedSize = cursor.getInt(cursor.getColumnIndex(AttachmentColumns.DOWNLOADED_SIZE)); in Attachment()
213 cursor.getString(cursor.getColumnIndex(AttachmentColumns.CONTENT_URI))); in Attachment()
215 cursor.getString(cursor.getColumnIndex(AttachmentColumns.THUMBNAIL_URI))); in Attachment()
[all …]
DUIProvider.java1947 AttachmentColumns.NAME,
1948 AttachmentColumns.SIZE,
1949 AttachmentColumns.URI,
1950 AttachmentColumns.CONTENT_TYPE,
1951 AttachmentColumns.STATE,
1952 AttachmentColumns.DESTINATION,
1953 AttachmentColumns.DOWNLOADED_SIZE,
1954 AttachmentColumns.CONTENT_URI,
1955 AttachmentColumns.THUMBNAIL_URI,
1956 AttachmentColumns.PREVIEW_INTENT_URI,
[all …]
DEmlAttachmentProvider.java284 final Integer newState = values.getAsInteger(UIProvider.AttachmentColumns.STATE); in copyAttachment()
286 values.getAsInteger(UIProvider.AttachmentColumns.DESTINATION); in copyAttachment()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DEmailContent.java1206 b.withValueBackReference(AttachmentColumns.MESSAGE_KEY, messageBackValue); in addSaveOps()
1293 public interface AttachmentColumns extends BaseColumns { interface in EmailContent
1390 AttachmentColumns._ID, AttachmentColumns.FILENAME, AttachmentColumns.MIME_TYPE,
1391 AttachmentColumns.SIZE, AttachmentColumns.CONTENT_ID, AttachmentColumns.CONTENT_URI,
1392 AttachmentColumns.CACHED_FILE, AttachmentColumns.MESSAGE_KEY,
1393 AttachmentColumns.LOCATION, AttachmentColumns.ENCODING, AttachmentColumns.CONTENT,
1394 AttachmentColumns.FLAGS, AttachmentColumns.CONTENT_BYTES, AttachmentColumns.ACCOUNT_KEY,
1395 AttachmentColumns.UI_STATE, AttachmentColumns.UI_DESTINATION,
1396 AttachmentColumns.UI_DOWNLOADED_SIZE
1401 AttachmentColumns.CONTENT_URI + " isnull AND " + AttachmentColumns.FLAGS + "=0";
[all …]
DPolicy.java125 new String[] {EmailContent.RECORD_ID, AttachmentColumns.SIZE, AttachmentColumns.FLAGS};
195 AttachmentColumns.ACCOUNT_KEY + "=?", new String[] {Long.toString(account.mId)}, in setAttachmentFlagsForNewPolicy()
214 cv.put(AttachmentColumns.FLAGS, flags); in setAttachmentFlagsForNewPolicy()
DAccount.java176 AttachmentColumns._ID, AccountColumns.DISPLAY_NAME,
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java42 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
362 " where " + AttachmentColumns.MESSAGE_KEY + "=old." + BaseColumns._ID + in createMessageTable()
634 String s = " (" + AttachmentColumns._ID + " integer primary key autoincrement, " in createAttachmentTable()
635 + AttachmentColumns.FILENAME + " text, " in createAttachmentTable()
636 + AttachmentColumns.MIME_TYPE + " text, " in createAttachmentTable()
637 + AttachmentColumns.SIZE + " integer, " in createAttachmentTable()
638 + AttachmentColumns.CONTENT_ID + " text, " in createAttachmentTable()
639 + AttachmentColumns.CONTENT_URI + " text, " in createAttachmentTable()
640 + AttachmentColumns.MESSAGE_KEY + " integer, " in createAttachmentTable()
641 + AttachmentColumns.LOCATION + " text, " in createAttachmentTable()
[all …]
DEmailProvider.java85 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
359 private static final String[] MIME_TYPE_PROJECTION = new String[]{AttachmentColumns.MIME_TYPE};
362 { AttachmentColumns._ID, AttachmentColumns.FILENAME, AttachmentColumns.SIZE,
363 AttachmentColumns.CONTENT_URI };
741 whereWith(AttachmentColumns.MESSAGE_KEY + "=" + id, selection), in delete()
856 AttachmentColumns.CACHED_FILE + "=?", new String[]{uri.toString()}, in getType()
982 if (values.containsKey(AttachmentColumns.FLAGS)) { in insert()
983 flags = values.getAsInteger(AttachmentColumns.FLAGS); in insert()
986 if (TextUtils.isEmpty(values.getAsString(AttachmentColumns.LOCATION))) { in insert()
1008 values.put(AttachmentColumns.MESSAGE_KEY, longId); in insert()
[all …]
DAttachmentProvider.java36 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
70 AttachmentColumns.MIME_TYPE, AttachmentColumns.FILENAME };
74 private static final String[] PROJECTION_QUERY = new String[] { AttachmentColumns.FILENAME,
75 AttachmentColumns.SIZE, AttachmentColumns.CONTENT_URI };
/packages/apps/Email/provider_src/com/android/email/
DAttachmentInfo.java21 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
44 AttachmentColumns._ID,
45 AttachmentColumns.SIZE,
46 AttachmentColumns.FILENAME,
47 AttachmentColumns.MIME_TYPE,
48 AttachmentColumns.ACCOUNT_KEY,
49 AttachmentColumns.FLAGS
DLegacyConversions.java43 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
358 cv.put(AttachmentColumns.SIZE, copySize); in saveAttachmentBody()
359 cv.put(AttachmentColumns.CONTENT_URI, contentUriString); in saveAttachmentBody()
360 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in saveAttachmentBody()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DAttachmentActionHandler.java36 import com.android.mail.providers.UIProvider.AttachmentColumns;
127 params.put(AttachmentColumns.STATE, AttachmentState.DOWNLOADING); in startDownloadingAttachment()
128 params.put(AttachmentColumns.DESTINATION, destination); in startDownloadingAttachment()
138 params.put(AttachmentColumns.STATE, AttachmentState.NOT_SAVED); in cancelAttachment()
145 params.put(AttachmentColumns.STATE, AttachmentState.REDOWNLOADING); in startRedownloadingAttachment()
146 params.put(AttachmentColumns.DESTINATION, attachment.destination); in startRedownloadingAttachment()
DAttachmentProgressDialogFragment.java27 import com.android.mail.providers.UIProvider.AttachmentColumns;
96 params.put(AttachmentColumns.STATE, AttachmentState.NOT_SAVED); in cancelAttachment()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java33 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
60 AttachmentColumns.CACHED_FILE
455 cv.put(AttachmentColumns.SIZE, size); in saveAttachment()
456 cv.put(AttachmentColumns.CONTENT_URI, contentUri); in saveAttachment()
457 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in saveAttachment()
460 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.FAILED); in saveAttachment()
DUtility.java38 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
734 cv.putNull(AttachmentColumns.CONTENT_URI);
/packages/apps/Email/provider_src/com/android/email/service/
DPop3Service.java47 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
217 mContentValues.put(AttachmentColumns.UI_DOWNLOADED_SIZE, bytesRead); in report()
394 AttachmentColumns.ACCOUNT_KEY + "=? AND " + in synchronizePop3Mailbox()
395 AttachmentColumns.UI_STATE + "=" + AttachmentState.DOWNLOADING, in synchronizePop3Mailbox()
400 values.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in synchronizePop3Mailbox()
405 values.put(AttachmentColumns.UI_DOWNLOADED_SIZE, att.mSize); in synchronizePop3Mailbox()
422 values.put(AttachmentColumns.UI_STATE, AttachmentState.SAVED); in synchronizePop3Mailbox()
DAttachmentService.java42 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
516 values.put(AttachmentColumns.UI_STATE, AttachmentState.DOWNLOADING); in getAttachmentUpdateValues()
517 values.put(AttachmentColumns.UI_DOWNLOADED_SIZE, in getAttachmentUpdateValues()
668 EmailContent.ID_PROJECTION, "(" + AttachmentColumns.FLAGS + " & ?) != 0", in run()
816 cv.put(AttachmentColumns.FLAGS, att.mFlags &= ~flags); in markAttachmentAsFailed()
817 cv.put(AttachmentColumns.UI_STATE, AttachmentState.FAILED); in markAttachmentAsFailed()
828 cv.put(AttachmentColumns.FLAGS, att.mFlags &= ~flags); in markAttachmentAsCompleted()
829 cv.put(AttachmentColumns.UI_STATE, AttachmentState.SAVED); in markAttachmentAsCompleted()
923 null, AttachmentColumns._ID + " DESC"); in processQueue()
DEmailServiceStub.java49 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
239 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.FAILED); in loadAttachment()
/packages/apps/Email/tests/src/com/android/email/service/
DAttachmentServiceTests.java489 assertTrue(values.containsKey(EmailContent.AttachmentColumns.UI_STATE)); in testServiceCallbackAttachmentInProgressUpdate()
490 assertTrue(values.containsKey(EmailContent.AttachmentColumns.UI_DOWNLOADED_SIZE)); in testServiceCallbackAttachmentInProgressUpdate()
492 assertTrue(values.getAsInteger(EmailContent.AttachmentColumns.UI_STATE) == in testServiceCallbackAttachmentInProgressUpdate()
495 EmailContent.AttachmentColumns.UI_DOWNLOADED_SIZE).intValue() == 750); in testServiceCallbackAttachmentInProgressUpdate()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockUiProvider.java36 import com.android.mail.providers.UIProvider.AttachmentColumns;
270 attachmentMap.put(AttachmentColumns.NAME, "Attachment " + name); in createAttachmentDetailsMap()
271 attachmentMap.put(AttachmentColumns.URI, in createAttachmentDetailsMap()
272 "attachmentUri/" + attachmentMap.get(AttachmentColumns.NAME)); in createAttachmentDetailsMap()
/packages/apps/Email/tests/src/com/android/email/provider/
DPolicyTests.java29 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
46 private static final String CANT_DOWNLOAD_SELECTION = "(" + AttachmentColumns.FLAGS + "&" +
DProviderTests.java42 import com.android.emailcommon.provider.EmailContent.AttachmentColumns;
484 Attachment.CONTENT_PROJECTION, AttachmentColumns.MESSAGE_KEY + "=?", in testMessageWithAttachment()
485 new String[] {String.valueOf(message3Id)}, AttachmentColumns.SIZE); in testMessageWithAttachment()
536 Attachment.CONTENT_PROJECTION, AttachmentColumns.MESSAGE_KEY + "=?", in testMessageSaveWithJustAttachments()
537 new String[] {String.valueOf(message4Id)}, AttachmentColumns.SIZE); in testMessageSaveWithJustAttachments()
1471 String attachmentSelection = AttachmentColumns.MESSAGE_KEY + " IN (?,?)"; in testCascadeMessageDelete()
1570 .query(uri, Attachment.CONTENT_PROJECTION, null, null, AttachmentColumns.SIZE); in testGetAttachmentByMessageIdUri()
1608 AttachmentColumns.SIZE); in testDeleteAttachmentByMessageIdUri()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/
DMockUiProviderTests.java218 int name = attachmentCursor.getColumnIndex(UIProvider.AttachmentColumns.NAME); in testGetFolders()