Home
last modified time | relevance | path

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

12

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java688 final long threadId = cursor.getLong(i);
689 handleThreadId(jsonWriter, threadId);
702 private void handleThreadId(JsonWriter jsonWriter, long threadId) throws IOException {
703 final List<String> recipients = getRecipientsByThread(threadId);
709 if (!mThreadArchived.containsKey(threadId)) {
710 boolean isArchived = isThreadArchived(threadId);
714 mThreadArchived.put(threadId, isArchived);
722 private boolean isThreadArchived(long threadId) {
724 builder.appendPath(String.valueOf(threadId)).appendPath("recipients");
751 long threadId = -1;
[all …]
DSmsProvider.java556 Long threadId = values.getAsLong(Sms.THREAD_ID); in insertInner() local
559 if (((threadId == null) || (threadId == 0)) && (!TextUtils.isEmpty(address))) { in insertInner()
798 String threadId = url.getPathSegments().get(1); in update() local
801 Integer.parseInt(threadId); in update()
803 Log.e(TAG, "Bad conversation thread id: " + threadId); in update()
807 extraWhere = "thread_id=" + threadId; in update()
DMmsSmsProvider.java495 long threadId; in query() local
497 threadId = Long.parseLong(uri.getLastPathSegment()); in query()
502 cursor = getFirstLockedMessage(projection, "thread_id=" + Long.toString(threadId), in query()
1221 long threadId; in delete() local
1223 threadId = Long.parseLong(uri.getLastPathSegment()); in delete()
1229 MmsSmsDatabaseHelper.updateThread(db, threadId); in delete()
1260 String threadId = uri.getLastPathSegment(); in deleteConversation() local
1263 String finalSelection = concatSelections(selection, "thread_id = " + threadId); in deleteConversation()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DSyncManager.java325 public synchronized ConversationCustomization getCustomizationForThread(final long threadId) { in getCustomizationForThread() argument
327 return mCustomization.get(threadId); in getCustomizationForThread()
412 final long threadId, int refSubId, final ConversationCustomization customization) { in getOrCreateConversation() argument
417 String conversationId = mThreadToConversationId.get(threadId); in getOrCreateConversation()
422 final List<String> recipients = getThreadRecipients(threadId); in getOrCreateConversation()
429 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
436 conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in getOrCreateConversation()
442 mThreadToConversationId.put(threadId, conversationId); in getOrCreateConversation()
456 public synchronized List<String> getThreadRecipients(final long threadId) { in getThreadRecipients() argument
457 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/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java839 int threadId; // Used for SMS/MMS at delete field in BluetoothMapContentObserver.Msg
846 public Msg(long id, int type, int threadId, int readFlag) { in Msg() argument
849 this.threadId = threadId; in Msg()
1213 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in initMsgList() local
1216 Msg msg = new Msg(id, type, threadId, read); in initMsgList()
1237 int threadId = c.getInt(c.getColumnIndex(Mms.THREAD_ID)); in initMsgList() local
1240 Msg msg = new Msg(id, type, threadId, read); in initMsgList()
1348 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in handleMsgListChangesSms() local
1358 msg = new Msg(id, type, threadId, read); in handleMsgListChangesSms()
1402 (long)threadId, null); in handleMsgListChangesSms()
[all …]
DBluetoothMapContent.java483 long threadId = 0; in setThreadId() local
486 threadId = c.getLong(fi.mSmsColThreadId); in setThreadId()
488 threadId = c.getLong(fi.mMmsColThreadId); in setThreadId()
492 threadId = c.getLong(fi.mMessageColThreadId); in setThreadId()
495 e.setThreadId(threadId,type); in setThreadId()
496 if (V) Log.d(TAG, "setThreadId: " + threadId + "\n"); in setThreadId()
1331 static public String getCanonicalAddressSms(ContentResolver r, int threadId) { in getCanonicalAddressSms() argument
1346 String whereClause = "_id="+threadId; in getCanonicalAddressSms()
2612 long threadId = imEmailCursor.getLong(fi.mConvoColConvoId); in convoListing() local
2620 if(V) Log.i(TAG, " threadId = " + threadId + " newThreadId = " + in convoListing()
[all …]
DBluetoothMapMessageListingElement.java233 public void setThreadId(long threadId, TYPE type) { in setThreadId() argument
234 if(threadId != -1) { in setThreadId()
235 this.mThreadId = BluetoothMapUtils.getMapConvoHandle(threadId, type); in setThreadId()
DBluetoothMapConvoListingElement.java189 public void setConvoId(long type, long threadId) { in setConvoId() argument
190 this.mId = new SignedLongLong(threadId,type); in setConvoId()
191 if(D) Log.d(TAG, "setConvoId: " + threadId + " type:" + type); in setConvoId()
/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.java67 final long threadId = MmsUtils.getOrCreateThreadId(mContext, recipients); in testGetOrCreateConversation() local
68 assertEquals(TestDataFactory.SMS_MMS_THREAD_ID_CURSOR_VALUE, threadId); in testGetOrCreateConversation()
70 final String blankId = BugleDatabaseOperations.getExistingConversation(db, threadId, false); in testGetOrCreateConversation()
138 final String realId = BugleDatabaseOperations.getExistingConversation(db, threadId, false); in testGetOrCreateConversation()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java273 int status, int type, long threadId) { in createSmsRow() argument
290 smsRow.put(Telephony.Sms.THREAD_ID, threadId); in createSmsRow()
299 int bodyCharset, String[] addresses, long threadId) { in createMmsRow() argument
316 mmsRow.put(Telephony.Mms.THREAD_ID, threadId); in createMmsRow()
748 public void setArchived(int threadId) { in setArchived() argument
749 mIsThreadArchived.add(threadId); in setArchived()
752 private String getSpaceSepIds(int threadId) { in getSpaceSepIds() argument
753 if (id2Thread.size() < threadId) { in getSpaceSepIds()
758 for (Integer id : id2Thread.get(threadId-1)) { in getSpaceSepIds()
772 final int threadId = Integer.parseInt(selectionArgs[0]); in query() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DInsertNewMessageAction.java265 final long threadId = MmsUtils.getOrCreateThreadId(Factory.get().getApplicationContext(), in createMessage() local
268 if (threadId < 0) { in createMessage()
275 final String conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId, in createMessage()
302 final long threadId = BugleDatabaseOperations.getThreadId(db, conversationId); in insertBroadcastSmsMessage() local
314 Telephony.Sms.MESSAGE_TYPE_SENT, threadId); in insertBroadcastSmsMessage()
361 long threadId; in insertSendingSmsMessage() local
365 threadId = MmsUtils.getOrCreateSmsThreadId(context, recipient); in insertSendingSmsMessage()
367 db, threadId, false /* sender blocked */, in insertSendingSmsMessage()
371 threadId = BugleDatabaseOperations.getThreadId(db, sendingConversationId); in insertSendingSmsMessage()
385 Telephony.Sms.MESSAGE_TYPE_SENT, threadId); in insertSendingSmsMessage()
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()
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()
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.java83 final long threadId = MmsSmsUtils.Threads.getOrCreateThreadId(context, address); in executeAction() local
84 messageValues.put(Sms.THREAD_ID, threadId); in executeAction()
88 getOrCreateConversationFromRecipient(db, threadId, blocked, rawSender); in executeAction()
DSyncMessageBatch.java291 DatabaseWrapper db, String messageUri, long threadId, String conversationId, in rethrowSQLiteConstraintExceptionWithDetails() argument
325 + " (lookup thread = " + threadId + "), found conversation id = " in rethrowSQLiteConstraintExceptionWithDetails()
/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/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java726 public static List<String> getRecipientsByThread(final long threadId) { in getRecipientsByThread() argument
727 final String spaceSepIds = getRawRecipientIdsForThread(threadId); in getRecipientsByThread()
737 public static String getRawRecipientIdsForThread(final long threadId) { in getRawRecipientIdsForThread() argument
738 if (threadId <= 0) { in getRawRecipientIdsForThread()
745 RECIPIENTS_PROJECTION, "_id=?", new String[] { String.valueOf(threadId) }, null); in getRawRecipientIdsForThread()
856 final int status, final int type, final long threadId) { in addMessageToUri() argument
876 if (threadId != -1L) { in addMessageToUri()
877 values.put(Telephony.Sms.THREAD_ID, threadId); in addMessageToUri()
885 final int type, final long threadId) { in insertSmsMessage() argument
890 true /* seen */, status, type, threadId); in insertSmsMessage()
[all …]
/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/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java332 Long threadId = null; in query() local
335 threadId = Long.parseLong(value); in query()
337 return queryConversation(accountId, threadId, read, periodEnd, periodBegin, in query()
429 abstract protected Cursor queryConversation(String accountId, Long threadId, Boolean read, in queryConversation() argument
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java566 final long threadId = -1; in load() local
626 cacheEntry = new PduCacheEntry(pdu, msgBox, threadId); in load()
1171 final long threadId = MmsSmsUtils.Threads.getOrCreateThreadId(mContext, recipients); in updateHeaders() local
1172 values.put(Mms.THREAD_ID, threadId); in updateHeaders()
1429 long threadId = -1L; in persist() local
1433 threadId = MmsSmsUtils.Threads.getOrCreateThreadId(mContext, recipients); in persist()
1436 + threadId); in persist()
1438 values.put(Mms.THREAD_ID, threadId); in persist()

12