/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | DeleteMessageAction.java | 39 public static void deleteMessage(final String messageId) { in deleteMessage() argument 40 final DeleteMessageAction action = new DeleteMessageAction(messageId); in deleteMessage() 46 private DeleteMessageAction(final String messageId) { in DeleteMessageAction() argument 48 actionParameters.putString(KEY_MESSAGE_ID, messageId); in DeleteMessageAction() 63 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in doBackgroundWork() local 65 if (!TextUtils.isEmpty(messageId)) { in doBackgroundWork() 67 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in doBackgroundWork() 70 int count = BugleDatabaseOperations.deleteMessage(db, messageId); in doBackgroundWork() 73 + messageId); in doBackgroundWork() 76 + messageId); in doBackgroundWork() [all …]
|
D | DownloadMmsAction.java | 67 static boolean queueMmsForDownloadInBackground(final String messageId, in queueMmsForDownloadInBackground() argument 72 return action.queueAction(messageId, processingAction); in queueMmsForDownloadInBackground() 111 protected boolean queueAction(final String messageId, final Action processingAction) { in queueAction() argument 112 actionParameters.putString(KEY_MESSAGE_ID, messageId); in queueAction() 116 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction() 141 updateMessageStatus(notificationUri, messageId, conversationId, in queueAction() 151 "DownloadMmsAction: Queued download of MMS message " + messageId); in queueAction() 155 LogUtil.w(TAG, "DownloadMmsAction: Download of MMS message " + messageId in queueAction() 159 updateMessageStatus(notificationUri, messageId, conversationId, in queueAction() 166 messageId, message.getMmsTransactionId(), in queueAction() [all …]
|
D | SendMessageAction.java | 58 static boolean queueForSendInBackground(final String messageId, in queueForSendInBackground() argument 61 return action.queueAction(messageId, processingAction); in queueForSendInBackground() 96 private boolean queueAction(final String messageId, final Action processingAction) { in queueAction() argument 97 actionParameters.putString(KEY_MESSAGE_ID, messageId); in queueAction() 102 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction() 148 LogUtil.d(TAG, "SendMessageAction: Queued SMS message " + messageId in queueAction() 160 LogUtil.d(TAG, "SendMessageAction: Queued MMS message " + messageId in queueAction() 186 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in doBackgroundWork() local 194 + messageId + " in conversation " + message.getConversationId()); in doBackgroundWork() 225 updateMessageUri(messageId, updatedMessageUri); in doBackgroundWork() [all …]
|
D | ProcessDownloadedMmsAction.java | 97 final String messageId = extras.getString(DownloadMmsAction.EXTRA_MESSAGE_ID); in processMessageDownloaded() local 102 Assert.notNull(messageId); in processMessageDownloaded() 111 params.putString(KEY_MESSAGE_ID, messageId); in processMessageDownloaded() 137 public static void processMessageDownloadFastFailed(final String messageId, in processMessageDownloadFastFailed() argument 142 Assert.notNull(messageId); in processMessageDownloadFastFailed() 150 params.putString(KEY_MESSAGE_ID, messageId); in processMessageDownloadFastFailed() 164 public static void processDownloadActionFailure(final String messageId, final int status, in processDownloadActionFailure() argument 167 Assert.notNull(messageId); in processDownloadActionFailure() 174 params.putString(KEY_MESSAGE_ID, messageId); in processDownloadActionFailure() 185 public static void sendDeferredRespStatus(final String messageId, final String transactionId, in sendDeferredRespStatus() argument [all …]
|
D | RedownloadMmsAction.java | 44 public static void redownloadMessage(final String messageId) { in redownloadMessage() argument 45 final RedownloadMmsAction action = new RedownloadMmsAction(messageId); in redownloadMessage() 53 final Context context, final String messageId) { in getPendingIntentForRedownloadMms() argument 54 final Action action = new RedownloadMmsAction(messageId); in getPendingIntentForRedownloadMms() 65 RedownloadMmsAction(final String messageId) { in RedownloadMmsAction() argument 67 actionParameters.putString(KEY_MESSAGE_ID, messageId); in RedownloadMmsAction() 75 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in executeAction() local 79 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction()
|
D | ResendMessageAction.java | 40 public static void resendMessage(final String messageId) { in resendMessage() argument 41 final ResendMessageAction action = new ResendMessageAction(messageId); in resendMessage() 51 ResendMessageAction(final String messageId) { in ResendMessageAction() argument 53 actionParameters.putString(KEY_MESSAGE_ID, messageId); in ResendMessageAction() 61 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in executeAction() local 65 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction() 75 LogUtil.i(TAG, "ResendMessageAction: Resending message " + messageId in executeAction() 95 String error = "ResendMessageAction: Cannot resend message " + messageId + "; "; in executeAction()
|
D | ProcessSentMessageAction.java | 99 public static void processMessageSentFastFailed(final String messageId, in processMessageSentFastFailed() argument 106 params.putString(KEY_MESSAGE_ID, messageId); in processMessageSentFastFailed() 127 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in executeAction() local 186 if (messageId != null) { in executeAction() 190 messageId, updatedMessageUri, status, rawStatus, isSms, this, subId, in executeAction() 201 static void processResult(final String messageId, Uri updatedMessageUri, int status, in processResult() argument 205 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in processResult() 208 LogUtil.w(TAG, "ProcessSentMessageAction: Sent message " + messageId in processResult()
|
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
D | SendCdmaCmasMessages.java | 56 public static void testSendCmasPresAlert(Activity activity, int messageId) { in testSendCmasPresAlert() argument 58 SmsEnvelope.SERVICE_CATEGORY_CMAS_PRESIDENTIAL_LEVEL_ALERT, messageId, "en", in testSendCmasPresAlert() 70 public static void testSendCmasExtremeAlert(Activity activity, int messageId) { in testSendCmasExtremeAlert() argument 72 SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT, messageId, "en", in testSendCmasExtremeAlert() 84 public static void testSendCmasSevereAlert(Activity activity, int messageId) { in testSendCmasSevereAlert() argument 86 SmsEnvelope.SERVICE_CATEGORY_CMAS_SEVERE_THREAT, messageId, "en", in testSendCmasSevereAlert() 98 public static void testSendCmasAmberAlert(Activity activity, int messageId) { in testSendCmasAmberAlert() argument 100 SmsEnvelope.SERVICE_CATEGORY_CMAS_CHILD_ABDUCTION_EMERGENCY, messageId, "en", in testSendCmasAmberAlert() 112 public static void testSendCmasMonthlyTest(Activity activity, int messageId) { in testSendCmasMonthlyTest() argument 114 SmsEnvelope.SERVICE_CATEGORY_CMAS_TEST_MESSAGE, messageId, "en", in testSendCmasMonthlyTest() [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceStub.java | 135 final long messageId = attachment.mMessageKey; in loadAttachment() local 140 cb.loadAttachmentStatus(messageId, attachmentId, in loadAttachment() 148 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.SUCCESS, in loadAttachment() 154 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.IN_PROGRESS, 0); in loadAttachment() 167 new String[] {Long.toString(messageId)}, null, 0, -1L); in loadAttachment() 182 cb.loadAttachmentStatus(messageId, attachmentId, in loadAttachment() 220 new MessageRetrievalListenerBridge(messageId, attachmentId, cb)); in loadAttachment() 233 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.SUCCESS, 0); in loadAttachment() 262 public MessageRetrievalListenerBridge(final long messageId, final long attachmentId, in MessageRetrievalListenerBridge() argument 264 mMessageId = messageId; in MessageRetrievalListenerBridge() [all …]
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapEmailProvider.java | 77 abstract protected void WriteMessageToStream(long accountId, long messageId, in WriteMessageToStream() argument 146 long messageId = Long.valueOf(uri.getLastPathSegment()); in readDataFromPipe() local 148 UpdateMimeMessageFromStream(fIn, accountId, messageId); in readDataFromPipe() 176 long messageId) throws IOException; in UpdateMimeMessageFromStream() argument 196 long messageId = Long.parseLong(segments.get(2)); in writeDataToPipe() local 210 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout); in writeDataToPipe() 260 protected void onMessageChanged(String accountId, String messageId) { in onMessageChanged() argument 270 if(messageId == null) in onMessageChanged() 274 … newUri = BluetoothMapContract.buildMessageUriWithId(mAuthority,accountId, messageId); in onMessageChanged() 277 …if(D) Log.d(TAG,"onMessageChanged() accountId = " + accountId + " messageId = " + messageId + " UR… in onMessageChanged() [all …]
|
D | BluetoothMapIMProvider.java | 127 protected void onMessageChanged(String accountId, String messageId) { in onMessageChanged() argument 136 if(messageId == null) in onMessageChanged() 141 messageId); in onMessageChanged() 145 + " messageId = " + messageId + " URI: " + newUri); in onMessageChanged() 204 String messageId = uri.getLastPathSegment(); in delete() local 205 if (messageId == null) in delete() 215 return deleteMessage(accountId, messageId); in delete() 231 abstract protected int deleteMessage(String accountId, String messageId); in deleteMessage() argument 515 Long messageId = values.getAsLong(BluetoothMapContract.MessageColumns._ID); in update() local 516 if(messageId == null) { in update() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleDatabaseOperations.java | 559 final String conversationId, final String messageId, final long latestTimestamp, in updateConversationMetadataInTransaction() argument 566 values.put(ConversationColumns.LATEST_MESSAGE_ID, messageId); in updateConversationMetadataInTransaction() 578 final MessageData message = readMessage(dbWrapper, messageId); in updateConversationMetadataInTransaction() 600 final String conversationId, final String messageId, final long latestTimestamp, in updateConversationMetadataInTransaction() argument 604 db, conversationId, messageId, latestTimestamp, keepArchived, null, in updateConversationMetadataInTransaction() 789 final String messageId, final ContentValues values) { in updateMessageRowIfExists() argument 792 messageId, values); in updateMessageRowIfExists() 797 final String messageId, final ContentValues values) { in updateMessageRow() argument 799 final boolean exists = updateMessageRowIfExists(dbWrapper, messageId, values); in updateMessageRow() 1005 public static MessageData readMessage(final DatabaseWrapper dbWrapper, final String messageId) { in readMessage() argument [all …]
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ContactMultiDeletionInteraction.java | 216 final int messageId; in onLoadFinished() local 219 messageId = R.string.batch_delete_multiple_accounts_confirmation; in onLoadFinished() 221 messageId = R.string.batch_delete_read_only_contact_confirmation; in onLoadFinished() 224 messageId = R.string.single_delete_confirmation; in onLoadFinished() 227 messageId = R.string.batch_delete_confirmation; in onLoadFinished() 239 showDialog(messageId, positiveButtonId, contactIdArray); in onLoadFinished() 250 private void showDialog(int messageId, int positiveButtonId, final long[] contactIds) { in showDialog() argument 253 .setMessage(messageId) in showDialog()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastConfigService.java | 84 int messageId = Integer.decode(channelRange.trim()); in setChannelRange() local 86 if (DBG) log("enabling emergency message ID " + messageId); in setChannelRange() 87 manager.enableCellBroadcast(messageId, in setChannelRange() 90 if (DBG) log("disabling emergency message ID " + messageId); in setChannelRange() 91 manager.disableCellBroadcast(messageId, in setChannelRange() 137 int messageId = message.getServiceCategory(); in isEmergencyAlertMessage() local 143 if (messageId >= startId && messageId <= endId) { in isEmergencyAlertMessage() 148 if (emergencyMessageId == messageId) { in isEmergencyAlertMessage()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailMessageCursor.java | 68 final long messageId = cursor.getLong(cursor.getColumnIndex(BaseColumns._ID)); in EmailMessageCursor() local 71 final Uri htmlUri = Body.getBodyHtmlUriForMessageWithId(messageId); in EmailMessageCursor() 83 LogUtils.v(LogUtils.TAG, e, "Did not find html body for message %d", messageId); in EmailMessageCursor() 87 final Uri textUri = Body.getBodyTextUriForMessageWithId(messageId); in EmailMessageCursor() 98 LogUtils.v(LogUtils.TAG, e, "Did not find text body for message %d", messageId); in EmailMessageCursor()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | EmailContent.java | 539 public static Body restoreBodyWithMessageId(Context context, long messageId) { in restoreBodyWithMessageId() argument 542 new String[] {Long.toString(messageId)}, null); in restoreBodyWithMessageId() 550 public static long lookupBodyIdWithMessageId(Context context, long messageId) { in lookupBodyIdWithMessageId() argument 553 new String[] {Long.toString(messageId)}, null, ID_PROJECTION_COLUMN, -1L); in lookupBodyIdWithMessageId() 561 public static void updateBodyWithMessageId(Context context, long messageId, in updateBodyWithMessageId() argument 564 long bodyId = lookupBodyIdWithMessageId(context, messageId); in updateBodyWithMessageId() 565 values.put(BodyColumns.MESSAGE_KEY, messageId); in updateBodyWithMessageId() 575 public static long restoreBodySourceKey(Context context, long messageId) { in restoreBodySourceKey() argument 578 BodyColumns.MESSAGE_KEY + "=?", new String[] {Long.toString(messageId)}, null, in restoreBodySourceKey() 582 public static Uri getBodyTextUriForMessageWithId(long messageId) { in getBodyTextUriForMessageWithId() argument [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ConversationData.java | 92 final long messageId = c.getLong(0); in getPositions() local 93 if (idsSet.contains(messageId)) { in getPositions() 651 final String messageId) { in downloadMessage() argument 653 Assert.notNull(messageId); in downloadMessage() 654 RedownloadMmsAction.redownloadMessage(messageId); in downloadMessage() 657 public void resendMessage(final BindingBase<ConversationData> binding, final String messageId) { in resendMessage() argument 659 Assert.notNull(messageId); in resendMessage() 660 ResendMessageAction.resendMessage(messageId); in resendMessage() 663 public void deleteMessage(final BindingBase<ConversationData> binding, final String messageId) { in deleteMessage() argument 665 Assert.notNull(messageId); in deleteMessage() [all …]
|
/packages/apps/Camera2/src/com/android/camera/session/ |
D | CaptureSessionManagerImpl.java | 159 public void notifyTaskProgressText(final Uri uri, final int messageId) { in notifyTaskProgressText() argument 165 listener.onSessionProgressText(uri, messageId); in notifyTaskProgressText() 331 Integer messageId = mFailedSessionMessages.get(uri); in getErrorMessageId() local 332 if (messageId != null) { in getErrorMessageId() 333 return messageId; in getErrorMessageId()
|
/packages/apps/Settings/src/com/android/settings/ |
D | EncryptionInterstitial.java | 190 final int messageId; in onCreateDialog() local 194 messageId = R.string.encrypt_talkback_dialog_message_pattern; in onCreateDialog() 199 messageId = R.string.encrypt_talkback_dialog_message_pin; in onCreateDialog() 203 messageId = R.string.encrypt_talkback_dialog_message_password; in onCreateDialog() 222 .setMessage(getString(messageId, exampleAccessibility)) in onCreateDialog()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 300 public static void deleteAllAttachmentFiles(Context context, long accountId, long messageId) { in deleteAllAttachmentFiles() argument 301 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, messageId); in deleteAllAttachmentFiles() 326 long messageId) { in deleteAllCachedAttachmentFiles() argument 327 final Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, messageId); in deleteAllCachedAttachmentFiles() 360 long messageId = c.getLong(Message.ID_PROJECTION_COLUMN); in deleteAllMailboxAttachmentFiles() local 361 deleteAllAttachmentFiles(context, accountId, messageId); in deleteAllMailboxAttachmentFiles()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 211 public static Body setupBody(long messageId, String textContent, String htmlContent, in setupBody() argument 214 body.mMessageKey = messageId; in setupBody() 217 body.mSourceKey = messageId + 0x1000; in setupBody() 235 public static Attachment setupAttachment(long messageId, String fileName, long length, in setupAttachment() argument 242 att.mMessageKey = messageId; in setupAttachment() 249 att.mAccountKey = messageId + 0x1000; in setupAttachment() 265 public static Attachment setupAttachment(long messageId, String fileName, long length, in setupAttachment() argument 267 return setupAttachment(messageId, fileName, length, 0, saveIt, context); in setupAttachment()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationFragment.java | 308 final String messageId = data.getMessageId(); 329 deleteMessage(messageId); 334 retryDownload(messageId); 340 retrySend(messageId); 1108 public void retryDownload(final String messageId) { in retryDownload() argument 1110 mBinding.getData().downloadMessage(mBinding, messageId); in retryDownload() 1117 public void retrySend(final String messageId) { in retrySend() argument 1120 mBinding.getData().resendMessage(mBinding, messageId); in retrySend() 1127 retrySend(messageId); in retrySend() 1134 void deleteMessage(final String messageId) { in deleteMessage() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessageMime.java | 148 private String messageId = null; field in BluetoothMapbMessageMime 275 public void setMessageId(String messageId) { in setMessageId() argument 276 this.messageId = messageId; in setMessageId() 279 return messageId; in getMessageId() 401 if(messageId != null) in encodeHeaders() 402 sb.append("Message-Id: ").append(messageId).append("\r\n"); in encodeHeaders() 546 messageId = headerValue; in parseMimeHeaders()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeMessage.java | 370 public void setMessageId(String messageId) throws MessagingException { in setMessageId() argument 371 setHeader("Message-ID", messageId); in setMessageId() 382 String messageId = getFirstHeader("Message-ID"); in getMessageId() local 383 if (messageId == null && !mInhibitLocalMessageId) { in getMessageId() 384 messageId = generateMessageId(); in getMessageId() 385 setMessageId(messageId); in getMessageId() 387 return messageId; in getMessageId()
|
/packages/services/Telephony/src/com/android/phone/common/mail/internet/ |
D | MimeMessage.java | 369 public void setMessageId(String messageId) throws MessagingException { in setMessageId() argument 370 setHeader("Message-ID", messageId); in setMessageId() 381 String messageId = getFirstHeader("Message-ID"); in getMessageId() local 382 if (messageId == null && !mInhibitLocalMessageId) { in getMessageId() 383 messageId = generateMessageId(); in getMessageId() 384 setMessageId(messageId); in getMessageId() 386 return messageId; in getMessageId()
|