Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 252) sorted by relevance

1234567891011

/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeMessageTest.java93 MimeMessage message = new MimeMessage(); in doTestSetSentDate() local
94 message.setSentDate(date); in doTestSetSentDate()
95 String[] headers = message.getHeader("Date"); in doTestSetSentDate()
135 MimeMessage message = new MimeMessage(); in testGetContentId() local
138 assertNull(message.getContentId()); in testGetContentId()
142 message.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId()
143 assertEquals(cid1, message.getContentId()); in testGetContentId()
146 message.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId()
147 assertEquals(cid1, message.getContentId()); in testGetContentId()
154 MimeMessage message = new MimeMessage(); in testSetSubjectPlain() local
[all …]
DRfc822OutputTests.java29 import org.apache.james.mime4j.message.BodyPart;
30 import org.apache.james.mime4j.message.Entity;
31 import org.apache.james.mime4j.message.Header;
32 import org.apache.james.mime4j.message.Multipart;
102 Message message = new Message(); in createTestMessage() local
103 message.mText = text; in createTestMessage()
104 message.mFrom = SENDER; in createTestMessage()
105 message.mFlags = Message.FLAG_TYPE_REPLY; in createTestMessage()
106 message.mTextReply = REPLY_TEXT_BODY; in createTestMessage()
107 message.mHtmlReply = BODY_HTML_REPLY; in createTestMessage()
[all …]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionCursorUtil.java38 public static void assertNoSuggestions(String message, SuggestionCursor suggestions) { in assertNoSuggestions() argument
40 assertEquals(message, 0, suggestions.getCount()); in assertNoSuggestions()
43 public static void assertSameSuggestion(String message, int position, in assertSameSuggestion() argument
45 assertSameSuggestion(message, expected, position, observed, position); in assertSameSuggestion()
48 public static void assertSameSuggestion(String message, in assertSameSuggestion() argument
51 message += " at positions " + positionExpected + "(expected) " in assertSameSuggestion()
55 assertSuggestionEquals(message, expected, observed); in assertSameSuggestion()
63 String message, SuggestionCursor expected, SuggestionCursor observed) { in assertSameSuggestions() argument
64 assertNotNull(message + ", expected == null", expected); in assertSameSuggestions()
65 assertNotNull(message + ", observed == null", observed); in assertSameSuggestions()
[all …]
DShortcutRepositoryTest.java856 void assertNoShortcuts(String message, String query) { in assertNoShortcuts() argument
859 assertNull(message + ", got shortcuts", cursor); in assertNoShortcuts()
869 void assertShortcutAtPosition(String message, String query, in assertShortcutAtPosition() argument
874 SuggestionCursorUtil.assertSameSuggestion(message, position, expectedCursor, cursor); in assertShortcutAtPosition()
880 void assertShortcutCount(String message, String query, int expectedCount) { in assertShortcutCount() argument
883 assertEquals(message, expectedCount, cursor.getCount()); in assertShortcutCount()
889 void assertShortcuts(String message, String query, Collection<Corpus> allowedCorpora, in assertShortcuts() argument
893 SuggestionCursorUtil.assertSameSuggestions(message, expected, cursor); in assertShortcuts()
899 void assertShortcuts(String message, String query, Collection<Corpus> allowedCorpora, in assertShortcuts() argument
901 assertShortcuts(message, query, allowedCorpora, true, expected); in assertShortcuts()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DMessageCompose.java850 public void onMessageLoaded(Message message, Body body) { in resumeDraft()
851 message.mHtml = body.mHtmlContent; in resumeDraft()
852 message.mText = body.mTextContent; in resumeDraft()
853 message.mHtmlReply = body.mHtmlReply; in resumeDraft()
854 message.mTextReply = body.mTextReply; in resumeDraft()
855 message.mIntroText = body.mIntroText; in resumeDraft()
856 message.mSourceKey = body.mSourceKey; in resumeDraft()
858 mDraft = message; in resumeDraft()
859 processDraftMessage(message, restoreViews); in resumeDraft()
862 loadAttachments(message.mId, mAccount, new AttachmentLoadedCallback() { in resumeDraft()
[all …]
DMessageViewFragment.java330 Message message = getMessage(); in onClickFavorite()
333 boolean newFavorite = ! message.mFlagFavorite; in onClickFavorite()
341 message.mFlagFavorite = newFavorite; in onClickFavorite()
342 getController().setMessageFavorite(message.mId, newFavorite); in onClickFavorite()
350 Message message = getMessage(); in onMarkMessageAsRead()
351 if (message.mFlagRead != isRead) { in onMarkMessageAsRead()
352 message.mFlagRead = isRead; in onMarkMessageAsRead()
353 getController().setMessageRead(message.mId, isRead); in onMarkMessageAsRead()
365 Message message = getMessage(); in onRespondToInvite()
368 getController().sendMeetingResponse(message.mId, response); in onRespondToInvite()
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/
DMessageComposeTests.java203 final Message message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testProcessSourceMessageReply() local
212 a.processSourceMessage(message, account); in testProcessSourceMessageReply()
219 message.mFrom = null; in testProcessSourceMessageReply()
220 message.mReplyTo = Address.parseAndPack(REPLYTO); in testProcessSourceMessageReply()
225 a.processSourceMessage(message, account); in testProcessSourceMessageReply()
246 final Message message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testRepliesWithREplyToFields() local
247 message.mCc = RECIPIENT_CC; in testRepliesWithREplyToFields()
256 a.processSourceMessage(message, account); in testRepliesWithREplyToFields()
263 message.mFrom = null; in testRepliesWithREplyToFields()
264 message.mReplyTo = Address.parseAndPack(SENDER); in testRepliesWithREplyToFields()
[all …]
/packages/apps/Email/src/com/android/email/
DMessagingController.java454 for (Message message : unsyncedMessages) { in loadUnsyncedMessages()
455 if (message.getSize() > (MAX_SMALL_MESSAGE_SIZE)) { in loadUnsyncedMessages()
456 largeMessages.add(message); in loadUnsyncedMessages()
458 smallMessages.add(message); in loadUnsyncedMessages()
473 public void messageRetrieved(Message message) { in loadUnsyncedMessages() argument
475 copyOneMessageToProvider(message, account, toMailbox, in loadUnsyncedMessages()
489 for (Message message : largeMessages) { in loadUnsyncedMessages()
490 if (message.getBody() == null) { in loadUnsyncedMessages()
499 remoteFolder.fetch(new Message[] { message }, fp, null); in loadUnsyncedMessages()
502 copyOneMessageToProvider(message, account, toMailbox, in loadUnsyncedMessages()
[all …]
DLegacyConversions.java77 public static boolean updateMessageFields(EmailContent.Message localMessage, Message message, in updateMessageFields() argument
80 Address[] from = message.getFrom(); in updateMessageFields()
81 Address[] to = message.getRecipients(Message.RecipientType.TO); in updateMessageFields()
82 Address[] cc = message.getRecipients(Message.RecipientType.CC); in updateMessageFields()
83 Address[] bcc = message.getRecipients(Message.RecipientType.BCC); in updateMessageFields()
84 Address[] replyTo = message.getReplyTo(); in updateMessageFields()
85 String subject = message.getSubject(); in updateMessageFields()
86 Date sentDate = message.getSentDate(); in updateMessageFields()
87 Date internalDate = message.getInternalDate(); in updateMessageFields()
98 localMessage.mFlagRead = message.isSet(Flag.SEEN); in updateMessageFields()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/
DPop3Store.java401 Pop3Message message = mUidToMsgMap.get(uid); in getMessage() local
402 return message; in getMessage()
423 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in getMessages() local
424 messages.add(message); in getMessages()
426 listener.messageRetrieved(message); in getMessages()
459 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in indexMsgNums() local
460 if (message == null) { in indexMsgNums()
465 message = new Pop3Message(parser.mUniqueId, this); in indexMsgNums()
466 indexMessage(msgNum, message); in indexMsgNums()
480 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in indexMsgNums() local
[all …]
DImapFolder.java502 final ImapMessage message = new ImapMessage(uid, this); in getMessagesInternal() local
503 messages.add(message); in getMessagesInternal()
505 listener.messageRetrieved(message); in getMessagesInternal()
599 ImapMessage message = (ImapMessage) messageMap.get(uid); in fetchInternal() local
600 if (message == null) continue; in fetchInternal()
608 message.setFlagInternal(Flag.DELETED, true); in fetchInternal()
610 message.setFlagInternal(Flag.ANSWERED, true); in fetchInternal()
612 message.setFlagInternal(Flag.SEEN, true); in fetchInternal()
614 message.setFlagInternal(Flag.FLAGGED, true); in fetchInternal()
626 message.setInternalDate(internalDate); in fetchInternal()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/
DLog.java54 public void trace(Object message) { in trace() argument
56 android.util.Log.v(LOG_TAG, toString(message, null)); in trace()
59 public void trace(Object message, Throwable t) { in trace() argument
61 android.util.Log.v(LOG_TAG, toString(message, t)); in trace()
64 public void debug(Object message) { in debug() argument
66 android.util.Log.d(LOG_TAG, toString(message, null)); in debug()
69 public void debug(Object message, Throwable t) { in debug() argument
71 android.util.Log.d(LOG_TAG, toString(message, t)); in debug()
74 public void info(Object message) { in info() argument
76 android.util.Log.i(LOG_TAG, toString(message, null)); in info()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java767 final Message message = mFolder.createMessage("1"); in testFetchFlagEnvelope() local
790 mFolder.fetch(new Message[] { message }, fp, null); in testFetchFlagEnvelope()
792 assertEquals("android.test01@android.com", message.getHeader("to")[0]); in testFetchFlagEnvelope()
793 assertEquals("Xxxxxx Yyyyy <userxx@android.com>", message.getHeader("from")[0]); in testFetchFlagEnvelope()
795 message.getHeader("Content-Type")[0]); in testFetchFlagEnvelope()
796 assertTrue(message.isSet(Flag.SEEN)); in testFetchFlagEnvelope()
808 final Message message = mFolder.createMessage("1"); in testFetchBodyStructureSimple() local
818 mFolder.fetch(new Message[] { message }, fp, null); in testFetchBodyStructureSimple()
823 message.getHeader("Content-Type") in testFetchBodyStructureSimple()
825 assertNull(message.getHeader("Content-Transfer-Encoding")); in testFetchBodyStructureSimple()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java168 Message message = new Message(); in setupMessage() local
170 message.mDisplayName = name; in setupMessage()
171 message.mTimeStamp = 100 + name.length(); in setupMessage()
172 message.mSubject = "subject " + name; in setupMessage()
173 message.mFlagRead = read; in setupMessage()
174 message.mFlagLoaded = Message.FLAG_LOADED_UNLOADED; in setupMessage()
175 message.mFlagFavorite = starred; in setupMessage()
176 message.mFlagAttachment = true; in setupMessage()
177 message.mFlags = 0; in setupMessage()
179 message.mServerId = "serverid " + name; in setupMessage()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java127 SmsCbMessage message = (SmsCbMessage) extras.get("message"); in handleCellBroadcastIntent() local
129 if (message == null) { in handleCellBroadcastIntent()
134 final CellBroadcastMessage cbm = new CellBroadcastMessage(message); in handleCellBroadcastIntent()
144 MessageIdAndScope newMessageId = new MessageIdAndScope(message.getSerialNumber(), in handleCellBroadcastIntent()
145 message.getLocation()); in handleCellBroadcastIntent()
223 private boolean isMessageEnabledByUser(CellBroadcastMessage message) { in isMessageEnabledByUser() argument
224 if (message.isEtwsTestMessage()) { in isMessageEnabledByUser()
229 if (message.isCmasMessage()) { in isMessageEnabledByUser()
230 switch (message.getCmasMessageClass()) { in isMessageEnabledByUser()
254 if (message.getServiceCategory() == 50) { in isMessageEnabledByUser()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java254 public boolean processMessage(Message message) { in processMessage() argument
255 log("Disconnected process message: " + message.what); in processMessage()
262 switch(message.what) { in processMessage()
264 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
286 processIntentBatteryChanged((Intent) message.obj); in processMessage()
289 processRoamChanged((Boolean) message.obj); in processMessage()
292 processCallState((HeadsetCallState) message.obj, in processMessage()
293 ((message.arg1 == 1)?true:false)); in processMessage()
296 StackEvent event = (StackEvent) message.obj; in processMessage()
389 public boolean processMessage(Message message) { in processMessage() argument
[all …]
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/
DDialogSmsDisplayTests.java92 String message = null; in setUp()
96 message = "Message sent!"; in setUp()
100 message = "Error."; in setUp()
103 message = "Error: No SMS service."; in setUp()
106 message = "Error: Null PDU."; in setUp()
109 message = "Error: Radio off."; in setUp()
112 assertFalse(message, error); in setUp()
130 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]); in setUp()
131 String sender = message.getOriginatingAddress(); in setUp()
137 mReceivedMessages.add(message.getMessageBody().toString()); in setUp()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DKeySpecParserTests.java63 private void assertParser(String message, String moreKeySpec, String expectedLabel, in assertParser() argument
68 assertEquals(message + " [label]", expectedLabel, spec.mLabel); in assertParser()
69 assertEquals(message + " [ouptputText]", expectedOutputText, spec.mOutputText); in assertParser()
70 assertEquals(message + " [icon]", in assertParser()
73 assertEquals(message + " [code]", in assertParser()
78 private void assertParserError(String message, String moreKeySpec, String expectedLabel, in assertParserError() argument
81 assertParser(message, moreKeySpec, expectedLabel, expectedOutputText, expectedIcon, in assertParserError()
83 fail(message); in assertParserError()
331 private static void assertArrayEquals(String message, Object[] expected, Object[] actual) { in assertArrayEquals() argument
336 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java122 public DispatchInfo(Context context, Tag tag, NdefMessage message) { in DispatchInfo() argument
126 if (message != null) { in DispatchInfo()
127 intent.putExtra(NfcAdapter.EXTRA_NDEF_MESSAGES, new NdefMessage[] {message}); in DispatchInfo()
128 ndefUri = message.getRecords()[0].toUri(); in DispatchInfo()
129 ndefMimeType = message.getRecords()[0].toMimeType(); in DispatchInfo()
205 NdefMessage message = null; in dispatchTag() local
208 message = ndef.getCachedNdefMessage(); in dispatchTag()
210 if (DBG) Log.d(TAG, "dispatch tag: " + tag.toString() + " message: " + message); in dispatchTag()
217 DispatchInfo dispatch = new DispatchInfo(mContext, tag, message); in dispatchTag()
227 … if (tryOverrides(dispatch, tag, message, overrideIntent, overrideFilters, overrideTechLists)) { in dispatchTag()
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DMessageStatusService.java59 SmsMessage message = updateMessageStatus(this, messageUri, pdu, format); in onHandleIntent() local
62 if (message != null && message.getStatus() < Sms.STATUS_PENDING) { in onHandleIntent()
64 MessagingNotification.THREAD_NONE, message.isStatusReportMessage()); in onHandleIntent()
70 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in updateMessageStatus() local
71 if (message == null) { in updateMessageStatus()
84 int status = message.getStatus(); in updateMessageStatus()
85 boolean isStatusReport = message.isStatusReportMessage(); in updateMessageStatus()
103 return message; in updateMessageStatus()
106 private void error(String message) { in error() argument
107 Log.e(LOG_TAG, "[MessageStatusReceiver] " + message); in error()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DSmtpSenderUnitTests.java110 Message message = setupSimpleMessage(); in testSendMessageWithBody() local
111 message.save(mProviderContext); in testSendMessageWithBody()
114 body.mMessageKey = message.mId; in testSendMessageWithBody()
128 mSender.sendMessage(message.mId); in testSendMessageWithBody()
141 Message message = setupSimpleMessage(); in testSendMessageWithEmptyAttachment() local
142 message.save(mProviderContext); in testSendMessageWithEmptyAttachment()
145 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId); in testSendMessageWithEmptyAttachment()
158 mSender.sendMessage(message.mId); in testSendMessageWithEmptyAttachment()
165 Message message = new Message(); in setupSimpleMessage() local
166 message.mTimeStamp = System.currentTimeMillis(); in setupSimpleMessage()
[all …]
/packages/apps/Phone/src/com/android/phone/
DRespondViaSmsManager.java262 String message = (String) parent.getItemAtPosition(position); in onItemClick() local
263 if (VDBG) log("- message: '" + message + "'"); in onItemClick()
272 sendTextToDefaultActivity(mPhoneNumber, message); in onItemClick()
325 private void sendTextToDefaultActivity(String phoneNumber, String message) { in sendTextToDefaultActivity() argument
347 sendTextAndExit(phoneNumber, message, componentName, false); in sendTextToDefaultActivity()
364 sendTextAndExit(phoneNumber, message, componentsWithPermission.get(0), false); in sendTextToDefaultActivity()
366 showPackageSelectionDialog(phoneNumber, message, componentsWithPermission); in sendTextToDefaultActivity()
402 private void showPackageSelectionDialog(String phoneNumber, String message, in showPackageSelectionDialog() argument
411 new PackageClickListener(phoneNumber, message, components); in showPackageSelectionDialog()
516 public PackageClickListener(String phoneNumber, String message, in PackageClickListener() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java166 public boolean processMessage(Message message) { in processMessage() argument
167 log("Disconnected process message: " + message.what); in processMessage()
174 switch(message.what) { in processMessage()
176 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
198 StackEvent event = (StackEvent) message.obj; in processMessage()
285 public boolean processMessage(Message message) { in processMessage() argument
286 log("Pending process message: " + message.what); in processMessage()
289 switch(message.what) { in processMessage()
291 deferMessage(message); in processMessage()
298 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DEmailContentSetupUtils.java97 Message message = new Message(); in setupMessage() local
99 message.mDisplayName = name; in setupMessage()
100 message.mMailboxKey = mailboxId; in setupMessage()
101 message.mAccountKey = accountId; in setupMessage()
102 message.mFlagRead = read; in setupMessage()
103 message.mFlagLoaded = Message.FLAG_LOADED_UNLOADED; in setupMessage()
104 message.mFlagFavorite = starred; in setupMessage()
105 message.mServerId = "serverid " + name; in setupMessage()
108 message.mText = "body text " + name; in setupMessage()
109 message.mHtml = "body html " + name; in setupMessage()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DEmailContentSetupUtils.java97 Message message = new Message(); in setupMessage() local
99 message.mDisplayName = name; in setupMessage()
100 message.mMailboxKey = mailboxId; in setupMessage()
101 message.mAccountKey = accountId; in setupMessage()
102 message.mFlagRead = read; in setupMessage()
103 message.mFlagLoaded = Message.FLAG_LOADED_UNLOADED; in setupMessage()
104 message.mFlagFavorite = starred; in setupMessage()
105 message.mServerId = "serverid " + name; in setupMessage()
108 message.mText = "body text " + name; in setupMessage()
109 message.mHtml = "body html " + name; in setupMessage()
[all …]

1234567891011