Home | History | Annotate | Download | only in providers

Lines Matching defs:Conversation

44 public class Conversation implements Parcelable {
179 * Used within the UI to indicate the adapter position of this conversation
187 // Used within the UI to indicate that a Conversation should be removed from
189 // Conversation is no longer in the ConversationList for the current folder,
203 /** An immutable, empty conversation list */
204 public static final Collection<Conversation> EMPTY = Collections.emptyList();
245 private Conversation(Parcel in, ClassLoader loader) {
284 final StringBuilder sb = new StringBuilder("[conversation id=");
294 public static final ClassLoaderCreator<Conversation> CREATOR =
295 new ClassLoaderCreator<Conversation>() {
298 public Conversation createFromParcel(Parcel source) {
299 return new Conversation(source, null);
303 public Conversation createFromParcel(Parcel source, ClassLoader loader) {
304 return new Conversation(source, loader);
308 public Conversation[] newArray(int size) {
309 return new Conversation[size];
317 * The column that needs to be updated to change the folders for a conversation.
321 public Conversation(Cursor cursor) {
374 public Conversation(Conversation other) {
416 public Conversation() {
419 public static Conversation create(long id, Uri uri, String subject, long dateMs, String snippet,
427 final Conversation conversation = new Conversation();
429 conversation.id = id;
430 conversation.uri = uri;
431 conversation.subject = subject;
432 conversation.dateMs = dateMs;
433 conversation.snippet = snippet;
434 conversation.hasAttachments = hasAttachment;
435 conversation.messageListUri = messageListUri;
436 conversation.senders = emptyIfNull(senders);
437 conversation.numMessages = numMessages;
438 conversation.numDrafts = numDrafts;
439 conversation.sendingState = sendingState;
440 conversation.priority = priority;
441 conversation.read = read;
442 conversation.seen = seen;
443 conversation.starred = starred;
444 conversation.rawFolders = rawFolders;
445 conversation.convFlags = convFlags;
446 conversation.personalLevel = personalLevel;
447 conversation.spam = spam;
448 conversation.phishing = phishing;
449 conversation.muted = muted;
450 conversation.color = 0;
451 conversation.accountUri = accountUri;
452 conversation.conversationInfo = conversationInfo;
453 conversation.conversationBaseUri = conversationBase;
454 conversation.isRemote = isRemote;
455 conversation.attachmentPreviews = null;
456 conversation.attachmentPreviewUri0 = attachmentPreviewUri0;
457 conversation.attachmentPreviewUri1 = attachmentPreviewUri1;
458 conversation.attachmentPreviewStates = attachmentPreviewStates;
459 conversation.attachmentPreviewsCount = attachmentPreviewsCount;
460 return conversation;
526 * keys) to this conversation.
535 LogUtils.i(LOG_TAG, "Conversation: applying cached value to col=%s val=%s", key,
559 * Get the <strong>immutable</strong> list of {@link Folder}s for this conversation. To modify
574 if (o instanceof Conversation) {
575 Conversation conv = (Conversation) o;
587 * Get if this conversation is marked as high priority.
594 * Get if this conversation is mostly dead
601 * Returns true if the URI of the conversation specified as the needle was
609 public final static boolean contains(Collection<Conversation> haystack, Conversation needle) {
619 for (final Conversation c : haystack) {
628 * Returns a collection of a single conversation. This method always returns
629 * a valid collection even if the input conversation is null.
631 * @param in a conversation, possibly null.
632 * @return a collection of the conversation.
634 public static Collection<Conversation> listOf(Conversation in) {
635 final Collection<Conversation> target = (in == null) ? EMPTY : ImmutableList.of(in);
640 * Get the snippet for this conversation. Masks that it may come from
641 * conversation info or the original deprecated snippet string.
649 * Get the number of messages for this conversation.
656 * Get the number of drafts for this conversation.
692 public static String toString(Collection<Conversation> collection) {
695 for (final Conversation c : collection) {
713 * conversation.
736 * Public object that knows how to construct Conversation given Cursors. This is not used by
739 public static final CursorCreator<Conversation> FACTORY = new CursorCreator<Conversation>() {
741 public Conversation createFromCursor(final Cursor c) {
742 return new Conversation(c);
747 return "Conversation CursorCreator";