/packages/apps/Email/tests/src/com/android/email/mail/internet/ |
D | MimeMessageTest.java | 93 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 …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SuggestionCursorUtil.java | 30 public static void assertNoSuggestions(String message, SuggestionCursor suggestions) { in assertNoSuggestions() argument 32 assertEquals(message, 0, suggestions.getCount()); in assertNoSuggestions() 35 public static void assertSameSuggestion(String message, int position, in assertSameSuggestion() argument 37 assertSameSuggestion(message, expected, position, observed, position); in assertSameSuggestion() 40 public static void assertSameSuggestion(String message, in assertSameSuggestion() argument 43 message += " at positions " + positionExpected + "(expected) " in assertSameSuggestion() 47 assertSuggestionEquals(message, expected, observed); in assertSameSuggestion() 60 String message, SuggestionCursor expected, SuggestionCursor observed) { in assertSameSuggestions() argument 61 assertSameSuggestions(message, expected, observed, false); in assertSameSuggestions() 65 String message, SuggestionCursor expected, SuggestionCursor observed, in assertSameSuggestions() argument [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/ |
D | Log.java | 52 public void trace(Object message) { in trace() argument 54 android.util.Log.v(Email.LOG_TAG, toString(message, null)); in trace() 57 public void trace(Object message, Throwable t) { in trace() argument 59 android.util.Log.v(Email.LOG_TAG, toString(message, t)); in trace() 62 public void debug(Object message) { in debug() argument 64 android.util.Log.d(Email.LOG_TAG, toString(message, null)); in debug() 67 public void debug(Object message, Throwable t) { in debug() argument 69 android.util.Log.d(Email.LOG_TAG, toString(message, t)); in debug() 72 public void info(Object message) { in info() argument 74 android.util.Log.i(Email.LOG_TAG, toString(message, null)); in info() [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | MockTask.java | 58 public void assertRunCount(String message, int count) { in assertRunCount() argument 59 assertEquals(message + ": " + toString() + " bad run count", count, getRunCount()); in assertRunCount() 62 public void assertRanNever(String message) { in assertRanNever() argument 63 assertRunCount(message, 0); in assertRanNever() 66 public void assertRanOnce(String message) { in assertRanOnce() argument 67 assertRunCount(message, 1); in assertRanOnce() 70 public static void assertRanNever(String message, MockTask... tasks) { in assertRanNever() argument 72 task.assertRanNever(message); in assertRanNever() 76 public static void assertRanOnce(String message, MockTask... tasks) { in assertRanOnce() argument 78 task.assertRanOnce(message); in assertRanOnce()
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | SmtpSenderUnitTests.java | 114 Message message = setupSimpleMessage(); in testSendMessageWithBody() local 115 message.save(mProviderContext); in testSendMessageWithBody() 118 body.mMessageKey = message.mId; in testSendMessageWithBody() 132 mSender.sendMessage(message.mId); in testSendMessageWithBody() 145 Message message = setupSimpleMessage(); in testSendMessageWithEmptyAttachment() local 146 message.save(mProviderContext); in testSendMessageWithEmptyAttachment() 149 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId, false); in testSendMessageWithEmptyAttachment() 162 mSender.sendMessage(message.mId); in testSendMessageWithEmptyAttachment() 175 Message message = setupSimpleMessage(); in testSendMessageWithAttachment() local 176 message.save(mProviderContext); in testSendMessageWithAttachment() [all …]
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | MessageStatusReceiver.java | 51 SmsMessage message = updateMessageStatus(context, messageUri, pdu); in onReceive() local 54 if (message.getStatus() < Sms.STATUS_PENDING) in onReceive() 56 true, message.isStatusReportMessage()); in onReceive() 65 SmsMessage message = SmsMessage.createFromPdu(pdu); in updateMessageStatus() local 72 int status = message.getStatus(); in updateMessageStatus() 73 boolean isStatusReport = message.isStatusReportMessage(); in updateMessageStatus() 90 return message; in updateMessageStatus() 93 private void error(String message) { in error() argument 94 Log.e(LOG_TAG, "[MessageStatusReceiver] " + message); in error() 97 private void log(String message) { in log() argument [all …]
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | LocalStore.java | 795 for (Message message : messages) { in fetch() 796 LocalMessage localMessage = (LocalMessage)message; in fetch() 934 private void populateMessageFromGetMessageCursor(LocalMessage message, Cursor cursor) in populateMessageFromGetMessageCursor() argument 936 message.setSubject(cursor.getString(0) == null ? "" : cursor.getString(0)); in populateMessageFromGetMessageCursor() 939 message.setFrom(from[0]); in populateMessageFromGetMessageCursor() 941 message.setSentDate(new Date(cursor.getLong(2))); in populateMessageFromGetMessageCursor() 942 message.setUid(cursor.getString(3)); in populateMessageFromGetMessageCursor() 948 message.setFlagInternal(Flag.valueOf(flag.toUpperCase()), true); in populateMessageFromGetMessageCursor() 953 message.mId = cursor.getLong(5); in populateMessageFromGetMessageCursor() 954 message.setRecipients(RecipientType.TO, Address.legacyUnpack(cursor.getString(6))); in populateMessageFromGetMessageCursor() [all …]
|
D | Pop3Store.java | 372 Pop3Message message = mUidToMsgMap.get(uid); in getMessage() local 373 return message; in getMessage() 394 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in getMessages() local 395 messages.add(message); in getMessages() 397 listener.messageRetrieved(message); in getMessages() 430 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in indexMsgNums() local 431 if (message == null) { in indexMsgNums() 436 message = new Pop3Message(parser.mUniqueId, this); in indexMsgNums() 437 indexMessage(msgNum, message); in indexMsgNums() 451 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in indexMsgNums() local [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastListItem.java | 65 mMessageView = (TextView) findViewById(R.id.message); in onFinishInflate() 72 public void bind(CellBroadcastMessage message) { in bind() argument 73 mCbMessage = message; in bind() 75 Drawable background = message.isRead() ? in bind() 81 mChannelView.setText(message.getDialogTitleResource()); in bind() 82 mDateView.setText(message.getDateString(getContext())); in bind() 83 mMessageView.setText(formatMessage(message)); in bind() 86 private static CharSequence formatMessage(CellBroadcastMessage message) { in formatMessage() argument 87 String body = message.getMessageBody(); in formatMessage() 92 if (!message.isRead()) { in formatMessage()
|
D | CellBroadcastAlertService.java | 75 SmsCbMessage message = SmsCbMessage.createFromPdu((byte[]) pdus[0]); in handleCellBroadcastIntent() local 76 if (message == null) { in handleCellBroadcastIntent() 85 message.appendToBody(nextPage.getMessageBody()); in handleCellBroadcastIntent() 92 final CellBroadcastMessage cbm = new CellBroadcastMessage(message); in handleCellBroadcastIntent() 147 private boolean isMessageEnabledByUser(CellBroadcastMessage message) { in isMessageEnabledByUser() argument 148 switch (message.getMessageIdentifier()) { in isMessageEnabledByUser() 178 private void addToNotificationBar(CellBroadcastMessage message) { in addToNotificationBar() argument 179 int channelTitleId = message.getDialogTitleResource(); in addToNotificationBar() 181 String messageBody = message.getMessageBody(); in addToNotificationBar() 190 this, message, notificationId), 0); in addToNotificationBar() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageCompose.java | 620 Message message = Message.restoreMessageWithId(MessageCompose.this, messageIds[0]); in doInBackground() local 621 if (message == null) { in doInBackground() 624 long accountId = message.mAccountKey; in doInBackground() 628 message.mHtml = Body.restoreBodyHtmlWithMessageId(MessageCompose.this, message.mId); in doInBackground() 629 message.mText = Body.restoreBodyTextWithMessageId(MessageCompose.this, message.mId); in doInBackground() 633 message.mHtmlReply = in doInBackground() 634 Body.restoreReplyHtmlWithMessageId(MessageCompose.this, message.mId); in doInBackground() 635 message.mTextReply = in doInBackground() 636 Body.restoreReplyTextWithMessageId(MessageCompose.this, message.mId); in doInBackground() 637 message.mIntroText = in doInBackground() [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessageComposeTests.java | 183 final Message message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testProcessSourceMessageReply() local 190 a.processSourceMessage(message, null); in testProcessSourceMessageReply() 196 message.mFrom = null; in testProcessSourceMessageReply() 197 message.mReplyTo = Address.parseAndPack(REPLYTO); in testProcessSourceMessageReply() 202 a.processSourceMessage(message, null); in testProcessSourceMessageReply() 210 final Message message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testProcessSourceMessageReplyWithSignature() local 218 a.processSourceMessage(message, account); in testProcessSourceMessageReplyWithSignature() 224 message.mFrom = null; in testProcessSourceMessageReplyWithSignature() 225 message.mReplyTo = Address.parseAndPack(REPLYTO); in testProcessSourceMessageReplyWithSignature() 230 a.processSourceMessage(message, account); in testProcessSourceMessageReplyWithSignature() [all …]
|
/packages/apps/Email/src/com/android/email/mail/ |
D | MessagingException.java | 55 public MessagingException(String message) { in MessagingException() argument 56 super(message); in MessagingException() 60 public MessagingException(String message, Throwable throwable) { in MessagingException() argument 61 super(message, throwable); in MessagingException() 78 public MessagingException(int exceptionType, String message) { in MessagingException() argument 79 super(message); in MessagingException()
|
D | CertificateValidationException.java | 22 public CertificateValidationException(String message) { in CertificateValidationException() argument 23 super(message); in CertificateValidationException() 26 public CertificateValidationException(String message, Throwable throwable) { in CertificateValidationException() argument 27 super(message, throwable); in CertificateValidationException()
|
D | NoSuchProviderException.java | 22 public NoSuchProviderException(String message) { in NoSuchProviderException() argument 23 super(message); in NoSuchProviderException() 26 public NoSuchProviderException(String message, Throwable throwable) { in NoSuchProviderException() argument 27 super(message, throwable); in NoSuchProviderException()
|
D | AuthenticationFailedException.java | 22 public AuthenticationFailedException(String message) { in AuthenticationFailedException() argument 23 super(MessagingException.AUTHENTICATION_FAILED, message); in AuthenticationFailedException() 26 public AuthenticationFailedException(String message, Throwable throwable) { in AuthenticationFailedException() argument 27 super(message, throwable); in AuthenticationFailedException()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 140 Message message = new Message(); in setupMessage() local 142 message.mDisplayName = name; in setupMessage() 143 message.mTimeStamp = 100 + name.length(); in setupMessage() 144 message.mSubject = "subject " + name; in setupMessage() 145 message.mFlagRead = true; in setupMessage() 146 message.mFlagLoaded = Message.FLAG_LOADED_UNLOADED; in setupMessage() 147 message.mFlagFavorite = true; in setupMessage() 148 message.mFlagAttachment = true; in setupMessage() 149 message.mFlags = 0; in setupMessage() 151 message.mServerId = "serverid " + name; in setupMessage() [all …]
|
/packages/apps/Email/docs/ |
D | TESTS | 4 Compose a message 5 Attach an image to the message 6 Save the message as a draft 9 Send the message. 10 * Does the received message have the correct attachment? 20 Check sent message functionality on POP and IMAP account. 23 * When the network is brought back does the sent message get uploaded?
|
/packages/apps/Settings/src/com/android/settings/vpn/ |
D | Util.java | 35 static void showShortToastMessage(Context context, String message) { in showShortToastMessage() argument 36 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in showShortToastMessage() 43 static void showLongToastMessage(Context context, String message) { in showLongToastMessage() argument 44 Toast.makeText(context, message, Toast.LENGTH_LONG).show(); in showLongToastMessage() 51 static void showErrorMessage(Context c, String message) { in showErrorMessage() argument 52 createErrorDialog(c, message, null).show(); in showErrorMessage() 55 static void showErrorMessage(Context c, String message, in showErrorMessage() argument 57 createErrorDialog(c, message, listener).show(); in showErrorMessage() 122 private static AlertDialog createErrorDialog(Context c, String message, in createErrorDialog() argument 127 .setMessage(message); in createErrorDialog()
|
/packages/apps/Browser/tests/src/com/android/browser/ |
D | TestWebChromeClient.java | 104 public boolean onJsAlert(WebView view, String url, String message, in onJsAlert() argument 106 return mWrappedClient.onJsAlert(view, url, message, result); in onJsAlert() 111 public boolean onJsConfirm(WebView view, String url, String message, in onJsConfirm() argument 113 return mWrappedClient.onJsConfirm(view, url, message, result); in onJsConfirm() 118 public boolean onJsPrompt(WebView view, String url, String message, in onJsPrompt() argument 120 return mWrappedClient.onJsPrompt(view, url, message, defaultValue, result); in onJsPrompt() 125 public boolean onJsBeforeUnload(WebView view, String url, String message, in onJsBeforeUnload() argument 127 return mWrappedClient.onJsBeforeUnload(view, url, message, result); in onJsBeforeUnload() 168 public void onConsoleMessage(String message, int lineNumber, String sourceID) { in onConsoleMessage() argument 169 mWrappedClient.onConsoleMessage(message, lineNumber, sourceID); in onConsoleMessage()
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
D | Rfc822Output.java | 62 /*package*/ static String buildBodyText(Context context, Message message, in buildBodyText() argument 64 Body body = Body.restoreBodyWithMessageId(context, message.mId); in buildBodyText() 70 int flags = message.mFlags; in buildBodyText() 119 Message message = Message.restoreMessageWithId(context, messageId); in writeTo() local 120 if (message == null) { in writeTo() 131 String date = DATE_FORMAT.format(new Date(message.mTimeStamp)); in writeTo() 134 writeEncodedHeader(writer, "Subject", message.mSubject); in writeTo() 136 writeHeader(writer, "Message-ID", message.mMessageId); in writeTo() 138 writeAddressHeader(writer, "From", message.mFrom); in writeTo() 139 writeAddressHeader(writer, "To", message.mTo); in writeTo() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 624 final Message message = mFolder.createMessage("1"); in testFetchFlagEnvelope() local 647 mFolder.fetch(new Message[] { message }, fp, null); in testFetchFlagEnvelope() 649 assertEquals("android.test01@android.com", message.getHeader("to")[0]); in testFetchFlagEnvelope() 650 assertEquals("Xxxxxx Yyyyy <userxx@android.com>", message.getHeader("from")[0]); in testFetchFlagEnvelope() 652 message.getHeader("Content-Type")[0]); in testFetchFlagEnvelope() 653 assertTrue(message.isSet(Flag.SEEN)); in testFetchFlagEnvelope() 665 final Message message = mFolder.createMessage("1"); in testFetchBodyStructureSimple() local 675 mFolder.fetch(new Message[] { message }, fp, null); in testFetchBodyStructureSimple() 680 message.getHeader("Content-Type") in testFetchBodyStructureSimple() 682 assertNull(message.getHeader("Content-Transfer-Encoding")); in testFetchBodyStructureSimple() [all …]
|
D | LocalStoreUnitTests.java | 143 final MimeMessage message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testMessageId_1() local 144 message.setMessageId(MESSAGE_ID); in testMessageId_1() 146 mFolder.appendMessages(new Message[]{ message }); in testMessageId_1() 147 String localUid = message.getUid(); in testMessageId_1() 168 final MimeMessage message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testMessageId_2() local 169 message.setMessageId(MESSAGE_ID); in testMessageId_2() 171 mFolder.appendMessages(new Message[]{ message }); in testMessageId_2() 172 String localUid = message.getUid(); in testMessageId_2() 202 MimeMessage message = new MimeMessage(); in buildTestMessage() local 206 message.setRecipients(RecipientType.TO, addresses); in buildTestMessage() [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | LegacyConversions.java | 89 public static boolean updateMessageFields(EmailContent.Message localMessage, Message message, in updateMessageFields() argument 92 Address[] from = message.getFrom(); in updateMessageFields() 93 Address[] to = message.getRecipients(Message.RecipientType.TO); in updateMessageFields() 94 Address[] cc = message.getRecipients(Message.RecipientType.CC); in updateMessageFields() 95 Address[] bcc = message.getRecipients(Message.RecipientType.BCC); in updateMessageFields() 96 Address[] replyTo = message.getReplyTo(); in updateMessageFields() 97 String subject = message.getSubject(); in updateMessageFields() 98 Date sentDate = message.getSentDate(); in updateMessageFields() 99 Date internalDate = message.getInternalDate(); in updateMessageFields() 110 localMessage.mFlagRead = message.isSet(Flag.SEEN); in updateMessageFields() [all …]
|
D | MessagingController.java | 558 for (Message message : remoteMessages) { in synchronizeMailboxGeneric() 559 remoteUidMap.put(message.getUid(), message); in synchronizeMailboxGeneric() local 570 for (Message message : remoteMessages) { in synchronizeMailboxGeneric() 571 LocalMessageInfo localMessage = localMessageMap.get(message.getUid()); in synchronizeMailboxGeneric() 583 unsyncedMessages.add(message); in synchronizeMailboxGeneric() 609 public void messageRetrieved(Message message) { in synchronizeMailboxGeneric() argument 614 localMapCopy.get(message.getUid()); in synchronizeMailboxGeneric() 627 message, account.mId, folder.mId); in synchronizeMailboxGeneric() 631 if (!message.isSet(Flag.SEEN)) { in synchronizeMailboxGeneric() 632 newMessages.add(message); in synchronizeMailboxGeneric() [all …]
|