Home | History | Annotate | Download | only in data

Lines Matching full:threadid

111     private Conversation(Context context, long threadId, boolean allowQuery) {
113 Log.v(TAG, "Conversation constructor threadId: " + threadId);
116 if (!loadFromThreadId(threadId, allowQuery)) {
142 public static Conversation get(Context context, long threadId, boolean allowQuery) {
144 Log.v(TAG, "Conversation get by threadId: " + threadId);
146 Conversation conv = Cache.get(threadId);
150 conv = new Conversation(context, threadId, allowQuery);
154 LogTag.error("Tried to add duplicate Conversation to Cache (from threadId): " + conv);
156 LogTag.error("get by threadId cache.replace failed on " + conv);
179 long threadId = getOrCreateThreadId(context, recipients);
180 conv = new Conversation(context, threadId, allowQuery);
219 long threadId = Long.parseLong(uri.getPathSegments().get(1));
221 Log.v(TAG, "Conversation get threadId: " + threadId);
223 return get(context, threadId, allowQuery);
276 long threadId = cursor.getLong(ID);
277 if (threadId > 0) {
278 Conversation conv = Cache.get(threadId);
306 final long threadId,
312 if (threadId != -1) {
313 selection = selection + " AND " + Mms.THREAD_ID + " = " + threadId;
446 public static Uri getUri(long threadId) {
449 return ContentUris.withAppendedId(Threads.CONTENT_URI, threadId);
483 LogTag.debug("clearThreadId old threadId was: " + mThreadId + " now zero");
772 for (long threadId : threadIds) {
773 Uri uri = ContentUris.withAppendedId(Threads.CONTENT_URI, threadId);
777 handler.startDelete(token, new Long(threadId), uri, selection, null);
779 DraftCache.getInstance().setDraftState(threadId, false);
867 for (long threadId : threadIds) {
873 buf.append(Mms.THREAD_ID).append("=").append(Long.toString(threadId));
885 * @param threadId The threadId of the thread to search. -1 means all threads
889 long threadId,
892 if (threadId != -1) {
894 threadIds.add(threadId);
952 static Conversation get(long threadId) {
955 LogTag.debug("Conversation get with threadId: " + threadId);
959 LogTag.debug("Conversation get() threadId: " + threadId +
962 if (c.getThreadId() == threadId) {
1006 " threadId: " + c.mThreadId);
1014 * lookup a conversation in the cache by threadId, but don't find it. The caller
1017 * is based on the recipients and it's there under a stale threadId. In this function
1035 // the thread id, we'll actually remove the object with the stale threadId and
1036 // then add the the conversation with updated threadId, both having the same
1044 static void remove(long threadId) {
1047 LogTag.debug("remove threadid: " + threadId);
1051 if (c.getThreadId() == threadId) {
1228 long threadId = c.getLong(ID);
1229 threadsOnDisk.add(threadId);
1234 conv = Cache.get(threadId);
1247 " for threadId: " + threadId + " new conv: " + conv);
1277 private boolean loadFromThreadId(long threadId, boolean allowQuery) {
1279 "_id=" + Long.toString(threadId), null, null);
1284 if (threadId != mThreadId) {
1286 " threadId=" + threadId + ", mThreadId=" + mThreadId);
1289 LogTag.error("loadFromThreadId: Can't find thread ID " + threadId);
1316 Log.d(TAG, "dumpThreadsTable threadId: " + c.getLong(ID) +
1382 * verifySingleRecipient takes a threadId and a string recipient [phone number or email
1383 * address]. It uses that threadId to lookup the row in the threads table and grab the
1389 * @param threadId of the thread we're sending to
1394 final long threadId, final String recipientStr) {
1395 if (threadId <= 0) {
1396 LogTag.error("verifySingleRecipient threadId is ZERO, recipient: " + recipientStr);
1401 "_id=" + Long.toString(threadId), null, null);
1403 LogTag.error("verifySingleRecipient threadId: " + threadId +
1412 LogTag.error("verifySingleRecipient threadId: " + threadId +
1434 LogTag.error("verifySingleRecipient threadId: " + threadId +
1451 LogTag.warnPossibleRecipientMismatch("verifySingleRecipient for threadId: " +
1452 threadId + " original recipient: " + recipientStr +
1457 LogTag.debug("verifySingleRecipient for threadId: " +
1458 threadId + " original recipient: " + recipientStr +