Home
last modified time | relevance | path

Searched refs:recipients (Results 1 – 25 of 84) sorted by relevance

1234

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DSyncManager.java431 final List<String> recipients = getThreadRecipients(threadId); in getOrCreateConversation() local
433 BugleDatabaseOperations.getConversationParticipantsFromRecipients(recipients, in getOrCreateConversation()
466 List<String> recipients = mThreadToRecipients.get(threadId); in getThreadRecipients() local
467 if (recipients == null) { in getThreadRecipients()
468 recipients = MmsUtils.getRecipientsByThread(threadId); in getThreadRecipients()
469 if (recipients != null && recipients.size() > 0) { in getThreadRecipients()
470 mThreadToRecipients.put(threadId, recipients); in getThreadRecipients()
474 if (recipients == null || recipients.isEmpty()) { in getThreadRecipients()
480 recipients = Lists.newArrayList(); in getThreadRecipients()
481 recipients.add(ParticipantData.getUnknownSenderDestination()); in getThreadRecipients()
[all …]
DBugleDatabaseOperations.java79 final List<String> recipients, final int refSubId) { in getConversationParticipantsFromRecipients() argument
84 if (recipients != null) { in getConversationParticipantsFromRecipients()
85 for (final String recipient : recipients) { in getConversationParticipantsFromRecipients()
101 final HashSet<String> recipients = new HashSet<String>(); in sanitizeConversationParticipants() local
104 if (!recipients.contains(recipient)) { in sanitizeConversationParticipants()
105 recipients.add(recipient); in sanitizeConversationParticipants()
144 final ArrayList<String> recipients = new ArrayList<String>(); in getRecipientsFromConversationParticipants() local
147 recipients.add(participant.getSendDestination()); in getRecipientsFromConversationParticipants()
149 return recipients; in getRecipientsFromConversationParticipants()
170 final List<String> recipients = MmsUtils.getRecipientsByThread(threadId); in getOrCreateConversationFromThreadId() local
[all …]
DNoConfirmationSmsSendService.java87 final String recipients = UriUtil.parseRecipientsFromSmsMmsUri(intent.getData()); in onHandleIntent() local
89 if (TextUtils.isEmpty(recipients) && TextUtils.isEmpty(conversationId)) { in onHandleIntent()
110 InsertNewMessageAction.insertNewMessage(subId, recipients, message, subject); in onHandleIntent()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DInsertNewMessageAction.java76 public static void insertNewMessage(final int subId, final String recipients, in insertNewMessage() argument
79 subId, recipients, messageText, subject); in insertNewMessage()
104 private InsertNewMessageAction(final int subId, final String recipients, in InsertNewMessageAction() argument
107 if (TextUtils.isEmpty(recipients) || TextUtils.isEmpty(messageText)) { in InsertNewMessageAction()
111 actionParameters.putString(KEY_RECIPIENTS, recipients); in InsertNewMessageAction()
146 final ArrayList<String> recipients = in executeAction() local
148 if (recipients.size() < 1) { in executeAction()
160 if (recipients.size() > 1) { in executeAction()
165 laterTimestamp, recipients); in executeAction()
170 for (final String recipient : recipients) { in executeAction()
[all …]
DGetOrCreateConversationAction.java67 final String[] recipients, final Object data, final LaunchConversationData listener) { in getOrCreateConversation() argument
69 for (String recipient : recipients) { in getOrCreateConversation()
99 final ArrayList<String> recipients = in executeAction() local
103 recipients); in executeAction()
107 LogUtil.sanitizePII(recipients.toString())); in executeAction()
DSendMessageAction.java133 final ArrayList<String> recipients = in queueAction() local
139 actionParameters.putStringArrayList(KEY_RECIPIENTS, recipients); in queueAction()
148 if (recipients.size() == 1) { in queueAction()
149 final String recipient = recipients.get(0); in queueAction()
218 final ArrayList<String> recipients = in doBackgroundWork() local
228 updatedMessageUri = MmsUtils.insertSendingMmsMessage(context, recipients, in doBackgroundWork()
DSyncMessagesAction.java603 final List<String> recipients = cache.getThreadRecipients(mms.mThreadId); in getMmsSender() local
604 Assert.notNull(recipients); in getMmsSender()
605 Assert.isTrue(recipients.size() > 0); in getMmsSender()
607 if (recipients.size() == 1 in getMmsSender()
608 && recipients.get(0).equals(ParticipantData.getUnknownSenderDestination())) { in getMmsSender()
613 return MmsUtils.getMmsSender(recipients, mms.mUri); in getMmsSender()
DReceiveMmsMessageAction.java81 final List<String> recipients = MmsUtils.getRecipientsByThread(mms.mThreadId); in executeAction() local
82 String from = MmsUtils.getMmsSender(recipients, mms.getUri()); in executeAction()
DProcessSentMessageAction.java258 final ArrayList<String> recipients = in processResult() local
260 for (final String recipient : recipients) { in processResult()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientContent.java175 ArrayList<VCardEntry> recipients = message.getRecipients(); in parseLocalNumber() local
176 if (recipients != null && !recipients.isEmpty()) { in parseLocalNumber()
211 String recipients; in storeSms() local
213 recipients = getOriginatorNumber(message); in storeSms()
215 recipients = getFirstRecipientNumber(message); in storeSms()
216 if (recipients == null) { in storeSms()
221 logV("Received SMS from Number " + recipients); in storeSms()
231 values.put(Sms.ADDRESS, recipients); in storeSms()
471 List<VCardEntry> recipients = message.getRecipients(); in getRecipientsFromMessage() local
472 for (VCardEntry recipient : recipients) { in getRecipientsFromMessage()
[all …]
DMceStateMachine.java853 ArrayList<VCardEntry> recipients = message.getRecipients(); in processInboundMessage() local
854 if (recipients != null && !recipients.isEmpty()) { in processInboundMessage()
856 getRecipientsUri(recipients)); in processInboundMessage()
879 private String[] getRecipientsUri(ArrayList<VCardEntry> recipients) { in getRecipientsUri() argument
882 for (VCardEntry recipient : recipients) { in getRecipientsUri()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DGetOrCreateConversationActionTest.java53 final ArrayList<String> recipients = new ArrayList<String>(); in testGetOrCreateConversation() local
54 recipients.add("5551234567"); in testGetOrCreateConversation()
55 recipients.add("5551234568"); in testGetOrCreateConversation()
62 for (final String recipient : recipients) { in testGetOrCreateConversation()
67 final long threadId = MmsUtils.getOrCreateThreadId(mContext, recipients); in testGetOrCreateConversation()
112 assertEquals("Participant count mismatch", recipients.size(), in testGetOrCreateConversation()
115 assertTrue(recipients.contains(participant.getSendDestination())); in testGetOrCreateConversation()
129 assertTrue(recipients.contains(participant.getSendDestination())); in testGetOrCreateConversation()
134 assertEquals("Cursor count mismatch", recipients.size(), cursor.getCount() - countSelf); in testGetOrCreateConversation()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DLaunchConversationActivity.java64 String[] recipients = null; in onCreate() local
68 recipients = commaSeparatedRecipients.split(","); in onCreate()
72 if (recipients == null && (haveAddress || haveEmail)) { in onCreate()
74 recipients = new String[] { intent.getStringExtra(ADDRESS) }; in onCreate()
76 recipients = new String[] { intent.getStringExtra(Intent.EXTRA_EMAIL) }; in onCreate()
90 if (recipients != null) { in onCreate()
92 mBinding.getData().getOrCreateConversation(mBinding, recipients); in onCreate()
DMessageDetailsDialog.java296 final List<String> recipients = MmsUtils.getRecipientsByThread(threadId); in appendDebugInfo() local
297 if (recipients != null) { in appendDebugInfo()
300 details.append(recipients.toString()); in appendDebugInfo()
303 final String from = MmsUtils.getMmsSender(recipients, mms.getUri()); in appendDebugInfo()
314 final StringBuilder recipients = new StringBuilder(); in getRecipientParticipantString() local
330 if (recipients.length() > 0) { in getRecipientParticipantString()
331 recipients.append(RECIPIENT_SEPARATOR); in getRecipientParticipantString()
333 recipients.append(phoneNumber); in getRecipientParticipantString()
336 return recipients.toString(); in getRecipientParticipantString()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSmsUtils.java165 final Set<String> recipients = new HashSet<String>(); in getOrCreateThreadId() local
167 recipients.add(recipient); in getOrCreateThreadId()
168 return getOrCreateThreadId(context, recipients); in getOrCreateThreadId()
182 final Context context, final Set<String> recipients) { in getOrCreateThreadId() argument
185 for (String recipient : recipients) { in getOrCreateThreadId()
212 + LogUtil.sanitizePII(recipients.toString())); in getOrCreateThreadId()
DMmsUtils.java819 final Set<String> recipients = new HashSet<String>(); in getOrCreateSmsThreadId() local
820 recipients.add(dest); in getOrCreateSmsThreadId()
822 return MmsSmsUtils.Threads.getOrCreateThreadId(context, recipients); in getOrCreateSmsThreadId()
835 final Set<String> recipients = new HashSet<String>(dests); in getOrCreateThreadId() local
837 return MmsSmsUtils.Threads.getOrCreateThreadId(context, recipients); in getOrCreateThreadId()
1659 public static String getMmsSender(final List<String> recipients, final String mmsUri) { in getMmsSender() argument
1663 if (recipients != null && recipients.size() == 1) { in getMmsSender()
1664 return recipients.get(0); in getMmsSender()
2297 public static Uri insertSendingMmsMessage(final Context context, final List<String> recipients,
2301 context, subId, recipients.toArray(new String[recipients.size()]), content,
[all …]
/packages/apps/Contacts/src/com/android/contacts/compat/
DTelephonyThreadsCompat.java81 Set<String> recipients = new HashSet<String>(); in getOrCreateThreadIdInternal() local
83 recipients.add(recipient); in getOrCreateThreadIdInternal()
84 return getOrCreateThreadIdInternal(context, recipients); in getOrCreateThreadIdInternal()
97 private static long getOrCreateThreadIdInternal(Context context, Set<String> recipients) { in getOrCreateThreadIdInternal() argument
100 for (String recipient : recipients) { in getOrCreateThreadIdInternal()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java889 final List<String> recipients = getRecipientsByThread(threadId);
890 if (recipients == null || recipients.isEmpty()) {
894 writeRecipientsToWriter(jsonWriter.name(RECIPIENTS), recipients);
922 private static void writeRecipientsToWriter(JsonWriter jsonWriter, List<String> recipients)
925 if (recipients != null) {
926 for (String s : recipients) {
982 Set<String> recipients = new ArraySet<String>();
985 recipients.add(jsonReader.nextString());
988 return recipients;
1419 private long getOrCreateThreadId(Set<String> recipients) {
[all …]
DMmsSmsProvider.java388 List<String> recipients = uri.getQueryParameters("recipient"); in query() local
390 cursor = getThreadId(recipients); in query()
682 private synchronized Cursor getThreadId(List<String> recipients) { in getThreadId() argument
683 Set<Long> addressIds = getAddressIds(recipients); in getThreadId()
719 insertThread(recipientIds, recipients.size()); in getThreadId()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java1145 final HashSet<String> recipients = new HashSet<String>(); in updateHeaders() local
1164 recipients.add(v.getString()); in updateHeaders()
1170 if (!recipients.isEmpty()) { in updateHeaders()
1171 final long threadId = MmsSmsUtils.Threads.getOrCreateThreadId(mContext, recipients); in updateHeaders()
1402 final HashSet<String> recipients = new HashSet<String>(); in persist() local
1414 loadRecipients(PduHeaders.FROM, recipients, addressMap); in persist()
1423 checkAndLoadToCcRecipients(recipients, addressMap, subPhoneNumber); in persist()
1426 loadRecipients(PduHeaders.TO, recipients, addressMap); in persist()
1430 if (!recipients.isEmpty()) { in persist()
1433 threadId = MmsSmsUtils.Threads.getOrCreateThreadId(mContext, recipients); in persist()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DLaunchConversationData.java53 final String[] recipients) { in getOrCreateConversation() argument
58 mMonitor = GetOrCreateConversationAction.getOrCreateConversation(recipients, in getOrCreateConversation()
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DSystemInterfaceTest.java230 private static byte[] extractRecipientKey(Array recipients) { in extractRecipientKey() argument
232 Map recipientUnprotectedHeaders = (Map) ((Array) recipients.getDataItems().get(0)) in extractRecipientKey()
296 Array recipients = (Array) encMsg.get(3); in testDecryptProtectedPayload() local
299 byte[] ephemeralPub = extractRecipientKey(recipients); in testDecryptProtectedPayload()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java984 public int getOrCreateThreadId(final String[] recipients) { in getOrCreateThreadId() argument
985 if (recipients == null || recipients.length == 0) { in getOrCreateThreadId()
990 for (String rec : recipients) { in getOrCreateThreadId()
1058 List<String> recipients = uri.getQueryParameters("recipient"); in query() local
1061 getOrCreateThreadId(recipients.toArray(new String[recipients.size()])); in query()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DMapMceTestFragment.java336 private void sendMessage(Uri[] recipients, String message) { in sendMessage() argument
359 if (recipients == null) { in sendMessage()
375 recipients, message, mSentIntent, mDeliveredIntent); in sendMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java2299 Set<String> recipients = new HashSet<String>(); in unDeleteMessageMms() local
2300 recipients.addAll(Arrays.asList(address)); in unDeleteMessageMms()
2301 Long oldThreadId = Telephony.Threads.getOrCreateThreadId(mContext, recipients); in unDeleteMessageMms()
2374 Set<String> recipients = new HashSet<String>(); in unDeleteMessageSms() local
2375 recipients.addAll(Arrays.asList(address)); in unDeleteMessageSms()
2376 Long oldThreadId = Telephony.Threads.getOrCreateThreadId(mContext, recipients); in unDeleteMessageSms()
2956 Set<String> recipients = new HashSet<String>(); in pushMmsToFolder() local
2957 recipients.addAll(Arrays.asList(toAddress)); in pushMmsToFolder()
2958 values.put(Mms.THREAD_ID, Telephony.Threads.getOrCreateThreadId(mContext, recipients)); in pushMmsToFolder()

1234