Home
last modified time | relevance | path

Searched refs:MessageColumns (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapContract.java528 public interface MessageColumns extends EmailMessageColumns { interface in BluetoothMapContract
1074 MessageColumns._ID,
1075 MessageColumns.DATE,
1076 MessageColumns.SUBJECT,
1078 MessageColumns.BODY,
1079 MessageColumns.MESSAGE_SIZE,
1080 MessageColumns.FOLDER_ID,
1081 MessageColumns.FLAG_READ,
1082 MessageColumns.FLAG_PROTECTED,
1083 MessageColumns.FLAG_HIGH_PRIORITY,
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DEmailContent.java638 public interface MessageColumns extends BaseColumns, SyncColumns { interface in EmailContent
766 MessageColumns._ID,
767 MessageColumns.DISPLAY_NAME, MessageColumns.TIMESTAMP,
768 MessageColumns.SUBJECT, MessageColumns.FLAG_READ,
769 MessageColumns.FLAG_LOADED, MessageColumns.FLAG_FAVORITE,
770 MessageColumns.FLAG_ATTACHMENT, MessageColumns.FLAGS,
771 SyncColumns.SERVER_ID, MessageColumns.DRAFT_INFO,
772 MessageColumns.MESSAGE_ID, MessageColumns.MAILBOX_KEY,
773 MessageColumns.ACCOUNT_KEY, MessageColumns.FROM_LIST,
774 MessageColumns.TO_LIST, MessageColumns.CC_LIST,
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java48 import com.android.emailcommon.provider.EmailContent.MessageColumns;
85 " where " + MessageColumns.MAILBOX_KEY + "=old." + BaseColumns._ID +
87 " where " + MessageColumns.MAILBOX_KEY + "=old." + BaseColumns._ID +
89 " where " + MessageColumns.MAILBOX_KEY + "=old." + BaseColumns._ID +
219 " where " + BaseColumns._ID + "=NEW." + MessageColumns.MAILBOX_KEY + in createMessageCountTriggers()
227 " where " + BaseColumns._ID + "=OLD." + MessageColumns.MAILBOX_KEY + in createMessageCountTriggers()
232 MessageColumns.MAILBOX_KEY + " on " + Message.TABLE_NAME + in createMessageCountTriggers()
235 " where " + BaseColumns._ID + "=OLD." + MessageColumns.MAILBOX_KEY + in createMessageCountTriggers()
238 " where " + BaseColumns._ID + "=NEW." + MessageColumns.MAILBOX_KEY + in createMessageCountTriggers()
281 + MessageColumns.MAILBOX_KEY + ")!=" + Mailbox.TYPE_SEARCH in createDeleteDuplicateMessagesTrigger()
[all …]
DEmailProvider.java91 import com.android.emailcommon.provider.EmailContent.MessageColumns;
200 = new String[] {MessageColumns._ID, MessageColumns.MAILBOX_KEY};
506 deleteUnlinked(mDatabase, Message.TABLE_NAME, MessageColumns.ACCOUNT_KEY, in getDatabase()
949 final long mailboxId = values.getAsLong(MessageColumns.MAILBOX_KEY); in insert()
953 notifyUIFolder(mailboxId, values.getAsLong(MessageColumns.ACCOUNT_KEY)); in insert()
1001 values.put(MessageColumns.MAILBOX_KEY, longId); in insert()
1752 + "(select " + MessageColumns.SERVER_ID + " from " +
1754 + "(select " + MessageColumns.ACCOUNT_KEY + " from " +
1768 + "(select " + MessageColumns.MAILBOX_KEY +
1771 + MessageColumns.MAILBOX_KEY + " from " + Message.TABLE_NAME + " where _id=%s)),"
[all …]
DEmailConversationCursor.java180 … final String senderString = getString(getColumnIndex(EmailContent.MessageColumns.DISPLAY_NAME)); in generateConversationInfo()
182 final String fromString = getString(getColumnIndex(EmailContent.MessageColumns.FROM_LIST)); in generateConversationInfo()
206 EmailContent.MessageColumns.TO_LIST)); in generateConversationInfo()
228 contentValues.put(EmailContent.MessageColumns.FLAG_SEEN, true); in markContentsSeen()
230 final String where = EmailContent.MessageColumns.MAILBOX_KEY + " = ? AND " + in markContentsSeen()
231 EmailContent.MessageColumns.FLAG_SEEN + " != ?"; in markContentsSeen()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseHelper.java208 public static class MessageColumns implements BaseColumns { class in DatabaseHelper
272 + MessageColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
273 + MessageColumns.CONVERSATION_ID + " INT, "
274 + MessageColumns.SENDER_PARTICIPANT_ID + " INT, "
275 + MessageColumns.SENT_TIMESTAMP + " INT DEFAULT(0), "
276 + MessageColumns.RECEIVED_TIMESTAMP + " INT DEFAULT(0), "
277 + MessageColumns.PROTOCOL + " INT DEFAULT(0), "
278 + MessageColumns.STATUS + " INT DEFAULT(0), "
279 + MessageColumns.SEEN + " INT DEFAULT(0), "
280 + MessageColumns.READ + " INT DEFAULT(0), "
[all …]
DConversationImagePartsView.java23 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
39 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.CONVERSATION_ID
56 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.RECEIVED_TIMESTAMP
58 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.STATUS
62 + " ON (" + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns._ID
65 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.SENDER_PARTICIPANT_ID
73 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.RECEIVED_TIMESTAMP + " ASC, "
77 static final String CONVERSATION_ID = MessageColumns.CONVERSATION_ID;
85 static final String RECEIVED_TIMESTAMP = MessageColumns.RECEIVED_TIMESTAMP;
86 static final String STATUS = MessageColumns.STATUS;
DBugleDatabaseOperations.java33 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
480 MessageColumns.CONVERSATION_ID + "=?", new String[] { conversationId }); in deleteConversation()
485 MessageColumns.CONVERSATION_ID + "=? AND " in deleteConversation()
486 + MessageColumns.RECEIVED_TIMESTAMP + "<=?", in deleteConversation()
496 MessageColumns.STATUS + "=? AND " + MessageColumns.CONVERSATION_ID + "=?", in deleteConversation()
504 MessageColumns.CONVERSATION_ID + "=?", new String[] { conversationId }); in deleteConversation()
533 "MAX(" + MessageColumns.RECEIVED_TIMESTAMP + ")";
542 MessageColumns.CONVERSATION_ID + "=?", in getConversationMaxTimestamp()
727 MessageColumns.CONVERSATION_ID + "=?", in updateConversationDraftSnippetAndPreviewInTransaction()
729 MessageColumns.RECEIVED_TIMESTAMP + " DESC", "1" /* limit */); in updateConversationDraftSnippetAndPreviewInTransaction()
[all …]
DNotificationState.java22 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
50 "((" + MessageColumns.STATUS + " = " +
52 MessageColumns.STATUS + " = " +
54 DatabaseHelper.MessageColumns.SEEN + " = 0)";
56 static final String FAILED_ORDER_BY = DatabaseHelper.MessageColumns.CONVERSATION_ID + ", " +
57 DatabaseHelper.MessageColumns.SENT_TIMESTAMP + " asc";
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationMessageData.java26 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
625 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?)" in getConversationMessagesQuerySql()
633 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?)" in getConversationMessageIdsQuerySql()
640 + "(" + DatabaseHelper.MessageColumns.STATUS + " in (" in getNotificationQuerySql()
644 + DatabaseHelper.MessageColumns.SEEN + " = 0)" in getNotificationQuerySql()
652 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?" in getWearableQuerySql()
654 + DatabaseHelper.MessageColumns.STATUS + " IN (" in getWearableQuerySql()
705 DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns._ID
707 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.CONVERSATION_ID
709 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.SENDER_PARTICIPANT_ID
[all …]
DMessageData.java28 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
44 MessageColumns._ID,
45 MessageColumns.CONVERSATION_ID,
46 MessageColumns.SENDER_PARTICIPANT_ID,
47 MessageColumns.SELF_PARTICIPANT_ID,
48 MessageColumns.SENT_TIMESTAMP,
49 MessageColumns.RECEIVED_TIMESTAMP,
50 MessageColumns.SEEN,
51 MessageColumns.READ,
52 MessageColumns.PROTOCOL,
[all …]
DConversationListItemData.java26 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
301 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.READ
340 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.STATUS
342 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.RAW_TELEPHONY_STATUS
344 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns._ID
355 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.SENDER_PARTICIPANT_ID
371 + '=' + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns._ID + ") "
380 static final String READ = MessageColumns.READ;
404 static final String MESSAGE_STATUS = MessageColumns.STATUS;
405 static final String MESSAGE_RAW_TELEPHONY_STATUS = MessageColumns.RAW_TELEPHONY_STATUS;
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DUIProvider.java1592 MessageColumns.SERVER_ID,
1593 MessageColumns.URI,
1594 MessageColumns.CONVERSATION_ID,
1595 MessageColumns.SUBJECT,
1596 MessageColumns.SNIPPET,
1597 MessageColumns.FROM,
1598 MessageColumns.TO,
1599 MessageColumns.CC,
1600 MessageColumns.BCC,
1601 MessageColumns.REPLY_TO,
[all …]
DMessageModification.java23 import com.android.mail.providers.UIProvider.MessageColumns;
41 values.put(MessageColumns.SUBJECT, subject); in putSubject()
51 values.put(MessageColumns.TO, TextUtils.join(UIProvider.EMAIL_SEPARATOR, toAddresses)); in putToAddresses()
61 values.put(MessageColumns.CC, TextUtils.join(UIProvider.EMAIL_SEPARATOR, ccAddresses)); in putCcAddresses()
71 values.put(MessageColumns.BCC, TextUtils.join(UIProvider.EMAIL_SEPARATOR, bccAddresses)); in putBccAddresses()
82 values.put(MessageColumns.CUSTOM_FROM_ADDRESS, customFromAddress); in putCustomFromAddress()
93 values.put(MessageColumns.DRAFT_TYPE, DraftType.FORWARD); in putForward()
104 values.put(MessageColumns.APPEND_REF_MESSAGE_CONTENT, includeQuotedText ? 1 : 0); in putAppendRefMessageContent()
114 values.put(MessageColumns.BODY_TEXT, body); in putBody()
124 values.put(MessageColumns.BODY_HTML, body); in putBodyHtml()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockUiProvider.java41 import com.android.mail.providers.UIProvider.MessageColumns;
101 resultMap.put(message0.get(MessageColumns.URI).toString(), ImmutableList.of(message0)); in initializeAccount()
104 resultMap.put(message0.get(MessageColumns.ATTACHMENT_LIST_URI).toString(), in initializeAccount()
108 resultMap.put(message1.get(MessageColumns.URI).toString(), ImmutableList.of(message1)); in initializeAccount()
111 resultMap.put(message1a.get(MessageColumns.URI).toString(), ImmutableList.of(message1a)); in initializeAccount()
114 resultMap.put(message1.get(MessageColumns.ATTACHMENT_LIST_URI).toString(), in initializeAccount()
153 resultMap.put(message2.get(MessageColumns.URI).toString(), ImmutableList.of(message2)); in initializeAccount()
158 resultMap.put(message3.get(MessageColumns.URI).toString(), ImmutableList.of(message3)); in initializeAccount()
252 messageMap.put(MessageColumns.URI, messageUri); in createMessageDetailsMap()
253 messageMap.put(MessageColumns.SUBJECT, "Message " + subject); in createMessageDetailsMap()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java57 import com.android.emailcommon.provider.EmailContent.MessageColumns;
210 MessageColumns._ID,
211 MessageColumns.FLAG_READ,
212 MessageColumns.FLAG_FAVORITE,
213 MessageColumns.FLAG_LOADED,
215 MessageColumns.FLAGS,
216 MessageColumns.TIMESTAMP
242 "MIN(" + MessageColumns.TIMESTAMP + ")"
405 EmailContent.MessageColumns.ACCOUNT_KEY + "=?" + " AND " + in synchronizeMailboxGeneric()
406 MessageColumns.MAILBOX_KEY + "=? AND " + in synchronizeMailboxGeneric()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessPendingMessagesAction.java32 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
308 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)", in findNextMessageToSend()
313 DatabaseHelper.MessageColumns.RECEIVED_TIMESTAMP + " ASC"); in findNextMessageToSend()
318 values.put(DatabaseHelper.MessageColumns.STATUS, in findNextMessageToSend()
322 DatabaseHelper.MessageColumns.STATUS + " IN (" in findNextMessageToSend()
328 DatabaseHelper.MessageColumns.RECEIVED_TIMESTAMP + " ASC"); in findNextMessageToSend()
351 selfValues.put(MessageColumns.SELF_PARTICIPANT_ID, in findNextMessageToSend()
400 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)", in findNextMessageToDownload()
409 DatabaseHelper.MessageColumns.STATUS + " =? OR " in findNextMessageToDownload()
410 + DatabaseHelper.MessageColumns.STATUS + " =?", in findNextMessageToDownload()
[all …]
DMarkAsReadAction.java27 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
70 values.put(MessageColumns.CONVERSATION_ID, conversationId); in executeAction()
71 values.put(MessageColumns.READ, 1); in executeAction()
72 values.put(MessageColumns.SEEN, 1); // if they read it, they saw it in executeAction()
75 "(" + MessageColumns.READ + " !=1 OR " + in executeAction()
76 MessageColumns.SEEN + " !=1 ) AND " + in executeAction()
77 MessageColumns.CONVERSATION_ID + "=?", in executeAction()
DSyncCursorPair.java31 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
87 MessageColumns.RECEIVED_TIMESTAMP, in SyncCursorPair()
108 MessageColumns.RECEIVED_TIMESTAMP, in SyncCursorPair()
111 MessageColumns.CONVERSATION_ID, conversationId); in SyncCursorPair()
330 MessageColumns.SMS_MESSAGE_URI);
333 MessageColumns.RECEIVED_TIMESTAMP + " DESC";
338 MessageColumns._ID,
339 MessageColumns.RECEIVED_TIMESTAMP,
340 MessageColumns.SMS_MESSAGE_URI,
341 MessageColumns.PROTOCOL,
[all …]
DMarkAsSeenAction.java27 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
80 values.put(MessageColumns.SEEN, 1); in executeAction()
84 MessageColumns.SEEN + " != 1 AND " + in executeAction()
85 MessageColumns.CONVERSATION_ID + "=?", in executeAction()
92 MessageColumns.SEEN + " != 1", null/*selectionArgs*/); in executeAction()
DResendMessageAction.java25 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
80 values.put(MessageColumns.STATUS, MessageData.BUGLE_STATUS_OUTGOING_YET_TO_SEND); in executeAction()
81 values.put(MessageColumns.RECEIVED_TIMESTAMP, timestamp); in executeAction()
82 values.put(MessageColumns.SENT_TIMESTAMP, timestamp); in executeAction()
83 values.put(MessageColumns.RETRY_START_TIMESTAMP, timestamp); in executeAction()
DFixupMessageStatusOnStartupAction.java61 values.put(DatabaseHelper.MessageColumns.STATUS, in executeAction()
64 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)", in executeAction()
72 values.put(DatabaseHelper.MessageColumns.STATUS, in executeAction()
75 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)", in executeAction()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContent.java328 BluetoothMapContract.MessageColumns._ID); in setMessageColumns()
330 BluetoothMapContract.MessageColumns.DATE); in setMessageColumns()
332 BluetoothMapContract.MessageColumns.SUBJECT); in setMessageColumns()
334 BluetoothMapContract.MessageColumns.FOLDER_ID); in setMessageColumns()
336 BluetoothMapContract.MessageColumns.FLAG_READ); in setMessageColumns()
338 BluetoothMapContract.MessageColumns.MESSAGE_SIZE); in setMessageColumns()
340 BluetoothMapContract.MessageColumns.FROM_LIST); in setMessageColumns()
342 BluetoothMapContract.MessageColumns.TO_LIST); in setMessageColumns()
344 BluetoothMapContract.MessageColumns.FLAG_ATTACHMENT); in setMessageColumns()
346 BluetoothMapContract.MessageColumns.ATTACHMENT_SIZE); in setMessageColumns()
[all …]
DBluetoothMapContentObserver.java62 import com.android.bluetooth.mapapi.BluetoothMapContract.MessageColumns;
233 BluetoothMapContract.MessageColumns._ID,
234 BluetoothMapContract.MessageColumns.FOLDER_ID,
235 BluetoothMapContract.MessageColumns.FLAG_READ
239 BluetoothMapContract.MessageColumns._ID,
240 BluetoothMapContract.MessageColumns.FOLDER_ID,
241 BluetoothMapContract.MessageColumns.FLAG_READ,
242 BluetoothMapContract.MessageColumns.DATE,
243 BluetoothMapContract.MessageColumns.SUBJECT,
244 BluetoothMapContract.MessageColumns.FROM_LIST,
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java47 import com.android.emailcommon.provider.EmailContent.MessageColumns;
899 count(mMockContext, Message.CONTENT_URI, MessageColumns.MAILBOX_KEY + "=?", args)); in testMessageQueryWithLimit()
901 MessageColumns.MAILBOX_KEY + "=?", args)); in testMessageQueryWithLimit()
988 v.put(MessageColumns.DISPLAY_NAME, "--updated--"); in testDeleteOrphanMessages()
1106 String selection = EmailContent.MessageColumns.ACCOUNT_KEY + "=? AND " in testMessageDelete()
1107 + EmailContent.MessageColumns.MAILBOX_KEY + "=?"; in testMessageDelete()
1157 String selection = EmailContent.MessageColumns.ACCOUNT_KEY + "=? AND " in testSyncedMessageDelete()
1158 + EmailContent.MessageColumns.MAILBOX_KEY + "=?"; in testSyncedMessageDelete()
1223 String selection = EmailContent.MessageColumns.ACCOUNT_KEY + "=? AND " in testMessageUpdate()
1224 + EmailContent.MessageColumns.MAILBOX_KEY + "=?"; in testMessageUpdate()
[all …]

12