Home | History | Annotate | Download | only in browse

Lines Matching defs:conversation

42 import com.android.mail.providers.Conversation;
72 * ConversationCursor is a wrapper around a conversation list cursor that provides update/delete
135 private final List<Conversation> mMostlyDead = Lists.newArrayList();
138 private final Set<Conversation> mNotificationTempDeleted = Sets.newHashSet();
255 public Conversation conversation;
257 public UnderlyingRowData(String innerUri, Conversation conversation) {
259 this.conversation = conversation;
305 if (rowData.conversation == null) {
309 rowData.conversation = new Conversation(
338 // the Conversation objects are being pre-cached, and the conversation maps are
365 // conversationId -> position, but the cached values uses the conversation
408 LogUtils.e(LOG_TAG, "Inserting duplicate conversation uri key: %s. " +
414 LogUtils.e(LOG_TAG, "Inserting duplicate conversation id key: %d" +
425 null /* conversation */);
514 public Conversation getConversation() {
515 return mRowCache.get(getPosition()).conversation;
518 public void cacheConversation(Conversation conversation) {
520 if (rowData.conversation == null) {
521 rowData.conversation = conversation;
724 * Returns the conversation uris for the Conversations that the ConversationCursor is treating
739 // Since clients of the conversation cursor see conversation ConversationCursor
749 * Returns the position of a conversation in the underlying cursor, without adjusting for the
752 * @param conversationId The id of the conversation we are looking for.
753 * @return The position of the conversation in the underlying cursor, or -1 if not there.
760 * Returns the position, in the ConversationCursor, of the Conversation with the specified id.
766 // The conversation wasn't found in the underlying cursor, return the underlying result.
780 // Since clients of the conversation cursor see conversation ConversationCursor
1124 * Move to the next not-deleted item in the conversation
1146 * Move to the previous not-deleted item in the conversation
1298 // If we're asking for the Uri for the conversation list, we return a forwarding URI
1319 public Conversation getConversation() {
1320 Conversation c = getCachedConversation();
1323 c = new Conversation(this);
1331 * Returns a Conversation object for the current position, or null if it has not yet been
1337 public Conversation getCachedConversation() {
1338 Conversation result = mUnderlyingCursor.getConversation();
1355 // copy-on-write to help ensure the underlying cached Conversation is immutable
1358 result = new Conversation(result);
1366 * Notifies the provider of the position of the conversation being accessed by the UI
1535 void setMostlyDead(Conversation conv, ConversationCursor conversationCursor) {
1542 void commitMostlyDead(Conversation conv, ConversationCursor conversationCursor) {
1641 void setMostlyDead(String uriString, Conversation conv) {
1644 UIProvider.ConversationColumns.FLAGS, Conversation.FLAG_MOSTLY_DEAD);
1645 conv.convFlags |= Conversation.FLAG_MOSTLY_DEAD;
1650 void commitMostlyDead(Conversation conv) {
1651 conv.convFlags &= ~Conversation.FLAG_MOSTLY_DEAD;
1668 Conversation.FLAG_MOSTLY_DEAD) != 0) {
1670 flags &= ~Conversation.FLAG_MOSTLY_DEAD);
1701 private final Conversation mConversation;
1704 // This would be the case for a folder change in which the conversation is no longer
1713 public ConversationOperation(int type, Conversation conv) {
1717 public ConversationOperation(int type, Conversation conv, ContentValues values) {
1759 // FLAG_MOSTLY_DEAD in the conversation itself
1985 // Below are methods that update Conversation data (update/delete)
1987 public int updateBoolean(Conversation conversation, String columnName, boolean value) {
1988 return updateBoolean(Arrays.asList(conversation), columnName, value);
1994 public int updateInt(Collection<Conversation> conversations, String columnName,
2008 public int updateBoolean(Collection<Conversation> conversations, String columnName,
2018 public int updateString(Collection<Conversation> conversations, String columnName,
2030 public int updateStrings(Collection<Conversation> conversations,
2046 public int updateValues(Collection<Conversation> conversations, ContentValues values) {
2054 * {@link #getOperationForConversation(Conversation, int, ContentValues)}.
2062 Collection<Conversation> conversations, int type, ContentValues values) {
2064 for (Conversation conv: conversations) {
2070 public ConversationOperation getOperationForConversation(Conversation conv, int type,
2086 values.put(Conversation.UPDATE_FOLDER_COLUMN, FolderList.copyOf(targetFolders).toBlob());
2089 public ConversationOperation getConversationFolderOperation(Conversation conv,
2095 public ConversationOperation getConversationFolderOperation(Conversation conv,
2130 public int delete(Collection<Conversation> conversations) {
2137 public int archive(Collection<Conversation> conversations) {
2144 public int mute(Collection<Conversation> conversations) {
2151 public int reportSpam(Collection<Conversation> conversations) {
2158 public int reportNotSpam(Collection<Conversation> conversations) {
2165 public int reportPhishing(Collection<Conversation> conversations) {
2172 public int discardDrafts(Collection<Conversation> conversations) {
2179 public int mostlyArchive(Collection<Conversation> conversations) {
2186 public int mostlyDelete(Collection<Conversation> conversations) {
2193 public int mostlyDestructiveUpdate(Collection<Conversation> conversations,
2206 private int applyAction(Collection<Conversation> conversations, int opAction) {
2208 for (Conversation conv: conversations) {
2266 for (final Conversation conversation : mNotificationTempDeleted) {
2267 sProvider.undeleteLocal(conversation.uri, ConversationCursor.this);
2281 * "Undo" action is available, we do not want to show the conversation in the list.
2293 final Set<Conversation> undoneConversations =
2296 final Set<Conversation> undoConversations =
2314 final Conversation conversation = notificationAction.getConversation();
2316 undoConversations.add(conversation);
2318 if (!mNotificationTempDeleted.contains(conversation)) {
2319 sProvider.deleteLocal(conversation.uri, ConversationCursor.this);
2320 mNotificationTempDeleted.add(conversation);
2330 final Iterator<Conversation> iterator = mNotificationTempDeleted.iterator();
2332 final Conversation conversation = iterator.next();
2334 if (!undoConversations.contains(conversation)) {
2340 if (undoneConversations.contains(conversation)) {
2341 sProvider.undeleteLocal(conversation.uri, ConversationCursor.this);
2342 undoneConversations.remove(conversation);