Home
last modified time | relevance | path

Searched refs:BugleDatabaseOperations (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DInsertNewMessageAction.java27 import com.android.messaging.datamodel.BugleDatabaseOperations;
147 BugleDatabaseOperations.getRecipientsForConversation(db, conversationId); in executeAction()
177 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, in executeAction()
178 null /* message */, BugleDatabaseOperations.UPDATE_MODE_CLEAR_DRAFT); in executeAction()
187 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, in executeAction()
188 messageToSend, BugleDatabaseOperations.UPDATE_MODE_CLEAR_DRAFT); in executeAction()
205 self = BugleDatabaseOperations.getOrCreateSelf(db, requestedSubId); in getSelf()
226 final ParticipantData unboundSelf = BugleDatabaseOperations.getExistingParticipant( in getSelf()
231 self = BugleDatabaseOperations.getOrCreateSelf(db, defaultSubId); in getSelf()
258 BugleDatabaseOperations.sanitizeConversationParticipants(participants); in createMessage()
[all …]
DSyncMessageBatch.java26 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 …]
DReceiveMmsMessageAction.java25 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()
DProcessDownloadedMmsAction.java31 import com.android.messaging.datamodel.BugleDatabaseOperations;
362 toastMessage = BugleDatabaseOperations.readMessageData(db, messageId); in processBackgroundResponse()
446 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, self); in processResult()
458 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, sender); in processResult()
465 final boolean blockedSender = BugleDatabaseOperations.isBlockedDestination( in processResult()
467 conversationId = BugleDatabaseOperations.getOrCreateConversationFromThreadId(db, in processResult()
487 final MessageData current = BugleDatabaseOperations.readMessageData(db, messageId); in processResult()
490 BugleDatabaseOperations.insertNewMessageInTransaction(db, message); in processResult()
495 BugleDatabaseOperations.updateMessageInTransaction(db, message); in processResult()
503 if (!BugleDatabaseOperations.deleteConversationIfEmptyInTransaction( in processResult()
[all …]
DReceiveSmsMessageAction.java28 import com.android.messaging.datamodel.BugleDatabaseOperations;
86 final boolean blocked = BugleDatabaseOperations.isBlockedDestination( in executeAction()
88 final String conversationId = BugleDatabaseOperations. in executeAction()
139 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, rawSender); in executeAction()
141 BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, self); in executeAction()
146 BugleDatabaseOperations.insertNewMessageInTransaction(db, message); in executeAction()
148 BugleDatabaseOperations.updateConversationMetadataInTransaction(db, conversationId, in executeAction()
DSendMessageAction.java29 import com.android.messaging.datamodel.BugleDatabaseOperations;
100 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction()
110 final ParticipantData self = BugleDatabaseOperations.getExistingParticipant( in queueAction()
134 BugleDatabaseOperations.getRecipientsForConversation(db, conversationId); in queueAction()
144 final String smsc = BugleDatabaseOperations.getSmsServiceCenterForConversation( in queueAction()
275 BugleDatabaseOperations.updateMessageRow(db, messageId, values); in updateMessageUri()
394 BugleDatabaseOperations.updateMessageInTransaction(db, message); in updateMessageAndStatus()
395 BugleDatabaseOperations.refreshConversationMetadataInTransaction( in updateMessageAndStatus()
410 BugleDatabaseOperations.updateMessageRowIfExists(db, message.getMessageId(), in updateMessageAndStatus()
DRedownloadMmsAction.java25 import com.android.messaging.datamodel.BugleDatabaseOperations;
81 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction()
92 BugleDatabaseOperations.updateMessageRow(db, message.getMessageId(), values); in executeAction()
96 BugleDatabaseOperations.getSelfSubscriptionId(db, message.getSelfId())); in executeAction()
DResendMessageAction.java23 import com.android.messaging.datamodel.BugleDatabaseOperations;
67 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction()
86 BugleDatabaseOperations.updateMessageRow(db, message.getMessageId(), values); in executeAction()
91 BugleDatabaseOperations.getSelfSubscriptionId(db, message.getSelfId())); in executeAction()
DGetOrCreateConversationAction.java24 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()
DDeleteMessageAction.java25 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()
DWriteDraftMessageAction.java22 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()
DProcessDeliveryReportAction.java26 import com.android.messaging.datamodel.BugleDatabaseOperations;
83 BugleDatabaseOperations.readMessageData(db, smsMessageUri); in executeAction()
90 BugleDatabaseOperations.updateMessageRow(db, messageData.getMessageId(), values); in executeAction()
DUpdateDestinationBlockedAction.java22 import com.android.messaging.datamodel.BugleDatabaseOperations;
111 BugleDatabaseOperations.updateDestination(db, destination, isBlocked); in executeAction()
113 conversationId = BugleDatabaseOperations in executeAction()
DDeleteConversationAction.java27 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()
DDownloadMmsAction.java27 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()
DUpdateConversationArchiveStatusAction.java22 import com.android.messaging.datamodel.BugleDatabaseOperations;
60 BugleDatabaseOperations.updateConversationArchiveStatusInTransaction( in executeAction()
DUpdateMessagePartSizeAction.java23 import com.android.messaging.datamodel.BugleDatabaseOperations;
72 BugleDatabaseOperations.updateRowIfExists(db, DatabaseHelper.PARTS_TABLE, in executeAction()
DMarkAsReadAction.java23 import com.android.messaging.datamodel.BugleDatabaseOperations;
61 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in executeAction()
DProcessSentMessageAction.java29 import com.android.messaging.datamodel.BugleDatabaseOperations;
205 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in processResult()
259 BugleDatabaseOperations.getRecipientsForConversation(db, conversationId); in processResult()
DUpdateConversationOptionsAction.java23 import com.android.messaging.datamodel.BugleDatabaseOperations;
125 BugleDatabaseOperations.updateConversationRowIfExists(db, conversationId, values); in executeAction()
DReadDraftDataAction.java22 import com.android.messaging.datamodel.BugleDatabaseOperations;
92 message = BugleDatabaseOperations.readDraftMessageData(db, conversationId, in executeAction()
DProcessPendingMessagesAction.java26 import com.android.messaging.datamodel.BugleDatabaseOperations;
361 BugleDatabaseOperations.getExistingParticipant(db, selfId); in findNextMessageToSend()
376 BugleDatabaseOperations.updateMessageRow(db, message.getMessageId(), values); in findNextMessageToSend()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java29 import com.android.messaging.datamodel.BugleDatabaseOperations;
94 final MessageData actual = BugleDatabaseOperations.readMessage(db, messageId); in testWriteDraft()
101 final String selfId = BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, in getOrCreateSelfId()
114 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
139 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, message, in testReadDraft()
140 BugleDatabaseOperations.UPDATE_MODE_ADD_DRAFT); in testReadDraft()
173 final MessageData blank = BugleDatabaseOperations.readDraftMessageData(db, in testReadDraftForNewConversation()
179 conversationId = BugleDatabaseOperations.getExistingConversation(db, in testReadDraftForNewConversation()
190 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in testReadDraftForNewConversation()
194 final MessageData actual = BugleDatabaseOperations.readDraftMessageData(db, conversationId, in testReadDraftForNewConversation()
[all …]
DGetOrCreateConversationActionTest.java28 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/
DSyncManager.java433 BugleDatabaseOperations.getConversationParticipantsFromRecipients(recipients, in getOrCreateConversation()
438 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
445 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()

12