Home | History | Annotate | Download | only in browse

Lines Matching refs: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();
260 public Conversation conversation;
262 public UnderlyingRowData(String innerUri, Conversation conversation) {
264 this.conversation = conversation;
310 if (rowData.conversation == null) {
314 rowData.conversation = new Conversation(
343 // the Conversation objects are being pre-cached, and the conversation maps are
370 // conversationId -> position, but the cached values uses the conversation
415 LogUtils.e(LOG_TAG, "Inserting duplicate conversation uri key: %s. " +
421 LogUtils.e(LOG_TAG, "Inserting duplicate conversation id key: %d" +
432 null /* conversation */);
521 public Conversation getConversation() {
522 return mRowCache.get(getPosition()).conversation;
525 public void cacheConversation(Conversation conversation) {
527 if (rowData.conversation == null) {
528 rowData.conversation = conversation;
734 * Returns the conversation uris for the Conversations that the ConversationCursor is treating
749 // Since clients of the conversation cursor see conversation ConversationCursor
759 * Returns the position of a conversation in the underlying cursor, without adjusting for the
762 * @param conversationId The id of the conversation we are looking for.
763 * @return The position of the conversation in the underlying cursor, or -1 if not there.
770 * Returns the position, in the ConversationCursor, of the Conversation with the specified id.
776 // The conversation wasn't found in the underlying cursor, return the underlying result.
790 // Since clients of the conversation cursor see conversation ConversationCursor
1134 * Move to the next not-deleted item in the conversation
1156 * Move to the previous not-deleted item in the conversation
1308 // If we're asking for the Uri for the conversation list, we return a forwarding URI
1329 public Conversation getConversation() {
1330 Conversation c = getCachedConversation();
1333 c = new Conversation(this);
1341 * Returns a Conversation object for the current position, or null if it has not yet been
1347 public Conversation getCachedConversation() {
1348 Conversation result = mUnderlyingCursor.getConversation();
1365 // copy-on-write to help ensure the underlying cached Conversation is immutable
1368 result = new Conversation(result);
1376 * Notifies the provider of the position of the conversation being accessed by the UI
1548 void setMostlyDead(Conversation conv, ConversationCursor conversationCursor,
1556 void commitMostlyDead(Conversation conv, ConversationCursor conversationCursor) {
1660 void setMostlyDead(String uriString, Conversation conv) {
1663 UIProvider.ConversationColumns.FLAGS, Conversation
1664 conv.convFlags |= Conversation.FLAG_MOSTLY_DEAD;
1669 void commitMostlyDead(Conversation conv) {
1670 conv.convFlags &= ~Conversation.FLAG_MOSTLY_DEAD;
1687 if ((flags & Conversation.FLAG_MOSTLY_DEAD) != 0) {
1689 flags &= ~Conversation.FLAG_MOSTLY_DEAD);
1721 private final Conversation mConversation;
1727 // This would be the case for a folder change in which the conversation is no longer
1736 public ConversationOperation(int type, Conversation conv, UndoCallback undoCallback) {
1740 public ConversationOperation(int type, Conversation conv, ContentValues values,
1784 // FLAG_MOSTLY_DEAD in the conversation itself
2019 // Below are methods that update Conversation data (update/delete)
2021 public int updateBoolean(Conversation conversation, String columnName, boolean value) {
2022 return updateBoolean(Arrays.asList(conversation), columnName, value);
2028 public int updateInt(Collection<Conversation> conversations, String columnName,
2042 public int updateBoolean(Collection<Conversation> conversations, String columnName,
2052 public int updateString(Collection<Conversation> conversations, String columnName,
2064 public int updateStrings(Collection<Conversation> conversations,
2080 public int updateValues(Collection<Conversation> conversations, ContentValues values) {
2084 public int updateValues(Collection<Conversation> conversations, ContentValues values,
2094 * {@link #getOperationForConversation(Conversation, int, ContentValues, UndoCallback)}.
2102 Collection<Conversation> conversations, int type, ContentValues values,
2105 for (Conversation conv: conversations) {
2111 public ConversationOperation getOperationForConversation(Conversation conv, int type,
2116 public ConversationOperation getOperationForConversation(Conversation conv, int type,
2132 values.put(Conversation.UPDATE_FOLDER_COLUMN, FolderList.copyOf(targetFolders).toBlob());
2135 public ConversationOperation getConversationFolderOperation(Conversation conv,
2140 public ConversationOperation getConversationFolderOperation(Conversation conv,
2146 public ConversationOperation getConversationFolderOperation(Conversation conv,
2153 public ConversationOperation getConversationFolderOperation(Conversation conv,
2189 public int delete(Collection<Conversation> conversations) {
2193 public int delete(Collection<Conversation> conversations, UndoCallback undoCallback) {
2200 public int archive(Collection<Conversation> conversations) {
2204 public int archive(Collection<Conversation> conversations, UndoCallback undoCallback) {
2211 public int mute(Collection<Conversation> conversations) {
2215 public int mute(Collection<Conversation> conversations, UndoCallback undoCallback) {
2222 public int reportSpam(Collection<Conversation> conversations) {
2226 public int reportSpam(Collection<Conversation> conversations, UndoCallback undoCallback) {
2233 public int reportNotSpam(Collection<Conversation> conversations) {
2237 public int reportNotSpam(Collection<Conversation> conversations, UndoCallback undoCallback) {
2244 public int reportPhishing(Collection<Conversation> conversations) {
2248 public int reportPhishing(Collection<Conversation> conversations, UndoCallback undoCallback) {
2255 public int discardDrafts(Collection<Conversation> conversations) {
2259 public int discardDrafts(Collection<Conversation> conversations, UndoCallback undoCallback) {
2264 * Move the failed messages in the specified conversation from the current folder to drafts
2266 public int moveFailedIntoDrafts(Collection<Conversation> conversations) {
2274 public int mostlyArchive(Collection<Conversation> conversations) {
2278 public int mostlyArchive(Collection<Conversation> conversations, UndoCallback undoCallback) {
2285 public int mostlyDelete(Collection<Conversation> conversations) {
2289 public int mostlyDelete(Collection<Conversation> conversations, UndoCallback undoCallback) {
2296 public int mostlyDestructiveUpdate(Collection<Conversation> conversations,
2301 public int mostlyDestructiveUpdate(Collection<Conversation> conversations,
2315 private int applyAction(Collection<Conversation> conversations, int opAction,
2318 for (Conversation conv: conversations) {
2380 for (final Conversation conversation : mNotificationTempDeleted) {
2381 sProvider.undeleteLocal(conversation.uri, ConversationCursor.this);
2395 * "Undo" action is available, we do not want to show the conversation in the list.
2407 final Set<Conversation> undoneConversations =
2410 final Set<Conversation> undoConversations =
2428 final Conversation conversation = notificationAction.getConversation();
2430 undoConversations.add(conversation);
2432 if (!mNotificationTempDeleted.contains(conversation)) {
2433 sProvider.deleteLocal(conversation.uri, ConversationCursor.this,
2435 mNotificationTempDeleted.add(conversation);
2445 final Iterator<Conversation> iterator = mNotificationTempDeleted.iterator();
2447 final Conversation conversation = iterator.next();
2449 if (!undoConversations.contains(conversation)) {
2455 if (undoneConversations.contains(conversation)) {
2456 sProvider.undeleteLocal(conversation.uri, ConversationCursor.this);
2457 undoneConversations.remove(conversation);