Searched refs:conversation (Results 1 - 25 of 29) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationItemViewModel.java45 * This is the view model for the conversation header. It includes all the
46 * information needed to layout a conversation header view. Each view model is
47 * associated with a conversation and is cached to improve the relayout time.
62 // The hashcode used to detect if the conversation has changed.
109 public Conversation conversation; field in class:ConversationItemViewModel
142 * Returns the view model for a conversation. If the model doesn't exist for this conversation
145 * @param account the account contains this conversation
146 * @param conversationId the Id of this conversation
147 * @return the view model for this conversation, o
[all...]
H A DConversationItemView.java179 /** When in conversation mode, true if the list is hidden */
228 * The conversation id, if this conversation was selected the last time we were in a selection
240 * A listener for clicks on the various areas of a conversation item.
274 * Handles displaying folders in a conversation header view.
513 public void bind(final Conversation conversation, final ControllableActivity activity, argument
521 bind(ConversationItemViewModel.forConversation(mAccount, conversation), activity,
558 // If this was previously bound to a different conversation, remove any contact photo
560 if (header.conversation.id != mHeader.conversation
[all...]
H A DSwipeableConversationItemView.java58 public void bind(final Conversation conversation, final ControllableActivity activity, argument
65 mConversationItemView.bind(conversation, activity, conversationListListener, set, folder,
H A DConversationCursor.java72 * ConversationCursor is a wrapper around a conversation list cursor that provides update/delete
255 public Conversation conversation; field in class:ConversationCursor.UnderlyingRowData
257 public UnderlyingRowData(String innerUri, Conversation conversation) { argument
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 ur
518 cacheConversation(Conversation conversation) argument
1982 updateBoolean(Conversation conversation, String columnName, boolean value) argument
[all...]
H A DSelectedConversationsActionMenu.java89 /** Object that can update conversation state on our behalf. */
283 * Destroy these conversations through the conversation updater
353 // Update the actionbar to select operations available on the current conversation.
361 for (Conversation conversation : conversations) {
362 if (!conversation.starred) {
365 if (conversation.read) {
368 if (!conversation.isImportant()) {
371 if (conversation.spam) {
374 if (!conversation.phishing) {
462 // drafts for a conversation
[all...]
H A DMessageHeaderView.java443 final Conversation conversation = mMessage.getConversation();
444 if (conversation != null) {
445 for (Folder folder : conversation.getRawFolders()) {
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DConversation.java179 * Used within the UI to indicate the adapter position of this conversation
203 /** An immutable, empty conversation list */
284 final StringBuilder sb = new StringBuilder("[conversation id=");
317 * The column that needs to be updated to change the folders for a conversation.
427 final Conversation conversation = new Conversation();
429 conversation.id = id;
430 conversation.uri = uri;
431 conversation.subject = subject;
432 conversation.dateMs = dateMs;
433 conversation
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationSelectionSet.java40 * 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. */
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
135 contains(Conversation conversation) argument
249 toggle(Conversation conversation) argument
[all...]
H A DConversationListCallbacks.java33 * Show the conversation provided here. If the conversation is null, this is a request to pop
34 * <em>out</em> of conversation view mode and head back to conversation list mode, or whatever
36 * @param conversation conversation to display, possibly null.
40 void onConversationSelected(Conversation conversation, boolean inLoaderCallbacks); argument
58 * Returns whether the initial conversation has begun but not finished loading. If this returns
62 * This flag only applies to the first conversation in a set (e.g. when using ViewPager).
64 * @return true if the initial conversation ha
[all...]
H A DTwoPaneController.java63 * Display the conversation list fragment.
77 * Render the conversation list in the correct pane.
156 // The conversation list is visible.
163 // It's possible that we are not in conversation list mode
191 // In conversation mode, if the conversation list is not visible, then the user cannot
194 // When the conversation list is made visible again, try to enable the CAB
225 // On two-pane, the back button is only removed in the conversation list mode for top level
236 * Enable or disable the CAB mode based on the visibility of the conversation list fragment.
269 protected void showConversation(Conversation conversation, boolea argument
308 setCurrentConversation(Conversation conversation) argument
[all...]
H A DConversationPositionTracker.java29 * An iterator over a conversation list that keeps track of the position of a conversation, and
30 * updates the position accordingly when the underlying list data changes and the conversation
44 /** The currently selected conversation */
50 * Constructs a position tracker that doesn't point to any specific conversation.
56 /** Move cursor to a specific position and return the conversation there */
78 * @return the {@link Conversation} of the newer conversation by one position. If no such
79 * conversation exists, this method returns null.
86 // Walk backward from the existing position, trying to find a conversation that is not a
100 * @return the {@link Conversation} of the older conversation b
128 initialize(Conversation conversation) argument
[all...]
H A DMultiFoldersSelectionDialog.java42 * Displays a folder selection dialog for the conversation provided. It allows
43 * the user to mark folders to assign that conversation to.
83 for (final Conversation conversation : mTarget) {
84 final List<Folder> rawFolders = conversation.getRawFolders();
89 // There are no folders for this conversation, so it must
H A DOnePaneController.java44 private static final String CONVERSATION_LIST_TRANSACTION_KEY = "conversation-list-transaction";
46 private static final String CONVERSATION_TRANSACTION_KEY = "conversation-transaction";
48 private static final String CONVERSATION_LIST_VISIBLE_KEY = "conversation-list-visible";
50 private static final String CONVERSATION_LIST_NEVER_SHOWN_KEY = "conversation-list-never-shown";
56 /** Whether a conversation list for this account has ever been shown.*/
104 * Returns true if the user is currently in the conversation list view, viewing the default
106 * @return true if user is in conversation list mode, viewing the default inbox.
146 // When entering conversation list mode, hide and clean up any currently visible
147 // conversation.
151 // When we step away from the conversation mod
207 showConversation(Conversation conversation, boolean inLoaderCallbacks) argument
[all...]
H A DLeaveBehindItem.java167 * @param item the conversation to animate
270 public void setData(Conversation conversation) { argument
271 mData = conversation;
H A DSecureConversationViewFragment.java92 * to display a conversation with other parameters inherited/copied from an
96 Conversation conversation) {
99 args.putParcelable(ARG_CONVERSATION, conversation);
95 newInstance(Bundle existingArgs, Conversation conversation) argument
H A DAnimatedAdapter.java323 * Add a conversation to the undo set, but only if its deletion is still cached. If the
326 * @param item id for the conversation that is being undeleted.
327 * @return true if the conversation is still cached and therefore we will handle the undo.
419 * Deletes the selected conversations from the conversation list view with a
425 * the conversation.
436 * Deletes the selected conversations from the conversation list view by
442 * the conversation.
705 // advance the cursor to the right position and read the cached conversation, if present
723 private View getDeletingView(int position, Conversation conversation, ViewGroup parent, argument
725 conversation
762 newConversationItemView(int position, ViewGroup parent, Conversation conversation) argument
[all...]
H A DNestedFolderTeaserView.java61 * The teaser list item in the conversation list that shows nested folders.
97 /** When in conversation mode, true if the list is hidden */
564 final Conversation conversation = data.getModel();
566 if (!conversation.read) {
573 conversation.conversationInfo.messageInfos) {
H A DAbstractActivityController.java147 private static final String SAVED_CONVERSATION = "saved-conversation";
166 "saved-conversation-list-scroll-positions";
170 /** Tag used when loading a conversation list fragment. */
171 public static final String TAG_CONVERSATION_LIST = "tag-conversation-list";
197 /** A map of {@link Folder} {@link Uri} to scroll position in the conversation list. */
378 * An additional complication arises if we have to view a specific conversation within this
379 * folder. This is the case when launching the app from a single conversation notification
380 * or tapping on a specific conversation in the widget. In these cases, the conversation is
386 /** The conversation curso
2394 showConversation(Conversation conversation) argument
2407 showConversation(Conversation conversation, boolean inLoaderCallbacks) argument
2483 onConversationSelected(Conversation conversation, boolean inLoaderCallbacks) argument
2523 setCurrentConversation(Conversation conversation) argument
[all...]
H A DAbstractConversationViewFragment.java64 public static final String ARG_CONVERSATION = "conversation";
98 /** True if we want to avoid marking the conversation as viewed and read. */
101 * Parcelable state of the conversation view. Can safely be used without null checking any time
154 * shown in the conversation view.
157 // Do not automatically mark this conversation viewed and read.
163 * many messages related to this conversation.
171 * many messages related to this conversation.
220 * (such as one that does not rely on account and/or conversation.
223 // Since the uri specified in the conversation base uri may not be unique, we specify a
224 // base uri that us guaranteed to be unique for this conversation
589 onConversationUpdated(Conversation conversation) argument
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DConversationListItem.java44 * This class manages the view for given conversation.
175 public final void bind(Context context, final Conversation conversation) { argument
178 mConversation = conversation;
183 boolean hasError = conversation.hasError();
193 boolean hasAttachment = conversation.hasAttachment();
197 mDateView.setText(MessageUtils.formatTimeStampString(context, conversation.getDate()));
202 // Register for updates in changes of any of the contacts in this conversation.
203 ContactList contacts = conversation.getRecipients();
211 mSubjectView.setText(conversation.getSnippet());
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
H A DWidgetConversationListItemViewBuilder.java149 public RemoteViews getStyledView(final CharSequence date, final Conversation conversation, argument
153 final boolean isUnread = !conversation.read;
154 final String snippet = conversation.getSnippet();
155 final boolean hasAttachments = conversation.hasAttachments;
199 mFolderDisplayer.loadConversationFolders(conversation, folderUri, ignoreFolderType);
H A DWidgetService.java151 // Build a task stack that forces the conversation list on the stack before the compose
406 Conversation conversation = new Conversation(mConversationCursor);
410 if (conversation.conversationInfo != null) {
412 SendersView.format(mContext, conversation.conversationInfo, "",
416 senderBuilder.append(conversation.senders);
417 senderBuilder.setSpan(conversation.read ? getReadStyle() : getUnreadStyle(), 0,
422 conversation.dateMs);
433 conversation, new FolderUri(mFolderUri), ignoreFolderType,
434 senderBuilder, filterTag(conversation.subject));
438 Utils.createViewConversationIntent(mContext, conversation, mFolderUr
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DNotificationActionUtils.java86 final Conversation conversation, final Message message) {
115 boolean shouldDisplayPrimary(Folder folder, Conversation conversation, Message message); argument
165 public int getActionIconResId(final Folder folder, final Conversation conversation, argument
167 if (mActionToggler == null || mActionToggler.shouldDisplayPrimary(folder, conversation,
175 public int getDisplayStringResId(final Folder folder, final Conversation conversation, argument
177 if (mActionToggler == null || mActionToggler.shouldDisplayPrimary(folder, conversation,
197 final Account account, final Conversation conversation, final Message message,
205 folder, conversation, message), context.getString(notificationAction
206 .getDisplayStringResId(folder, conversation, message)),
207 getNotificationActionPendingIntent(context, account, conversation, messag
195 addNotificationActions(final Context context, final Intent notificationIntent, final NotificationCompat.Builder notification, final Account account, final Conversation conversation, final Message message, final Folder folder, final int notificationId, final long when, final Set<String> notificationActions) argument
299 getNotificationActionPendingIntent(final Context context, final Account account, final Conversation conversation, final Message message, final Folder folder, final Intent notificationIntent, final NotificationActionType action, final int notificationId, final long when) argument
402 NotificationAction(final NotificationActionType notificationActionType, final Account account, final Conversation conversation, final Message message, final Folder folder, final long conversationId, final String messageId, final long localMessageId, final long when) argument
[all...]
H A DNotificationUtils.java474 // Do not allow this quick check to disrupt any active network-enabled conversation
578 // Launch directly to the conversation, if there is only 1 unseen conversation
589 launchConversationMode ? "conversation" : "conversation_list",
674 * @return an {@link Intent} which, if launched, will display the corresponding conversation
689 // A conversation cursor has been specified, so this intent is intended to be go
690 // directly to the one new conversation
693 final Conversation conversation = new Conversation(cursor);
694 intent = Utils.createViewConversationIntent(context, conversation,
781 final Conversation conversation
[all...]
H A DUtils.java269 * <li><em>int</em>, the number of non-draft messages in the conversation</li>
271 * <li><em>int</em>, the number of drafts in the conversation</li>
289 * conversation and then describe the most important messages in order,
710 * Create an intent to show a conversation.
711 * @param conversation Conversation to open.
717 Conversation conversation, final Uri folderUri, Account account) {
721 final Uri versionedUri = appendVersionQueryParameter(context, conversation.uri);
728 intent.putExtra(Utils.EXTRA_CONVERSATION, conversation);
1156 * @param cursor a conversation cursor
1170 * @param cursor a conversation curso
716 createViewConversationIntent(final Context context, Conversation conversation, final Uri folderUri, Account account) argument
[all...]

Completed in 254 milliseconds

12