Lines Matching refs:ATTACHMENT
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 message
371 // A specific attachment
372 matcher.addURI(EmailContent.AUTHORITY, "attachment", ATTACHMENT);
373 // A specific attachment (the header information)
374 matcher.addURI(EmailContent.AUTHORITY, "attachment/#", ATTACHMENT_ID);
376 matcher.addURI(EmailContent.AUTHORITY, "attachment/message/#",
518 " begin delete from " + Attachment.TABLE_NAME +
745 db.execSQL("create table " + Attachment.TABLE_NAME + s);
746 db.execSQL(createIndex(Attachment.TABLE_NAME, AttachmentColumns.MESSAGE_KEY));
751 db.execSQL("drop table " + Attachment.TABLE_NAME);
1173 // Attachment: add content and flags columns
1175 db.execSQL("alter table " + Attachment.TABLE_NAME
1177 db.execSQL("alter table " + Attachment.TABLE_NAME
1186 // Attachment: add content_bytes
1188 db.execSQL("alter table " + Attachment.TABLE_NAME
1233 db.execSQL("alter table " + Attachment.TABLE_NAME
1234 + " add column " + Attachment.ACCOUNT_KEY +" integer" + ";");
1236 db.execSQL("update " + Attachment.TABLE_NAME + " set " +
1237 Attachment.ACCOUNT_KEY + "= (SELECT " + Message.TABLE_NAME + "." +
1240 Attachment.TABLE_NAME + "." + Attachment.MESSAGE_KEY + ")");
1464 whereWith(Attachment.MESSAGE_KEY + "=" + id, selection), selectionArgs);
1471 case ATTACHMENT:
1568 case ATTACHMENT:
1569 return "vnd.android.cursor.dir/email-attachment";
1610 case ATTACHMENT:
1652 if (match == ATTACHMENT) {
1654 if (values.containsKey(Attachment.FLAGS)) {
1655 flags = values.getAsInteger(Attachment.FLAGS);
1669 // This implies adding an attachment to a message.
1673 return insert(Attachment.CONTENT_URI, values); // Recurse
1681 resultUri = ContentUris.withAppendedId(Attachment.CONTENT_URI, longId);
1830 case ATTACHMENT:
1880 c = db.query(Attachment.TABLE_NAME, projection,
1881 whereWith(Attachment.MESSAGE_KEY + "=" + id, selection),
2209 if (values.containsKey(Attachment.FLAGS)) {
2210 int flags = values.getAsInteger(Attachment.FLAGS);
2219 case ATTACHMENT:
2647 * Notify the service that an attachment has changed.
2662 * Injects a custom attachment service handler. If null is specified, will reset to the