/packages/apps/Email/tests/src/com/android/email/mail/internet/ |
D | MimeMessageTest.java | 87 MimeMessage message = new MimeMessage(); in doTestSetSentDate() local 88 message.setSentDate(date); in doTestSetSentDate() 89 String[] headers = message.getHeader("Date"); in doTestSetSentDate() 129 MimeMessage message = new MimeMessage(); in testGetContentId() local 132 assertNull(message.getContentId()); in testGetContentId() 136 message.setHeader(MimeHeader.HEADER_CONTENT_ID, cid1); in testGetContentId() 137 assertEquals(cid1, message.getContentId()); in testGetContentId() 140 message.setHeader(MimeHeader.HEADER_CONTENT_ID, "<" + cid1 + ">"); in testGetContentId() 141 assertEquals(cid1, message.getContentId()); in testGetContentId() 148 MimeMessage message = new MimeMessage(); in testSetSubjectPlain() local [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | SmtpSenderUnitTests.java | 110 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, false); in testSendMessageWithEmptyAttachment() 159 mSender.sendMessage(message.mId); in testSendMessageWithEmptyAttachment() 172 Message message = setupSimpleMessage(); in testSendMessageWithAttachment() local 173 message.save(mProviderContext); in testSendMessageWithAttachment() [all …]
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | LocalStore.java | 764 for (Message message : messages) { in fetch() 765 LocalMessage localMessage = (LocalMessage)message; in fetch() 903 private void populateMessageFromGetMessageCursor(LocalMessage message, Cursor cursor) in populateMessageFromGetMessageCursor() argument 905 message.setSubject(cursor.getString(0) == null ? "" : cursor.getString(0)); in populateMessageFromGetMessageCursor() 908 message.setFrom(from[0]); in populateMessageFromGetMessageCursor() 910 message.setSentDate(new Date(cursor.getLong(2))); in populateMessageFromGetMessageCursor() 911 message.setUid(cursor.getString(3)); in populateMessageFromGetMessageCursor() 917 message.setFlagInternal(Flag.valueOf(flag.toUpperCase()), true); in populateMessageFromGetMessageCursor() 922 message.mId = cursor.getLong(5); in populateMessageFromGetMessageCursor() 923 message.setRecipients(RecipientType.TO, Address.unpack(cursor.getString(6))); in populateMessageFromGetMessageCursor() [all …]
|
D | Pop3Store.java | 365 Pop3Message message = mUidToMsgMap.get(uid); in getMessage() local 366 return message; in getMessage() 388 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in getMessages() local 390 listener.messageStarted(message.getUid(), i++, (end - start) + 1); in getMessages() 392 messages.add(message); in getMessages() 394 listener.messageFinished(message, i++, (end - start) + 1); in getMessages() 427 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in indexMsgNums() local 428 if (message == null) { in indexMsgNums() 433 message = new Pop3Message(parser.mUniqueId, this); in indexMsgNums() 434 indexMessage(msgNum, message); in indexMsgNums() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageCompose.java | 547 Message message = Message.restoreMessageWithId(MessageCompose.this, messageIds[0]); in doInBackground() local 548 if (message == null) { in doInBackground() 551 long accountId = message.mAccountKey; in doInBackground() 555 message.mHtml = Body.restoreBodyHtmlWithMessageId(MessageCompose.this, message.mId); in doInBackground() 556 message.mText = Body.restoreBodyTextWithMessageId(MessageCompose.this, message.mId); in doInBackground() 560 message.mHtmlReply = in doInBackground() 561 Body.restoreReplyHtmlWithMessageId(MessageCompose.this, message.mId); in doInBackground() 562 message.mTextReply = in doInBackground() 563 Body.restoreReplyTextWithMessageId(MessageCompose.this, message.mId); in doInBackground() 564 message.mIntroText = in doInBackground() [all …]
|
D | FolderMessageList.java | 229 MessageInfoHolder message = (MessageInfoHolder) ((Object[]) msg.obj)[1]; in handleMessage() local 230 folder.messages.remove(message); in handleMessage() 242 for (Message message : messages) { in handleMessage() 243 mAdapter.addOrUpdateMessage(folder, message, false, false); in handleMessage() 269 Message message = (Message) ((Object[]) msg.obj)[1]; in handleMessage() local 270 mAdapter.addOrUpdateMessage(folder, message); in handleMessage() 285 for (MessageInfoHolder message : holder.messages) { in handleMessage() 286 if (message.uid.equals(oldUid)) { in handleMessage() 287 message.uid = newUid; in handleMessage() 288 message.message.setUid(newUid); in handleMessage() [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessageComposeInstrumentationTests.java | 178 final Message message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testProcessSourceMessageReply() local 185 a.processSourceMessage(message, null); in testProcessSourceMessageReply() 191 message.mFrom = null; in testProcessSourceMessageReply() 192 message.mReplyTo = Address.parseAndPack(REPLYTO); in testProcessSourceMessageReply() 197 a.processSourceMessage(message, null); in testProcessSourceMessageReply() 208 final Message message = buildTestMessage(UTF16_RECIPIENT_TO, UTF16_SENDER, in testProcessSourceMessageReplyUtf16() local 216 a.processSourceMessage(message, null); in testProcessSourceMessageReplyUtf16() 222 message.mFrom = null; in testProcessSourceMessageReplyUtf16() 223 message.mReplyTo = Address.parseAndPack(UTF16_REPLYTO); in testProcessSourceMessageReplyUtf16() 228 a.processSourceMessage(message, null); in testProcessSourceMessageReplyUtf16() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 123 Message message = new Message(); in setupMessage() local 125 message.mDisplayName = name; in setupMessage() 126 message.mTimeStamp = 100 + name.length(); in setupMessage() 127 message.mSubject = "subject " + name; in setupMessage() 128 message.mFlagRead = true; in setupMessage() 129 message.mFlagLoaded = Message.FLAG_LOADED_UNLOADED; in setupMessage() 130 message.mFlagFavorite = true; in setupMessage() 131 message.mFlagAttachment = true; in setupMessage() 132 message.mFlags = 0; in setupMessage() 134 message.mServerId = "serverid " + name; in setupMessage() [all …]
|
/packages/apps/Email/src/com/android/email/mail/ |
D | MessagingException.java | 51 public MessagingException(String message) { in MessagingException() argument 52 super(message); in MessagingException() 56 public MessagingException(String message, Throwable throwable) { in MessagingException() argument 57 super(message, throwable); in MessagingException() 74 public MessagingException(int exceptionType, String message) { in MessagingException() argument 75 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/src/com/android/email/ |
D | LegacyConversions.java | 70 public static boolean updateMessageFields(EmailContent.Message localMessage, Message message, in updateMessageFields() argument 73 Address[] from = message.getFrom(); in updateMessageFields() 74 Address[] to = message.getRecipients(Message.RecipientType.TO); in updateMessageFields() 75 Address[] cc = message.getRecipients(Message.RecipientType.CC); in updateMessageFields() 76 Address[] bcc = message.getRecipients(Message.RecipientType.BCC); in updateMessageFields() 77 Address[] replyTo = message.getReplyTo(); in updateMessageFields() 78 String subject = message.getSubject(); in updateMessageFields() 79 Date sentDate = message.getSentDate(); in updateMessageFields() 80 Date internalDate = message.getInternalDate(); in updateMessageFields() 91 localMessage.mFlagRead = message.isSet(Flag.SEEN); in updateMessageFields() [all …]
|
D | MessagingController.java | 596 for (Message message : remoteMessages) { in synchronizeMailboxGeneric() 597 remoteUidMap.put(message.getUid(), message); in synchronizeMailboxGeneric() local 608 for (Message message : remoteMessages) { in synchronizeMailboxGeneric() 609 LocalMessageInfo localMessage = localMessageMap.get(message.getUid()); in synchronizeMailboxGeneric() 616 unsyncedMessages.add(message); in synchronizeMailboxGeneric() 642 public void messageFinished(Message message, int number, int ofTotal) { in synchronizeMailboxGeneric() argument 647 localMapCopy.get(message.getUid()); in synchronizeMailboxGeneric() 660 message, account.mId, folder.mId); in synchronizeMailboxGeneric() 664 if (!message.isSet(Flag.SEEN)) { in synchronizeMailboxGeneric() 665 newMessages.add(message); in synchronizeMailboxGeneric() [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/Email/src/com/android/email/mail/transport/ |
D | Rfc822Output.java | 61 /*package*/ static String buildBodyText(Context context, Message message, in buildBodyText() argument 63 Body body = Body.restoreBodyWithMessageId(context, message.mId); in buildBodyText() 69 int flags = message.mFlags; in buildBodyText() 121 Message message = Message.restoreMessageWithId(context, messageId); in writeTo() local 122 if (message == null) { in writeTo() 133 String date = mDateFormat.format(new Date(message.mTimeStamp)); in writeTo() 136 writeEncodedHeader(writer, "Subject", message.mSubject); in writeTo() 138 writeHeader(writer, "Message-ID", message.mMessageId); in writeTo() 140 writeAddressHeader(writer, "From", message.mFrom); in writeTo() 141 writeAddressHeader(writer, "To", message.mTo); in writeTo() [all …]
|
/packages/apps/IM/src/com/android/im/imps/ |
D | ImpsChatSessionManager.java | 53 protected void sendMessageAsync(final ChatSession ses, final Message message) { in sendMessageAsync() argument 55 message.setFrom(mConnection.getSession().getLoginUserAddress()); in sendMessageAsync() 57 if(message.getDateTime() == null) { in sendMessageAsync() 58 message.setDateTime(new Date()); in sendMessageAsync() 60 Primitive primitive = createSendMessagePrimitive(message); in sendMessageAsync() 68 ses.onSendMessageError(message, error); in sendMessageAsync() 118 for (Message message : mMessageQueue) { in start() 119 processMessage(message); in start() 175 private Primitive createSendMessagePrimitive(Message message) { in createSendMessagePrimitive() argument 183 recipient.addChild(((ImpsAddress)message.getTo()).toPrimitiveElement()); in createSendMessagePrimitive() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | LocalStoreUnitTests.java | 147 final MimeMessage message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testMessageId_1() local 148 message.setMessageId(MESSAGE_ID); in testMessageId_1() 150 mFolder.appendMessages(new Message[]{ message }); in testMessageId_1() 151 String localUid = message.getUid(); in testMessageId_1() 172 final MimeMessage message = buildTestMessage(RECIPIENT_TO, SENDER, SUBJECT, BODY); in testMessageId_2() local 173 message.setMessageId(MESSAGE_ID); in testMessageId_2() 175 mFolder.appendMessages(new Message[]{ message }); in testMessageId_2() 176 String localUid = message.getUid(); in testMessageId_2() 206 MimeMessage message = new MimeMessage(); in buildTestMessage() local 210 message.setRecipients(RecipientType.TO, addresses); in buildTestMessage() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSetupCheckSettings.java | 83 mMessageView = (TextView)findViewById(R.id.message); in onCreate() 145 String message = afe.getMessage(); in onCreate() 146 int id = (message == null) in onCreate() 149 showErrorDialog(id, message); in onCreate() 151 String message = cve.getMessage(); in onCreate() 152 int id = (message == null) in onCreate() 155 showErrorDialog(id, message); in onCreate() 158 String message = me.getMessage(); in onCreate() 176 id = (message == null) in onCreate() 181 showErrorDialog(id, message); in onCreate()
|
/packages/apps/IM/src/com/android/im/engine/ |
D | ImException.java | 33 public ImException(String message) { in ImException() argument 34 super(message); in ImException() 63 public ImException(String message, Throwable cause) { in ImException() argument 64 super(message, cause); in ImException()
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | MessageStatusReceiver.java | 66 SmsMessage message = SmsMessage.createFromPdu(pdu); in updateMessageStatus() local 67 int status = message.getStatus(); in updateMessageStatus() 85 private void error(String message) { in error() argument 86 Log.e(LOG_TAG, "[MessageStatusReceiver] " + message); in error() 89 private void log(String message) { in log() argument 90 Log.d(LOG_TAG, "[MessageStatusReceiver] " + message); in log()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 106 MimeMessage message = buildTestMessage(RECIPIENT_TO, RECIPIENT_CC, RECIPIENT_BCC, in testUpdateMessageFields() local 110 boolean result = LegacyConversions.updateMessageFields(localMessage, message, 1, 1); in testUpdateMessageFields() 112 checkProviderMessage("testUpdateMessageFields", message, localMessage); in testUpdateMessageFields() 120 MimeMessage message = buildTestMessage(RECIPIENT_TO, RECIPIENT_CC, RECIPIENT_BCC, in testUpdateMessageFieldsNoMessageId() local 126 message.removeHeader("Message-ID"); in testUpdateMessageFieldsNoMessageId() 128 boolean result = LegacyConversions.updateMessageFields(localMessage, message, 1, 1); in testUpdateMessageFieldsNoMessageId() 138 MimeMessage message = new MimeMessage(); in buildTestMessage() local 142 message.setRecipients(RecipientType.TO, addresses); in buildTestMessage() 146 message.setRecipients(RecipientType.CC, addresses); in buildTestMessage() 150 message.setRecipients(RecipientType.BCC, addresses); in buildTestMessage() [all …]
|
/packages/apps/IM/src/com/android/im/service/ |
D | StatusBarNotifier.java | 91 String message = mContext.getString(R.string.subscription_notify_text, nickname); in notifySubscriptionRequest() local 96 notify(username, title, message, message, providerId, accountId, intent, false); in notifySubscriptionRequest() 106 String message = mContext.getString( in notifyGroupInvitation() local 108 notify(username, title, message, message, providerId, accountId, intent, false); in notifyGroupInvitation() 164 private void notify(String sender, String title, String tickerText, String message, in notify() argument 173 info.addItem(sender, title, message, intent); in notify() 204 public Item(String title, String message, Intent intent) { in Item() argument 206 mMessage = message; in Item() 226 … public synchronized void addItem(String sender, String title, String message, Intent intent) { in addItem() argument 229 item = new Item(title, message, intent); in addItem() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | ImageGetter.java | 291 public void handleMessage(Message message) { 292 switch(message.what) { 294 ((Runnable) message.obj).run(); 307 Message message = Message.obtain(); 308 message.what = IMAGE_GETTER_CALLBACK; 309 message.obj = callback; 310 sendMessageDelayed(message, delay);
|