Home
last modified time | relevance | path

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

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDownloadMmsAction.java33 import com.android.messaging.datamodel.data.MessageData;
55 final Object data, final MessageData message); in onDownloadMessageStarting()
58 final Object data, final MessageData message); in onDownloadMessageSucceeded()
61 final Object data, final MessageData message); in onDownloadMessageFailed()
118 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction()
145 downloadingStatus, MessageData.RAW_TELEPHONY_STATUS_UNDEFINED); in queueAction()
163 MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED, in queueAction()
164 MessageData.RAW_TELEPHONY_STATUS_UNDEFINED); in queueAction()
165 if (status == MessageData.BUGLE_STATUS_INCOMING_RETRYING_AUTO_DOWNLOAD) { in queueAction()
186 case MessageData.BUGLE_STATUS_INCOMING_RETRYING_MANUAL_DOWNLOAD: in isAutoDownload()
[all …]
DSendMessageAction.java35 import com.android.messaging.datamodel.data.MessageData;
100 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction()
193 final MessageData message = actionParameters.getParcelable(KEY_MESSAGE); in doBackgroundWork()
197 final boolean isSms = message.getProtocol() == MessageData.PROTOCOL_SMS; in doBackgroundWork()
205 int rawStatus = MessageData.RAW_TELEPHONY_STATUS_UNDEFINED; in doBackgroundWork()
206 int resultCode = MessageData.UNKNOWN_RESULT_CODE; in doBackgroundWork()
294 final MessageData message = actionParameters.getParcelable(KEY_MESSAGE); in processBackgroundFailure()
295 final boolean isSms = message.getProtocol() == MessageData.PROTOCOL_SMS; in processBackgroundFailure()
302 MmsUtils.MMS_REQUEST_MANUAL_RETRY, MessageData.RAW_TELEPHONY_STATUS_UNDEFINED, in processBackgroundFailure()
315 public static boolean updateMessageAndStatus(final boolean isSms, final MessageData message, in updateMessageAndStatus()
[all …]
DInsertNewMessageAction.java33 import com.android.messaging.datamodel.data.MessageData;
59 public static void insertNewMessage(final MessageData message) { in insertNewMessage()
67 public static void insertNewMessage(final MessageData message, final int subId) { in insertNewMessage()
93 private InsertNewMessageAction(final MessageData message) { in InsertNewMessageAction()
98 private InsertNewMessageAction(final MessageData message, final int subId) { in InsertNewMessageAction()
121 MessageData message = actionParameters.getParcelable(KEY_MESSAGE); in executeAction()
157 final boolean isSms = (message.getProtocol() == MessageData.PROTOCOL_SMS); in executeAction()
182 final MessageData messageToSend = insertSendingMmsMessage(conversationId, in executeAction()
197 final DatabaseWrapper db, final String conversationId, final MessageData message) { in getSelf()
240 private MessageData createMessage() { in createMessage()
[all …]
DProcessPendingMessagesAction.java33 import com.android.messaging.datamodel.data.MessageData;
333 Integer.toString(MessageData.BUGLE_STATUS_OUTGOING_SENDING), in findNextMessageToSend()
334 Integer.toString(MessageData.BUGLE_STATUS_OUTGOING_RESENDING), in findNextMessageToSend()
340 MessageData.getProjection(), in findNextMessageToSend()
344 Integer.toString(MessageData.BUGLE_STATUS_OUTGOING_YET_TO_SEND), in findNextMessageToSend()
345 Integer.toString(MessageData.BUGLE_STATUS_OUTGOING_AWAITING_RETRY), in findNextMessageToSend()
355 MessageData.BUGLE_STATUS_OUTGOING_FAILED); in findNextMessageToSend()
367 final MessageData message = new MessageData(); in findNextMessageToSend()
418 Integer.toString(MessageData.BUGLE_STATUS_INCOMING_AUTO_DOWNLOADING), in findNextMessageToDownload()
419 Integer.toString(MessageData.BUGLE_STATUS_INCOMING_MANUAL_DOWNLOADING), in findNextMessageToDownload()
[all …]
DReadDraftDataAction.java27 import com.android.messaging.datamodel.data.MessageData;
41 final Object data, final MessageData message, in onReadDraftDataSucceeded()
51 final MessageData incomingDraft, final Object data, in readDraftData()
64 private ReadDraftDataAction(final String conversationId, final MessageData incomingDraft, in ReadDraftDataAction()
73 public final MessageData message;
76 DraftData(final MessageData message, final ConversationListItemData conversation) { in DraftData()
86 final MessageData incomingDraft = actionParameters.getParcelable(KEY_INCOMING_DRAFT); in executeAction()
89 MessageData message = null; in executeAction()
96 message = MessageData.createDraftMessage(conversationId, conversation.getSelfId(), in executeAction()
DFixupMessageStatusOnStartupAction.java26 import com.android.messaging.datamodel.data.MessageData;
62 MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED); in executeAction()
66 Integer.toString(MessageData.BUGLE_STATUS_INCOMING_AUTO_DOWNLOADING), in executeAction()
67 Integer.toString(MessageData.BUGLE_STATUS_INCOMING_MANUAL_DOWNLOADING) in executeAction()
72 MessageData.BUGLE_STATUS_OUTGOING_FAILED); in executeAction()
76 Integer.toString(MessageData.BUGLE_STATUS_OUTGOING_SENDING), in executeAction()
77 Integer.toString(MessageData.BUGLE_STATUS_OUTGOING_RESENDING) in executeAction()
DSyncMessageBatch.java33 import com.android.messaging.datamodel.data.MessageData;
169 final MessageData message = MessageData.createSmsMessage( in storeSms()
201 int bugleStatus = MessageData.BUGLE_STATUS_UNKNOWN; in bugleStatusForSms()
211 bugleStatus = MessageData.BUGLE_STATUS_OUTGOING_FAILED; in bugleStatusForSms()
213 bugleStatus = MessageData.BUGLE_STATUS_OUTGOING_DELIVERED; in bugleStatusForSms()
216 bugleStatus = MessageData.BUGLE_STATUS_OUTGOING_COMPLETE; in bugleStatusForSms()
220 bugleStatus = MessageData.BUGLE_STATUS_INCOMING_COMPLETE; in bugleStatusForSms()
268 final MessageData message = MmsUtils.createMmsMessage(mms, conversationId, participantId, in storeMms()
DWriteDraftMessageAction.java27 import com.android.messaging.datamodel.data.MessageData;
36 public static void writeDraftMessage(final String conversationId, final MessageData message) { in writeDraftMessage()
44 private WriteDraftMessageAction(final String conversationId, final MessageData message) { in WriteDraftMessageAction()
53 final MessageData message = actionParameters.getParcelable(KEY_MESSAGE); in executeAction()
DResendMessageAction.java28 import com.android.messaging.datamodel.data.MessageData;
67 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction()
82 values.put(MessageColumns.STATUS, MessageData.BUGLE_STATUS_OUTGOING_YET_TO_SEND); in executeAction()
100 error += ("status = " + MessageData.getStatusDescription(message.getStatus())); in executeAction()
DProcessDownloadedMmsAction.java39 import com.android.messaging.datamodel.data.MessageData;
344 final MessageData message = processResult(status, rawStatus, messageUri); in processBackgroundResponse()
358 MessageData toastMessage = message; in processBackgroundResponse()
403 processResult(MmsUtils.MMS_REQUEST_MANUAL_RETRY, MessageData.RAW_TELEPHONY_STATUS_UNDEFINED, in processBackgroundFailure()
412 private MessageData processResult(final int status, final int rawStatus, final Uri mmsUri) { in processResult()
439 MessageData message = null; in processResult()
481 selfId, MessageData.BUGLE_STATUS_INCOMING_COMPLETE); in processResult()
487 final MessageData current = BugleDatabaseOperations.readMessageData(db, messageId); in processResult()
520 bugleStatus = MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED; in processResult()
522 bugleStatus = MessageData.BUGLE_STATUS_INCOMING_EXPIRED_OR_NOT_AVAILABLE; in processResult()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessageData.java42 public class MessageData implements Parcelable { class
203 public MessageData() { in MessageData() method in MessageData
214 public static MessageData createDraftMessage(final String conversationId, in createDraftMessage()
215 final String selfId, final MessageData content) { in createDraftMessage()
216 final MessageData message = new MessageData(); in createDraftMessage()
242 public static MessageData createDraftSmsMessage(final String conversationId, in createDraftSmsMessage()
244 final MessageData message = new MessageData(); in createDraftSmsMessage()
258 public static MessageData createDraftMmsMessage(final String conversationId, in createDraftMmsMessage()
260 final MessageData message = new MessageData(); in createDraftMmsMessage()
277 public static MessageData createReceivedSmsMessage(final Uri uri, final String conversationId, in createReceivedSmsMessage()
[all …]
DConversationMessageData.java143 final boolean otherIsIncoming = (otherStatus >= MessageData.BUGLE_STATUS_FIRST_INCOMING); in canClusterWithMessage()
468 return (mProtocol == MessageData.PROTOCOL_MMS ||
469 mProtocol == MessageData.PROTOCOL_MMS_PUSH_NOTIFICATION);
473 return (mProtocol == MessageData.PROTOCOL_MMS_PUSH_NOTIFICATION);
477 return mProtocol == (MessageData.PROTOCOL_SMS);
517 return (mStatus >= MessageData.BUGLE_STATUS_FIRST_INCOMING);
521 return (mStatus == MessageData.BUGLE_STATUS_INCOMING_EXPIRED_OR_NOT_AVAILABLE || in hasIncomingErrorStatus()
522 mStatus == MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED); in hasIncomingErrorStatus()
526 return (mStatus == MessageData.BUGLE_STATUS_OUTGOING_COMPLETE in getIsSendComplete()
527 || mStatus == MessageData.BUGLE_STATUS_OUTGOING_DELIVERED); in getIsSendComplete()
[all …]
DConversationListItemData.java215 return (mMessageStatus == MessageData.BUGLE_STATUS_OUTGOING_FAILED || in getIsFailedStatus()
216 mMessageStatus == MessageData.BUGLE_STATUS_OUTGOING_FAILED_EMERGENCY_NUMBER || in getIsFailedStatus()
217 mMessageStatus == MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED || in getIsFailedStatus()
218 mMessageStatus == MessageData.BUGLE_STATUS_INCOMING_EXPIRED_OR_NOT_AVAILABLE); in getIsFailedStatus()
222 return (mMessageStatus == MessageData.BUGLE_STATUS_OUTGOING_YET_TO_SEND || in getIsSendRequested()
223 mMessageStatus == MessageData.BUGLE_STATUS_OUTGOING_AWAITING_RETRY || in getIsSendRequested()
224 mMessageStatus == MessageData.BUGLE_STATUS_OUTGOING_SENDING || in getIsSendRequested()
225 mMessageStatus == MessageData.BUGLE_STATUS_OUTGOING_RESENDING); in getIsSendRequested()
229 return !MessageData.getIsIncoming(mMessageStatus); in getIsMessageTypeOutgoing()
DDraftMessageData.java136 public void updateFromMessageData(final MessageData message, final String bindingId) { in updateFromMessageData()
181 public MessageData createMessageWithCurrentAttachments(final boolean clearLocalCopy) { in createMessageWithCurrentAttachments()
182 MessageData message = null; in createMessageWithCurrentAttachments()
184 message = MessageData.createDraftMmsMessage(mConversationId, mSelfId, in createMessageWithCurrentAttachments()
190 message = MessageData.createDraftSmsMessage(mConversationId, mSelfId, in createMessageWithCurrentAttachments()
556 final MessageData optionalIncomingDraft, boolean clearLocalDraft) { in loadFromStorage()
589 final MessageData message = createMessageWithCurrentAttachments(false /* clearLocalCopy */); in saveToStorageInternal()
604 public MessageData prepareMessageForSending(final BindingBase<DraftMessageData> binding) { in prepareMessageForSending()
610 final MessageData messageToSend = in prepareMessageForSending()
623 final MessageData message, final ConversationListItemData conversation) { in onReadDraftDataSucceeded()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java40 import com.android.messaging.datamodel.data.MessageData;
77 final MessageData message = MessageData.createDraftSmsMessage(conversationId, selfId, in testWriteDraft()
94 final MessageData actual = BugleDatabaseOperations.readMessage(db, messageId); in testWriteDraft()
136 final MessageData message = MessageData.createDraftSmsMessage(conversationId, selfId, in testReadDraft()
173 final MessageData blank = BugleDatabaseOperations.readDraftMessageData(db, in testReadDraftForNewConversation()
194 final MessageData actual = BugleDatabaseOperations.readDraftMessageData(db, conversationId, in testReadDraftForNewConversation()
237 final MessageData message = MessageData.createDraftSmsMessage(conversationId, selfId, in testWriteAndReadDraft()
295 MessageData initial = MessageData.createDraftSmsMessage(conversationId, selfId, in testUpdateDraft()
306 final MessageData message = MessageData.createDraftSmsMessage(conversationId, selfId, in testUpdateDraft()
321 final MessageData actual = BugleDatabaseOperations.readDraftMessageData(db, in testUpdateDraft()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java47 import com.android.messaging.datamodel.data.MessageData;
315 case MessageData.BUGLE_STATUS_INCOMING_AUTO_DOWNLOADING: in updateViewContent()
316 case MessageData.BUGLE_STATUS_INCOMING_MANUAL_DOWNLOADING: in updateViewContent()
317 case MessageData.BUGLE_STATUS_INCOMING_RETRYING_AUTO_DOWNLOAD: in updateViewContent()
318 case MessageData.BUGLE_STATUS_INCOMING_RETRYING_MANUAL_DOWNLOAD: in updateViewContent()
323 case MessageData.BUGLE_STATUS_INCOMING_YET_TO_MANUAL_DOWNLOAD: in updateViewContent()
334 case MessageData.BUGLE_STATUS_INCOMING_EXPIRED_OR_NOT_AVAILABLE: in updateViewContent()
341 case MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED: in updateViewContent()
352 case MessageData.BUGLE_STATUS_OUTGOING_YET_TO_SEND: in updateViewContent()
353 case MessageData.BUGLE_STATUS_OUTGOING_SENDING: in updateViewContent()
[all …]
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationService.java38 import com.android.messaging.datamodel.data.MessageData;
276 case MessageData.BUGLE_STATUS_INCOMING_AUTO_DOWNLOADING: in updateViewContent()
277 case MessageData.BUGLE_STATUS_INCOMING_MANUAL_DOWNLOADING: in updateViewContent()
278 case MessageData.BUGLE_STATUS_INCOMING_RETRYING_AUTO_DOWNLOAD: in updateViewContent()
279 case MessageData.BUGLE_STATUS_INCOMING_RETRYING_MANUAL_DOWNLOAD: in updateViewContent()
284 case MessageData.BUGLE_STATUS_INCOMING_YET_TO_MANUAL_DOWNLOAD: in updateViewContent()
291 case MessageData.BUGLE_STATUS_INCOMING_EXPIRED_OR_NOT_AVAILABLE: in updateViewContent()
299 case MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED: in updateViewContent()
307 case MessageData.BUGLE_STATUS_OUTGOING_YET_TO_SEND: in updateViewContent()
308 case MessageData.BUGLE_STATUS_OUTGOING_SENDING: in updateViewContent()
[all …]
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsFailureException.java19 import com.android.messaging.datamodel.data.MessageData;
52 this.rawStatus = MessageData.RAW_TELEPHONY_STATUS_UNDEFINED; in MmsFailureException()
72 this.rawStatus = MessageData.RAW_TELEPHONY_STATUS_UNDEFINED; in MmsFailureException()
85 this.rawStatus = MessageData.RAW_TELEPHONY_STATUS_UNDEFINED; in MmsFailureException()
100 this.rawStatus = MessageData.RAW_TELEPHONY_STATUS_UNDEFINED; in MmsFailureException()
/packages/apps/Messaging/src/com/android/messaging/ui/
DUIIntents.java30 import com.android.messaging.datamodel.data.MessageData;
125 final String conversationId, final MessageData draft) { in launchConversationActivity()
134 final String conversationId, final MessageData draft, final Bundle activityOptions, in launchConversationActivity()
154 final MessageData draft); in launchCreateNewConversationActivity()
217 public abstract void launchForwardMessageActivity(Context context, MessageData message); in launchForwardMessageActivity()
309 final String conversationId, final MessageData draft); in getPendingIntentForConversationActivity()
315 final String conversationId, final MessageData draft); in getIntentForConversationActivity()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java38 import com.android.messaging.datamodel.data.MessageData;
498 Integer.toString(MessageData.BUGLE_STATUS_OUTGOING_DRAFT), in deleteConversation()
578 final MessageData message = readMessage(dbWrapper, messageId); in updateConversationMetadataInTransaction()
618 static void addSnippetTextAndPreviewToContentValues(final MessageData message, in addSnippetTextAndPreviewToContentValues()
644 final MessageData message, final String conversationId, final ContentValues values) { in addSelfIdAutoSwitchInfoToContentValues()
718 final MessageData draftMessage) { in updateConversationDraftSnippetAndPreviewInTransaction()
1010 public static MessageData readMessage(final DatabaseWrapper dbWrapper, final String messageId) { in readMessage()
1012 final MessageData message = readMessageData(dbWrapper, messageId); in readMessage()
1041 public static MessageData readMessageData(final DatabaseWrapper dbWrapper, in readMessageData()
1044 MessageData message = null; in readMessageData()
[all …]
DNoConfirmationSmsSendService.java29 import com.android.messaging.datamodel.data.MessageData;
112 MessageData messageData = null; in onHandleIntent()
118 messageData = MessageData.createDraftMmsMessage(conversationId, selfId, message, in onHandleIntent()
125 messageData = MessageData.createDraftSmsMessage(conversationId, selfId, in onHandleIntent()
DNotificationState.java23 import com.android.messaging.datamodel.data.MessageData;
51 MessageData.BUGLE_STATUS_OUTGOING_FAILED + " OR " +
53 MessageData.BUGLE_STATUS_INCOMING_DOWNLOAD_FAILED + ") AND " +
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java108 ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_INCOMING_COMPLETE}, in getConversationListCursor()
111 0, ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_INCOMING_COMPLETE}, in getConversationListCursor()
114 0, ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_OUTGOING_COMPLETE} in getConversationListCursor()
131 MessageData.BUGLE_STATUS_INCOMING_COMPLETE, "Alice", null, in getConversationMessageCursor()
135 MessageData.BUGLE_STATUS_OUTGOING_COMPLETE, "Bob", null, in getConversationMessageCursor()
139 MessageData.BUGLE_STATUS_OUTGOING_COMPLETE, "Alice", null, in getConversationMessageCursor()
143 MessageData.BUGLE_STATUS_OUTGOING_COMPLETE, "Alice", null, in getConversationMessageCursor()
DConversationMessageDataTest.java24 import com.android.messaging.datamodel.data.MessageData;
42 MessageData.BUGLE_STATUS_INCOMING_COMPLETE), data.getIsIncoming()); in testBindFirstMessage()
58 MessageData.BUGLE_STATUS_INCOMING_COMPLETE), data.getIsIncoming()); in testBindTwice()
69 MessageData.BUGLE_STATUS_INCOMING_COMPLETE), data.getIsIncoming()); in testBindTwice()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DComposeMessageViewTest.java37 import com.android.messaging.datamodel.data.MessageData;
104 final MessageData message = MessageData.createDraftSmsMessage("fake_id", "just_a_self_id", in testSend()
155 final MessageData message = MessageData.createDraftSmsMessage("fake_id", "just_a_self_id", in testNotDefaultSms()

12