Home
last modified time | relevance | path

Searched refs:localMessage (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Email/src/com/android/email/
DLegacyConversions.java77 public static boolean updateMessageFields(EmailContent.Message localMessage, Message message, in updateMessageFields() argument
90 localMessage.mDisplayName = from[0].toFriendly(); in updateMessageFields()
93 localMessage.mTimeStamp = sentDate.getTime(); in updateMessageFields()
96 localMessage.mSubject = subject; in updateMessageFields()
98 localMessage.mFlagRead = message.isSet(Flag.SEEN); in updateMessageFields()
100 localMessage.mFlags |= EmailContent.Message.FLAG_REPLIED_TO; in updateMessageFields()
105 if (localMessage.mFlagLoaded != EmailContent.Message.FLAG_LOADED_COMPLETE) { in updateMessageFields()
106 if (localMessage.mDisplayName == null || "".equals(localMessage.mDisplayName)) { in updateMessageFields()
107 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_UNLOADED; in updateMessageFields()
109 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_PARTIAL; in updateMessageFields()
[all …]
DMessagingController.java552 EmailContent.Message localMessage = null; in downloadFlagAndEnvelope() local
554 localMessage = new EmailContent.Message(); in downloadFlagAndEnvelope()
556 localMessage = EmailContent.Message.restoreMessageWithId( in downloadFlagAndEnvelope()
560 if (localMessage != null) { in downloadFlagAndEnvelope()
563 LegacyConversions.updateMessageFields(localMessage, in downloadFlagAndEnvelope()
566 saveOrUpdate(localMessage, mContext); in downloadFlagAndEnvelope()
569 unseenMessages.add(localMessage.mId); in downloadFlagAndEnvelope()
683 EmailContent.Message localMessage = new EmailContent.Message(); in searchMailboxImpl() local
686 LegacyConversions.updateMessageFields(localMessage, in searchMailboxImpl()
689 saveOrUpdate(localMessage, mContext); in searchMailboxImpl()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DConversionUtilities.java61 EmailContent.Message localMessage, ArrayList<Part> viewables) in updateBodyFields() argument
64 body.mMessageKey = localMessage.mId; in updateBodyFields()
94 localMessage.mFlags &= ~EmailContent.Message.FLAG_TYPE_MASK; in updateBodyFields()
95 localMessage.mFlags |= isQuotedReply in updateBodyFields()
118 localMessage.mSnippet = TextUtilities.makeSnippetFromPlainText(text); in updateBodyFields()
123 if (localMessage.mSnippet == null) { in updateBodyFields()
124 localMessage.mSnippet = TextUtilities.makeSnippetFromHtmlText(text); in updateBodyFields()
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java104 EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields() local
106 boolean result = LegacyConversions.updateMessageFields(localMessage, message, 1, 1); in testUpdateMessageFields()
108 checkProviderMessage("testUpdateMessageFields", message, localMessage); in testUpdateMessageFields()
118 EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFieldsNoMessageId() local
121 localMessage.mMessageId = MESSAGE_ID_2; in testUpdateMessageFieldsNoMessageId()
124 boolean result = LegacyConversions.updateMessageFields(localMessage, message, 1, 1); in testUpdateMessageFieldsNoMessageId()
126 assertEquals(MESSAGE_ID_2, localMessage.mMessageId); in testUpdateMessageFieldsNoMessageId()
180 EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateBodyFieldsNullText() local
186 boolean result = ConversionUtilities.updateBodyFields(localBody, localMessage, viewables); in testUpdateBodyFieldsNullText()
200 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in testAddAttachments() local
[all …]