Home
last modified time | relevance | path

Searched refs:toHeader (Results 1 – 11 of 11) sorted by relevance

/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java487 assertEquals("no name 1", "noname1@dom1.com", noName1.toHeader()); in testToHeaderSingle()
488 assertEquals("no name 2", "noname2@dom2.com", noName2.toHeader()); in testToHeaderSingle()
489 assertEquals("simple name", "simple name <address3@dom3.org>", simpleName.toHeader()); in testToHeaderSingle()
490 assertEquals("double quoted name", "\"name,4\" <address4@dom4.org>", dquoteName.toHeader()); in testToHeaderSingle()
491 assertEquals("quoted name", "\"big \\\"G\\\"\" <bigG@dom5.net>", quotedName.toHeader()); in testToHeaderSingle()
493 utf16Name.toHeader()); in testToHeaderSingle()
495 utf32Name.toHeader()); in testToHeaderSingle()
497 sameName.toHeader()); in testToHeaderSingle()
531 String line = Address.toHeader(addresses); in testToHeaderMulti()
578 result = Address.toHeader(null); in testEmptyToHeader()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DAddress.java360 public String toHeader() { in toHeader() method in Address
375 public static String toHeader(Address[] addresses) { in toHeader() method in Address
380 return addresses[0].toHeader(); in toHeader()
382 StringBuilder sb = new StringBuilder(addresses[0].toHeader()); in toHeader()
386 sb.append(addresses[i].toHeader()); in toHeader()
443 return Address.toHeader(Address.parse(addressList)); in parseToHeader()
466 return toHeader(fromHeader(addressList)); in reformatToHeader()
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java373 assertEquals(tag, expect.mFrom, Address.toHeader(actual.getFrom())); in checkLegacyMessage()
375 assertEquals(tag, expect.mTo, Address.toHeader(actual.getRecipients(RecipientType.TO))); in checkLegacyMessage()
376 assertEquals(tag, expect.mCc, Address.toHeader(actual.getRecipients(RecipientType.CC))); in checkLegacyMessage()
377 assertEquals(tag, expect.mBcc, Address.toHeader(actual.getRecipients(RecipientType.BCC))); in checkLegacyMessage()
378 assertEquals(tag, expect.mReplyTo, Address.toHeader(actual.getReplyTo())); in checkLegacyMessage()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMessage.java281 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients()
289 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients()
297 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients()
335 setHeader("From", MimeUtility.fold(from.toHeader(), FROM_LENGTH)); in setFrom()
359 setHeader("Reply-to", MimeUtility.fold(Address.toHeader(replyTo), REPLY_TO_LENGTH)); in setReplyTo()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java426 setFrom(Address.toHeader(mimeMessage.getFrom())); in Message()
427 setTo(Address.toHeader(mimeMessage.getRecipients( in Message()
429 setCc(Address.toHeader(mimeMessage.getRecipients( in Message()
431 setBcc(Address.toHeader(mimeMessage.getRecipients( in Message()
433 setReplyTo(Address.toHeader(mimeMessage.getReplyTo())); in Message()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewModel.java283 String toHeader = ""; in getContentDescription() local
285 toHeader = SendersView.getFormattedToHeader().toString(); in getContentDescription()
300 mContentDescription = context.getString(res, toHeader, participant, in getContentDescription()
DConversationItemView.java1051 final SpannableString toHeader = SendersView.getFormattedToHeader(); in elideParticipants() local
1052 CharacterStyle[] spans = toHeader.getSpans(0, toHeader.length(), in elideParticipants()
1059 totalWidth += sPaint.measureText(toHeader.toString()); in elideParticipants()
1060 builder.append(toHeader); in elideParticipants()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java322 assertEquals(Address.toHeader(new Address[] {new Address(ORGANIZER)}), msg.mTo); in testCreateMessageForEntity_Reply()
368 assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo); in testCreateMessageForEntity_Invite_AllDay()
430 assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo); in testCreateMessageForEntity_Invite()
496 assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo); in testCreateMessageForEntity_Recurring()
577 assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo); in testCreateMessageForEntity_Exception_Cancel()
/packages/apps/Exchange/src/com/android/exchange/utility/
DCalendarUtilities.java2000 msg.mTo = Address.toHeader(toArray); in createMessageForEntity()
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java1774 cv.put(ADDRESS_COLUMN_NAMES[i], Address.toHeader(addrs)); in upgradeFromVersion29ToVersion30()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java1183 return address.toHeader(); in computeFromForAccount()