/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/DeskClock/src/com/android/deskclock/ |
D | LogUtils.java | 31 public static void v(String message, Object... args) { in v() argument 34 ? message : String.format(message, args)); in v() 38 public static void v(String tag, String message, Object... args) { in v() argument 40 Log.v(LOGTAG + "/" + tag, args == null || args.length == 0 ? message in v() 41 : String.format(message, args)); in v() 45 public static void d(String message, Object... args) { in d() argument 47 Log.d(LOGTAG, args == null || args.length == 0 ? message in d() 48 : String.format(message, args)); in d() 52 public static void d(String tag, String message, Object... args) { in d() argument 54 Log.d(LOGTAG + "/" + tag, args == null || args.length == 0 ? message in d() [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/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/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/Telephony/src/org/apache/james/mime4j/ |
D | Log.java | 52 public void trace(Object message) { in trace() argument 54 android.util.Log.v(LOG_TAG, toString(message, null)); in trace() 57 public void trace(Object message, Throwable t) { in trace() argument 59 android.util.Log.v(LOG_TAG, toString(message, t)); in trace() 62 public void debug(Object message) { in debug() argument 64 android.util.Log.d(LOG_TAG, toString(message, null)); in debug() 67 public void debug(Object message, Throwable t) { in debug() argument 69 android.util.Log.d(LOG_TAG, toString(message, t)); in debug() 72 public void info(Object message) { in info() argument 74 android.util.Log.i(LOG_TAG, toString(message, null)); in info() [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/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 …]
|
D | WriteDraftMessageAction.java | 36 public static void writeDraftMessage(final String conversationId, final MessageData message) { in writeDraftMessage() argument 37 final WriteDraftMessageAction action = new WriteDraftMessageAction(conversationId, message); in writeDraftMessage() 44 private WriteDraftMessageAction(final String conversationId, final MessageData message) { in WriteDraftMessageAction() argument 46 actionParameters.putParcelable(KEY_MESSAGE, message); in WriteDraftMessageAction() 53 final MessageData message = actionParameters.getParcelable(KEY_MESSAGE); in executeAction() local 54 if (message.getSelfId() == null || message.getParticipantId() == null) { in executeAction() 62 if (message.getSelfId() == null) { in executeAction() 63 message.bindSelfId(senderAndSelf); in executeAction() 65 if (message.getParticipantId() == null) { in executeAction() 66 message.bindParticipantId(senderAndSelf); in executeAction() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
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/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/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamingStateMachine.java | 270 public boolean processMessage(Message message) { in processMessage() argument 272 Log.d(STATE_TAG, " process message: " + message.what); in processMessage() 274 switch (message.what) { in processMessage() 283 deferMessage(message); in processMessage() 295 int newAudioFocus = message.arg1; in processMessage() 312 Log.e(TAG, "Don't know how to handle " + message.what); in processMessage() 330 public boolean processMessage(Message message) { in processMessage() argument 332 Log.d(STATE_TAG, " process message: " + message.what); in processMessage() 334 switch (message.what) { in processMessage() 336 deferMessage(message); in processMessage() [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertService.java | 159 SmsCbMessage message = (SmsCbMessage) extras.get("message"); in handleCellBroadcastIntent() local 161 if (message == null) { in handleCellBroadcastIntent() 166 final CellBroadcastMessage cbm = new CellBroadcastMessage(message); in handleCellBroadcastIntent() 179 int hashCode = message.isEtwsMessage() ? message.getMessageBody().hashCode() : 0; in handleCellBroadcastIntent() 186 if (message.isEtwsMessage()) { in handleCellBroadcastIntent() 187 SmsCbEtwsInfo etwsInfo = message.getEtwsWarningInfo(); in handleCellBroadcastIntent() 199 message.getServiceCategory(), message.getSerialNumber(), message.getLocation(), in handleCellBroadcastIntent() 280 private boolean isMessageEnabledByUser(CellBroadcastMessage message) { in isMessageEnabledByUser() argument 290 if (message.isEtwsTestMessage()) { in isMessageEnabledByUser() 297 if (message.isEtwsMessage()) { in isMessageEnabledByUser() [all …]
|
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/ |
D | Log.java | 25 public static void d(final String tag, final String message) { in d() argument 26 System.out.println(tag + " : " + message); in d() 28 public static void d(final String tag, final String message, final Throwable t) { in d() argument 29 System.out.println(tag + " : " + message + " : " + t); in d() 31 public static void e(final String tag, final String message) { in e() argument 32 d(tag, message); in e() 34 public static void e(final String tag, final String message, final Throwable t) { in e() argument 35 d(tag, message, t); in e() 37 public static void w(final String tag, final String message) { in w() argument 38 d(tag, message); in w() [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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | MakedictLog.java | 25 private static void print(String message) { in print() argument 26 System.out.println(message); in print() 29 public static void d(String message) { in d() argument 30 print(message); in d() 33 public static void i(String message) { in i() argument 34 print(message); in i() 37 public static void w(String message) { in w() argument 38 print(message); in w() 41 public static void e(String message) { in e() argument 42 print(message); in e()
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/ |
D | ImapHelper.java | 203 for (Message message : messages) { in fetchAllVoicemails() 205 MessageStructureWrapper messageStructureWrapper = fetchMessageStructure(message); in fetchAllVoicemails() 277 private MessageStructureWrapper fetchMessageStructure(Message message) in fetchMessageStructure() argument 279 LogUtils.d(TAG, "Fetching message structure for " + message.getUid()); in fetchMessageStructure() 289 mFolder.fetch(new Message[] {message}, fetchProfile, listener); in fetchMessageStructure() 300 Message message = mFolder.getMessage(uid); in fetchVoicemailPayload() local 301 if (message == null) { in fetchVoicemailPayload() 304 VoicemailPayload voicemailPayload = fetchVoicemailPayload(message); in fetchVoicemailPayload() 324 private VoicemailPayload fetchVoicemailPayload(Message message) in fetchVoicemailPayload() argument 326 LogUtils.d(TAG, "Fetching message body for " + message.getUid()); in fetchVoicemailPayload() [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/services/Telephony/src/com/android/phone/vvm/omtp/sms/ |
D | OmtpMessageReceiver.java | 90 SyncMessage message = new SyncMessage(messageData); in onReceive() local 93 " with event " + message.getSyncTriggerEvent()); in onReceive() 95 " with event " + message.getSyncTriggerEvent()); in onReceive() 96 processSync(message); in onReceive() 100 StatusMessage message = new StatusMessage(messageData); in onReceive() local 101 updateSource(message); in onReceive() 117 private void processSync(SyncMessage message) { in processSync() argument 119 switch (message.getSyncTriggerEvent()) { in processSync() 122 message.getTimestampMillis(), message.getSender()) in processSync() 124 .setSourceData(message.getId()) in processSync() [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/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/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/services/Telephony/src/com/android/phone/common/mail/ |
D | MessagingException.java | 77 public MessagingException(String message, Throwable throwable) { in MessagingException() argument 78 this(UNSPECIFIED_EXCEPTION, message, throwable); in MessagingException() 81 public MessagingException(int exceptionType, String message, Throwable throwable) { in MessagingException() argument 82 super(message, throwable); in MessagingException() 99 public MessagingException(String message) { in MessagingException() argument 100 this(UNSPECIFIED_EXCEPTION, message, null); in MessagingException() 107 public MessagingException(int exceptionType, String message) { in MessagingException() argument 108 this(exceptionType, message, null); in MessagingException() 117 public MessagingException(int exceptionType, String message, Object data) { in MessagingException() argument 118 super(message); in MessagingException()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | MessagingException.java | 78 public MessagingException(String message, Throwable throwable) { in MessagingException() argument 79 this(UNSPECIFIED_EXCEPTION, message, throwable); in MessagingException() 82 public MessagingException(int exceptionType, String message, Throwable throwable) { in MessagingException() argument 83 super(message, throwable); in MessagingException() 100 public MessagingException(String message) { in MessagingException() argument 101 this(UNSPECIFIED_EXCEPTION, message, null); in MessagingException() 108 public MessagingException(int exceptionType, String message) { in MessagingException() argument 109 this(exceptionType, message, null); in MessagingException() 118 public MessagingException(int exceptionType, String message, Object data) { in MessagingException() argument 119 super(message); in MessagingException()
|