Home
last modified time | relevance | path

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

/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java78 public static boolean updateMessageFields(final EmailContent.Message localMessage, in updateMessageFields() argument
92 localMessage.mDisplayName = from[0].toFriendly(); in updateMessageFields()
95 localMessage.mTimeStamp = sentDate.getTime(); in updateMessageFields()
98 localMessage.mTimeStamp = internalDate.getTime(); in updateMessageFields()
101 localMessage.mSubject = subject; in updateMessageFields()
103 localMessage.mFlagRead = message.isSet(Flag.SEEN); in updateMessageFields()
105 localMessage.mFlags |= EmailContent.Message.FLAG_REPLIED_TO; in updateMessageFields()
110 if (localMessage.mFlagLoaded != EmailContent.Message.FLAG_LOADED_COMPLETE) { in updateMessageFields()
111 if (localMessage.mDisplayName == null || "".equals(localMessage.mDisplayName)) { in updateMessageFields()
112 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_UNLOADED; in updateMessageFields()
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DUtilities.java59 EmailContent.Message localMessage = null; in copyOneMessageToProvider() local
77 localMessage = EmailContent.getContent(context, c, EmailContent.Message.class); in copyOneMessageToProvider()
79 localMessage = new EmailContent.Message(); in copyOneMessageToProvider()
81 localMessage.mMailboxKey = folder.mId; in copyOneMessageToProvider()
82 localMessage.mAccountKey = account.mId; in copyOneMessageToProvider()
83 copyOneMessageToProvider(context, message, localMessage, loadStatus); in copyOneMessageToProvider()
102 EmailContent.Message localMessage, int loadStatus) { in copyOneMessageToProvider() argument
105 if (localMessage.mId != EmailContent.Message.NO_MESSAGE) { in copyOneMessageToProvider()
106 body = EmailContent.Body.restoreBodyWithMessageId(context, localMessage.mId); in copyOneMessageToProvider()
113 LegacyConversions.updateMessageFields(localMessage, message, in copyOneMessageToProvider()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTest.java64 final EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields_Basic() local
65 final boolean result = LegacyConversions.updateMessageFields(localMessage, message, 1, 1); in testUpdateMessageFields_Basic()
68 assertEquals(message.getUid(), localMessage.mServerId); in testUpdateMessageFields_Basic()
69 assertEquals(message.getSubject(), localMessage.mSubject); in testUpdateMessageFields_Basic()
70 assertEquals(message.getMessageId(), localMessage.mMessageId); in testUpdateMessageFields_Basic()
71 assertEquals(message.getSentDate().getTime(), localMessage.mTimeStamp); in testUpdateMessageFields_Basic()
101 final EmailContent.Message localMessage = new EmailContent.Message(); in testUpdateMessageFields_PlainAddresses() local
102 final boolean result = LegacyConversions.updateMessageFields(localMessage, message, 1, 1); in testUpdateMessageFields_PlainAddresses()
106 assertEquals(fromList, localMessage.mFrom); in testUpdateMessageFields_PlainAddresses()
107 assertEquals(replyToList, localMessage.mReplyTo); in testUpdateMessageFields_PlainAddresses()
[all …]
DLegacyConversionsTests.java88 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAddAttachments() local
91 convertAndCheckcheckAddedAttachments(localMessage, legacyMessage); in brokentestAddAttachments()
103 private void convertAndCheckcheckAddedAttachments(final EmailContent.Message localMessage, in convertAndCheckcheckAddedAttachments() argument
109 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in convertAndCheckcheckAddedAttachments()
112 Uri uri = ContentUris.withAppendedId(Attachment.MESSAGE_ID_URI, localMessage.mId); in convertAndCheckcheckAddedAttachments()
122 localMessage.mAccountKey); in convertAndCheckcheckAddedAttachments()
125 localMessage.mAccountKey); in convertAndCheckcheckAddedAttachments()
176 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAttachmentDispositions() local
179 convertAndCheckcheckAddedAttachments(localMessage, legacyMessage); in brokentestAttachmentDispositions()
183 convertAndCheckcheckAddedAttachments(localMessage, legacyMessage); in brokentestAttachmentDispositions()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSyncCursorPair.java164 DatabaseMessage localMessage = mLocalCursorIterator.next(); in scan() local
169 if (remoteMessage == null && localMessage == null) { in scan()
173 } else if ((remoteMessage == null && localMessage != null) || in scan()
174 (localMessage != null && remoteMessage != null && in scan()
175 localMessage.getTimestampInMillis() in scan()
179 messagesToDelete.add((LocalDatabaseMessage) localMessage); in scan()
181 localMessage.getTimestampInMillis()); in scan()
183 localMessage = mLocalCursorIterator.next(); in scan()
185 } else if ((localMessage == null && remoteMessage != null) || in scan()
186 (localMessage != null && remoteMessage != null && in scan()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java313 final EmailContent.Message localMessage; in downloadFlagAndEnvelope() local
315 localMessage = new EmailContent.Message(); in downloadFlagAndEnvelope()
317 localMessage = EmailContent.Message.restoreMessageWithId( in downloadFlagAndEnvelope()
321 if (localMessage != null) { in downloadFlagAndEnvelope()
324 LegacyConversions.updateMessageFields(localMessage, in downloadFlagAndEnvelope()
327 Utilities.saveOrUpdate(localMessage, context); in downloadFlagAndEnvelope()
330 unseenMessages.add(localMessage.mId); in downloadFlagAndEnvelope()
599 LocalMessageInfo localMessage = localMessageMap.get(message.getUid()); in synchronizeMailboxGeneric() local
607 if (localMessage == null || in synchronizeMailboxGeneric()
608 (localMessage.mFlagLoaded == EmailContent.Message.FLAG_LOADED_UNLOADED) || in synchronizeMailboxGeneric()
[all …]
DPop3Service.java356 final LocalMessageInfo localMessage = localMessageMap.get(uid); in synchronizePop3Mailbox() local
357 if (localMessage == null) { in synchronizePop3Mailbox()
370 if (localMessage == null || in synchronizePop3Mailbox()
371 (localMessage.mFlagLoaded != EmailContent.Message.FLAG_LOADED_COMPLETE && in synchronizePop3Mailbox()
372 localMessage.mFlagLoaded != Message.FLAG_LOADED_PARTIAL)) { in synchronizePop3Mailbox()