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;
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 …]
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;
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 …]
DReceiveSmsMessageAction.java28 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()
DSendMessageAction.java29 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()
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()
DRedownloadMmsAction.java25 import com.android.messaging.datamodel.BugleDatabaseOperations;
79 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction()
90 BugleDatabaseOperations.updateMessageRow(db, message.getMessageId(), values); 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()
DResendMessageAction.java23 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()
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()
DProcessPendingMessagesAction.java30 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()
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()
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()
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()
257 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()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java29 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 …]
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