Home
last modified time | relevance | path

Searched refs:MmsUtils (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessDownloadedMmsAction.java46 import com.android.messaging.sms.MmsUtils;
226 MmsUtils.sendNotifyResponseForMmsDownload( in doBackgroundWork()
229 MmsUtils.stringToBytes(transactionId, "UTF-8"), in doBackgroundWork()
240 int rawStatus = MmsUtils.PDU_HEADER_VALUE_UNDEFINED; in doBackgroundWork()
271 if (MmsUtils.isDumpMmsEnabled()) { in doBackgroundWork()
272 MmsUtils.dumpPdu(downloadedData, retrieveConf); in doBackgroundWork()
290 final MmsUtils.StatusPlusUri result = in doBackgroundWork()
291 MmsUtils.insertDownloadedMessageAndSendResponse(context, in doBackgroundWork()
300 status = MmsUtils.MMS_REQUEST_MANUAL_RETRY; in doBackgroundWork()
304 status = MmsUtils.MMS_REQUEST_MANUAL_RETRY; in doBackgroundWork()
[all …]
DProcessSentMessageAction.java40 import com.android.messaging.sms.MmsUtils;
133 int status = actionParameters.getInt(KEY_STATUS, MmsUtils.MMS_REQUEST_MANUAL_RETRY); in executeAction()
135 MmsUtils.PDU_HEADER_VALUE_UNDEFINED); in executeAction()
161 final MmsUtils.StatusPlusUri result = in executeAction()
162 MmsUtils.updateSentMmsMessageStatus(context, messageUri, sendConf); in executeAction()
217 final MessageData update = MmsUtils.readSendingMmsMessage(updatedMessageUri, in processResult()
232 status = MmsUtils.MMS_REQUEST_MANUAL_RETRY; in processResult()
239 if (status == MmsUtils.MMS_REQUEST_SUCCEEDED) { in processResult()
242 } else if (status == MmsUtils.MMS_REQUEST_AUTO_RETRY in processResult()
257 if (status != MmsUtils.MMS_REQUEST_SUCCEEDED) { in processResult()
[all …]
DReceiveMmsMessageAction.java36 import com.android.messaging.sms.MmsUtils;
77 final DatabaseMessages.MmsMessage mms = MmsUtils.processReceivedPdu( in executeAction()
81 final List<String> recipients = MmsUtils.getRecipientsByThread(mms.mThreadId); in executeAction()
82 String from = MmsUtils.getMmsSender(recipients, mms.getUri()); in executeAction()
91 final boolean autoDownload = (!blocked && MmsUtils.allowMmsAutoRetrieve(subId)); in executeAction()
113 message = MmsUtils.createMmsMessage(mms, conversationId, participantId, selfId, in executeAction()
166 MmsUtils.sendNotifyResponseForMmsDownload( in doBackgroundWork()
169 MmsUtils.stringToBytes(transactionId, "UTF-8"), in doBackgroundWork()
DSendMessageAction.java37 import com.android.messaging.sms.MmsUtils;
212 final boolean deliveryReportRequired = MmsUtils.isDeliveryReportRequired(subId); in doBackgroundWork()
214 status = MmsUtils.sendSmsMessage(recipient, messageText, messageUri, subId, in doBackgroundWork()
228 updatedMessageUri = MmsUtils.insertSendingMmsMessage(context, recipients, in doBackgroundWork()
246 final MmsUtils.StatusPlusUri result = MmsUtils.sendMmsMessage(context, subId, in doBackgroundWork()
248 if (result == MmsUtils.STATUS_PENDING) { in doBackgroundWork()
258 status = MmsUtils.MMS_REQUEST_MANUAL_RETRY; in doBackgroundWork()
302 MmsUtils.MMS_REQUEST_MANUAL_RETRY, MessageData.RAW_TELEPHONY_STATUS_UNDEFINED, in processBackgroundFailure()
362 if (!MmsUtils.updateSmsMessageSendingStatus(context, message.getSmsMessageUri(), in updateMessageAndStatus()
370 if (!MmsUtils.updateMmsMessageSendingStatus(context, message.getSmsMessageUri(), in updateMessageAndStatus()
DDownloadMmsAction.java35 import com.android.messaging.sms.MmsUtils;
261 final MmsUtils.StatusPlusUri status = MmsUtils.downloadMmsMessage(context, in doBackgroundWork()
264 if (status == MmsUtils.STATUS_PENDING) { in doBackgroundWork()
299 MmsUtils.MMS_REQUEST_MANUAL_RETRY, MessageData.RAW_TELEPHONY_STATUS_UNDEFINED, in processBackgroundFailure()
311 MmsUtils.clearMmsStatus(context, messageUri); in updateMessageStatus()
DSyncMessageBatch.java39 import com.android.messaging.sms.MmsUtils;
260 final int bugleStatus = MmsUtils.bugleStatusForMms(isOutgoing, isNotification, mms.mType); in storeMms()
268 final MessageData message = MmsUtils.createMmsMessage(mms, conversationId, participantId, in storeMms()
366 for (int start = 0; start < totalIds; start += MmsUtils.MAX_IDS_PER_QUERY) { in batchDelete()
367 final int end = Math.min(start + MmsUtils.MAX_IDS_PER_QUERY, totalIds); //excluding in batchDelete()
373 MmsUtils.getSqlInOperand(count)); in batchDelete()
DSyncMessagesAction.java41 import com.android.messaging.sms.MmsUtils;
533 for (int start = 0; start < totalIds; start += MmsUtils.MAX_IDS_PER_QUERY) { in loadMmsParts()
534 final int end = Math.min(start + MmsUtils.MAX_IDS_PER_QUERY, totalIds); //excluding in loadMmsParts()
542 MmsUtils.getSqlInOperand(count)); in loadMmsParts()
550 MmsUtils.MMS_PART_CONTENT_URI, in loadMmsParts()
613 return MmsUtils.getMmsSender(recipients, mms.mUri); in getMmsSender()
DInsertNewMessageAction.java36 import com.android.messaging.sms.MmsUtils;
266 final long threadId = MmsUtils.getOrCreateThreadId(Factory.get().getApplicationContext(), in createMessage()
308 final Uri messageUri = MmsUtils.insertSmsMessage(context, in insertBroadcastSmsMessage()
366 threadId = MmsUtils.getOrCreateSmsThreadId(context, recipient); in insertSendingSmsMessage()
379 final Uri messageUri = MmsUtils.insertSmsMessage(context, in insertSendingSmsMessage()
DDeleteConversationAction.java35 import com.android.messaging.sms.MmsUtils;
107 final int count = MmsUtils.deleteThread(threadId, cutoffTimestamp); in doBackgroundWork()
165 int count = MmsUtils.deleteMessage(messageUri); in deleteConversationMessagesFromTelephony()
DDeleteMessageAction.java30 import com.android.messaging.sms.MmsUtils;
85 count = MmsUtils.deleteMessage(messageUri); in doBackgroundWork()
DMarkAsReadAction.java30 import com.android.messaging.sms.MmsUtils;
63 MmsUtils.updateSmsReadStatus(threadId, Long.MAX_VALUE); in executeAction()
DProcessDeliveryReportAction.java32 import com.android.messaging.sms.MmsUtils;
69 MmsUtils.updateSmsStatusAndDateSent(smsMessageUri, status, timeSentInMillis); in executeAction()
DBugleActionToasts.java27 import com.android.messaging.sms.MmsUtils;
57 if (!success && status == MmsUtils.MMS_REQUEST_MANUAL_RETRY) { in onSendMessageOrManualDownloadActionCompleted()
DGetOrCreateConversationAction.java30 import com.android.messaging.sms.MmsUtils;
102 final long threadId = MmsUtils.getOrCreateThreadId(Factory.get().getApplicationContext(), in executeAction()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSender.java185 MmsUtils.MMS_REQUEST_NO_RETRY, "Failed to compose PDU"); in writePduToTempFile()
189 MmsUtils.MMS_REQUEST_NO_RETRY, in writePduToTempFile()
199 MmsUtils.MMS_REQUEST_AUTO_RETRY, "Cannot create raw mms file"); in writePduToTempFile()
206 MmsUtils.MMS_REQUEST_MANUAL_RETRY, in writePduToTempFile()
296 return MmsUtils.MMS_REQUEST_AUTO_RETRY; in getErrorResultStatus()
301 return MmsUtils.MMS_REQUEST_MANUAL_RETRY; in getErrorResultStatus()
304 return MmsUtils.MMS_REQUEST_NO_RETRY; in getErrorResultStatus()
306 return MmsUtils.MMS_REQUEST_AUTO_RETRY; in getErrorResultStatus()
309 return MmsUtils.MMS_REQUEST_MANUAL_RETRY; in getErrorResultStatus()
DMmsFailureException.java39 Assert.isTrue(retryHint == MmsUtils.MMS_REQUEST_AUTO_RETRY in checkRetryHint()
40 || retryHint == MmsUtils.MMS_REQUEST_MANUAL_RETRY in checkRetryHint()
41 || retryHint == MmsUtils.MMS_REQUEST_NO_RETRY); in checkRetryHint()
DSmsReleaseStorage.java144 deleted = MmsUtils.deleteMediaMessages(); in deleteMessages()
152 deleted = MmsUtils.deleteMessagesOlderThan(cutOffTimestampInMillis); in deleteMessages()
DMmsUtils.java102 public class MmsUtils { class
1033 if (MmsUtils.hasSmsDateSentColumn()) { in parseReceivedSmsMessage()
1178 if (MmsUtils.hasSmsDateSentColumn()) { in updateSmsStatusAndDateSent()
1622 final long rowId = MmsUtils.parseRowIdFromMessageUri(mmsUri); in loadMms()
1726 final MessagePartData messagePart = MmsUtils.createMmsMessagePart(part); in createMmsMessage()
1919 final Uri inboxUri = MmsUtils.insertReceivedMmsMessage(context, retrieveConf, subId, in insertDownloadedMessageAndSendResponse()
2292 mms = MmsUtils.loadMms(messageUri);
2309 final Uri outboxUri = MmsUtils.insertSendReq(context, sendReq, subId, subPhoneNumber);
2328 final DatabaseMessages.MmsMessage mms = MmsUtils.loadMms(messageUri);
2333 message = MmsUtils.createMmsMessage(mms, conversationId, participantId, selfId,
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DMessageDetailsDialog.java35 import com.android.messaging.sms.MmsUtils;
129 if (data.getSentTimeStamp() != MmsUtils.INVALID_TIMESTAMP) { in getSmsMessageDetails()
191 if (!TextUtils.isEmpty(MmsUtils.cleanseMmsSubject(res, data.getMmsSubject()))) { in getMmsMessageDetails()
271 mms = MmsUtils.loadMms(Uri.parse(telephonyUri)); in appendDebugInfo()
289 final String recipientsString = MmsUtils.getRawRecipientIdsForThread(threadId); in appendDebugInfo()
296 final List<String> recipients = MmsUtils.getRecipientsByThread(threadId); in appendDebugInfo()
303 final String from = MmsUtils.getMmsSender(recipients, mms.getUri()); in appendDebugInfo()
/packages/apps/Messaging/src/com/android/messaging/ui/debug/
DDebugSmsMmsFromDumpFileDialogFragment.java41 import com.android.messaging.sms.MmsUtils;
131 if (dumpFileName.startsWith(MmsUtils.SMS_DUMP_PREFIX)) { in receiveFromDumpFile()
140 } else if (dumpFileName.startsWith(MmsUtils.MMS_DUMP_PREFIX)) { in receiveFromDumpFile()
141 final byte[] data = MmsUtils.createDebugNotificationInd(dumpFileName); in receiveFromDumpFile()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java45 import com.android.messaging.sms.MmsUtils;
195 if (MmsUtils.isDumpSmsEnabled()) { in deliverSmsIntent()
204 MmsUtils.parseReceivedSmsMessage(context, messages, errorCode); in deliverSmsMessages()
209 final long receivedTimestampMs = MmsUtils.getMessageDate(messages[0], nowInMillis); in deliverSmsMessages()
DSendStatusReceiver.java30 import com.android.messaging.sms.MmsUtils;
79 final SmsMessage smsMessage = MmsUtils.getSmsMessageFromDeliveryReport(intent); in onReceive()
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java38 import com.android.messaging.sms.MmsUtils;
236 || filename.startsWith(MmsUtils.MMS_DUMP_PREFIX) in doInBackgroundTimed()
237 || filename.startsWith(MmsUtils.SMS_DUMP_PREFIX)); in doInBackgroundTimed()
252 final String dumpFileName = MmsUtils.SMS_DUMP_PREFIX + Long.toString(id);
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/
DMmsUtils.java36 class MmsUtils { class
45 private MmsUtils() {} in MmsUtils() method in MmsUtils
DMessageUtils.java167 MmsUtils.isMms(cursor) in parseMessageAtPoint()
168 ? MmsUtils.parseMms(context, cursor) in parseMessageAtPoint()

12