Home
last modified time | relevance | path

Searched refs:threadId (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DSyncManager.java334 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 …]
DBugleDatabaseOperations.java168 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/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java65 final long threadId = 1234567; in testWriteDraft() local
71 final String conversationId = getOrCreateConversation(db, participantNumber, threadId, in testWriteDraft()
110 final String participantNumber, final long threadId, final boolean senderBlocked) { in getOrCreateConversation() argument
115 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
124 final long threadId = 1234567; in testReadDraft() local
130 final String conversationId = getOrCreateConversation(db, participantNumber, threadId, in testReadDraft()
165 long threadId = 1234567; in testReadDraftForNewConversation() local
181 threadId, senderBlocked); in testReadDraftForNewConversation()
182 threadId++; in testReadDraftForNewConversation()
191 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in testReadDraftForNewConversation()
[all …]
DGetOrCreateConversationActionTest.java68 final long threadId = MmsUtils.getOrCreateThreadId(mContext, recipients); in testGetOrCreateConversation() local
69 assertEquals(TestDataFactory.SMS_MMS_THREAD_ID_CURSOR_VALUE, threadId); in testGetOrCreateConversation()
137 final String realId = BugleDatabaseOperations.getExistingConversation(db, threadId, false); in testGetOrCreateConversation()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java996 final long threadId = cursor.getLong(i);
997 handleThreadId(jsonWriter, threadId);
1029 private void handleThreadId(JsonWriter jsonWriter, long threadId) throws IOException {
1030 final List<String> recipients = getRecipientsByThread(threadId);
1036 if (!mThreadArchived.containsKey(threadId)) {
1037 boolean isArchived = isThreadArchived(threadId);
1041 mThreadArchived.put(threadId, isArchived);
1049 private boolean isThreadArchived(long threadId) {
1051 builder.appendPath(String.valueOf(threadId)).appendPath("recipients");
1078 long threadId = -1;
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DInsertNewMessageAction.java266 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()
DDeleteConversationAction.java78 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()
DSyncCursorPair.java105 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()
DMarkAsReadAction.java61 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()
DGetOrCreateConversationAction.java102 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()
DReceiveSmsMessageAction.java84 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/
DPduCache.java103 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()
DPduCacheEntry.java27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { in PduCacheEntry() argument
30 mThreadId = threadId; in PduCacheEntry()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java924 public int threadId; // Used for SMS/MMS at delete field in BluetoothMapContentObserver.Msg
932 Msg(long id, int type, int threadId, int readFlag) { in Msg() argument
935 this.threadId = threadId; in Msg()
1356 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in initMsgList() local
1359 Msg msg = new Msg(id, type, threadId, read); in initMsgList()
1390 int threadId = c.getInt(c.getColumnIndex(Mms.THREAD_ID)); in initMsgList() local
1393 Msg msg = new Msg(id, type, threadId, read); in initMsgList()
1550 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in handleMsgListChangesSms() local
1560 msg = new Msg(id, type, threadId, read); in handleMsgListChangesSms()
1633 (long) threadId, in handleMsgListChangesSms()
[all …]
DBluetoothMapMessageListingElement.java232 public void setThreadId(long threadId, TYPE type) { in setThreadId() argument
233 if (threadId != -1) { in setThreadId()
234 this.mThreadId = BluetoothMapUtils.getMapConvoHandle(threadId, type); in setThreadId()
DBluetoothMapConvoListingElement.java198 public void setConvoId(long type, long threadId) { in setConvoId() argument
199 this.mId = new SignedLongLong(threadId, type); in setConvoId()
200 Log.d(TAG, "setConvoId: " + threadId + " type:" + type); in setConvoId()
DBluetoothMapContent.java491 long threadId = 0; in setThreadId() local
494 threadId = c.getLong(fi.mSmsColThreadId); in setThreadId()
496 threadId = c.getLong(fi.mMmsColThreadId); in setThreadId()
499 threadId = c.getLong(fi.mMessageColThreadId); in setThreadId()
502 Log.v(TAG, "setThreadId: " + threadId + "\n"); in setThreadId()
503 e.setThreadId(threadId, type); in setThreadId()
1379 public static String getCanonicalAddressSms(ContentResolver r, int threadId) { in getCanonicalAddressSms() argument
1394 String whereClause = "_id=" + threadId; in getCanonicalAddressSms()
2862 long threadId = imEmailCursor.getLong(fi.mConvoColConvoId); in convoListing() local
2872 " threadId = " + threadId + " newThreadId = " + nextThreadId); in convoListing()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java382 int status, int type, long threadId, in createSmsRow() argument
400 smsRow.put(Telephony.Sms.THREAD_ID, threadId); in createSmsRow()
410 int bodyCharset, String[] addresses, long threadId, in createMmsRow() argument
430 mmsRow.put(Telephony.Mms.THREAD_ID, threadId); in createMmsRow()
1088 public void setArchived(int threadId) { in setArchived() argument
1089 mIsThreadArchived.add(threadId); in setArchived()
1092 private String getSpaceSepIds(int threadId) { in getSpaceSepIds() argument
1093 if (id2Thread.size() < threadId) { in getSpaceSepIds()
1098 for (Integer id : id2Thread.get(threadId-1)) { in getSpaceSepIds()
1112 final int threadId = Integer.parseInt(selectionArgs[0]); in query() local
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/
DJNIImsMediaService.java191 public static void setAudioThreadPriority(int threadId) { in setAudioThreadPriority() argument
192 Log.d(TAG, "setAudioThreadPriority. tid:" + threadId); in setAudioThreadPriority()
193 Process.setThreadPriority(threadId, THREAD_PRIORITY_REALTIME); in setAudioThreadPriority()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java438 Assert.assertEquals(msg.threadId, TEST_THREAD_ID); in testDeleteMessageMms_withNonDeletedThreadId()
451 Assert.assertEquals(msg.threadId, BluetoothMapContentObserver.DELETED_THREAD_ID); in testDeleteMessageMms_withNonDeletedThreadId()
484 Assert.assertEquals(msg.threadId, TEST_THREAD_ID); in testDeleteMessageSms_withNonDeletedThreadId()
497 Assert.assertEquals(msg.threadId, BluetoothMapContentObserver.DELETED_THREAD_ID); in testDeleteMessageSms_withNonDeletedThreadId()
530 Assert.assertEquals(msg.threadId, TEST_THREAD_ID); in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxInbox()
555 Assert.assertEquals(msg.threadId, TEST_OLD_THREAD_ID); in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxInbox()
566 Assert.assertEquals(msg.threadId, TEST_THREAD_ID); in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxSent()
591 Assert.assertEquals(msg.threadId, TEST_OLD_THREAD_ID); in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxSent()
602 Assert.assertEquals(msg.threadId, TEST_THREAD_ID); in testUnDeleteMessageMms_withoutDeletedThreadId()
621 Assert.assertEquals(msg.threadId, TEST_THREAD_ID); in testUnDeleteMessageMms_withoutDeletedThreadId()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/
DMapClientContent.java263 long threadId = getThreadId(message); in storeSms() local
266 values.put(Sms.THREAD_ID, threadId); in storeSms()
345 long threadId = getThreadId(message); in storeMms() local
360 values.put(Mms.THREAD_ID, threadId); in storeMms()
568 String threadId = Uri.parse(thread).getLastPathSegment(); in addThreadContactsToEntries() local
570 debug("MATCHING THREAD" + threadId); in addThreadContactsToEntries()
571 debug(MmsSms.CONTENT_CONVERSATIONS_URI + threadId + "/recipients"); in addThreadContactsToEntries()
576 MmsSms.CONTENT_CONVERSATIONS_URI, threadId + "/recipients"), in addThreadContactsToEntries()
883 MessageDumpElement(String handle, Uri uri, long timestamp, long threadId, Type type) { in MessageDumpElement() argument
887 mThreadId = threadId; in MessageDumpElement()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DMessageDetailsDialog.java258 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/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java370 Long threadId = null; in query() local
373 threadId = Long.parseLong(value); in query()
377 threadId, in query()
468 Long threadId, in queryConversation() argument
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java731 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/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/jni/
Dlibimsmediajni.cpp79 void setAudioThreadPriority(int threadId) in setAudioThreadPriority() argument
111 env->CallStaticIntMethod(gClass_JNIImsMediaService, gMethod_setAudioThreadPriority, threadId); in setAudioThreadPriority()

12