/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/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/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/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/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/Car/service/src/com/android/car/hal/ |
D | VmsHalService.java | 169 synchronized void enqueue(int messageType, Object message) { in enqueue() argument 171 Message.obtain(mHandler, messageType, message).sendToTarget(); in enqueue() 363 private void handleStartSessionEvent(List<Integer> message) { in handleStartSessionEvent() argument 364 int coreId = message.get(VmsStartSessionMessageIntegerValuesIndex.SERVICE_ID); in handleStartSessionEvent() 365 int clientId = message.get(VmsStartSessionMessageIntegerValuesIndex.CLIENT_ID); in handleStartSessionEvent() 432 private void handleDataEvent(List<Integer> message, byte[] payload) in handleDataEvent() argument 434 VmsLayer vmsLayer = parseVmsLayerFromMessage(message); in handleDataEvent() 435 int publisherId = parsePublisherIdFromMessage(message); in handleDataEvent() 452 private void handleSubscribeEvent(List<Integer> message) throws RemoteException { in handleSubscribeEvent() argument 453 VmsLayer vmsLayer = parseVmsLayerFromMessage(message); in handleSubscribeEvent() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/rtt/protocol/ |
D | RttChatMessage.java | 113 RttChatMessage message; in updateRemoteRttChatMessage() local 116 message = new RttChatMessage(); in updateRemoteRttChatMessage() 117 message.append(singleMessageContent); in updateRemoteRttChatMessage() 118 message.isRemote = true; in updateRemoteRttChatMessage() 120 message.finish(); in updateRemoteRttChatMessage() 122 if (message.content.length() != 0) { in updateRemoteRttChatMessage() 123 messageList.add(message); in updateRemoteRttChatMessage() 126 message = messageList.get(index); in updateRemoteRttChatMessage() 127 message.append(singleMessageContent); in updateRemoteRttChatMessage() 129 message.finish(); in updateRemoteRttChatMessage() [all …]
|
/packages/apps/Car/libs/car-settings-lib/src/com/android/car/settingslib/log/ |
D | LoggerBase.java | 79 public void v(String message) { in v() argument 81 Log.v(mTag, mPrefix.concat(message)); in v() 92 public void v(String message, Throwable throwable) { in v() argument 94 Log.v(mTag, mPrefix.concat(message), throwable); in v() 104 public void d(String message) { in d() argument 106 Log.d(mTag, mPrefix.concat(message)); in d() 117 public void d(String message, Throwable throwable) { in d() argument 119 Log.d(mTag, mPrefix.concat(message), throwable); in d() 129 public void i(String message) { in i() argument 131 Log.i(mTag, mPrefix.concat(message)); in i() [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/voicemail/listui/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/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/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/Dialer/java/com/android/voicemail/impl/imap/ |
D | ImapHelper.java | 84 public InitializingException(String message) { in InitializingException() argument 85 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 folder.fetch(new Message[] {message}, fetchProfile, listener); in fetchMessageStructure() 320 Message message = folder.getMessage(uid); in fetchVoicemailPayload() local 321 if (message == null) { in fetchVoicemailPayload() 324 VoicemailPayload voicemailPayload = fetchVoicemailPayload(message); in fetchVoicemailPayload() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MceStateMachine.java | 255 public synchronized boolean sendMapMessage(Uri[] contacts, String message, in sendMapMessage() argument 258 Log.d(TAG, "Send Message " + message); in sendMapMessage() 293 bmsg.setBodyContent(message); in sendMapMessage() 394 public boolean processMessage(Message message) { in processMessage() argument 396 Log.d(TAG, "processMessage" + this.getName() + message.what); in processMessage() 399 switch (message.what) { in processMessage() 405 SdpMasRecord record = (SdpMasRecord) message.obj; in processMessage() 433 deferMessage(message); in processMessage() 437 Log.w(TAG, "Unexpected message: " + message.what + " from state:" in processMessage() 468 public boolean processMessage(Message message) { in processMessage() argument [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/Car/Messenger/src/com/android/car/messenger/ |
D | SmsDatabaseHandler.java | 50 protected void addOrUpdate(MapMessage message) { in addOrUpdate() argument 55 int messageIndex = findMessageIndex(message); in addOrUpdate() 58 removePreviousAndInsert(message); in addOrUpdate() 60 message.toString()); in addOrUpdate() 63 mContentResolver.insert(SMS_URI, buildMessageContentValues(message)); in addOrUpdate() 68 update(messageIndex, buildMessageContentValues(message)); in addOrUpdate() 119 private void removePreviousAndInsert(MapMessage message) { in removePreviousAndInsert() argument 120 String[] smsSelectionArgs = createSmsSelectionArgs(message); in removePreviousAndInsert() 123 mContentResolver.insert(SMS_URI, buildMessageContentValues(message)); in removePreviousAndInsert() 126 private int findMessageIndex(MapMessage message) { in findMessageIndex() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 405 public abstract void processConnectionEvent(Message message, int state); in processConnectionEvent() argument 455 public boolean processMessage(Message message) { in processMessage() argument 456 switch (message.what) { in processMessage() 458 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage() 484 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage() 493 processConnectionEvent(message, event.valueInt); in processMessage() 501 stateLogE("Unexpected msg " + getMessageName(message.what) + ": " + message); in processMessage() 508 public void processConnectionEvent(Message message, int state) { in processConnectionEvent() argument 566 public boolean processMessage(Message message) { in processMessage() argument 567 switch (message.what) { in processMessage() [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/services/Car/car-lib/src/android/car/trust/ |
D | CarTrustAgentEnrollmentManager.java | 486 Message message = enrollmentManager.getEventCallbackHandler().obtainMessage( in onEscrowTokenAdded() local 490 message.setData(data); in onEscrowTokenAdded() 491 enrollmentManager.getEventCallbackHandler().sendMessage(message); in onEscrowTokenAdded() 503 Message message = enrollmentManager.getEventCallbackHandler().obtainMessage( in onEscrowTokenRemoved() local 507 message.setData(data); in onEscrowTokenRemoved() 508 enrollmentManager.getEventCallbackHandler().sendMessage(message); in onEscrowTokenRemoved() 520 Message message = enrollmentManager.getEventCallbackHandler().obtainMessage( in onEscrowTokenActiveStateChanged() local 525 message.setData(data); in onEscrowTokenActiveStateChanged() 526 enrollmentManager.getEventCallbackHandler().sendMessage(message); in onEscrowTokenActiveStateChanged() 605 public void handleMessage(Message message) { in handleMessage() argument [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertService.java | 296 SmsCbMessage message = (SmsCbMessage) extras.get(EXTRA_MESSAGE); in handleCellBroadcastIntent() local 298 if (message == null) { in handleCellBroadcastIntent() 303 final CellBroadcastMessage cbm = new CellBroadcastMessage(message); in handleCellBroadcastIntent() 321 int hashCode = shouldCompareMessageBody ? message.getMessageBody().hashCode() : 0; in handleCellBroadcastIntent() 328 if (message.isEtwsMessage()) { in handleCellBroadcastIntent() 329 SmsCbEtwsInfo etwsInfo = message.getEtwsWarningInfo(); in handleCellBroadcastIntent() 341 message.getServiceCategory(), message.getSerialNumber(), message.getLocation(), in handleCellBroadcastIntent() 423 private boolean isChannelEnabled(CellBroadcastMessage message) { in isChannelEnabled() argument 435 if (message.isEtwsTestMessage()) { in isChannelEnabled() 441 if (message.isEtwsMessage()) { in isChannelEnabled() [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/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/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 …]
|