Home
last modified time | relevance | path

Searched refs:messageId (Results 1 – 25 of 100) sorted by relevance

1234

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDeleteMessageAction.java39 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 …]
DDownloadMmsAction.java67 static boolean queueMmsForDownloadInBackground(final String messageId, in queueMmsForDownloadInBackground() argument
72 return action.queueAction(messageId, processingAction); in queueMmsForDownloadInBackground()
113 protected boolean queueAction(final String messageId, final Action processingAction) { in queueAction() argument
114 actionParameters.putString(KEY_MESSAGE_ID, messageId); in queueAction()
118 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction()
144 updateMessageStatus(notificationUri, messageId, conversationId, in queueAction()
154 "DownloadMmsAction: Queued download of MMS message " + messageId); in queueAction()
158 LogUtil.w(TAG, "DownloadMmsAction: Download of MMS message " + messageId in queueAction()
162 updateMessageStatus(notificationUri, messageId, conversationId, in queueAction()
169 messageId, message.getMmsTransactionId(), in queueAction()
[all …]
DProcessDownloadedMmsAction.java98 final String messageId = extras.getString(DownloadMmsAction.EXTRA_MESSAGE_ID); in processMessageDownloaded() local
103 Assert.notNull(messageId); in processMessageDownloaded()
112 params.putString(KEY_MESSAGE_ID, messageId); in processMessageDownloaded()
139 public static void processMessageDownloadFastFailed(final String messageId, in processMessageDownloadFastFailed() argument
144 Assert.notNull(messageId); in processMessageDownloadFastFailed()
152 params.putString(KEY_MESSAGE_ID, messageId); in processMessageDownloadFastFailed()
166 public static void processDownloadActionFailure(final String messageId, final int status, in processDownloadActionFailure() argument
169 Assert.notNull(messageId); in processDownloadActionFailure()
176 params.putString(KEY_MESSAGE_ID, messageId); in processDownloadActionFailure()
187 public static void sendDeferredRespStatus(final String messageId, final String transactionId, in sendDeferredRespStatus() argument
[all …]
DSendMessageAction.java57 static boolean queueForSendInBackground(final String messageId, in queueForSendInBackground() argument
60 return action.queueAction(messageId, processingAction); in queueForSendInBackground()
95 private boolean queueAction(final String messageId, final Action processingAction) { in queueAction() argument
96 actionParameters.putString(KEY_MESSAGE_ID, messageId); in queueAction()
101 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction()
147 LogUtil.d(TAG, "SendMessageAction: Queued SMS message " + messageId in queueAction()
159 LogUtil.d(TAG, "SendMessageAction: Queued MMS message " + messageId in queueAction()
185 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in doBackgroundWork() local
193 + messageId + " in conversation " + message.getConversationId()); in doBackgroundWork()
224 updateMessageUri(messageId, updatedMessageUri); in doBackgroundWork()
[all …]
DResendMessageAction.java42 public static void resendMessage(final String messageId) { in resendMessage() argument
43 final ResendMessageAction action = new ResendMessageAction(messageId); in resendMessage()
53 ResendMessageAction(final String messageId) { in ResendMessageAction() argument
55 actionParameters.putString(KEY_MESSAGE_ID, messageId); in ResendMessageAction()
63 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in executeAction() local
67 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction()
77 LogUtil.i(TAG, "ResendMessageAction: Resending message " + messageId in executeAction()
100 String error = "ResendMessageAction: Cannot resend message " + messageId + "; "; in executeAction()
DRedownloadMmsAction.java46 public static void redownloadMessage(final String messageId) { in redownloadMessage() argument
47 final RedownloadMmsAction action = new RedownloadMmsAction(messageId); in redownloadMessage()
55 final Context context, final String messageId) { in getPendingIntentForRedownloadMms() argument
56 final Action action = new RedownloadMmsAction(messageId); in getPendingIntentForRedownloadMms()
67 RedownloadMmsAction(final String messageId) { in RedownloadMmsAction() argument
69 actionParameters.putString(KEY_MESSAGE_ID, messageId); in RedownloadMmsAction()
77 final String messageId = actionParameters.getString(KEY_MESSAGE_ID); in executeAction() local
81 MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in executeAction()
DProcessSentMessageAction.java99 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/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DBlePacketFactoryTest.java37 int messageId = 1; in testGetHeaderSize() local
54 assertThat(BlePacketFactory.getPacketHeaderSize(totalPackets, messageId, payloadSize)) in testGetHeaderSize()
61 int messageId = 1; in testGetTotalPackets_withVarintSize1_returnsCorrectPackets() local
70 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize1_returnsCorrectPackets()
77 int messageId = 1; in testGetTotalPackets_withVarintSize2_returnsCorrectPackets() local
86 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize2_returnsCorrectPackets()
93 int messageId = 1; in testGetTotalPackets_withVarintSize3_returnsCorrectPackets() local
102 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize3_returnsCorrectPackets()
109 int messageId = 1; in testGetTotalPackets_withVarintSize4_returnsCorrectPackets() local
118 assertThat(BlePacketFactory.getTotalPacketNumber(messageId, payloadSize, maxSize)) in testGetTotalPackets_withVarintSize4_returnsCorrectPackets()
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapEmailProvider.java75 protected abstract void WriteMessageToStream(long accountId, long messageId, in WriteMessageToStream() argument
143 long messageId = Long.valueOf(uri.getLastPathSegment()); in readDataFromPipe() local
145 UpdateMimeMessageFromStream(fIn, accountId, messageId); in readDataFromPipe()
175 long messageId) throws IOException; in UpdateMimeMessageFromStream() argument
198 long messageId = Long.parseLong(segments.get(2)); in writeDataToPipe() local
213 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout); in writeDataToPipe()
265 protected void onMessageChanged(String accountId, String messageId) { in onMessageChanged() argument
275 if (messageId == null) { in onMessageChanged()
279 messageId); in onMessageChanged()
283 Log.d(TAG, "onMessageChanged() accountId = " + accountId + " messageId = " + messageId in onMessageChanged()
[all …]
DBluetoothMapIMProvider.java125 protected void onMessageChanged(String accountId, String messageId) { in onMessageChanged() argument
134 if (messageId == null) { in onMessageChanged()
138 messageId); in onMessageChanged()
142 Log.d(TAG, "onMessageChanged() accountId = " + accountId + " messageId = " + messageId in onMessageChanged()
207 String messageId = uri.getLastPathSegment(); in delete() local
208 if (messageId == null) { in delete()
220 return deleteMessage(accountId, messageId); in delete()
238 protected abstract int deleteMessage(String accountId, String messageId); in deleteMessage() argument
530 Long messageId = values.getAsLong(BluetoothMapContract.MessageColumns._ID); in update() local
531 if (messageId == null) { in update()
[all …]
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/
DBlePacketFactory.java62 static List<BlePacket> makeBlePackets(byte[] payload, int messageId, int maxSize) in makeBlePackets() argument
66 int totalPackets = getTotalPacketNumber(messageId, payloadSize, maxSize); in makeBlePackets()
68 - getPacketHeaderSize(totalPackets, messageId, Math.min(payloadSize, maxSize)); in makeBlePackets()
76 .setMessageId(messageId) in makeBlePackets()
90 static int getPacketHeaderSize(int totalPackets, int messageId, int payloadSize) { in getPacketHeaderSize() argument
93 + getEncodedSize(messageId) + FIELD_NUMBER_ENCODING_SIZE in getPacketHeaderSize()
101 static int getTotalPacketNumber(int messageId, int payloadSize, int maxSize) in getTotalPacketNumber() argument
104 + getEncodedSize(messageId) + FIELD_NUMBER_ENCODING_SIZE in getTotalPacketNumber()
121 + messageId + ", payloadSize: " + payloadSize + ", maxSize: " + maxSize); in getTotalPacketNumber()
DBleDeviceMessageStream.java275 int messageId = packet.getMessageId(); in processPacket() local
277 mPendingData.getOrDefault(messageId, new ByteArrayOutputStream()); in processPacket()
278 mPendingData.putIfAbsent(messageId, currentPayloadStream); in processPacket()
291 + packet.getTotalPackets() + " for message " + messageId + ". Writing " in processPacket()
299 mPendingData.remove(messageId); in processPacket()
305 logd(TAG, "Received complete device message " + messageId + " of " + messageBytes.length in processPacket()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java559 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()
1010 public static MessageData readMessage(final DatabaseWrapper dbWrapper, final String messageId) { in readMessage() argument
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeHeader.java83 public final int messageId; field in IkeHeader
119 messageId = msgId; in IkeHeader()
155 messageId = buffer.getInt(); in IkeHeader()
171 messageId); in makeSkfHeaderFromSkHeader()
232 byteBuffer.put(flag).putInt(messageId).putInt(IKE_HEADER_LENGTH + encodedMessageBodyLen); in encodeToByteBuffer()
242 return exchangeStr + " " + reqOrResp + " " + messageId; in getBasicInfoString()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DContactMultiDeletionInteraction.java236 final int messageId; in onLoadFinished() local
239 messageId = R.string.batch_delete_multiple_accounts_confirmation; in onLoadFinished()
241 messageId = R.string.batch_delete_read_only_contact_confirmation; in onLoadFinished()
244 messageId = R.string.single_delete_confirmation; in onLoadFinished()
247 messageId = R.string.batch_delete_confirmation; in onLoadFinished()
260 showDialog(messageId, positiveButtonId, contactIdArray, namesArray); in onLoadFinished()
271 private void showDialog(int messageId, int positiveButtonId, final long[] contactIds, in showDialog() argument
275 .setMessage(messageId) in showDialog()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationData.java92 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 …]
DConversationMessageData.java254 final String messageId) {
258 textPart.updateMessageId(messageId);
267 attachmentPart.updateMessageId(messageId);
281 final String messageId) {
291 messageId));
302 messageId);
317 final String messageId) {
334 messageId));
339 + messageId + "), expected " + partsCount + " parts");
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java1392 IkeSaRecord ikeSaRecord, int messageId, @ErrorType int errorType) { in buildAndSendErrorNotificationResponse() argument
1394 buildAndSendNotificationResponse(ikeSaRecord, messageId, error); in buildAndSendErrorNotificationResponse()
1400 IkeSaRecord ikeSaRecord, int messageId, IkeNotifyPayload notifyPayload) { in buildAndSendNotificationResponse() argument
1407 messageId); in buildAndSendNotificationResponse()
1416 IkeInformationalPayload[] payloads, boolean isResponse, int messageId) { in buildEncryptedInformationalMessage() argument
1418 mCurrentIkeSaRecord, payloads, isResponse, messageId); in buildEncryptedInformationalMessage()
1428 int messageId) { in buildEncryptedInformationalMessage() argument
1430 saRecord, payloads, IkeHeader.EXCHANGE_TYPE_INFORMATIONAL, isResponse, messageId); in buildEncryptedInformationalMessage()
1441 int messageId) { in buildEncryptedNotificationMessage() argument
1450 messageId); in buildEncryptedNotificationMessage()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/
DSyncMessage.java38 private final String messageId; field in SyncMessage
55 + messageId in toString()
69 messageId = getString(wrappedData, OmtpConstants.MESSAGE_UID); in SyncMessage()
106 return messageId; in getId()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFragment.java310 final String messageId = data.getMessageId();
331 deleteMessage(messageId);
336 retryDownload(messageId);
342 retrySend(messageId);
1118 public void retryDownload(final String messageId) { in retryDownload() argument
1120 mBinding.getData().downloadMessage(mBinding, messageId); in retryDownload()
1127 public void retrySend(final String messageId) { in retrySend() argument
1130 mBinding.getData().resendMessage(mBinding, messageId); in retrySend()
1137 retrySend(messageId); in retrySend()
1144 void deleteMessage(final String messageId) { in deleteMessage() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionManagerImpl.java159 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/services/Telephony/src/com/android/services/telephony/
DTelephonyConnection.java366 int messageId = -1; in getSuppServiceMessage() local
370 messageId = R.string.supp_service_notification_call_deflected; in getSuppServiceMessage()
373 messageId = R.string.supp_service_notification_call_forwarded; in getSuppServiceMessage()
376 messageId = R.string.supp_service_notification_call_waiting; in getSuppServiceMessage()
379 messageId = R.string.supp_service_clir_suppression_rejected; in getSuppServiceMessage()
382 messageId = R.string.supp_service_closed_user_group_call; in getSuppServiceMessage()
385 messageId = R.string.supp_service_incoming_calls_barred; in getSuppServiceMessage()
388 messageId = R.string.supp_service_outgoing_calls_barred; in getSuppServiceMessage()
393 messageId = R.string.supp_service_call_forwarding_active; in getSuppServiceMessage()
399 messageId = R.string.supp_service_additional_call_forwarded; in getSuppServiceMessage()
[all …]
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfirmLockdownFragment.java86 final int messageId; in onCreateDialog() local
88 messageId = replacing in onCreateDialog()
92 messageId = wasLockdown in onCreateDialog()
99 .setMessage(messageId) in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DConfirmLockdownFragment.java86 final int messageId; in onCreateDialog() local
88 messageId = replacing in onCreateDialog()
92 messageId = wasLockdown in onCreateDialog()
99 .setMessage(messageId) in onCreateDialog()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java381 public void setMessageId(String messageId) throws MessagingException { in setMessageId() argument
382 setHeader("Message-ID", messageId); in setMessageId()
394 String messageId = getFirstHeader("Message-ID"); in getMessageId() local
395 if (messageId == null && !inhibitLocalMessageId) { in getMessageId()
396 messageId = generateMessageId(); in getMessageId()
397 setMessageId(messageId); in getMessageId()
399 return messageId; in getMessageId()

1234