Home
last modified time | relevance | path

Searched refs:messageUri (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSendMessageAction.java109 final Uri messageUri = message.getSmsMessageUri(); in queueAction() local
129 actionParameters.putParcelable(KEY_MESSAGE_URI, messageUri); in queueAction()
187 Uri messageUri = actionParameters.getParcelable(KEY_MESSAGE_URI); in doBackgroundWork() local
200 Assert.notNull(messageUri); in doBackgroundWork()
206 status = MmsUtils.sendSmsMessage(recipient, messageText, messageUri, subId, in doBackgroundWork()
212 if (messageUri == null) { in doBackgroundWork()
223 messageUri = updatedMessageUri; in doBackgroundWork()
229 + " with new uri " + messageUri); in doBackgroundWork()
233 if (messageUri != null) { in doBackgroundWork()
239 messageUri, extras); in doBackgroundWork()
[all …]
DDeleteConversationAction.java151 String messageUri = cursor.getString(0); in deleteConversationMessagesFromTelephony() local
153 messageUris.add(Uri.parse(messageUri)); in deleteConversationMessagesFromTelephony()
156 + messageUri); in deleteConversationMessagesFromTelephony()
164 for (Uri messageUri : messageUris) { in deleteConversationMessagesFromTelephony()
165 int count = MmsUtils.deleteMessage(messageUri); in deleteConversationMessagesFromTelephony()
169 + messageUri); in deleteConversationMessagesFromTelephony()
173 + messageUri); in deleteConversationMessagesFromTelephony()
DDeleteMessageAction.java82 final Uri messageUri = message.getSmsMessageUri(); in doBackgroundWork() local
83 if (messageUri != null) { in doBackgroundWork()
85 count = MmsUtils.deleteMessage(messageUri); in doBackgroundWork()
88 + messageUri); in doBackgroundWork()
92 + messageUri); in doBackgroundWork()
DInsertNewMessageAction.java307 final Uri messageUri = MmsUtils.insertSmsMessage(context, in insertBroadcastSmsMessage() local
315 if (messageUri != null && !TextUtils.isEmpty(messageUri.toString())) { in insertBroadcastSmsMessage()
318 message.updateSendingMessage(conversationId, messageUri, laterTimestamp); in insertBroadcastSmsMessage()
378 final Uri messageUri = MmsUtils.insertSmsMessage(context, in insertSendingSmsMessage() local
388 if (messageUri != null && !TextUtils.isEmpty(messageUri.toString())) { in insertSendingSmsMessage()
393 message.updateSendingMessage(conversationId, messageUri, timestamp); in insertSendingSmsMessage()
DProcessSentMessageAction.java77 public static void processMmsSent(final int resultCode, final Uri messageUri, in processMmsSent() argument
84 params.putParcelable(KEY_MESSAGE_URI, messageUri); in processMmsSent()
100 final Uri messageUri, final Uri updatedMessageUri, final int subId, final boolean isSms, in processMessageSentFastFailed() argument
107 params.putParcelable(KEY_MESSAGE_URI, messageUri); in processMessageSentFastFailed()
128 final Uri messageUri = actionParameters.getParcelable(KEY_MESSAGE_URI); in executeAction() local
162 MmsUtils.updateSentMmsMessageStatus(context, messageUri, sendConf); in executeAction()
DReceiveSmsMessageAction.java112 final Uri messageUri = context.getContentResolver().insert(Sms.Inbox.CONTENT_URI, in executeAction() local
115 if (messageUri != null) { in executeAction()
118 + "uri = " + messageUri); in executeAction()
142 message = MessageData.createReceivedSmsMessage(messageUri, conversationId, in executeAction()
159 + ", uri = " + messageUri); in executeAction()
DProcessDownloadedMmsAction.java334 final Uri messageUri = response.getParcelable(BUNDLE_MMS_URI); in processBackgroundResponse() local
339 final MessageData message = processResult(status, rawStatus, messageUri); in processBackgroundResponse()
372 final boolean failed = (messageUri == null); in processBackgroundResponse()
DDownloadMmsAction.java301 static void updateMessageStatus(final Uri messageUri, final String messageId, in updateMessageStatus() argument
307 MmsUtils.clearMmsStatus(context, messageUri); in updateMessageStatus()
DSyncMessageBatch.java291 DatabaseWrapper db, String messageUri, long threadId, String conversationId, in rethrowSQLiteConstraintExceptionWithDetails() argument
323 String errorMsg = "SQLiteConstraintException while inserting message for " + messageUri in rethrowSQLiteConstraintExceptionWithDetails()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSender.java67 public static void sendMms(final Context context, final int subId, final Uri messageUri, in sendMms() argument
71 messageUri, in sendMms()
95 final Uri messageUri = Uri.parse(contentLocation); in sendNotifyResponseForMmsDownload() local
99 messageUri, in sendNotifyResponseForMmsDownload()
124 final Uri messageUri = Uri.parse(contentLocation); in sendAcknowledgeForMmsDownload() local
128 messageUri, in sendAcknowledgeForMmsDownload()
146 private static void sendMms(final Context context, final int subId, final Uri messageUri, in sendMms() argument
154 messageUri, in sendMms()
DSmsSender.java185 final Uri messageUri) throws SmsException { in sendMessage() argument
191 " requestId=" + messageUri); in sendMessage()
221 sPendingMessageMap.put(messageUri, pendingResult); in sendMessage()
224 context, subId, dest, messages, serviceCenter, requireDeliveryReport, messageUri); in sendMessage()
245 sPendingMessageMap.remove(messageUri); in sendMessage()
256 final boolean requireDeliveryReport, final Uri messageUri) throws SmsException { in sendInternal() argument
272 messageUri, partId, subId), in sendInternal()
281 messageUri, partId, subId), in sendInternal()
DMmsUtils.java1182 public static long parseRowIdFromMessageUri(final Uri messageUri) { in parseRowIdFromMessageUri() argument
1184 if (messageUri != null) { in parseRowIdFromMessageUri()
1185 return ContentUris.parseId(messageUri); in parseRowIdFromMessageUri()
1919 Uri messageUri = null; in insertDownloadedMessageAndSendResponse() local
1952 messageUri = ContentUris.withAppendedId(Mms.CONTENT_URI, ContentUris.parseId(inboxUri)); in insertDownloadedMessageAndSendResponse()
1960 return new StatusPlusUri(status, retrieveStatus, messageUri); in insertDownloadedMessageAndSendResponse()
2088 final Uri messageUri, final Bundle extras) { in sendMmsMessage() argument
2095 messageUri, in sendMmsMessage()
2100 final SendReq sendReq = (SendReq) persister.load(messageUri); in sendMmsMessage()
2102 LogUtil.w(TAG, "MmsUtils: Sending MMS was deleted; uri = " + messageUri); in sendMmsMessage()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java283 public boolean deleteStoredMessage(String callingPkg, Uri messageUri)
285 LogUtil.d("deleteStoredMessage " + messageUri);
287 if (!isSmsMmsContentUri(messageUri)) {
288 LogUtil.e("deleteStoredMessage: invalid message URI: " + messageUri.toString());
297 messageUri, null/*where*/, null/*selectionArgs*/) != 1) {
338 public boolean updateStoredMessageStatus(String callingPkg, Uri messageUri,
340 LogUtil.d("updateStoredMessageStatus " + messageUri);
342 return updateMessageStatus(messageUri, statusValues);
373 public void sendStoredMessage(int subId, String callingPkg, Uri messageUri,
658 private boolean updateMessageStatus(Uri messageUri, ContentValues statusValues) { in updateMessageStatus() argument
[all …]
DDownloadRequest.java145 final Uri messageUri = persister.persist( in persistIfRequired() local
151 if (messageUri == null) { in persistIfRequired()
167 messageUri, in persistIfRequired()
183 return messageUri; in persistIfRequired()
DSendRequest.java177 final Uri messageUri = persister.persist( in persistIfRequired() local
183 if (messageUri == null) { in persistIfRequired()
220 if (SqliteWrapper.update(context, context.getContentResolver(), messageUri, values, in persistIfRequired()
224 return messageUri; in persistIfRequired()
DMmsRequest.java215 final Uri messageUri = persistIfRequired(context, result, response); in processResult() local
226 if (messageUri != null) { in processResult()
227 fillIn.putExtra("uri", messageUri.toString()); in processResult()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/
DMockUiProviderTests.java160 Uri messageUri; in testGetFolders() local
166 messageUri = Uri.parse(convFoldersCursor.getString(messageUriCol)); in testGetFolders()
167 messageUris.add(messageUri); in testGetFolders()
172 messageUri = Uri.parse(convFoldersCursor.getString(messageUriCol)); in testGetFolders()
173 messageUris.add(messageUri); in testGetFolders()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationActionUtils.java353 final Uri messageUri = message.uri; in getNotificationActionPendingIntent() local
365 final Intent intent = createReplyIntent(context, account, messageUri, false); in getNotificationActionPendingIntent()
379 final Intent intent = createReplyIntent(context, account, messageUri, true); in getNotificationActionPendingIntent()
422 final Uri messageUri = message.uri; in getWearNotificationActionPendingIntent() local
435 final Intent intent = createReplyIntent(context, account, messageUri, in getWearNotificationActionPendingIntent()
474 final Uri messageUri, final boolean isReplyAll) { in createReplyIntent() argument
475 final Intent intent = ComposeActivity.createReplyIntent(context, account, messageUri, in createReplyIntent()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessageData.java312 public static MessageData createSmsMessage(final String messageUri, final String participantId, in createSmsMessage() argument
326 message.mSmsMessageUri = Uri.parse(messageUri); in createSmsMessage()
334 public static MessageData createMmsMessage(final String messageUri, final String participantId, in createMmsMessage() argument
352 message.mSmsMessageUri = Uri.parse(messageUri); in createMmsMessage()
748 public final void updateSendingMessage(final String conversationId, final Uri messageUri, in updateSendingMessage() argument
751 mSmsMessageUri = messageUri; in updateSendingMessage()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSendStatusReceiver.java71 final Uri messageUri = intent.getData(); in onReceive() local
72 ProcessSentMessageAction.processMmsSent(resultCode, messageUri, in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DMmsFileProvider.java96 Uri messageUri = Mms.CONTENT_URI.buildUpon().appendEncodedPath(idStr).build(); in openFile() local
98 return openPipeHelper(messageUri, null, null, null, mPipeWriter); in openFile()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java406 final Uri messageUri, final boolean isReplyAll) { in createReplyIntent() argument
407 return createActionIntent(launcher, account, messageUri, isReplyAll ? REPLY_ALL : REPLY); in createReplyIntent()
414 final Uri messageUri) { in createForwardIntent() argument
415 return createActionIntent(launcher, account, messageUri, FORWARD); in createForwardIntent()
419 final Uri messageUri, final int action) { in createActionIntent() argument
423 updateActionIntent(account, messageUri, action, intent); in createActionIntent()
429 static Intent updateActionIntent(Account account, Uri messageUri, int action, Intent intent) { in updateActionIntent() argument
433 intent.putExtra(EXTRA_IN_REFERENCE_TO_MESSAGE_URI, messageUri); in updateActionIntent()
2608 Uri messageUri = null; in sendOrSaveMessage() local
2614 messageUri = result.getParcelable(UIProvider.MessageColumns.URI); in sendOrSaveMessage()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockUiProvider.java249 final String messageUri = getMockMessageUri(accountId, messageId); in createMessageDetailsMap() local
252 messageMap.put(MessageColumns.URI, messageUri); in createMessageDetailsMap()
260 messageMap.put(MessageColumns.ATTACHMENT_LIST_URI, messageUri + "/getAttachments"); in createMessageDetailsMap()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java420 final String messageUri = "content://xxx/message/" + messageId; in getRefMessageWithCc() local
423 messageValues[UIProvider.MESSAGE_URI_COLUMN] = messageUri; in getRefMessageWithCc()
431 messageValues[UIProvider.MESSAGE_ATTACHMENT_LIST_URI_COLUMN] = messageUri in getRefMessageWithCc()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAbstractActivityController.java1840 for (Uri messageUri : unreadMessageUris) {
1842 authority = messageUri.getAuthority();
1844 ops.add(ContentProviderOperation.newUpdate(messageUri)
1847 LogUtils.d(LOG_TAG, ". . Adding op: read=0, uri=%s", messageUri);

12