Home | History | Annotate | Download | only in data

Lines Matching refs:conv

146         Conversation conv = Cache.get(threadId);
147 if (conv != null)
148 return conv;
150 conv = new Conversation(context, threadId, allowQuery);
152 Cache.put(conv);
154 LogTag.error("Tried to add duplicate Conversation to Cache (from threadId): " + conv);
155 if (!Cache.replace(conv)) {
156 LogTag.error("get by threadId cache.replace failed on " + conv);
159 return conv;
175 Conversation conv = Cache.get(recipients);
176 if (conv != null)
177 return conv;
180 conv = new Conversation(context, threadId, allowQuery);
181 Log.d(TAG, "Conversation.get: created new conversation " + /*conv.toString()*/ "xxxxxxx");
183 if (!conv.getRecipients().equals(recipients)) {
184 LogTag.error(TAG, "Conversation.get: new conv's recipients don't match input recpients "
189 Cache.put(conv);
191 LogTag.error("Tried to add duplicate Conversation to Cache (from recipients): " + conv);
192 if (!Cache.replace(conv)) {
193 LogTag.error("get by recipients cache.replace failed on " + conv);
197 return conv;
278 Conversation conv = Cache.get(threadId);
279 if (conv != null) {
280 fillFromCursor(context, conv, cursor, false); // update the existing conv in-place
281 return conv;
284 Conversation conv = new Conversation(context, cursor, false);
286 Cache.put(conv);
289 conv);
290 if (!Cache.replace(conv)) {
291 LogTag.error("Converations.from cache.replace failed on " + conv);
294 return conv;
736 * @param selection A where clause (can be null) to select particular conv items.
905 private static void fillFromCursor(Context context, Conversation conv,
907 synchronized (conv) {
908 conv.mThreadId = c.getLong(ID);
909 conv.mDate = c.getLong(DATE);
910 conv.mMessageCount = c.getInt(MESSAGE_COUNT);
918 conv.mSnippet = snippet;
920 conv.setHasUnreadMessages(c.getInt(READ) == 0);
921 conv.mHasError = (c.getInt(ERROR) != 0);
922 conv.mHasAttachment = (c.getInt(HAS_ATTACHMENT) != 0);
928 synchronized (conv) {
929 conv.mRecipients = recipients;
933 Log.d(TAG, "fillFromCursor: conv=" + conv + ", recipientIds=" + recipientIds);
998 Log.d(TAG, "Conversation.Cache.put: conv= " + c + ", hash: " + c.hashCode());
1024 LogTag.debug("Conversation.Cache.put: conv= " + c + ", hash: " + c.hashCode());
1063 LogTag.debug(" conv: " + c.toString() + " hash: " + c.hashCode());
1232 Conversation conv;
1234 conv = Cache.get(threadId);
1237 if (conv == null) {
1240 conv = new Conversation(context, c, true);
1243 Cache.put(conv);
1247 " for threadId: " + threadId + " new conv: " + conv);
1248 if (!Cache.replace(conv)) {
1249 LogTag.error("cacheAllThreads cache.replace failed on " + conv);
1255 fillFromCursor(context, conv, c, true);