/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 27 import com.android.messaging.datamodel.BugleDatabaseOperations; 148 BugleDatabaseOperations.getRecipientsForConversation(db, conversationId); in executeAction() 176 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, in executeAction() 177 null /* message */, BugleDatabaseOperations.UPDATE_MODE_CLEAR_DRAFT); in executeAction() 186 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, in executeAction() 187 messageToSend, BugleDatabaseOperations.UPDATE_MODE_CLEAR_DRAFT); in executeAction() 204 self = BugleDatabaseOperations.getOrCreateSelf(db, requestedSubId); in getSelf() 225 final ParticipantData unboundSelf = BugleDatabaseOperations.getExistingParticipant( in getSelf() 230 self = BugleDatabaseOperations.getOrCreateSelf(db, defaultSubId); in getSelf() 257 BugleDatabaseOperations.sanitizeConversationParticipants(participants); in createMessage() [all …]
|
D | SyncMessageBatch.java | 26 import com.android.messaging.datamodel.BugleDatabaseOperations; 160 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, self); in storeSms() 165 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, sender)); in storeSms() 183 BugleDatabaseOperations.insertNewMessageInTransaction(db, message); in storeSms() 254 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, self); in storeMms() 258 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, sender)); in storeMms() 273 BugleDatabaseOperations.insertNewMessageInTransaction(db, message); in storeMms() 319 BugleDatabaseOperations.getExistingParticipant(db, selfId); in rethrowSQLiteConstraintExceptionWithDetails() 321 BugleDatabaseOperations.getExistingParticipant(db, senderId); in rethrowSQLiteConstraintExceptionWithDetails() 340 if (BugleDatabaseOperations.deleteConversationIfEmptyInTransaction(db, in updateConversations() [all …]
|
D | ReceiveMmsMessageAction.java | 25 import com.android.messaging.datamodel.BugleDatabaseOperations; 69 final ParticipantData self = BugleDatabaseOperations.getOrCreateSelf(db, subId); in executeAction() 89 final boolean blocked = BugleDatabaseOperations.isBlockedDestination( in executeAction() 93 BugleDatabaseOperations.getOrCreateConversationFromThreadId(db, mms.mThreadId, in executeAction() 109 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, rawSender); in executeAction() 111 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, self); in executeAction() 117 BugleDatabaseOperations.insertNewMessageInTransaction(db, message); in executeAction() 120 BugleDatabaseOperations.updateConversationMetadataInTransaction(db, in executeAction()
|
D | ProcessDownloadedMmsAction.java | 31 import com.android.messaging.datamodel.BugleDatabaseOperations; 358 toastMessage = BugleDatabaseOperations.readMessageData(db, messageId); in processBackgroundResponse() 438 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, self); in processResult() 450 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, sender); in processResult() 457 final boolean blockedSender = BugleDatabaseOperations.isBlockedDestination( in processResult() 459 conversationId = BugleDatabaseOperations.getOrCreateConversationFromThreadId(db, in processResult() 479 final MessageData current = BugleDatabaseOperations.readMessageData(db, messageId); in processResult() 482 BugleDatabaseOperations.insertNewMessageInTransaction(db, message); in processResult() 487 BugleDatabaseOperations.updateMessageInTransaction(db, message); in processResult() 495 if (!BugleDatabaseOperations.deleteConversationIfEmptyInTransaction( in processResult() [all …]
|
D | ReceiveSmsMessageAction.java | 28 import com.android.messaging.datamodel.BugleDatabaseOperations; 85 final boolean blocked = BugleDatabaseOperations.isBlockedDestination( in executeAction() 87 final String conversationId = BugleDatabaseOperations. in executeAction() 138 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, rawSender); in executeAction() 140 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, self); in executeAction() 145 BugleDatabaseOperations.insertNewMessageInTransaction(db, message); in executeAction() 147 BugleDatabaseOperations.updateConversationMetadataInTransaction(db, conversationId, in executeAction()
|
D | SendMessageAction.java | 29 import com.android.messaging.datamodel.BugleDatabaseOperations; 102 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction() 107 final ParticipantData self = BugleDatabaseOperations.getExistingParticipant( in queueAction() 126 BugleDatabaseOperations.getRecipientsForConversation(db, conversationId); in queueAction() 136 final String smsc = BugleDatabaseOperations.getSmsServiceCenterForConversation( in queueAction() 267 BugleDatabaseOperations.updateMessageRow(db, messageId, values); in updateMessageUri() 389 BugleDatabaseOperations.updateMessageInTransaction(db, message); in updateMessageAndStatus() 390 BugleDatabaseOperations.refreshConversationMetadataInTransaction( in updateMessageAndStatus() 405 BugleDatabaseOperations.updateMessageRowIfExists(db, message.getMessageId(), in updateMessageAndStatus()
|
D | GetOrCreateConversationAction.java | 24 import com.android.messaging.datamodel.BugleDatabaseOperations; 98 BugleDatabaseOperations.sanitizeConversationParticipants(participants); in executeAction() 100 BugleDatabaseOperations.getRecipientsFromConversationParticipants(participants); in executeAction() 112 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in executeAction()
|
D | RedownloadMmsAction.java | 25 import com.android.messaging.datamodel.BugleDatabaseOperations; 79 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction() 90 BugleDatabaseOperations.updateMessageRow(db, message.getMessageId(), values); in executeAction()
|
D | DeleteMessageAction.java | 25 import com.android.messaging.datamodel.BugleDatabaseOperations; 67 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in doBackgroundWork() 70 int count = BugleDatabaseOperations.deleteMessage(db, messageId); in doBackgroundWork()
|
D | WriteDraftMessageAction.java | 22 import com.android.messaging.datamodel.BugleDatabaseOperations; 76 final String messageId = BugleDatabaseOperations.updateDraftMessageData( in executeAction() 77 db, conversationId, message, BugleDatabaseOperations.UPDATE_MODE_ADD_DRAFT); in executeAction()
|
D | ResendMessageAction.java | 23 import com.android.messaging.datamodel.BugleDatabaseOperations; 65 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction() 86 BugleDatabaseOperations.updateMessageRow(db, message.getMessageId(), values); in executeAction()
|
D | ProcessDeliveryReportAction.java | 26 import com.android.messaging.datamodel.BugleDatabaseOperations; 83 BugleDatabaseOperations.readMessageData(db, smsMessageUri); in executeAction() 90 BugleDatabaseOperations.updateMessageRow(db, messageData.getMessageId(), values); in executeAction()
|
D | UpdateDestinationBlockedAction.java | 22 import com.android.messaging.datamodel.BugleDatabaseOperations; 111 BugleDatabaseOperations.updateDestination(db, destination, isBlocked); in executeAction() 113 conversationId = BugleDatabaseOperations in executeAction()
|
D | ProcessPendingMessagesAction.java | 30 import com.android.messaging.datamodel.BugleDatabaseOperations; 398 final ParticipantData messageSelf = BugleDatabaseOperations in findNextMessageToSend() 401 final ParticipantData defaultSelf = BugleDatabaseOperations in findNextMessageToSend() 409 BugleDatabaseOperations.updateMessageRow(db, in findNextMessageToSend() 422 BugleDatabaseOperations.updateMessageRow(db, message.getMessageId(), values); in findNextMessageToSend()
|
D | DownloadMmsAction.java | 27 import com.android.messaging.datamodel.BugleDatabaseOperations; 118 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction() 125 final ParticipantData self = BugleDatabaseOperations in queueAction() 318 BugleDatabaseOperations.updateMessageRowIfExists(db, messageId, values); in updateMessageStatus()
|
D | DeleteConversationAction.java | 27 import com.android.messaging.datamodel.BugleDatabaseOperations; 78 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in doBackgroundWork() 80 if (BugleDatabaseOperations.deleteConversation(db, conversationId, cutoffTimestamp)) { in doBackgroundWork()
|
D | UpdateConversationArchiveStatusAction.java | 22 import com.android.messaging.datamodel.BugleDatabaseOperations; 60 BugleDatabaseOperations.updateConversationArchiveStatusInTransaction( in executeAction()
|
D | UpdateMessagePartSizeAction.java | 23 import com.android.messaging.datamodel.BugleDatabaseOperations; 72 BugleDatabaseOperations.updateRowIfExists(db, DatabaseHelper.PARTS_TABLE, in executeAction()
|
D | MarkAsReadAction.java | 23 import com.android.messaging.datamodel.BugleDatabaseOperations; 61 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in executeAction()
|
D | ProcessSentMessageAction.java | 29 import com.android.messaging.datamodel.BugleDatabaseOperations; 205 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in processResult() 257 BugleDatabaseOperations.getRecipientsForConversation(db, conversationId); in processResult()
|
D | UpdateConversationOptionsAction.java | 23 import com.android.messaging.datamodel.BugleDatabaseOperations; 125 BugleDatabaseOperations.updateConversationRowIfExists(db, conversationId, values); in executeAction()
|
D | ReadDraftDataAction.java | 22 import com.android.messaging.datamodel.BugleDatabaseOperations; 92 message = BugleDatabaseOperations.readDraftMessageData(db, conversationId, in executeAction()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 29 import com.android.messaging.datamodel.BugleDatabaseOperations; 95 final MessageData actual = BugleDatabaseOperations.readMessage(db, messageId); in testWriteDraft() 102 final String selfId = BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, in getOrCreateSelfId() 115 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation() 140 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, message, in testReadDraft() 141 BugleDatabaseOperations.UPDATE_MODE_ADD_DRAFT); in testReadDraft() 174 final MessageData blank = BugleDatabaseOperations.readDraftMessageData(db, in testReadDraftForNewConversation() 180 conversationId = BugleDatabaseOperations.getExistingConversation(db, in testReadDraftForNewConversation() 191 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in testReadDraftForNewConversation() 195 final MessageData actual = BugleDatabaseOperations.readDraftMessageData(db, conversationId, in testReadDraftForNewConversation() [all …]
|
D | GetOrCreateConversationActionTest.java | 28 import com.android.messaging.datamodel.BugleDatabaseOperations; 110 BugleDatabaseOperations.getParticipantsForConversation(db, conversationId); in testGetOrCreateConversation() 136 final String realId = BugleDatabaseOperations.getExistingConversation(db, threadId, false); in testGetOrCreateConversation()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | SyncManager.java | 433 BugleDatabaseOperations.getConversationParticipantsFromRecipients(recipients, in getOrCreateConversation() 438 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation() 445 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
|