/packages/apps/Email/tests/src/com/android/emailcommon/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/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessageData.java | 216 final MessageData message = new MessageData(); in createDraftMessage() local 217 message.mStatus = BUGLE_STATUS_OUTGOING_DRAFT; in createDraftMessage() 218 message.mProtocol = PROTOCOL_UNKNOWN; in createDraftMessage() 219 message.mConversationId = conversationId; in createDraftMessage() 220 message.mParticipantId = selfId; in createDraftMessage() 221 message.mReceivedTimestamp = System.currentTimeMillis(); in createDraftMessage() 223 message.mParts.add(MessagePartData.createTextMessagePart("")); in createDraftMessage() 226 message.mParticipantId = content.mParticipantId; in createDraftMessage() 229 message.mMmsSubject = content.mMmsSubject; in createDraftMessage() 232 message.mParts.add(part); in createDraftMessage() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 59 public static void insertNewMessage(final MessageData message) { in insertNewMessage() argument 60 final InsertNewMessageAction action = new InsertNewMessageAction(message); in insertNewMessage() 67 public static void insertNewMessage(final MessageData message, final int subId) { in insertNewMessage() argument 69 final InsertNewMessageAction action = new InsertNewMessageAction(message, subId); in insertNewMessage() 93 private InsertNewMessageAction(final MessageData message) { in InsertNewMessageAction() argument 94 this(message, ParticipantData.DEFAULT_SELF_SUB_ID); in InsertNewMessageAction() 95 actionParameters.putParcelable(KEY_MESSAGE, message); in InsertNewMessageAction() 98 private InsertNewMessageAction(final MessageData message, final int subId) { in InsertNewMessageAction() argument 100 actionParameters.putParcelable(KEY_MESSAGE, message); in InsertNewMessageAction() 122 MessageData message = actionParameters.getParcelable(KEY_MESSAGE); in executeAction() local [all …]
|
D | SendMessageAction.java | 102 final MessageData message = BugleDatabaseOperations.readMessage(db, messageId); in queueAction() local 104 if (message != null && message.canSendMessage()) { in queueAction() 105 final boolean isSms = (message.getProtocol() == MessageData.PROTOCOL_SMS); in queueAction() 108 db, message.getSelfId()); in queueAction() 109 final Uri messageUri = message.getSmsMessageUri(); in queueAction() 110 final String conversationId = message.getConversationId(); in queueAction() 113 if (message.getYetToSend()) { in queueAction() 115 message.markMessageSending(timestamp); in queueAction() 118 message.markMessageResending(timestamp); in queueAction() 120 if (!updateMessageAndStatus(isSms, message, null /* messageUri */, false /*notify*/)) { in queueAction() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | LogUtils.java | 29 public static void v(String message, Object... args) { in v() argument 30 DEFAULT_LOGGER.v(message, args); in v() 33 public static void d(String message, Object... args) { in d() argument 34 DEFAULT_LOGGER.d(message, args); in d() 37 public static void i(String message, Object... args) { in i() argument 38 DEFAULT_LOGGER.i(message, args); in i() 41 public static void w(String message, Object... args) { in w() argument 42 DEFAULT_LOGGER.w(message, args); in w() 45 public static void e(String message, Object... args) { in e() argument 46 DEFAULT_LOGGER.e(message, args); in e() [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SuggestionCursorUtil.java | 38 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 …]
|
/packages/services/Mms/src/com/android/mms/service/ |
D | LogUtil.java | 27 public static void i(final String requestId, final String message) { in i() argument 28 Log.i(TAG, "[" + requestId + "] " + message); in i() 31 public static void i(final String message) { in i() argument 32 Log.i(TAG, message); in i() 35 public static void d(final String requestId, final String message) { in d() argument 36 Log.d(TAG, "[" + requestId + "] " + message); in d() 39 public static void d(final String message) { in d() argument 40 Log.d(TAG, message); in d() 43 public static void v(final String requestId, final String message) { in v() argument 44 Log.v(TAG, "[" + requestId + "] " + message); in v() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MceStateMachine.java | 195 public synchronized boolean sendMapMessage(Uri[] contacts, String message, in sendMapMessage() argument 198 if (DBG) Log.d(TAG, "Send Message " + message); in sendMapMessage() 227 bmsg.setBodyContent(message); in sendMapMessage() 289 public boolean processMessage(Message message) { in processMessage() argument 290 switch (message.what) { in processMessage() 293 mDevice = (BluetoothDevice) message.obj; in processMessage() 299 Log.w(TAG, "Unexpected message: " + message.what + " from state:" + in processMessage() 332 public boolean processMessage(Message message) { in processMessage() argument 333 if (DBG) Log.d(TAG, "processMessage" + this.getName() + message.what); in processMessage() 335 switch (message.what) { in processMessage() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
D | Log.java | 54 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/Dialer/java/com/android/dialer/app/voicemail/error/ |
D | VoicemailErrorAlert.java | 72 VoicemailErrorMessage message = null; in updateStatus() local 75 message = messageCreator.create(context, status, statusReader); in updateStatus() 76 if (message != null) { in updateStatus() 83 if (message != null) { in updateStatus() 87 message.isModal(), in updateStatus() 88 message.getTitle()); in updateStatus() 89 if (message.isModal()) { in updateStatus() 90 if (message instanceof VoicemailTosMessage) { in updateStatus() 91 modalView = getTosView(modalAlertManager, (VoicemailTosMessage) message); in updateStatus() 97 loadMessage(message); in updateStatus() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/ |
D | ImapHelper.java | 83 public InitializingException(String message) { in InitializingException() argument 84 super(message); in InitializingException() 218 for (Message message : messages) { in fetchAllVoicemails() 220 MessageStructureWrapper messageStructureWrapper = fetchMessageStructure(message); in fetchAllVoicemails() 297 private MessageStructureWrapper fetchMessageStructure(Message message) throws MessagingException { in fetchMessageStructure() argument 298 LogUtils.d(TAG, "Fetching message structure for " + message.getUid()); in fetchMessageStructure() 309 mFolder.fetch(new Message[] {message}, fetchProfile, listener); in fetchMessageStructure() 320 Message message = mFolder.getMessage(uid); in fetchVoicemailPayload() local 321 if (message == null) { in fetchVoicemailPayload() 324 VoicemailPayload voicemailPayload = fetchVoicemailPayload(message); in fetchVoicemailPayload() [all …]
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTest.java | 58 final MimeMessage message = new MimeMessage(); in testUpdateMessageFields_Basic() local 59 message.setUid("UID.12345678"); in testUpdateMessageFields_Basic() 60 message.setSentDate(new Date(1)); in testUpdateMessageFields_Basic() 61 message.setMessageId("Test-Message-ID"); in testUpdateMessageFields_Basic() 62 message.setSubject("This is the subject"); in testUpdateMessageFields_Basic() 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() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | WidgetConversationService.java | 140 final ConversationMessageData message = new ConversationMessageData(); in getViewAt() local 141 message.bind(mCursor); in getViewAt() 145 mContext.getPackageName(), message.getIsIncoming() ? in getViewAt() 153 Dates.getWidgetTimeString(message.getReceivedTimeStamp(), in getViewAt() 179 if (message.hasAttachments()) { in getViewAt() 180 final List<MessagePartData> attachments = message.getAttachments(); in getViewAt() 184 || !message.getIsIncoming()); in getViewAt() 212 remoteViews.setOnClickFillInIntent(message.getIsIncoming() ? in getViewAt() 239 message.getSenderProfilePhotoUri(), in getViewAt() 240 message.getSenderFullName(), in getViewAt() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | ProvisionLogger.java | 36 public static void logd(String message) { in logd() argument 38 Log.d(getTag(), message); in logd() local 45 public static void logd(String message, Throwable t) { in logd() argument 47 Log.d(getTag(), message, t); in logd() local 63 public static void logv(String message) { in logv() argument 65 Log.v(getTag(), message); in logv() local 72 public static void logv(String message, Throwable t) { in logv() argument 74 Log.v(getTag(), message, t); in logv() local 90 public static void logi(String message) { in logi() argument 92 Log.i(getTag(), message); in logi() local [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertService.java | 226 SmsCbMessage message = (SmsCbMessage) extras.get(EXTRA_MESSAGE); in handleCellBroadcastIntent() local 228 if (message == null) { in handleCellBroadcastIntent() 233 final CellBroadcastMessage cbm = new CellBroadcastMessage(message); in handleCellBroadcastIntent() 251 int hashCode = shouldCompareMessageBody ? message.getMessageBody().hashCode() : 0; in handleCellBroadcastIntent() 258 if (message.isEtwsMessage()) { in handleCellBroadcastIntent() 259 SmsCbEtwsInfo etwsInfo = message.getEtwsWarningInfo(); in handleCellBroadcastIntent() 271 message.getServiceCategory(), message.getSerialNumber(), message.getLocation(), in handleCellBroadcastIntent() 377 private boolean isMessageEnabledByUser(CellBroadcastMessage message) { in isMessageEnabledByUser() argument 394 if (message.isEtwsTestMessage()) { in isMessageEnabledByUser() 401 if (message.isEtwsMessage()) { in isMessageEnabledByUser() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 374 public static void editDraft(Context launcher, Account account, Message message) { in editDraft() argument 375 launch(launcher, account, message, EDIT_DRAFT, null, null, null, null, in editDraft() 441 public static void reply(Context launcher, Account account, Message message) { in reply() argument 442 launch(launcher, account, message, REPLY, null, null, null, null, null /* extraValues */); in reply() 448 public static void replyAll(Context launcher, Account account, Message message) { in replyAll() argument 449 launch(launcher, account, message, REPLY_ALL, null, null, null, null, in replyAll() 456 public static void forward(Context launcher, Account account, Message message) { in forward() argument 457 launch(launcher, account, message, FORWARD, null, null, null, null, null /* extraValues */); in forward() 460 public static void reportRenderingFeedback(Context launcher, Account account, Message message, in reportRenderingFeedback() argument 462 launch(launcher, account, message, FORWARD, in reportRenderingFeedback() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleDatabaseOperations.java | 578 final MessageData message = readMessage(dbWrapper, messageId); in updateConversationMetadataInTransaction() local 579 addSnippetTextAndPreviewToContentValues(message, false /* showDraft */, values); in updateConversationMetadataInTransaction() 582 addSelfIdAutoSwitchInfoToContentValues(dbWrapper, message, conversationId, values); in updateConversationMetadataInTransaction() 618 static void addSnippetTextAndPreviewToContentValues(final MessageData message, in addSnippetTextAndPreviewToContentValues() argument 621 values.put(ConversationColumns.SNIPPET_TEXT, message.getMessageText()); in addSnippetTextAndPreviewToContentValues() 622 values.put(ConversationColumns.SUBJECT_TEXT, message.getMmsSubject()); in addSnippetTextAndPreviewToContentValues() 626 for (final MessagePartData part : message.getParts()) { in addSnippetTextAndPreviewToContentValues() 644 final MessageData message, final String conversationId, final ContentValues values) { in addSelfIdAutoSwitchInfoToContentValues() argument 646 if (!OsUtil.isAtLeastL_MR1() || !message.getIsIncoming()) { in addSelfIdAutoSwitchInfoToContentValues() 651 final String messageSelfId = message.getSelfId(); in addSelfIdAutoSwitchInfoToContentValues() [all …]
|
/packages/apps/Email/provider_src/com/android/email/ |
D | LegacyConversions.java | 79 final Message message, final long accountId, final long mailboxId) in updateMessageFields() argument 82 final Address[] from = message.getFrom(); 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() 86 final Address[] replyTo = message.getReplyTo(); in updateMessageFields() 87 final String subject = message.getSubject(); in updateMessageFields() 88 final Date sentDate = message.getSentDate(); in updateMessageFields() 89 final Date internalDate = message.getInternalDate(); in updateMessageFields() 103 localMessage.mFlagRead = message.isSet(Flag.SEEN); in updateMessageFields() [all …]
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | Pop3Store.java | 334 Pop3Message message = mUidToMsgMap.get(uid); in getMessage() local 335 return message; in getMessage() 363 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in getMessages() local 364 if (message != null) { in getMessages() 365 messages.add(message); in getMessages() 391 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in indexMsgNums() local 392 if (message == null) { in indexMsgNums() 397 message = new Pop3Message(parser.mUniqueId, this); in indexMsgNums() 398 indexMessage(msgNum, message); in indexMsgNums() 412 Pop3Message message = mMsgNumToMsgMap.get(msgNum); in indexMsgNums() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
D | PrintUtils.java | 70 public static void printMessage(Context context, Message message, String subject, in printMessage() argument 72 final String msgHtml = buildMessageHtml(context, message, in printMessage() 125 final Message message = cursor.getMessage(); in buildConversationHtml() local 126 appendSingleMessageHtml(context, res, message, addressCache, templates, dateBuilder); in buildConversationHtml() 137 private static String buildMessageHtml(Context context, Message message, in buildMessageHtml() argument 146 appendSingleMessageHtml(context, res, message, addressCache, templates, dateBuilder); in buildMessageHtml() 158 Message message, Map<String, Address> addressCache, in appendSingleMessageHtml() argument 160 final Address fromAddress = Utils.getAddress(addressCache, message.getFrom()); in appendSingleMessageHtml() 161 final long when = message.dateReceivedMs; in appendSingleMessageHtml() 166 renderRecipients(res, addressCache, message), message.getBodyAsHtml(), in appendSingleMessageHtml() [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | ImapService.java | 262 for (Message message : messages) { in loadUnsyncedMessages() 267 MimeUtility.collectParts(message, viewables, attachments); in loadUnsyncedMessages() 269 oneMessageArray[0] = message; in loadUnsyncedMessages() 276 Utilities.copyOneMessageToProvider(context, message, account, toMailbox, in loadUnsyncedMessages() 299 public void messageRetrieved(Message message) { in downloadFlagAndEnvelope() argument 304 localMapCopy.get(message.getUid()); in downloadFlagAndEnvelope() 307 if (!localExists && message.isSet(Flag.DELETED)) { in downloadFlagAndEnvelope() 325 message, account.mId, mailbox.mId); in downloadFlagAndEnvelope() 329 if (!message.isSet(Flag.SEEN) && unseenMessages != null) { in downloadFlagAndEnvelope() 595 Message message = remoteMessages[i]; in synchronizeMailboxGeneric() local [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 162 public DispatchInfo(Context context, Tag tag, NdefMessage message) { in DispatchInfo() argument 166 if (message != null) { in DispatchInfo() 167 intent.putExtra(NfcAdapter.EXTRA_NDEF_MESSAGES, new NdefMessage[] {message}); in DispatchInfo() 168 ndefUri = message.getRecords()[0].toUri(); in DispatchInfo() 169 ndefMimeType = message.getRecords()[0].toMimeType(); in DispatchInfo() 264 NdefMessage message = null; in dispatchTag() local 284 message = ndef.getCachedNdefMessage(); in dispatchTag() 285 if (message != null) { in dispatchTag() 286 String ndefMimeType = message.getRecords()[0].toMimeType(); in dispatchTag() 299 message = ndef.getCachedNdefMessage(); in dispatchTag() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 163 Message message = new Message(); in setupMessage() local 165 message.mDisplayName = name; in setupMessage() 166 message.mTimeStamp = 100 + name.length(); in setupMessage() 167 message.mSubject = "subject " + name; in setupMessage() 168 message.mFlagRead = read; in setupMessage() 169 message.mFlagSeen = read; in setupMessage() 170 message.mFlagLoaded = Message.FLAG_LOADED_UNLOADED; in setupMessage() 171 message.mFlagFavorite = starred; in setupMessage() 172 message.mFlagAttachment = true; in setupMessage() 173 message.mFlags = 0; in setupMessage() [all …]
|
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
D | DialogSmsDisplayTests.java | 92 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/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 769 final Message message = mFolder.createMessage("1"); in testFetchFlagEnvelope() local 792 mFolder.fetch(new Message[] { message }, fp, null); in testFetchFlagEnvelope() 794 assertEquals("android.test01@android.com", message.getHeader("to")[0]); in testFetchFlagEnvelope() 795 assertEquals("Xxxxxx Yyyyy <userxx@android.com>", message.getHeader("from")[0]); in testFetchFlagEnvelope() 797 message.getHeader("Content-Type")[0]); in testFetchFlagEnvelope() 798 assertTrue(message.isSet(Flag.SEEN)); in testFetchFlagEnvelope() 810 final Message message = mFolder.createMessage("1"); in testFetchBodyStructureSimple() local 820 mFolder.fetch(new Message[] { message }, fp, null); in testFetchBodyStructureSimple() 825 message.getHeader("Content-Type") in testFetchBodyStructureSimple() 827 assertNull(message.getHeader("Content-Transfer-Encoding")); in testFetchBodyStructureSimple() [all …]
|