/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 76 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() 147 final ArrayList<String> recipients = in executeAction() local 149 if (recipients.size() < 1) { in executeAction() 159 if (recipients.size() > 1) { in executeAction() 164 laterTimestamp, recipients); in executeAction() 169 for (final String recipient : recipients) { in executeAction() [all …]
|
D | GetOrCreateConversationAction.java | 67 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()
|
D | SendMessageAction.java | 125 final ArrayList<String> recipients = in queueAction() local 131 actionParameters.putStringArrayList(KEY_RECIPIENTS, recipients); in queueAction() 140 if (recipients.size() == 1) { in queueAction() 141 final String recipient = recipients.get(0); in queueAction() 210 final ArrayList<String> recipients = in doBackgroundWork() local 220 updatedMessageUri = MmsUtils.insertSendingMmsMessage(context, recipients, in doBackgroundWork()
|
D | SyncMessagesAction.java | 603 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()
|
D | ReceiveMmsMessageAction.java | 81 final List<String> recipients = MmsUtils.getRecipientsByThread(mms.mThreadId); in executeAction() local 82 String from = MmsUtils.getMmsSender(recipients, mms.getUri()); in executeAction()
|
D | ProcessSentMessageAction.java | 256 final ArrayList<String> recipients = in processResult() local 258 for (final String recipient : recipients) { in processResult()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | SyncManager.java | 422 final List<String> recipients = getThreadRecipients(threadId); in getOrCreateConversation() local 424 BugleDatabaseOperations.getConversationParticipantsFromRecipients(recipients, in getOrCreateConversation() 457 List<String> recipients = mThreadToRecipients.get(threadId); in getThreadRecipients() local 458 if (recipients == null) { in getThreadRecipients() 459 recipients = MmsUtils.getRecipientsByThread(threadId); in getThreadRecipients() 460 if (recipients != null && recipients.size() > 0) { in getThreadRecipients() 461 mThreadToRecipients.put(threadId, recipients); in getThreadRecipients() 465 if (recipients == null || recipients.isEmpty()) { in getThreadRecipients() 471 recipients = Lists.newArrayList(); in getThreadRecipients() 472 recipients.add(ParticipantData.getUnknownSenderDestination()); in getThreadRecipients() [all …]
|
D | BugleDatabaseOperations.java | 79 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 …]
|
D | NoConfirmationSmsSendService.java | 87 final String recipients = intentUri != null ? MmsUtils.getSmsRecipients(intentUri) : null; 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/tests/src/com/android/messaging/datamodel/action/ |
D | GetOrCreateConversationActionTest.java | 53 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() 114 assertEquals("Participant count mismatch", recipients.size(), in testGetOrCreateConversation() 117 assertTrue(recipients.contains(participant.getSendDestination())); in testGetOrCreateConversation() 131 assertTrue(recipients.contains(participant.getSendDestination())); in testGetOrCreateConversation() 136 assertEquals("Cursor count mismatch", recipients.size(), cursor.getCount() - countSelf); in testGetOrCreateConversation()
|
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
D | PrintUtils.java | 176 final StringBuilder recipients = new StringBuilder(); in renderRecipients() local 180 buildEmailDiv(res, recipients, replyTo, REPLY_TO_DIV_START, DIV_END, in renderRecipients() 191 recipients.append(DIV_START).append(res.getString(R.string.draft_heading)) in renderRecipients() 194 buildEmailDiv(res, recipients, to, DIV_START, DIV_END, in renderRecipients() 200 buildEmailDiv(res, recipients, cc, DIV_START, DIV_END, in renderRecipients() 205 buildEmailDiv(res, recipients, bcc, DIV_START, DIV_END, in renderRecipients() 208 return recipients.toString(); in renderRecipients() 214 private static void buildEmailDiv(Resources res, StringBuilder recipients, String emailList, in buildEmailDiv() argument 217 recipients.append(divStart).append(res.getString(headingId)) in buildEmailDiv()
|
D | HtmlPrintTemplates.java | 81 String recipients, String bodyHtml, String attachments) { in appendMessage() argument 82 append(mMessage, senderName, senderAddress, date, recipients, bodyHtml, attachments); in appendMessage()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | MessageDetailsDialog.java | 296 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()
|
D | LaunchConversationActivity.java | 64 String[] recipients = UriUtil.parseRecipientsFromSmsMmsUri(intent.getData()); in onCreate() local 67 if (recipients == null && (haveAddress || haveEmail)) { in onCreate() 69 recipients = new String[] { intent.getStringExtra(ADDRESS) }; in onCreate() 71 recipients = new String[] { intent.getStringExtra(Intent.EXTRA_EMAIL) }; in onCreate() 85 if (recipients != null) { in onCreate() 87 mBinding.getData().getOrCreateConversation(mBinding, recipients); in onCreate()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyBackupAgent.java | 746 final List<String> recipients = getRecipientsByThread(threadId); 747 if (recipients == null || recipients.isEmpty()) { 751 writeRecipientsToWriter(jsonWriter.name(RECIPIENTS), recipients); 779 private static void writeRecipientsToWriter(JsonWriter jsonWriter, List<String> recipients) 782 if (recipients != null) { 783 for (String s : recipients) { 837 Set<String> recipients = new ArraySet<String>(); 840 recipients.add(jsonReader.nextString()); 843 return recipients; 1282 private long getOrCreateThreadId(Set<String> recipients) { [all …]
|
D | MmsSmsProvider.java | 378 List<String> recipients = uri.getQueryParameters("recipient"); in query() local 380 cursor = getThreadId(recipients); in query() 669 private synchronized Cursor getThreadId(List<String> recipients) { in getThreadId() argument 670 Set<Long> addressIds = getAddressIds(recipients); in getThreadId() 706 insertThread(recipientIds, recipients.size()); in getThreadId()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsSmsUtils.java | 153 final Set<String> recipients = new HashSet<String>(); in getOrCreateThreadId() local 155 recipients.add(recipient); in getOrCreateThreadId() 156 return getOrCreateThreadId(context, recipients); in getOrCreateThreadId() 170 final Context context, final Set<String> recipients) { in getOrCreateThreadId() argument 173 for (String recipient : recipients) { in getOrCreateThreadId() 200 + LogUtil.sanitizePII(recipients.toString())); in getOrCreateThreadId()
|
D | MmsUtils.java | 814 final Set<String> recipients = new HashSet<String>(); in getOrCreateSmsThreadId() local 815 recipients.add(dest); in getOrCreateSmsThreadId() 817 return MmsSmsUtils.Threads.getOrCreateThreadId(context, recipients); in getOrCreateSmsThreadId() 830 final Set<String> recipients = new HashSet<String>(dests); in getOrCreateThreadId() local 832 return MmsSmsUtils.Threads.getOrCreateThreadId(context, recipients); in getOrCreateThreadId() 1110 String recipients = uri.getSchemeSpecificPart(); in getSmsRecipients() local 1111 final int pos = recipients.indexOf('?'); in getSmsRecipients() 1113 recipients = recipients.substring(0, pos); in getSmsRecipients() 1115 recipients = replaceUnicodeDigits(recipients).replace(',', ';'); in getSmsRecipients() 1116 return recipients; in getSmsRecipients() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | TelephonyThreadsCompat.java | 81 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/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduPersister.java | 1145 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/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 2254 private void addRecipients(final Set<String> recipients, final String[] addresses) { in addRecipients() argument 2260 recipients.add(email.replace("\"\"", "")); in addRecipients() 2568 final List<String> recipients = Lists.newArrayList(); in incrementRecipientsTimesContacted() local 2569 addAddressesToRecipientList(recipients, toAddresses); in incrementRecipientsTimesContacted() 2570 addAddressesToRecipientList(recipients, ccAddresses); in incrementRecipientsTimesContacted() 2571 addAddressesToRecipientList(recipients, bccAddresses); in incrementRecipientsTimesContacted() 2572 incrementRecipientsTimesContacted(recipients); in incrementRecipientsTimesContacted() 2576 final List<String> recipients, final String addressString) { in addAddressesToRecipientList() argument 2577 if (recipients == null) { in addAddressesToRecipientList() 2585 recipients.add(token.getAddress()); in addAddressesToRecipientList() [all …]
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyBackupAgentTest.java | 863 public int getOrCreateThreadId(final String[] recipients) { in getOrCreateThreadId() argument 864 if (recipients == null || recipients.length == 0) { in getOrCreateThreadId() 869 for (String rec : recipients) { in getOrCreateThreadId() 937 List<String> recipients = uri.getQueryParameters("recipient"); in query() local 940 getOrCreateThreadId(recipients.toArray(new String[recipients.size()])); in query()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | MapMceTestFragment.java | 171 private void sendMessage(Uri[] recipients, String message) { in sendMessage() argument 185 if (recipients == null) { in sendMessage() 200 recipients, message, mSentIntent, mDeliveredIntent); in sendMessage()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | LaunchConversationData.java | 53 final String[] recipients) { in getOrCreateConversation() argument 58 mMonitor = GetOrCreateConversationAction.getOrCreateConversation(recipients, in getOrCreateConversation()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageHeaderView.java | 751 public void append(String[] recipients) { in append() argument 753 final boolean hasRecipients = appendRecipients(recipients, addLimit); in append() 755 mRecipientCount += Math.min(addLimit, recipients.length); in append() 759 public void appendBcc(String[] recipients) { in appendBcc() argument 761 if (shouldAppendRecipients(recipients, addLimit)) { in appendBcc() 770 append(recipients); in appendBcc()
|