/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/ |
H A D | TelephonyThreadsCompat.java | 81 Set<String> recipients = new HashSet<String>(); 83 recipients.add(recipient); 84 return getOrCreateThreadIdInternal(context, recipients); 88 * Given the recipients list and subject of an unsaved message, 93 * <p>Find the thread ID of the same set of recipients (in any order, 97 private static long getOrCreateThreadIdInternal(Context context, Set<String> recipients) { argument 100 for (String recipient : recipients) {
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
H A D | LaunchConversationData.java | 53 final String[] recipients) { 58 mMonitor = GetOrCreateConversationAction.getOrCreateConversation(recipients, 52 getOrCreateConversation(final BindingBase<LaunchConversationData> binding, final String[] recipients) argument
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
H A D | MmsSmsUtils.java | 153 final Set<String> recipients = new HashSet<String>(); 155 recipients.add(recipient); 156 return getOrCreateThreadId(context, recipients); 160 * Given the recipients list and subject of an unsaved message, 165 * Find the thread ID of the same set of recipients (in 170 final Context context, final Set<String> recipients) { 173 for (String recipient : recipients) { 200 + LogUtil.sanitizePII(recipients.toString())); 169 getOrCreateThreadId( final Context context, final Set<String> recipients) argument
|
H A D | MmsUtils.java | 735 // NOTE: There are phones on which you can't get the recipients from the thread id for SMS 814 final Set<String> recipients = new HashSet<String>(); 815 recipients.add(dest); 817 return MmsSmsUtils.Threads.getOrCreateThreadId(context, recipients); 830 final Set<String> recipients = new HashSet<String>(dests); 832 return MmsSmsUtils.Threads.getOrCreateThreadId(context, recipients); 1110 String recipients = uri.getSchemeSpecificPart(); 1111 final int pos = recipients.indexOf('?'); 1113 recipients = recipients 1695 getMmsSender(final List<String> recipients, final String mmsUri) argument 2367 insertSendingMmsMessage(final Context context, final List<String> recipients, final MessageData content, final int subId, final String subPhoneNumber, final long timestamp) argument 2416 createMmsSendReq(final Context context, final int subId, final String[] recipients, final MessageData message, final boolean requireDeliveryReport, final boolean requireReadReport, final long expiryTime, final int priority, final long timestampMillis) argument 2477 createSendReq(final Context context, final int subId, final String[] recipients, final MessageData message, final boolean requireDeliveryReport, final boolean requireReadReport, final long expiryTime, final int priority, final long timestampMillis) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
H A D | HtmlPrintTemplates.java | 81 String recipients, String bodyHtml, String attachments) { 82 append(mMessage, senderName, senderAddress, date, recipients, bodyHtml, attachments); 80 appendMessage(String senderName, String senderAddress, String date, String recipients, String bodyHtml, String attachments) argument
|
H A D | PrintUtils.java | 176 final StringBuilder recipients = new StringBuilder(); 180 buildEmailDiv(res, recipients, replyTo, REPLY_TO_DIV_START, DIV_END, 191 recipients.append(DIV_START).append(res.getString(R.string.draft_heading)) 194 buildEmailDiv(res, recipients, to, DIV_START, DIV_END, 200 buildEmailDiv(res, recipients, cc, DIV_START, DIV_END, 205 buildEmailDiv(res, recipients, bcc, DIV_START, DIV_END, 208 return recipients.toString(); 214 private static void buildEmailDiv(Resources res, StringBuilder recipients, String emailList, argument 217 recipients.append(divStart).append(res.getString(headingId))
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
H A D | GetOrCreateConversationAction.java | 67 final String[] recipients, final Object data, final LaunchConversationData listener) { 69 for (String recipient : recipients) { 99 final ArrayList<String> recipients = 103 recipients); 107 LogUtil.sanitizePII(recipients.toString())); 66 getOrCreateConversation( final String[] recipients, final Object data, final LaunchConversationData listener) argument
|
H A D | InsertNewMessageAction.java | 76 public static void insertNewMessage(final int subId, final String recipients, argument 79 subId, recipients, messageText, subject); 89 private static final String KEY_RECIPIENTS = "recipients"; 104 private InsertNewMessageAction(final int subId, final String recipients, argument 107 if (TextUtils.isEmpty(recipients) || TextUtils.isEmpty(messageText)) { 108 Assert.fail("InsertNewMessageAction: Can't have empty recipients or message"); 111 actionParameters.putString(KEY_RECIPIENTS, recipients); 147 final ArrayList<String> recipients = 149 if (recipients.size() < 1) { 150 LogUtil.w(TAG, "InsertNewMessageAction: message recipients i 288 insertBroadcastSmsMessage(final String conversationId, final MessageData message, final int subId, final long laterTimestamp, final ArrayList<String> recipients) argument [all...] |
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | MmsSmsProvider.java | 248 AUTHORITY, "conversations/#/recipients", 374 List<String> recipients = uri.getQueryParameters("recipient"); 376 cursor = getThreadId(recipients); 661 * recipients IDs. If no thread exists with this ID, create 665 private synchronized Cursor getThreadId(List<String> recipients) { argument 666 Set<Long> addressIds = getAddressIds(recipients); 693 // Find the thread with the given recipients 697 // No thread with those recipients exists, so create the thread. 700 Log.d(LOG_TAG, "getThreadId: create new thread_id for recipients " + 701 /*recipients*/ "xxxxxxx [all...] |
H A D | TelephonyBackupAgent.java | 139 // JSON key for list of recipients of the message. 140 private static final String RECIPIENTS = "recipients"; 285 // Cache list of recipients by threadId. It reduces db requests heavily. Used during backup. 288 // Cache threadId by list of recipients. Used during restore. 703 final List<String> recipients = getRecipientsByThread(threadId); 704 if (recipients == null || recipients.isEmpty()) { 708 writeRecipientsToWriter(jsonWriter.name(RECIPIENTS), recipients); 724 builder.appendPath(String.valueOf(threadId)).appendPath("recipients"); 736 private static void writeRecipientsToWriter(JsonWriter jsonWriter, List<String> recipients) argument 1155 getOrCreateThreadId(Set<String> recipients) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | BugleDatabaseOperations.java | 75 * @param recipients The recipient list 76 * @param refSubId The subId used to normalize phone numbers in the recipients 79 final List<String> recipients, final int refSubId) { 84 if (recipients != null) { 85 for (final String recipient : recipients) { 101 final HashSet<String> recipients = new HashSet<String>(); 104 if (!recipients.contains(recipient)) { 105 recipients.add(recipient); 144 final ArrayList<String> recipients = new ArrayList<String>(); 147 recipients 78 getConversationParticipantsFromRecipients( final List<String> recipients, final int refSubId) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
H A D | PduPersister.java | 1145 final HashSet<String> recipients = new HashSet<String>(); 1164 recipients.add(v.getString()); 1170 if (!recipients.isEmpty()) { 1171 final long threadId = MmsSmsUtils.Threads.getOrCreateThreadId(mContext, recipients); 1401 final HashSet<String> recipients = new HashSet<String>(); 1413 loadRecipients(PduHeaders.FROM, recipients, addressMap); 1416 // associate this message with the thread composed of all the recipients 1422 checkAndLoadToCcRecipients(recipients, addressMap, subPhoneNumber); 1425 loadRecipients(PduHeaders.TO, recipients, addressMap); 1429 if (!recipients 1540 loadRecipients(final int addressType, final HashSet<String> recipients, final SparseArray<EncodedStringValue[]> addressMap) argument 1565 checkAndLoadToCcRecipients(final HashSet<String> recipients, final SparseArray<EncodedStringValue[]> addressMap, final String selfNumber) argument [all...] |
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
H A D | TelephonyBackupAgentTest.java | 128 "\"recipients\":[\"+123 (213) 2214124\"],\"archived\":true}"; 136 "\"recipients\":[\"+123 (213) 2214124\"]}"; 144 "\"recipients\":[\"+1232221412433\",\"+1232221412444\"]}"; 173 "\"recipients\":[\"+11121212\",\"example@example.com\",\"+999999999\"]," + 191 "\"recipients\":[\"example@example.com\",\"+999999999\"]," + 210 "\"recipients\":[\"+123 (213) 2214124\"],\"archived\":true," + 730 public int getOrCreateThreadId(final String[] recipients) { argument 731 if (recipients == null || recipients.length == 0) { 736 for (String rec : recipients) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | MessageHeaderView.java | 751 public void append(String[] recipients) { argument 753 final boolean hasRecipients = appendRecipients(recipients, addLimit); 755 mRecipientCount += Math.min(addLimit, recipients.length); 759 public void appendBcc(String[] recipients) { argument 761 if (shouldAppendRecipients(recipients, addLimit)) { 770 append(recipients); 774 * Appends formatted recipients of the message to the recipient list, 775 * as long as there are recipients left to append and the maximum number
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | ComposeActivity.java | 702 // original sender and recipients if user switches "reply <-> reply-all". 1280 // all the message recipients and find one that matches 1290 * Compare all the recipients of an email to the current account and all 1543 // Setup recipients 2076 // Cc list is the union of the To and Cc recipients of the original 2199 // recipients and they sent the original message. 2207 // target the original recipients. This works as expected even 2218 private void addRecipients(final Set<String> recipients, final String[] addresses) { argument 2221 // the list of recipients. 2224 recipients 2539 addAddressesToRecipientList( final List<String> recipients, final String addressString) argument 2664 incrementRecipientsTimesContacted(List<String> recipients) argument 3054 newInstance(final int messageId, final boolean showToast, final ArrayList<String> recipients) argument 3089 finishSendConfirmDialog( final boolean showToast, final ArrayList<String> recipients) argument 3099 showSendConfirmDialog(final int messageId, final boolean showToast, final ArrayList<String> recipients) argument 3268 performAdditionalSendOrSaveSanityChecks( final boolean save, final boolean showToast, ArrayList<String> recipients) argument [all...] |