Home
last modified time | relevance | path

Searched refs:conversationId (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java215 String conversationId = BugleDatabaseOperations.getExistingConversation(db, threadId, in getOrCreateConversation() local
218 if (conversationId == null) { in getOrCreateConversation()
233 conversationId = BugleDatabaseOperations.createConversationInTransaction( in getOrCreateConversation()
242 return conversationId; in getOrCreateConversation()
258 String conversationId = null; in getExistingConversation() local
270 conversationId = cursor.getString(0); in getExistingConversation()
278 return conversationId; in getExistingConversation()
290 public static long getThreadId(final DatabaseWrapper dbWrapper, final String conversationId) { in getThreadId() argument
299 new String[] { conversationId }, in getThreadId()
413 final String conversationId = Long.toString(conversationRowId); in createConversationInTransaction() local
[all …]
DBugleNotifications.java167 public static void update(final boolean silent, final String conversationId, in update() argument
171 + " conversationId = " + conversationId in update()
185 createMessageNotification(silent, conversationId); in update()
213 private static synchronized void cancel(final int type, final String conversationId, in cancel() argument
215 final String notificationTag = buildNotificationTag(type, conversationId, in cancel()
249 if (conversationId != null) { in cancel()
250 groupChildIds.remove(conversationId); in cancel()
333 private static Uri getNotificationRingtoneUriForConversationId(final String conversationId) { in getNotificationRingtoneUriForConversationId() argument
336 ConversationListItemData.getExistingConversation(db, conversationId); in getNotificationRingtoneUriForConversationId()
348 final String conversationId) { in buildNotificationTag() argument
[all …]
DMessagingContentProvider.java121 public static Uri buildConversationParticipantsUri(final String conversationId) { in buildConversationParticipantsUri() argument
123 builder.appendPath(conversationId); in buildConversationParticipantsUri()
127 public static void notifyParticipantsChanged(final String conversationId) { in notifyParticipantsChanged() argument
128 final Uri uri = buildConversationParticipantsUri(conversationId); in notifyParticipantsChanged()
175 public static Uri buildConversationMessagesUri(final String conversationId) { in buildConversationMessagesUri() argument
177 builder.appendPath(conversationId); in buildConversationMessagesUri()
181 public static void notifyMessagesChanged(final String conversationId) { in notifyMessagesChanged() argument
182 final Uri uri = buildConversationMessagesUri(conversationId); in notifyMessagesChanged()
189 WidgetConversationProvider.notifyMessagesChanged(context, conversationId); in notifyMessagesChanged()
195 public static Uri buildConversationMetadataUri(final String conversationId) { in buildConversationMetadataUri() argument
[all …]
DSyncManager.java408 public synchronized boolean isArchived(final String conversationId) { in isArchived() argument
409 return mArchivedConversations.contains(conversationId); in isArchived()
426 String conversationId = mThreadToConversationId.get(threadId); in getOrCreateConversation() local
427 if (conversationId != null) { in getOrCreateConversation()
428 return conversationId; in getOrCreateConversation()
438 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
442 mArchivedConversations.add(conversationId); in getOrCreateConversation()
445 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
450 if (conversationId != null) { in getOrCreateConversation()
451 mThreadToConversationId.put(threadId, conversationId); in getOrCreateConversation()
[all …]
DDataModel.java76 final ConversationDataListener listener, final String conversationId); in createConversationData() argument
92 public abstract PeopleAndOptionsData createPeopleAndOptionsData(final String conversationId, in createPeopleAndOptionsData() argument
111 public abstract DraftMessageData createDraftMessageData(String conversationId); in createDraftMessageData() argument
125 public void setFocusedConversation(final String conversationId) { in setFocusedConversation() argument
126 mFocusedConversation = conversationId; in setFocusedConversation()
129 public boolean isFocusedConversation(final String conversationId) { in isFocusedConversation() argument
131 && TextUtils.equals(mFocusedConversation, conversationId); in isFocusedConversation()
148 public boolean isNewMessageObservable(final String conversationId) { in isNewMessageObservable() argument
150 || isFocusedConversation(conversationId); in isNewMessageObservable()
DNoConfirmationSmsSendService.java77 final String conversationId = in onHandleIntent() local
89 if (TextUtils.isEmpty(recipients) && TextUtils.isEmpty(conversationId)) { in onHandleIntent()
109 if (TextUtils.isEmpty(conversationId)) { in onHandleIntent()
116 conversationId); in onHandleIntent()
118 messageData = MessageData.createDraftMmsMessage(conversationId, selfId, message, in onHandleIntent()
123 conversationId); in onHandleIntent()
125 messageData = MessageData.createDraftSmsMessage(conversationId, selfId, in onHandleIntent()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java71 final String conversationId = getOrCreateConversation(db, participantNumber, threadId, in testWriteDraft() local
78 final MessageData message = MessageData.createDraftSmsMessage(conversationId, selfId, in testWriteDraft()
81 WriteDraftMessageAction.writeDraftMessage(conversationId, message); in testWriteDraft()
115 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation() local
117 assertNotNull("No conversation", conversationId); in getOrCreateConversation()
118 return conversationId; in getOrCreateConversation()
130 final String conversationId = getOrCreateConversation(db, participantNumber, threadId, in testReadDraft() local
137 final MessageData message = MessageData.createDraftSmsMessage(conversationId, selfId, in testReadDraft()
140 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, message, in testReadDraft()
144 ReadDraftDataAction.readDraftData(conversationId, null, data, mockListener); in testReadDraft()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DInsertNewMessageAction.java132 final String conversationId = message.getConversationId(); in executeAction() local
134 final ParticipantData self = getSelf(db, conversationId, message); in executeAction()
148 BugleDatabaseOperations.getRecipientsForConversation(db, conversationId); in executeAction()
158 String sendingConversationId = conversationId; in executeAction()
163 insertBroadcastSmsMessage(conversationId, message, subId, in executeAction()
176 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, in executeAction()
181 final MessageData messageToSend = insertSendingMmsMessage(conversationId, in executeAction()
186 BugleDatabaseOperations.updateDraftMessageData(db, conversationId, in executeAction()
196 final DatabaseWrapper db, final String conversationId, final MessageData message) { in getSelf() argument
212 ConversationListItemData.getExistingConversation(db, conversationId); in getSelf()
[all …]
DUpdateConversationOptionsAction.java38 public static void enableConversationNotifications(final String conversationId, in enableConversationNotifications() argument
40 Assert.notNull(conversationId); in enableConversationNotifications()
43 conversationId, enableNotification, null, null); in enableConversationNotifications()
50 public static void setConversationNotificationSound(final String conversationId, in setConversationNotificationSound() argument
52 Assert.notNull(conversationId); in setConversationNotificationSound()
55 conversationId, null, ringtoneUri, null); in setConversationNotificationSound()
62 public static void enableVibrationForConversationNotification(final String conversationId, in enableVibrationForConversationNotification() argument
64 Assert.notNull(conversationId); in enableVibrationForConversationNotification()
67 conversationId, null, null, enableVibration); in enableVibrationForConversationNotification()
78 protected UpdateConversationOptionsAction(final String conversationId, in UpdateConversationOptionsAction() argument
[all …]
DDeleteConversationAction.java49 public static void deleteConversation(final String conversationId, final long cutoffTimestamp) { in deleteConversation() argument
50 final DeleteConversationAction action = new DeleteConversationAction(conversationId, in deleteConversation()
58 private DeleteConversationAction(final String conversationId, final long cutoffTimestamp) { in DeleteConversationAction() argument
60 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in DeleteConversationAction()
73 final String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in doBackgroundWork() local
76 if (!TextUtils.isEmpty(conversationId)) { in doBackgroundWork()
78 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in doBackgroundWork()
80 if (BugleDatabaseOperations.deleteConversation(db, conversationId, cutoffTimestamp)) { in doBackgroundWork()
82 + conversationId); in doBackgroundWork()
96 conversationId); in doBackgroundWork() local
[all …]
DSyncMessageBatch.java150 final String conversationId = mCache.getOrCreateConversation(db, sms.mThreadId, sms.mSubId, in storeSms() local
152 if (conversationId == null) { in storeSms()
173 conversationId, in storeSms()
186 conversationId, selfId, participantId); in storeSms()
196 mConversationsToUpdate.add(conversationId); in storeSms()
245 final String conversationId = mCache.getOrCreateConversation(db, mms.mThreadId, mms.mSubId, in storeMms() local
247 if (conversationId == null) { in storeMms()
268 final MessageData message = MmsUtils.createMmsMessage(mms, conversationId, participantId, in storeMms()
276 conversationId, selfId, participantId); in storeMms()
286 mConversationsToUpdate.add(conversationId); in storeMms()
[all …]
DUpdateConversationArchiveStatusAction.java30 public static void archiveConversation(final String conversationId) { in archiveConversation() argument
32 new UpdateConversationArchiveStatusAction(conversationId, true /* isArchive */); in archiveConversation()
36 public static void unarchiveConversation(final String conversationId) { in unarchiveConversation() argument
38 new UpdateConversationArchiveStatusAction(conversationId, false /* isArchive */); in unarchiveConversation()
46 final String conversationId, final boolean isArchive) { in UpdateConversationArchiveStatusAction() argument
47 Assert.isTrue(!TextUtils.isEmpty(conversationId)); in UpdateConversationArchiveStatusAction()
48 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in UpdateConversationArchiveStatusAction()
54 final String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in executeAction() local
61 db, conversationId, isArchived); in executeAction()
68 MessagingContentProvider.notifyConversationMetadataChanged(conversationId); in executeAction()
DUpdateDestinationBlockedAction.java79 final String destination, final boolean blocked, final String conversationId, in updateDestinationBlocked() argument
85 new UpdateDestinationBlockedAction(destination, blocked, conversationId, in updateDestinationBlocked()
96 final String destination, final boolean blocked, final String conversationId, in UpdateDestinationBlockedAction() argument
102 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in UpdateDestinationBlockedAction()
109 String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in executeAction() local
112 if (conversationId == null) { in executeAction()
113 conversationId = BugleDatabaseOperations in executeAction()
116 if (conversationId != null) { in executeAction()
118 UpdateConversationArchiveStatusAction.archiveConversation(conversationId); in executeAction()
120 UpdateConversationArchiveStatusAction.unarchiveConversation(conversationId); in executeAction()
[all …]
DWriteDraftMessageAction.java36 public static void writeDraftMessage(final String conversationId, final MessageData message) { in writeDraftMessage() argument
37 final WriteDraftMessageAction action = new WriteDraftMessageAction(conversationId, message); in writeDraftMessage()
44 private WriteDraftMessageAction(final String conversationId, final MessageData message) { in WriteDraftMessageAction() argument
45 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in WriteDraftMessageAction()
52 final String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in executeAction() local
59 ConversationListItemData.getExistingConversation(db, conversationId); in executeAction()
69 LogUtil.w(LogUtil.BUGLE_DATAMODEL_TAG, "Conversation " + conversationId + in executeAction()
77 db, conversationId, message, BugleDatabaseOperations.UPDATE_MODE_ADD_DRAFT); in executeAction()
79 MessagingContentProvider.notifyConversationMetadataChanged(conversationId); in executeAction()
DMarkAsReadAction.java44 public static void markAsRead(final String conversationId) { in markAsRead() argument
45 final MarkAsReadAction action = new MarkAsReadAction(conversationId); in markAsRead()
49 private MarkAsReadAction(final String conversationId) { in MarkAsReadAction() argument
50 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in MarkAsReadAction()
55 final String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in executeAction() local
61 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in executeAction()
70 values.put(MessageColumns.CONVERSATION_ID, conversationId); in executeAction()
78 new String[] { conversationId }); in executeAction()
80 MessagingContentProvider.notifyMessagesChanged(conversationId); in executeAction()
DReadDraftDataAction.java50 public static ReadDraftDataActionMonitor readDraftData(final String conversationId, in readDraftData() argument
55 final ReadDraftDataAction action = new ReadDraftDataAction(conversationId, in readDraftData()
64 private ReadDraftDataAction(final String conversationId, final MessageData incomingDraft, in ReadDraftDataAction() argument
67 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in ReadDraftDataAction()
85 final String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in executeAction() local
88 ConversationListItemData.getExistingConversation(db, conversationId); in executeAction()
92 message = BugleDatabaseOperations.readDraftMessageData(db, conversationId, in executeAction()
96 message = MessageData.createDraftMessage(conversationId, conversation.getSelfId(), in executeAction()
99 + "conversationId=" + conversationId in executeAction()
103 + "conversationId=" + conversationId in executeAction()
DProcessDownloadedMmsAction.java100 final String conversationId = extras.getString(DownloadMmsAction.EXTRA_CONVERSATION_ID); in processMessageDownloaded() local
105 Assert.notNull(conversationId); in processMessageDownloaded()
129 params.putString(KEY_CONVERSATION_ID, conversationId); in processMessageDownloaded()
138 final Uri notificationUri, final String conversationId, final String participantId, in processMessageDownloadFastFailed() argument
144 Assert.notNull(conversationId); in processMessageDownloadFastFailed()
157 params.putString(KEY_CONVERSATION_ID, conversationId); in processMessageDownloadFastFailed()
165 final int rawStatus, final String conversationId, final String participantId, in processDownloadActionFailure() argument
168 Assert.notNull(conversationId); in processDownloadActionFailure()
177 params.putString(KEY_CONVERSATION_ID, conversationId); in processDownloadActionFailure()
427 String conversationId = null; in processResult() local
[all …]
DMarkAsSeenAction.java50 public static void markAsSeen(final String conversationId) { in markAsSeen() argument
51 final MarkAsSeenAction action = new MarkAsSeenAction(conversationId); in markAsSeen()
60 public MarkAsSeenAction(final String conversationId) { in MarkAsSeenAction() argument
61 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in MarkAsSeenAction()
66 final String conversationId = in executeAction() local
68 final boolean hasSpecificConversation = !TextUtils.isEmpty(conversationId); in executeAction()
86 new String[] { conversationId }); in executeAction()
88 MessagingContentProvider.notifyMessagesChanged(conversationId); in executeAction()
DDownloadMmsAction.java119 final String conversationId = message.getConversationId(); in queueAction() local
127 actionParameters.putString(KEY_CONVERSATION_ID, conversationId); in queueAction()
141 updateMessageStatus(notificationUri, messageId, conversationId, in queueAction()
159 updateMessageStatus(notificationUri, messageId, conversationId, in queueAction()
239 final String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in doBackgroundWork() local
252 extras.putString(EXTRA_CONVERSATION_ID, conversationId); in doBackgroundWork()
272 notificationUri, conversationId, participantId, contentLocation, subId, in doBackgroundWork()
289 final String conversationId = actionParameters.getString(KEY_CONVERSATION_ID); in processBackgroundFailure() local
296 conversationId, participantId, statusIfFailed, subId, transactionId); in processBackgroundFailure()
302 final String conversationId, final int status, final int rawStatus) { in updateMessageStatus() argument
[all …]
DReceiveSmsMessageAction.java87 final String conversationId = BugleDatabaseOperations. in executeAction() local
91 DataModel.get().isFocusedConversation(conversationId); in executeAction()
93 DataModel.get().isNewMessageObservable(conversationId); in executeAction()
142 message = MessageData.createReceivedSmsMessage(messageUri, conversationId, in executeAction()
147 BugleDatabaseOperations.updateConversationMetadataInTransaction(db, conversationId, in executeAction()
152 BugleActionToasts.onMessageReceived(conversationId, sender, message); in executeAction()
169 BugleNotifications.update(false/*silent*/, conversationId, BugleNotifications.UPDATE_ALL); in executeAction()
171 MessagingContentProvider.notifyMessagesChanged(conversationId); in executeAction()
DReceiveMmsMessageAction.java92 final String conversationId = in executeAction() local
97 DataModel.get().isFocusedConversation(conversationId); in executeAction()
99 DataModel.get().isNewMessageObservable(conversationId); in executeAction()
113 message = MmsUtils.createMmsMessage(mms, conversationId, participantId, selfId, in executeAction()
121 conversationId, message.getMessageId(), message.getReceivedTimeStamp(), in executeAction()
125 BugleActionToasts.onMessageReceived(conversationId, sender, message); in executeAction()
139 BugleNotifications.update(false/*silent*/, conversationId, in executeAction()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationProvider.java111 final String conversationId = in rebuildWidget() local
117 null : getConversationData(context, conversationId); in rebuildWidget()
122 intent.putExtra(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID, conversationId); in rebuildWidget()
135 conversationId, WIDGET_CONVERSATION_REQUEST_CODE); in rebuildWidget()
143 conversationId, WIDGET_CONVERSATION_TEMPLATE_REQUEST_CODE); in rebuildWidget()
168 public static void notifyMessagesChanged(final Context context, final String conversationId) { in notifyMessagesChanged() argument
173 intent.putExtra(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID, conversationId); in notifyMessagesChanged()
183 final String conversationId) { in notifyConversationDeleted() argument
185 LogUtil.v(TAG, "notifyConversationDeleted convId: " + conversationId); in notifyConversationDeleted()
195 if (widgetConvId == null || widgetConvId.equals(conversationId)) { in notifyConversationDeleted()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DUIIntentsImpl.java91 final String conversationId, final MessageData draft, in getConversationActivityIntent() argument
100 if (conversationId != null) { in getConversationActivityIntent()
101 intent.putExtra(UI_INTENT_EXTRA_CONVERSATION_ID, conversationId); in getConversationActivityIntent()
165 final String conversationId, final MessageData draft, final Bundle activityOptions, in launchConversationActivity() argument
168 final Intent intent = getConversationActivityIntent(context, conversationId, draft, in launchConversationActivity()
175 final Context context, final String conversationId) { in launchConversationActivityNewTask() argument
176 final Intent intent = getConversationActivityIntent(context, conversationId, null, in launchConversationActivityNewTask()
184 final String conversationId, final String smsBody) { in launchConversationActivityWithParentStack() argument
187 : MessageData.createDraftSmsMessage(conversationId, null, smsBody); in launchConversationActivityWithParentStack()
190 getConversationActivityIntent(context, conversationId, messageData, in launchConversationActivityWithParentStack()
[all …]
DUIIntents.java122 final String conversationId, final MessageData draft) { in launchConversationActivity() argument
123 launchConversationActivity(context, conversationId, draft, null, in launchConversationActivity()
131 final String conversationId, final MessageData draft, final Bundle activityOptions, in launchConversationActivity() argument
139 String conversationId, String smsBody); in launchConversationActivityWithParentStack() argument
145 final String conversationId); in launchConversationActivityNewTask() argument
178 final String conversationId); in launchPeopleAndOptionsActivity() argument
222 final String conversationId, final int requestCode); in launchAttachmentChooserActivity() argument
280 final String conversationId, final String conversationSelfId); in broadcastConversationSelfIdChange() argument
298 final String conversationId, final MessageData draft); in getPendingIntentForConversationActivity() argument
304 final String conversationId, final MessageData draft); in getIntentForConversationActivity() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DAbstractConversationListActivity.java146 conversation.conversationId, in onActionBarDelete()
161 final String conversationId = conversation.conversationId; in onActionBarArchive() local
162 conversationIds.add(conversationId); in onActionBarArchive()
164 UpdateConversationArchiveStatusAction.archiveConversation(conversationId); in onActionBarArchive()
166 UpdateConversationArchiveStatusAction.unarchiveConversation(conversationId); in onActionBarArchive()
173 for (final String conversationId : conversationIds) { in onActionBarArchive()
175 UpdateConversationArchiveStatusAction.unarchiveConversation(conversationId); in onActionBarArchive()
177 UpdateConversationArchiveStatusAction.archiveConversation(conversationId); in onActionBarArchive()
197 conversation.conversationId, isNotificationOn); in onActionBarNotification()
248 conversation.conversationId, in onActionBarBlock()
[all …]

123