Home | History | Annotate | Download | only in ui

Lines Matching defs:conversation

24 import com.android.mail.providers.Conversation;
40 * selection set (e.g. in a conversation list). This class dispatches changes
67 /** Map of conversation ID to conversation objects. Every selected conversation is here. */
68 private final HashMap<Long, Conversation> mInternalMap = new HashMap<Long, Conversation>();
69 /** Map of Conversation URI to Conversation ID. */
85 Conversation conversation = (Conversation) parceled;
86 put(conversation.id, conversation);
119 * Returns true if the given key exists in the conversation selection set. This assumes
120 * the internal representation holds conversation.id values.
121 * @param key the id of the conversation
131 * Returns true if the given conversation is stored in the selection set.
132 * @param conversation
133 * @return true if the conversation exists in the selected set.
135 public boolean contains(Conversation conversation) {
137 return containsKey(conversation.id);
173 * Is this conversation set empty?
174 * @return true if the conversation selection set is empty. False otherwise.
182 private void put(Long id, Conversation info) {
244 * Toggles the existence of the given conversation in the selection set. If the conversation is
247 * @param conversation
249 public void toggle(Conversation conversation) {
250 final long conversationId = conversation.id;
255 put(conversationId, conversation);
260 public Collection<Conversation> values() {
296 Conversation[] values = values().toArray(new Conversation[size()]);
301 * @param deletedRows an arraylist of conversation IDs which have been deleted.
327 // For each of the uris in the deleted set, add the conversation id to the
343 // At this point batchConversationToCheck contains the conversation ids for the
347 // This set contains the conversation ids that are in the conversation cursor
350 // We want to remove all of the valid items that are in the conversation cursor, from
352 // would be items that don't exist in the conversation cursor anymore.
358 // are to be removed from the selected conversation set