Home | History | Annotate | Download | only in data

Lines Matching refs:threadId

105     private Conversation(Context context, long threadId, boolean allowQuery) {
107 Log.v(TAG, "Conversation constructor threadId: " + threadId);
110 if (!loadFromThreadId(threadId, allowQuery)) {
136 public static Conversation get(Context context, long threadId, boolean allowQuery) {
138 Log.v(TAG, "Conversation get by threadId: " + threadId);
140 Conversation conv = Cache.get(threadId);
144 conv = new Conversation(context, threadId, allowQuery);
148 LogTag.error("Tried to add duplicate Conversation to Cache (from threadId): " + conv);
150 LogTag.error("get by threadId cache.replace failed on " + conv);
173 long threadId = getOrCreateThreadId(context, recipients);
174 conv = new Conversation(context, threadId, allowQuery);
213 long threadId = Long.parseLong(uri.getPathSegments().get(1));
215 Log.v(TAG, "Conversation get threadId: " + threadId);
217 return get(context, threadId, allowQuery);
270 long threadId = cursor.getLong(ID);
271 if (threadId > 0) {
272 Conversation conv = Cache.get(threadId);
397 public static Uri getUri(long threadId) {
400 return ContentUris.withAppendedId(Threads.CONTENT_URI, threadId);
434 LogTag.debug("clearThreadId old threadId was: " + mThreadId + " now zero");
700 * @param threadId Thread ID of the conversation to be deleted
703 long threadId) {
709 Uri uri = ContentUris.withAppendedId(Threads.CONTENT_URI, threadId);
722 handler.startDelete(token, new Long(threadId), uri, selection, null);
806 for (long threadId : threadIds) {
812 buf.append(Mms.THREAD_ID).append("=").append(Long.toString(threadId));
824 * @param threadId The threadId of the thread to search. -1 means all threads
828 long threadId,
831 if (threadId != -1) {
833 threadIds.add(threadId);
890 static Conversation get(long threadId) {
893 LogTag.debug("Conversation get with threadId: " + threadId);
897 LogTag.debug("Conversation get() threadId: " + threadId +
900 if (c.getThreadId() == threadId) {
944 " threadId: " + c.mThreadId);
952 * lookup a conversation in the cache by threadId, but don't find it. The caller
955 * is based on the recipients and it's there under a stale threadId. In this function
973 // the thread id, we'll actually remove the object with the stale threadId and
974 // then add the the conversation with updated threadId, both having the same
982 static void remove(long threadId) {
985 LogTag.debug("remove threadid: " + threadId);
989 if (c.getThreadId() == threadId) {
1162 long threadId = c.getLong(ID);
1163 threadsOnDisk.add(threadId);
1168 conv = Cache.get(threadId);
1181 " for threadId: " + threadId + " new conv: " + conv);
1211 private boolean loadFromThreadId(long threadId, boolean allowQuery) {
1213 "_id=" + Long.toString(threadId), null, null);
1218 if (threadId != mThreadId) {
1220 " threadId=" + threadId + ", mThreadId=" + mThreadId);
1223 LogTag.error("loadFromThreadId: Can't find thread ID " + threadId);
1250 Log.d(TAG, "dumpThreadsTable threadId: " + c.getLong(ID) +
1316 * verifySingleRecipient takes a threadId and a string recipient [phone number or email
1317 * address]. It uses that threadId to lookup the row in the threads table and grab the
1323 * @param threadId of the thread we're sending to
1328 final long threadId, final String recipientStr) {
1329 if (threadId <= 0) {
1330 LogTag.error("verifySingleRecipient threadId is ZERO, recipient: " + recipientStr);
1335 "_id=" + Long.toString(threadId), null, null);
1337 LogTag.error("verifySingleRecipient threadId: " + threadId +
1346 LogTag.error("verifySingleRecipient threadId: " + threadId +
1368 LogTag.error("verifySingleRecipient threadId: " + threadId +
1385 LogTag.warnPossibleRecipientMismatch("verifySingleRecipient for threadId: " +
1386 threadId + " original recipient: " + recipientStr +
1391 LogTag.debug("verifySingleRecipient for threadId: " +
1392 threadId + " original recipient: " + recipientStr +