Home
last modified time | relevance | path

Searched refs:Message (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java46 import com.android.emailcommon.provider.EmailContent.Message;
168 private static Message createMessage( in createMessage()
170 Message message = ProviderTestUtils.setupMessage("1", in createMessage()
414 Message message1 = ProviderTestUtils.setupMessage("message1", in testMessageSave()
421 Message message1get = EmailContent.Message.restoreMessageWithId(mMockContext, message1Id); in testMessageSave()
427 Message message2 = ProviderTestUtils.setupMessage("message1", in testMessageSave()
440 Message message2get = EmailContent.Message.restoreMessageWithId(mMockContext, message2Id); in testMessageSave()
458 Message message3 = ProviderTestUtils.setupMessage("message3", in testMessageWithAttachment()
509 Message message4 = ProviderTestUtils.setupMessage("message4", in testMessageSaveWithJustAttachments()
568 Message message = ProviderTestUtils.setupMessage("message", in testMessageSaveAddsSnippet()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java51 import com.android.emailcommon.mail.Message;
255 Folder remoteFolder, ArrayList<Message> messages, final Mailbox toMailbox) in loadUnsyncedMessages()
260 remoteFolder.fetch(messages.toArray(new Message[messages.size()]), fp, null); in loadUnsyncedMessages()
261 Message [] oneMessageArray = new Message[1]; in loadUnsyncedMessages()
262 for (Message message : messages) { in loadUnsyncedMessages()
277 EmailContent.Message.FLAG_LOADED_COMPLETE); in loadUnsyncedMessages()
282 final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages, in downloadFlagAndEnvelope()
296 remoteFolder.fetch(unsyncedMessages.toArray(new Message[unsyncedMessages.size()]), fp, in downloadFlagAndEnvelope()
299 public void messageRetrieved(Message message) { in downloadFlagAndEnvelope()
313 final EmailContent.Message localMessage; in downloadFlagAndEnvelope()
[all …]
DPop3Service.java48 import com.android.emailcommon.provider.EmailContent.Message;
184 int flag = EmailContent.Message.FLAG_LOADED_COMPLETE; in loadUnsyncedMessages()
191 flag = EmailContent.Message.FLAG_LOADED_PARTIAL; in loadUnsyncedMessages()
247 EmailContent.Message.CONTENT_URI, in synchronizePop3Mailbox()
279 EmailContent.Message.UPDATED_CONTENT_URI, in synchronizePop3Mailbox()
280 EmailContent.Message.ID_COLUMN_PROJECTION, in synchronizePop3Mailbox()
286 long id = updates.getLong(Message.ID_COLUMNS_ID_COLUMN); in synchronizePop3Mailbox()
287 EmailContent.Message currentMsg = in synchronizePop3Mailbox()
288 EmailContent.Message.restoreMessageWithId(context, id); in synchronizePop3Mailbox()
298 Uri uri = ContentUris.withAppendedId(EmailContent.Message.UPDATED_CONTENT_URI, id); in synchronizePop3Mailbox()
[all …]
DEmailServiceStub.java44 import com.android.emailcommon.mail.Message;
137 final EmailContent.Message message = in loadAttachment()
138 EmailContent.Message.restoreMessageWithId(mContext, attachment.mMessageKey); in loadAttachment()
169 EmailContent.Message sourceMsg = in loadAttachment()
170 EmailContent.Message.restoreMessageWithId(mContext, sourceId); in loadAttachment()
195 final Message storeMessage = remoteFolder.createMessage(message.mServerId); in loadAttachment()
219 remoteFolder.fetch(new Message[] { storeMessage }, fp, in loadAttachment()
280 public void messageRetrieved(com.android.emailcommon.mail.Message message) { in messageRetrieved()
443 final Cursor c = resolver.query(EmailContent.Message.CONTENT_URI, in sendMailImpl()
444 EmailContent.Message.ID_COLUMN_PROJECTION, in sendMailImpl()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java33 import com.android.emailcommon.mail.Message;
34 import com.android.emailcommon.mail.Message.RecipientType;
88 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAddAttachments()
90 final Message legacyMessage = prepareLegacyMessageWithAttachments(2, false); in brokentestAddAttachments()
94 final EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage( in brokentestAddAttachments()
96 final Message legacyMessage2 = prepareLegacyMessageWithAttachments(2, true); in brokentestAddAttachments()
103 private void convertAndCheckcheckAddedAttachments(final EmailContent.Message localMessage, in convertAndCheckcheckAddedAttachments()
104 final Message legacyMessage) throws MessagingException, IOException { in convertAndCheckcheckAddedAttachments()
176 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAttachmentDispositions()
178 final Message legacyMessage = prepareLegacyMessageWithAttachments(sourceAttachments); in brokentestAttachmentDispositions()
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java47 import com.android.emailcommon.provider.EmailContent.Message;
84 " delete from " + Message.TABLE_NAME +
86 "; delete from " + Message.UPDATED_TABLE_NAME +
88 "; delete from " + Message.DELETED_TABLE_NAME +
216 Message.TABLE_NAME + in createMessageCountTriggers()
224 Message.TABLE_NAME + in createMessageCountTriggers()
232 MessageColumns.MAILBOX_KEY + " on " + Message.TABLE_NAME + in createMessageCountTriggers()
277 + Message.TABLE_NAME + " for each row when new." + SyncColumns.SERVER_ID in createDeleteDuplicateMessagesTrigger()
290 + " begin delete from " + Message.TABLE_NAME + " where new." in createDeleteDuplicateMessagesTrigger()
341 db.execSQL("create table " + Message.TABLE_NAME + createString); in createMessageTable()
[all …]
DUtilities.java30 import com.android.emailcommon.mail.Message;
57 public static void copyOneMessageToProvider(Context context, Message message, Account account, in copyOneMessageToProvider()
59 EmailContent.Message localMessage = null; in copyOneMessageToProvider()
63 EmailContent.Message.CONTENT_URI, in copyOneMessageToProvider()
64 EmailContent.Message.CONTENT_PROJECTION, in copyOneMessageToProvider()
77 localMessage = EmailContent.getContent(context, c, EmailContent.Message.class); in copyOneMessageToProvider()
79 localMessage = new EmailContent.Message(); in copyOneMessageToProvider()
101 public static void copyOneMessageToProvider(Context context, Message message, in copyOneMessageToProvider()
102 EmailContent.Message localMessage, int loadStatus) { in copyOneMessageToProvider()
105 if (localMessage.mId != EmailContent.Message.NO_MESSAGE) { in copyOneMessageToProvider()
[all …]
DEmailProvider.java90 import com.android.emailcommon.provider.EmailContent.Message;
297 array.put(MESSAGE_BASE >> BASE_SHIFT, Message.TABLE_NAME);
300 array.put(UPDATED_MESSAGE_BASE >> BASE_SHIFT, Message.UPDATED_TABLE_NAME);
301 array.put(DELETED_MESSAGE_BASE >> BASE_SHIFT, Message.DELETED_TABLE_NAME);
324 Message.UPDATED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
328 Message.UPDATED_TABLE_NAME + " where " + BaseColumns._ID + '=';
331 Message.DELETED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
336 " except select " + BaseColumns._ID + " from " + Message.TABLE_NAME;
501 deleteMessageOrphans(mDatabase, Message.UPDATED_TABLE_NAME); in getDatabase()
502 deleteMessageOrphans(mDatabase, Message.DELETED_TABLE_NAME); in getDatabase()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestBroadcastActivity.java22 import android.os.Message;
46 public void handleMessage(Message msg) {
107 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
121 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
136 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
150 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
164 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
178 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
192 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
206 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java33 import com.android.emailcommon.provider.EmailContent.Message;
80 private static Message createMessage(Context c, Mailbox b, boolean starred, boolean read, in createMessage()
82 Message message = ProviderTestUtils.setupMessage( in createMessage()
211 Message m1 = ProviderTestUtils.setupMessage("1", b1.mAccountKey, b1.mId, in testGetMailboxForMessageId()
213 Message m2 = ProviderTestUtils.setupMessage("1", b2.mAccountKey, b2.mId, in testGetMailboxForMessageId()
363 assertEquals(0, Message.getFavoriteMessageCount(c)); in testMessageCount()
364 assertEquals(0, Message.getFavoriteMessageCount(c, a1.mId)); in testMessageCount()
365 assertEquals(0, Message.getFavoriteMessageCount(c, a2.mId)); in testMessageCount()
371 Message m11 = createMessage(c, b1, true, false, Message.FLAG_LOADED_COMPLETE); in testMessageCount()
374 Message m21 = createMessage(c, b2, false, false, Message.FLAG_LOADED_COMPLETE); in testMessageCount()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DFolder.java54 public void messageRetrieved(Message message); in messageRetrieved()
114 public abstract Message getMessage(String uid) throws MessagingException; in getMessage()
122 public abstract Message[] getMessages(int start, int end, MessageRetrievalListener listener) in getMessages()
125 …public abstract Message[] getMessages(long startDate, long endDate, MessageRetrievalListener liste… in getMessages()
128 public abstract Message[] getMessages(SearchParams params,MessageRetrievalListener listener) in getMessages()
131 public abstract Message[] getMessages(String[] uids, MessageRetrievalListener listener) in getMessages()
144 public Message[] getMessages(Flag[] setFlags, Flag[] clearFlags, in getMessages()
149 public abstract void appendMessage(Context context, Message message, final boolean noTimeout) in appendMessage()
155 public abstract void copyMessages(Message[] msgs, Folder folder, in copyMessages()
158 public abstract void setFlags(Message[] messages, Flag[] flags, boolean value) in setFlags()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DRfc822OutputTests.java29 import com.android.emailcommon.provider.EmailContent.Message;
94 private Body createTestBody(Message message) { in createTestBody()
103 Message msg = new Message(); in testBuildBodyTextWithForward()
109 msg.mFlags = Message.FLAG_TYPE_FORWARD; in testBuildBodyTextWithForward()
118 Message msg = new Message(); in testWriteToText()
132 org.apache.james.mime4j.message.Message mimeMessage = in testWriteToText()
133 new org.apache.james.mime4j.message.Message(messageInputStream); in testWriteToText()
144 Message msg = new Message(); in testWriteToAlternativePart()
166 org.apache.james.mime4j.message.Message mimeMessage = in testWriteToAlternativePart()
167 new org.apache.james.mime4j.message.Message(messageInputStream); in testWriteToAlternativePart()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMockFolder.java27 public void appendMessage(Context context, Message message, boolean noTimeout) { in appendMessage()
35 public void copyMessages(Message[] msgs, Folder folder, in copyMessages()
59 public Message[] expunge() { in expunge()
64 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) { in fetch()
68 public Message getMessage(String uid) { in getMessage()
78 public Message[] getMessages(int start, int end, MessageRetrievalListener listener) { in getMessages()
83 public Message[] getMessages(String[] uids, MessageRetrievalListener listener) { in getMessages()
117 public void setFlags(Message[] messages, Flag[] flags, boolean value) { in setFlags()
121 public Message createMessage(String uid) { in createMessage()
126 public Message[] getMessages(SearchParams params, MessageRetrievalListener listener) in getMessages()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java40 import com.android.voicemail.impl.mail.Message;
207 Message[] messages; in fetchAllVoicemails()
218 for (Message message : messages) { in fetchAllVoicemails()
240 Message messageDetails = messageStructureWrapper.messageStructure; in getVoicemailFromMessageStructure()
247 mFolder.fetch(new Message[] {messageDetails}, fetchProfile, listener); in getVoicemailFromMessageStructure()
292 private MessageStructureWrapper fetchMessageStructure(Message message) throws MessagingException { in fetchMessageStructure()
304 mFolder.fetch(new Message[] {message}, fetchProfile, listener); in fetchMessageStructure()
315 Message message = mFolder.getMessage(uid); in fetchVoicemailPayload()
334 private VoicemailPayload fetchVoicemailPayload(Message message) throws MessagingException { in fetchVoicemailPayload()
342 mFolder.fetch(new Message[] {message}, fetchProfile, listener); in fetchVoicemailPayload()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DUserPresetsManager.java5 import android.os.Message;
32 public void handleMessage(Message msg) {
42 public boolean handleMessage(Message msg) { in handleMessage()
75 Message msg = mProcessingHandler.obtainMessage(LOAD); in load()
90 Message msg = mProcessingHandler.obtainMessage(SAVE); in save()
99 Message msg = mProcessingHandler.obtainMessage(DELETE); in delete()
110 Message msg = mProcessingHandler.obtainMessage(UPDATE); in update()
120 Message msg = mResultHandler.obtainMessage(LOAD_RESULT); in processLoad()
125 private void resultLoad(Message msg) { in resultLoad()
131 private void processSave(Message msg) { in processSave()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java51 import com.android.emailcommon.mail.Message;
52 import com.android.emailcommon.mail.Message.RecipientType;
106 private Message[] mCopyMessages;
165 assertEquals("", ImapStore.joinMessageUids(new Message[] {})); in testJoinMessageUids()
166 assertEquals("a", ImapStore.joinMessageUids(new Message[] { in testJoinMessageUids()
169 assertEquals("a,XX", ImapStore.joinMessageUids(new Message[] { in testJoinMessageUids()
769 final Message message = mFolder.createMessage("1"); in testFetchFlagEnvelope()
792 mFolder.fetch(new Message[] { message }, fp, null); in testFetchFlagEnvelope()
810 final Message message = mFolder.createMessage("1"); in testFetchBodyStructureSimple()
820 mFolder.fetch(new Message[] { message }, fp, null); in testFetchBodyStructureSimple()
[all …]
DPop3StoreUnitTests.java35 import com.android.emailcommon.mail.Message;
36 import com.android.emailcommon.mail.Message.RecipientType;
365 Message msg1 = mFolder.getMessage(uid1); in testGetMessageByUid()
369 Message msg3 = mFolder.getMessage(uid3); in testGetMessageByUid()
372 Message msg2 = mFolder.getMessage(uid2); in testGetMessageByUid()
400 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed1a()
444 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed1b()
487 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed1c()
524 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed2()
575 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed2a()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java34 import android.os.Message;
318 Message msg = mAvrcpCtSm.obtainMessage(AvrcpControllerStateMachine. in sendGroupNavigationCmd()
336 Message msg = mAvrcpCtSm in sendPassThroughCmd()
489 Message msg = mAvrcpCtSm.obtainMessage( in getNowPlayingList()
519 Message msg = mAvrcpCtSm.obtainMessage( in getFolderList()
548 Message msg = mAvrcpCtSm.obtainMessage( in getPlayerList()
582 Message msg = mAvrcpCtSm.obtainMessage( in changeFolderPath()
611 Message msg = mAvrcpCtSm.obtainMessage( in setBrowsedPlayer()
774 Message msg = mAvrcpCtSm.obtainMessage( in onConnectionStateChanged()
780 Message msg = mAvrcpCtSm.obtainMessage( in onConnectionStateChanged()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/store/
DPop3Store.java32 import com.android.emailcommon.mail.Message;
62 private final Message[] mOneMessage = new Message[1];
322 public Message getMessage(String uid) throws MessagingException { in getMessage()
361 ArrayList<Message> messages = new ArrayList<Message>(); in getMessages()
528 public Message[] getMessages(String[] uids, MessageRetrievalListener listener) { in getMessages()
541 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetch()
629 public void appendMessage(Context context, Message message, boolean noTimeout) { in appendMessage()
637 public Message[] expunge() { in expunge()
641 public void deleteMessage(Message message) throws MessagingException { in deleteMessage()
647 public void setFlags(Message[] messages, Flag[] flags, boolean value) in setFlags()
[all …]
DImapFolder.java44 import com.android.emailcommon.mail.Message;
264 public void copyMessages(Message[] messages, Folder folder, in copyMessages()
273 HashMap<String, Message> messageMap = new HashMap<String, Message>(); in copyMessages()
275 for (Message m : messages) { in copyMessages()
309 final Message m = messageMap.get(id); in copyMessages()
323 for (Message m : messages) { in copyMessages()
442 public Message getMessage(String uid) throws MessagingException { in getMessage()
471 public Message[] getMessages(SearchParams params, MessageRetrievalListener listener) in getMessages()
510 public Message[] getMessages(int start, int end, MessageRetrievalListener listener) in getMessages()
557 public Message[] getMessages(long startDate, long endDate, MessageRetrievalListener listener) in getMessages()
[all …]
/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java36 import com.android.emailcommon.mail.Message;
37 import com.android.emailcommon.mail.Message.RecipientType;
78 public static boolean updateMessageFields(final EmailContent.Message localMessage, in updateMessageFields()
79 final Message message, final long accountId, final long mailboxId) in updateMessageFields()
83 final Address[] to = message.getRecipients(Message.RecipientType.TO); in updateMessageFields()
84 final Address[] cc = message.getRecipients(Message.RecipientType.CC); in updateMessageFields()
85 final Address[] bcc = message.getRecipients(Message.RecipientType.BCC); in updateMessageFields()
105 localMessage.mFlags |= EmailContent.Message.FLAG_REPLIED_TO; in updateMessageFields()
110 if (localMessage.mFlagLoaded != EmailContent.Message.FLAG_LOADED_COMPLETE) { in updateMessageFields()
112 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_UNLOADED; in updateMessageFields()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java34 import com.android.mail.providers.Message;
67 private Message getRefMessage(ContentResolver resolver, Uri folderListUri) { in getRefMessage()
93 return new Message(msgCursor); in getRefMessage()
97 private Message getRefMessage(ContentResolver resolver) { in getRefMessage()
133 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllCustomFromReplyTo()
176 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllOnlyAccount()
213 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllOnlyCustomFrom()
250 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReply()
272 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyWithReplyTo()
298 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyToSelf()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java56 public class Message implements Parcelable, HtmlMessage { class
235 return this == o || (o != null && o instanceof Message in equals()
236 && Objects.equal(uri, ((Message) o).uri)); in equals()
251 public boolean isEqual(Message o) { in isEqual()
303 private Message(Parcel in) { in Message() method in Message
339 public Message() { in Message() method in Message
348 public static final Creator<Message> CREATOR = new Creator<Message>() {
351 public Message createFromParcel(Parcel source) {
352 return new Message(source);
356 public Message[] newArray(int size) {
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java30 import com.android.voicemail.impl.mail.Message;
81 public void messageRetrieved(Message message); in messageRetrieved()
193 public Message getMessage(String uid) throws MessagingException { in getMessage()
216 public Message[] getMessages(String[] uids) throws MessagingException { in getMessages()
223 public Message[] getMessagesInternal(String[] uids) { in getMessagesInternal()
224 final ArrayList<Message> messages = new ArrayList<Message>(uids.length); in getMessagesInternal()
230 return messages.toArray(Message.EMPTY_ARRAY); in getMessagesInternal()
233 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetch()
243 public void fetchInternal(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetchInternal()
249 ArrayMap<String, Message> messageMap = new ArrayMap<String, Message>(); in fetchInternal()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java23 import android.os.Message;
123 public void handleMessage(Message msg) { in handleMessage()
143 Message msgReg = in handleMessage()
256 Message msg = Message.obtain(mCallback); in handleRegistration()
286 Message msgReg = in setMnsRecord()
373 Message msg = mHandler.obtainMessage(MSG_MNS_SEND_EVENT, masInstanceId, 0, eventBytes); in sendEvent()
383 Message msg = Message.obtain(mCallback); in notifyMnsSdpSearch()
505 Message msg = Message.obtain(mCallback); in notifyUpdateWakeLock()

12345678910>>...17