/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | SyncManager.java | 334 public synchronized ConversationCustomization getCustomizationForThread(final long threadId) { in getCustomizationForThread() argument 336 return mCustomization.get(threadId); in getCustomizationForThread() 421 final long threadId, int refSubId, final ConversationCustomization customization) { in getOrCreateConversation() argument 426 String conversationId = mThreadToConversationId.get(threadId); in getOrCreateConversation() 431 final List<String> recipients = getThreadRecipients(threadId); in getOrCreateConversation() 438 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation() 445 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation() 451 mThreadToConversationId.put(threadId, conversationId); in getOrCreateConversation() 465 public synchronized List<String> getThreadRecipients(final long threadId) { in getThreadRecipients() argument 466 List<String> recipients = mThreadToRecipients.get(threadId); in getThreadRecipients() [all …]
|
D | BugleDatabaseOperations.java | 168 final long threadId, final boolean senderBlocked, final int refSubId) { in getOrCreateConversationFromThreadId() argument 170 final List<String> recipients = MmsUtils.getRecipientsByThread(threadId); in getOrCreateConversationFromThreadId() 174 return getOrCreateConversation(db, threadId, senderBlocked, participants, false, false, in getOrCreateConversationFromThreadId() 189 final long threadId, final boolean senderBlocked, final ParticipantData recipient) { in getOrCreateConversationFromRecipient() argument 193 return getOrCreateConversation(db, threadId, senderBlocked, recipients, false, false, null); in getOrCreateConversationFromRecipient() 209 public static String getOrCreateConversation(final DatabaseWrapper db, final long threadId, in getOrCreateConversation() argument 215 String conversationId = BugleDatabaseOperations.getExistingConversation(db, threadId, in getOrCreateConversation() 234 db, threadId, conversationName, selfId, participants, archived, in getOrCreateConversation() 256 final long threadId, final boolean senderBlocked) { in getExistingConversation() argument 265 + " WHERE " + ConversationColumns.SMS_THREAD_ID + "=" + threadId, in getExistingConversation() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyBackupAgent.java | 855 final long threadId = cursor.getLong(i); 856 handleThreadId(jsonWriter, threadId); 888 private void handleThreadId(JsonWriter jsonWriter, long threadId) throws IOException { 889 final List<String> recipients = getRecipientsByThread(threadId); 895 if (!mThreadArchived.containsKey(threadId)) { 896 boolean isArchived = isThreadArchived(threadId); 900 mThreadArchived.put(threadId, isArchived); 908 private boolean isThreadArchived(long threadId) { 910 builder.appendPath(String.valueOf(threadId)).appendPath("recipients"); 937 long threadId = -1; [all …]
|
D | SmsProvider.java | 696 Long threadId = values.getAsLong(Sms.THREAD_ID); in insertInner() local 699 if (((threadId == null) || (threadId == 0)) && (!TextUtils.isEmpty(address))) { in insertInner() 1078 String threadId = url.getPathSegments().get(1); in update() local 1081 Integer.parseInt(threadId); in update() 1083 Log.e(TAG, "Bad conversation thread id: " + threadId); in update() 1087 extraWhere = "thread_id=" + threadId; in update()
|
D | MmsSmsProvider.java | 509 long threadId; in query() local 511 threadId = Long.parseLong(uri.getLastPathSegment()); in query() 516 cursor = getFirstLockedMessage(projection, "thread_id=" + Long.toString(threadId), in query() 1242 long threadId; in delete() local 1244 threadId = Long.parseLong(uri.getLastPathSegment()); in delete() 1250 MmsSmsDatabaseHelper.updateThread(db, threadId); in delete() 1281 String threadId = uri.getLastPathSegment(); in deleteConversation() local 1284 String finalSelection = concatSelections(selection, "thread_id = " + threadId); in deleteConversation()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 64 final long threadId = 1234567; in testWriteDraft() local 70 final String conversationId = getOrCreateConversation(db, participantNumber, threadId, in testWriteDraft() 109 final String participantNumber, final long threadId, final boolean senderBlocked) { in getOrCreateConversation() argument 114 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation() 123 final long threadId = 1234567; in testReadDraft() local 129 final String conversationId = getOrCreateConversation(db, participantNumber, threadId, in testReadDraft() 164 long threadId = 1234567; in testReadDraftForNewConversation() local 180 threadId, senderBlocked); in testReadDraftForNewConversation() 181 threadId++; in testReadDraftForNewConversation() 190 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in testReadDraftForNewConversation() [all …]
|
D | GetOrCreateConversationActionTest.java | 67 final long threadId = MmsUtils.getOrCreateThreadId(mContext, recipients); in testGetOrCreateConversation() local 68 assertEquals(TestDataFactory.SMS_MMS_THREAD_ID_CURSOR_VALUE, threadId); in testGetOrCreateConversation() 136 final String realId = BugleDatabaseOperations.getExistingConversation(db, threadId, false); in testGetOrCreateConversation()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContentObserver.java | 836 public int threadId; // Used for SMS/MMS at delete field in BluetoothMapContentObserver.Msg 844 Msg(long id, int type, int threadId, int readFlag) { in Msg() argument 847 this.threadId = threadId; in Msg() 1266 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in initMsgList() local 1269 Msg msg = new Msg(id, type, threadId, read); in initMsgList() 1292 int threadId = c.getInt(c.getColumnIndex(Mms.THREAD_ID)); in initMsgList() local 1295 Msg msg = new Msg(id, type, threadId, read); in initMsgList() 1420 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in handleMsgListChangesSms() local 1430 msg = new Msg(id, type, threadId, read); in handleMsgListChangesSms() 1474 (long) threadId, null); in handleMsgListChangesSms() [all …]
|
D | BluetoothMapContent.java | 472 long threadId = 0; in setThreadId() local 475 threadId = c.getLong(fi.mSmsColThreadId); in setThreadId() 477 threadId = c.getLong(fi.mMmsColThreadId); in setThreadId() 480 threadId = c.getLong(fi.mMessageColThreadId); in setThreadId() 483 e.setThreadId(threadId, type); in setThreadId() 485 Log.d(TAG, "setThreadId: " + threadId + "\n"); in setThreadId() 1430 public static String getCanonicalAddressSms(ContentResolver r, int threadId) { in getCanonicalAddressSms() argument 1445 String whereClause = "_id=" + threadId; in getCanonicalAddressSms() 2852 long threadId = imEmailCursor.getLong(fi.mConvoColConvoId); in convoListing() local 2861 Log.i(TAG, " threadId = " + threadId + " newThreadId = " in convoListing() [all …]
|
D | BluetoothMapMessageListingElement.java | 234 public void setThreadId(long threadId, TYPE type) { in setThreadId() argument 235 if (threadId != -1) { in setThreadId() 236 this.mThreadId = BluetoothMapUtils.getMapConvoHandle(threadId, type); in setThreadId()
|
D | BluetoothMapConvoListingElement.java | 202 public void setConvoId(long type, long threadId) { in setConvoId() argument 203 this.mId = new SignedLongLong(threadId, type); in setConvoId() 205 Log.d(TAG, "setConvoId: " + threadId + " type:" + type); in setConvoId()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 266 final long threadId = MmsUtils.getOrCreateThreadId(Factory.get().getApplicationContext(), in createMessage() local 269 if (threadId < 0) { in createMessage() 276 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in createMessage() 303 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in insertBroadcastSmsMessage() local 315 Telephony.Sms.MESSAGE_TYPE_SENT, threadId); in insertBroadcastSmsMessage() 362 long threadId; in insertSendingSmsMessage() local 366 threadId = MmsUtils.getOrCreateSmsThreadId(context, recipient); in insertSendingSmsMessage() 368 db, threadId, false /* sender blocked */, in insertSendingSmsMessage() 372 threadId = BugleDatabaseOperations.getThreadId(db, sendingConversationId); in insertSendingSmsMessage() 386 Telephony.Sms.MESSAGE_TYPE_SENT, threadId); in insertSendingSmsMessage()
|
D | SyncCursorPair.java | 105 SyncCursorPair(final long threadId, final String conversationId) { in SyncCursorPair() argument 118 Sms.THREAD_ID, Long.toString(threadId)); in SyncCursorPair() 124 Mms.THREAD_ID, Long.toString(threadId)); in SyncCursorPair() 586 final String threadColumn, final String threadId) { in getTimeConstrainedQuery() argument 595 if (!TextUtils.isEmpty(threadColumn) && !TextUtils.isEmpty(threadId)) { in getTimeConstrainedQuery() 596 queryBuilder.append(" AND ").append(threadColumn).append("=").append(threadId); in getTimeConstrainedQuery() 621 long threadId; in saveMessageToAdd() local 625 threadId = mms.mThreadId; in saveMessageToAdd() 629 threadId = sms.mThreadId; in saveMessageToAdd() 632 threadInfoCache.getThreadRecipients(threadId); in saveMessageToAdd()
|
D | DeleteConversationAction.java | 78 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in doBackgroundWork() local 106 if (threadId >= 0) { in doBackgroundWork() 107 final int count = MmsUtils.deleteThread(threadId, cutoffTimestamp); in doBackgroundWork() 110 + threadId + " (cutoffTimestamp = " + cutoffTimestamp + ")"); in doBackgroundWork() 114 + threadId); in doBackgroundWork()
|
D | MarkAsReadAction.java | 61 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in executeAction() local 62 if (threadId != -1) { in executeAction() 63 MmsUtils.updateSmsReadStatus(threadId, Long.MAX_VALUE); in executeAction()
|
D | GetOrCreateConversationAction.java | 102 final long threadId = MmsUtils.getOrCreateThreadId(Factory.get().getApplicationContext(), in executeAction() local 105 if (threadId < 0) { in executeAction() 112 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in executeAction()
|
D | ReceiveSmsMessageAction.java | 84 final long threadId = MmsSmsUtils.Threads.getOrCreateThreadId(context, address); in executeAction() local 85 messageValues.put(Sms.THREAD_ID, threadId); in executeAction() 89 getOrCreateConversationFromRecipient(db, threadId, blocked, rawSender); in executeAction()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
D | PduCache.java | 103 long threadId = entry.getThreadId(); in put() local 104 HashSet<Uri> thread = mThreads.get(threadId); in put() 107 mThreads.put(threadId, thread); in put() 239 private void purgeByThreadId(long threadId) { in purgeByThreadId() argument 241 Log.v(TAG, "Purge cache in thread: " + threadId); in purgeByThreadId() 244 HashSet<Uri> thread = mThreads.remove(threadId); in purgeByThreadId()
|
D | PduCacheEntry.java | 27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { in PduCacheEntry() argument 30 mThreadId = threadId; in PduCacheEntry()
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyBackupAgentTest.java | 344 int status, int type, long threadId, in createSmsRow() argument 362 smsRow.put(Telephony.Sms.THREAD_ID, threadId); in createSmsRow() 372 int bodyCharset, String[] addresses, long threadId, in createMmsRow() argument 392 mmsRow.put(Telephony.Mms.THREAD_ID, threadId); in createMmsRow() 1002 public void setArchived(int threadId) { in setArchived() argument 1003 mIsThreadArchived.add(threadId); in setArchived() 1006 private String getSpaceSepIds(int threadId) { in getSpaceSepIds() argument 1007 if (id2Thread.size() < threadId) { in getSpaceSepIds() 1012 for (Integer id : id2Thread.get(threadId-1)) { in getSpaceSepIds() 1026 final int threadId = Integer.parseInt(selectionArgs[0]); in query() local [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MapClientContent.java | 227 long threadId = getThreadId(message); in storeSms() local 230 values.put(Sms.THREAD_ID, threadId); in storeSms() 310 long threadId = getThreadId(message); in storeMms() local 325 values.put(Mms.THREAD_ID, threadId); in storeMms() 514 String threadId = Uri.parse(thread).getLastPathSegment(); in addThreadContactsToEntries() local 516 logD("MATCHING THREAD" + threadId); in addThreadContactsToEntries() 517 logD(MmsSms.CONTENT_CONVERSATIONS_URI + threadId + "/recipients"); in addThreadContactsToEntries() 521 threadId + "/recipients"), in addThreadContactsToEntries()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | MessageDetailsDialog.java | 258 final long threadId = BugleDatabaseOperations.getThreadId(DataModel.get().getDatabase(), in appendDebugInfo() local 263 details.append(threadId); in appendDebugInfo() 289 final String recipientsString = MmsUtils.getRawRecipientIdsForThread(threadId); in appendDebugInfo() 296 final List<String> recipients = MmsUtils.getRecipientsByThread(threadId); in appendDebugInfo()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsUtils.java | 731 public static List<String> getRecipientsByThread(final long threadId) { in getRecipientsByThread() argument 732 final String spaceSepIds = getRawRecipientIdsForThread(threadId); in getRecipientsByThread() 742 public static String getRawRecipientIdsForThread(final long threadId) { in getRawRecipientIdsForThread() argument 743 if (threadId <= 0) { in getRawRecipientIdsForThread() 750 RECIPIENTS_PROJECTION, "_id=?", new String[] { String.valueOf(threadId) }, null); in getRawRecipientIdsForThread() 861 final int status, final int type, final long threadId) { in addMessageToUri() argument 881 if (threadId != -1L) { in addMessageToUri() 882 values.put(Telephony.Sms.THREAD_ID, threadId); in addMessageToUri() 890 final int type, final long threadId) { in insertSmsMessage() argument 895 true /* seen */, status, type, threadId); in insertSmsMessage() [all …]
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapIMProvider.java | 351 Long threadId = null; in query() local 354 threadId = Long.parseLong(value); in query() 356 return queryConversation(accountId, threadId, read, periodEnd, periodBegin, in query() 448 protected abstract Cursor queryConversation(String accountId, Long threadId, Boolean read, in queryConversation() argument
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/ |
D | CursorUtils.java | 66 public static Cursor getThreadCursor(@NonNull String threadId) { in getThreadCursor() argument 72 _ID + "=" + threadId, in getThreadCursor()
|