/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/ |
D | MockUiProviderTests.java | 184 Cursor messageCursor = provider.query(u, UIProvider.MESSAGE_PROJECTION, null, null, in testGetFolders() local 186 if (messageCursor != null) { in testGetFolders() 187 int subject = messageCursor.getColumnIndex(UIProvider.MessageColumns.SUBJECT); in testGetFolders() 188 int attachmentUriCol = messageCursor in testGetFolders() 190 int hasAttachments = messageCursor in testGetFolders() 192 while (messageCursor.moveToNext()) { in testGetFolders() 195 assertEquals(messageCursor.getString(subject), "Message zeroConv0"); in testGetFolders() 196 assertEquals(messageCursor.getInt(hasAttachments), 1); in testGetFolders() 198 .add(Uri.parse(messageCursor.getString(attachmentUriCol))); in testGetFolders() 202 assertEquals(messageCursor.getString(subject), "Message zeroConv1"); in testGetFolders() [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 152 public static String getMessageText(final FakeCursor messageCursor, final int row) { in getMessageText() argument 153 … final String allPartsText = messageCursor.getAt(ConversationMessageViewColumns.PARTS_TEXTS, row) in getMessageText() 155 final int partsCount = (Integer) messageCursor.getAt( in getMessageText() 157 final String messageId = messageCursor.getAt( in getMessageText() 160 messageCursor.getAt(ConversationMessageViewColumns.PARTS_IDS, row).toString(), in getMessageText() 161 … messageCursor.getAt(ConversationMessageViewColumns.PARTS_CONTENT_TYPES, row).toString(), in getMessageText() 162 … messageCursor.getAt(ConversationMessageViewColumns.PARTS_CONTENT_URIS, row).toString(), in getMessageText() 163 messageCursor.getAt(ConversationMessageViewColumns.PARTS_WIDTHS, row).toString(), in getMessageText() 164 messageCursor.getAt(ConversationMessageViewColumns.PARTS_HEIGHTS, row).toString(), in getMessageText() 165 messageCursor.getAt(ConversationMessageViewColumns.PARTS_TEXTS, row).toString(), in getMessageText()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AbstractConversationViewFragment.java | 498 final MessageCursor messageCursor = (MessageCursor) data; in onLoadFinished() local 501 messageCursor.setController(AbstractConversationViewFragment.this); in onLoadFinished() 504 LogUtils.d(LOG_TAG, "LOADED CONVERSATION= %s", messageCursor.getDebugDump()); in onLoadFinished() 508 if (messageCursor.getCount() == 0 in onLoadFinished() 509 && (!CursorStatus.isWaitingForResults(messageCursor.getStatus()) in onLoadFinished() 531 if (!messageCursor.isLoaded()) { in onLoadFinished() 540 mCursor = messageCursor; in onLoadFinished() 684 final Cursor messageCursor = getMessageCursor(); in onDetachedModeEntered() local 686 if (messageCursor == null || messageCursor.getCount() == 0) { in onDetachedModeEntered()
|
D | ConversationViewFragment.java | 674 private void renderConversation(MessageCursor messageCursor) { in renderConversation() argument 675 final String convHtml = renderMessageBodies(messageCursor, mEnableContentReadySignal); in renderConversation() 715 protected String renderMessageBodies(MessageCursor messageCursor, in renderMessageBodies() argument 759 while (messageCursor.moveToPosition(++pos)) { in renderMessageBodies() 760 final ConversationMessage msg = messageCursor.getMessage(); in renderMessageBodies() 769 if (ExpansionState.isSuperCollapsed(savedExpanded) && messageCursor.isLast()) { in renderMessageBodies() 778 if (msg.starred || !msg.read || messageCursor.isLast()) { in renderMessageBodies() 780 } else if (messageCursor.isFirst()) { in renderMessageBodies() 1162 final MessageCursor messageCursor = getMessageCursor(); in getMessageForClickedUrl() local 1163 if (messageCursor == null) { in getMessageForClickedUrl() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | MessageMove.java | 246 final Cursor messageCursor = cr.query(ContentUris.withAppendedId( in getLastSyncedMailboxForMessage() local 249 if (messageCursor != null) { in getLastSyncedMailboxForMessage() 251 if (messageCursor.moveToFirst()) { in getLastSyncedMailboxForMessage() 252 return messageCursor.getLong(0); in getLastSyncedMailboxForMessage() 255 messageCursor.close(); in getLastSyncedMailboxForMessage()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | NotificationUtils.java | 1027 MessageCursor messageCursor = null; in configureLatestEventInfoFromConversation() local 1034 messageCursor = new MessageCursor(cursor); in configureLatestEventInfoFromConversation() 1038 if (messageCursor.moveToPosition(messageCursor.getCount() - 1)) { in configureLatestEventInfoFromConversation() 1039 final Message message = messageCursor.getMessage(); in configureLatestEventInfoFromConversation() 1047 while (messageCursor.moveToPosition(messageCursor.getPosition() - 1)) { in configureLatestEventInfoFromConversation() 1048 final Message message = messageCursor.getMessage(); in configureLatestEventInfoFromConversation() 1122 if (messageCursor != null) { in configureLatestEventInfoFromConversation() 1123 messageCursor.close(); in configureLatestEventInfoFromConversation() 1205 MessageCursor messageCursor = null; in configureNotifForOneConversation() local 1213 messageCursor = new MessageCursor(cursor); in configureNotifForOneConversation() [all …]
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | DBHelper.java | 1765 Cursor messageCursor = db.query(Message.TABLE_NAME, Message.CONTENT_PROJECTION, null, in upgradeFromVersion29ToVersion30() local 1770 while (messageCursor.moveToNext()) { in upgradeFromVersion29ToVersion30() 1773 … Address.fromHeader(messageCursor.getString(ADDRESS_COLUMN_INDICES[i])); in upgradeFromVersion29ToVersion30() 1776 whereArgs[0] = messageCursor.getString(Message.CONTENT_ID_COLUMN); in upgradeFromVersion29ToVersion30() 1780 messageCursor.close(); in upgradeFromVersion29ToVersion30() 1791 Cursor messageCursor = db.query(Message.TABLE_NAME, Message.CONTENT_PROJECTION, null, in upgradeFromVersion125ToVersion126() local 1796 while (messageCursor.moveToNext()) { in upgradeFromVersion125ToVersion126() 1799 … Address.fromHeader(messageCursor.getString(ADDRESS_COLUMN_INDICES[i])); in upgradeFromVersion125ToVersion126() 1802 whereArgs[0] = messageCursor.getString(Message.CONTENT_ID_COLUMN); in upgradeFromVersion125ToVersion126() 1806 messageCursor.close(); in upgradeFromVersion125ToVersion126()
|
D | EmailProvider.java | 5520 final Cursor messageCursor = db.query(Message.TABLE_NAME, messageProjection, messageWhere, in uiPurgeFolder() local 5525 while (messageCursor != null && messageCursor.moveToNext()) { in uiPurgeFolder() 5526 final long messageId = messageCursor.getLong(messageCursor.getColumnIndex( in uiPurgeFolder()
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 2585 final Cursor messageCursor = resolver.query(messageUri, in sendOrSaveMessage() local 2587 if (messageCursor != null) { in sendOrSaveMessage() 2589 if (messageCursor.moveToFirst()) { in sendOrSaveMessage() 2593 new Message(messageCursor)); in sendOrSaveMessage() 2596 messageCursor.close(); in sendOrSaveMessage()
|