Home
last modified time | relevance | path

Searched refs:conv (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DSendersFormattingTests.java45 final ConversationInfo conv = createConversationInfo(); in testMeFromNullName() local
46 conv.addParticipant(new ParticipantInfo(null, "something@somewhere.com", 0, false)); in testMeFromNullName()
51 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); in testMeFromNullName() local
57 final ConversationInfo conv = createConversationInfo(); in testMeFromEmptyName() local
58 conv.addParticipant(new ParticipantInfo("", "something@somewhere.com", 0, false)); in testMeFromEmptyName()
63 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); in testMeFromEmptyName() local
69 final ConversationInfo conv = createConversationInfo(); in testMeFromDuplicateEmptyNames() local
70 conv.addParticipant(new ParticipantInfo("", "something@somewhere.com", 0, false)); in testMeFromDuplicateEmptyNames()
71 conv.addParticipant(new ParticipantInfo("", "something@somewhere.com", 0, false)); in testMeFromDuplicateEmptyNames()
76 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); in testMeFromDuplicateEmptyNames() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationListService.java100 final ConversationListItemData conv = new ConversationListItemData(); in getViewAt() local
101 conv.bind(mCursor); in getViewAt()
107 final boolean hasUnreadMessages = !conv.getIsRead(); in getViewAt()
111 final String timeStamp = conv.getIsSendRequested() ? in getViewAt()
113 Dates.getWidgetTimeString(conv.getTimestamp(), true /*abbreviated*/) in getViewAt()
121 boldifyIfUnread(conv.getName(), hasUnreadMessages)); in getViewAt()
125 conv.getNotificationEnabled() ? View.GONE : View.VISIBLE); in getViewAt()
129 conv.getConversationId(), null /* draft */); in getViewAt()
153 if (conv.getIcon() != null) { in getViewAt()
154 iconUri = Uri.parse(conv.getIcon()); in getViewAt()
[all …]
DWidgetConversationProvider.java285 final ConversationListItemData conv = new ConversationListItemData(); in getConversationData() local
287 conv.bind(cursor); in getConversationData()
288 return conv; in getConversationData()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeableListView.java236 Conversation conv = target.getConversation(); in dismissChild() local
237 target.getConversation().position = findConversation(target, conv); in dismissChild()
242 adapter.setupLeaveBehind(conv, undoOp, conv.position, target.getHeight()); in dismissChild()
244 Collection<Conversation> convList = Conversation.listOf(conv); in dismissChild()
253 .hashMapForFolders(conv.getRawFolders()); in dismissChild()
256 conv.setRawFolders(folders); in dismissChild()
264 cc.mostlyDestructiveUpdate(Conversation.listOf(conv), values); in dismissChild()
277 && mConvCheckedSet.contains(conv)) { in dismissChild()
278 mConvCheckedSet.toggle(conv); in dismissChild()
281 if (!conv.isMostlyDead() && mConvCheckedSet.isEmpty()) { in dismissChild()
[all …]
DAnimatedAdapter.java383 Conversation conv) { in createConversationItemView() argument
387 view.bind(conv, mActivity, mBatchConversations, mFolder, getCheckboxSetting(), in createConversationItemView()
506 final Conversation conv = cursor.getConversation(); in getView() local
511 if (isPositionUndoing(conv.id)) { in getView()
512 return getUndoingView(position - getPositionOffset(position), conv, parent, in getView()
514 } if (isPositionUndoingSwipe(conv.id)) { in getView()
515 return getUndoingView(position - getPositionOffset(position), conv, parent, in getView()
517 } else if (isPositionDeleting(conv.id)) { in getView()
518 return getDeletingView(position - getPositionOffset(position), conv, parent, false); in getView()
519 } else if (isPositionSwipeDeleting(conv.id)) { in getView()
[all …]
DConversationListFragment.java723 final Conversation conv = ((ConversationCursor) item).getConversation(); in onKey() local
724 mCallbacks.onConversationFocused(conv); in onKey()
855 final Conversation conv = cursor.getConversation(); in viewConversation() local
860 conv.position = cursor.getPosition(); in viewConversation()
861 setActivated(conv, true); in viewConversation()
862 mCallbacks.onConversationSelected(conv, false /* inLoaderCallbacks */); in viewConversation()
971 for (Conversation conv : conversations) { in requestDelete()
972 conv.localDeleteOnUpdate = true; in requestDelete()
1152 final Conversation conv = mCallbacks.getCurrentConversation(); in onCursorUpdated() local
1154 if (conv != null && !currentConvIsPeeking) { in onCursorUpdated()
[all …]
DAbstractActivityController.java1483 int actionId, final Conversation conv) { in getUndoCallbackForDestructiveActionsWithAutoAdvance() argument
1488 final Collection<Conversation> convCol = Conversation.listOf(conv); in getUndoCallbackForDestructiveActionsWithAutoAdvance()
1503 showConversation(conv); in getUndoCallbackForDestructiveActionsWithAutoAdvance()
1772 public void markConversationMessagesUnread(final Conversation conv,
1778 conv.read = false;
1780 LogUtils.d(LOG_TAG, "markConversationMessagesUnread(id=%d), deferring", conv.id);
1785 doMarkConversationMessagesUnread(conv, unreadMessageUris,
1790 LogUtils.d(LOG_TAG, "markConversationMessagesUnread(id=%d), performing", conv.id);
1791 doMarkConversationMessagesUnread(conv, unreadMessageUris, originalConversationInfo);
1807 private void doMarkConversationMessagesUnread(Conversation conv, Set<Uri> unreadMessageUris,
[all …]
DConversationPositionTracker.java60 final Conversation conv = cursor.getConversation(); in conversationAtPosition() local
61 conv.position = position; in conversationAtPosition()
62 return conv; in conversationAtPosition()
DTwoPaneController.java827 final Conversation conv; in perhapsShowFirstConversation() local
831 conv = mSavedPeekingConversation; in perhapsShowFirstConversation()
833 LogUtils.i(LOG_TAG, "peeking at saved conv=%s", conv); in perhapsShowFirstConversation()
836 conv = mConversationListCursor.getConversation(); in perhapsShowFirstConversation()
837 conv.position = 0; in perhapsShowFirstConversation()
838 LogUtils.i(LOG_TAG, "peeking at default/zeroth conv=%s", conv); in perhapsShowFirstConversation()
841 showConversationWithPeek(conv, true /* peek */); in perhapsShowFirstConversation()
DLeaveBehindData.java29 public LeaveBehindData(Conversation conv, ToastBarOperation undoOp, int height) { in LeaveBehindData() argument
30 data = conv; in LeaveBehindData()
DConversationUpdater.java110 void markConversationMessagesUnread(Conversation conv, Set<Uri> unreadMessageUris, in markConversationMessagesUnread() argument
120 boolean markConversationSeen(Conversation conv); in markConversationSeen() argument
DConversationViewState.java123 public void setInfoForConversation(Conversation conv) { in setInfoForConversation() argument
124 mConversationInfo = conv.conversationInfo.toBlob(); in setInfoForConversation()
DFolderDisplayer.java88 public void loadConversationFolders(Conversation conv, final FolderUri ignoreFolderUri, in loadConversationFolders() argument
91 for (Folder folder : conv.getRawFolders()) { in loadConversationFolders()
DSecureConversationViewFragment.java266 public void onConversationUpdated(Conversation conv) { in onConversationUpdated() argument
269 headerView.onConversationUpdated(conv); in onConversationUpdated()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationPagerAdapter.java426 final Conversation conv = cursor.getConversation(); in notifyDataSetChanged() local
427 conv.position = pos; in notifyDataSetChanged()
428 frag.onConversationUpdated(conv); in notifyDataSetChanged()
429 mController.setCurrentConversation(conv); in notifyDataSetChanged()
455 public int getConversationPosition(Conversation conv) { in getConversationPosition() argument
456 if (conv == null) { in getConversationPosition()
463 if (!conv.equals(def)) { in getConversationPosition()
465 conv, def); in getConversationPosition()
469 conv, this); in getConversationPosition()
477 final int pos = cursor.getConversationPosition(conv.id); in getConversationPosition()
[all …]
DConversationViewHeader.java113 public void setFolders(Conversation conv) { in setFolders() argument
114 mSubjectAndFolderView.setFolders(mCallbacks, mAccountController.getAccount(), conv); in setFolders()
146 public void onConversationUpdated(Conversation conv) { in onConversationUpdated() argument
150 mConversation = conv; in onConversationUpdated()
151 setSubject(conv.subject); in onConversationUpdated()
152 setFolders(conv); in onConversationUpdated()
153 setStarred(conv.starred); in onConversationUpdated()
DConversationCursor.java1548 void setMostlyDead(Conversation conv, ConversationCursor conversationCursor, in setMostlyDead() argument
1550 Uri uri = conv.uri; in setMostlyDead()
1552 conversationCursor.setMostlyDead(uriString, conv); in setMostlyDead()
1556 void commitMostlyDead(Conversation conv, ConversationCursor conversationCursor) { in commitMostlyDead() argument
1557 conversationCursor.commitMostlyDead(conv); in commitMostlyDead()
1660 void setMostlyDead(String uriString, Conversation conv) { in setMostlyDead() argument
1664 conv.convFlags |= Conversation.FLAG_MOSTLY_DEAD; in setMostlyDead()
1665 mMostlyDead.add(conv); in setMostlyDead()
1669 void commitMostlyDead(Conversation conv) { in commitMostlyDead() argument
1670 conv.convFlags &= ~Conversation.FLAG_MOSTLY_DEAD; in commitMostlyDead()
[all …]
DConversationItemViewModel.java152 static ConversationItemViewModel forConversation(String account, Conversation conv) { in forConversation() argument
154 conv.id); in forConversation()
155 header.conversation = conv; in forConversation()
156 header.unread = !conv.read; in forConversation()
158 (conv.convFlags & UIProvider.ConversationFlags.FORWARDED) in forConversation()
161 (conv.convFlags & UIProvider.ConversationFlags.REPLIED) in forConversation()
164 (conv.convFlags & UIProvider.ConversationFlags.CALENDAR_INVITE) in forConversation()
DSendersView.java144 public static SpannableStringBuilder createMessageInfo(Context context, Conversation conv, in createMessageInfo() argument
149 final ConversationInfo conversationInfo = conv.conversationInfo; in createMessageInfo()
150 final int sendingStatus = conv.sendingState; in createMessageInfo()
165 conv.read ? sMessageInfoReadStyleSpan : sMessageInfoUnreadStyleSpan), in createMessageInfo()
166 false, conv.read); in createMessageInfo()
180 conv.read); in createMessageInfo()
202 appendMessageInfo(messageInfo, statusText, span, appendSplitToken, conv.read); in createMessageInfo()
DSubjectAndFolderView.java107 Conversation conv) { in setFolders() argument
115 if (settings.importanceMarkersEnabled && conv.isImportant()) { in setFolders()
137 mFolderDisplayer.loadConversationFolders(conv, null /* ignoreFolder */, in setFolders()
DConversationViewAdapter.java121 private ConversationHeaderItem(Conversation conv) { in ConversationHeaderItem() argument
122 mConversation = conv; in ConversationHeaderItem()
641 public int addConversationHeader(Conversation conv) { in addConversationHeader() argument
642 return addItem(new ConversationHeaderItem(conv)); in addConversationHeader()
DSelectedConversationsActionMenu.java185 for (Conversation conv: mCheckedSet.values()) { in onActionItemClicked()
187 accountUri = conv.accountUri; in onActionItemClicked()
188 } else if (!accountUri.equals(conv.accountUri)) { in onActionItemClicked()
DConversationItemView.java262 public void loadConversationFolders(Conversation conv, final FolderUri ignoreFolderUri, in loadConversationFolders() argument
264 super.loadConversationFolders(conv, ignoreFolderUri, ignoreFolderType); in loadConversationFolders()
1386 final Conversation conv = mHeader.conversation; in toggleCheckedState() local
1391 conv.position = mChecked && listView != null ? listView.getPositionForView(this) in toggleCheckedState()
1402 mCheckedConversationSet.toggle(conv); in toggleCheckedState()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DDataModelTest.java49 final ConversationData conv = dataModel.createConversationData(getContext(), in testCreateConversationList() local
51 assertTrue(conv instanceof ConversationData); in testCreateConversationList()
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetConversationListItemViewBuilder.java67 public void loadConversationFolders(Conversation conv, final FolderUri ignoreFolderUri, in loadConversationFolders() argument
69 super.loadConversationFolders(conv, ignoreFolderUri, ignoreFolderType); in loadConversationFolders()

12