/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 44 private static final Address ADDR_1 = new Address("john@gmail.com", "John Doe"); 45 private static final Address ADDR_2 = new Address("foo@bar.com", null); 46 private static final Address ADDR_3 = new Address("mar.y+test@gmail.com", "Mar-y, B; B*arr"); 47 private static final Address[][] TO_HEADER_CASES = { 54 Address mAddress1; 55 Address mAddress2; 56 Address mAddress3; 65 mAddress1 = new Address("address1", "personal1"); in setUp() 66 mAddress2 = new Address("address2", ""); in setUp() 67 mAddress3 = new Address("address3", null); in setUp() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Address.java | 46 public class Address implements Parcelable { class 86 private static final Address[] EMPTY_ADDRESS_ARRAY = new Address[0]; 95 public Address(String address) { in Address() method in Address 99 public Address(String address, String personal) { in Address() method in Address 132 public static synchronized Address getEmailAddress(String rawAddress) { in getEmailAddress() 148 return new Address(address, name); in getEmailAddress() 224 public static Address[] parse(String addressList) { in parse() 229 ArrayList<Address> addresses = new ArrayList<Address>(); in parse() 239 addresses.add(new Address(address, name)); in parse() 243 return addresses.toArray(new Address[addresses.size()]); in parse() [all …]
|
D | Message.java | 67 public abstract Address[] getRecipients(RecipientType type) throws MessagingException; in getRecipients() 69 public abstract void setRecipients(RecipientType type, Address[] addresses) in setRecipients() 72 public void setRecipient(RecipientType type, Address address) throws MessagingException { in setRecipient() 73 setRecipients(type, new Address[] { in setRecipient() 78 public abstract Address[] getFrom() throws MessagingException; in getFrom() 80 public abstract void setFrom(Address from) throws MessagingException; in setFrom() 82 public abstract Address[] getReplyTo() throws MessagingException; in getReplyTo() 84 public abstract void setReplyTo(Address[] from) throws MessagingException; in setReplyTo()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTest.java | 27 import com.android.emailcommon.mail.Address; 86 final Address from = Address.fromHeader(fromList)[0]; in testUpdateMessageFields_PlainAddresses() 87 final Address[] replies = Address.fromHeader(replyToList); in testUpdateMessageFields_PlainAddresses() 88 final Address[] tos = Address.fromHeader(toList); in testUpdateMessageFields_PlainAddresses() 89 final Address[] ccs = Address.fromHeader(ccList); in testUpdateMessageFields_PlainAddresses() 90 final Address[] bccs = Address.fromHeader(bccList); in testUpdateMessageFields_PlainAddresses() 128 final Address from = Address.fromHeader(fromList)[0]; in testUpdateMessageFields_EncodedAddresses() 129 final Address[] replies = Address.fromHeader(replyToList); in testUpdateMessageFields_EncodedAddresses() 130 final Address[] tos = Address.fromHeader(toList); in testUpdateMessageFields_EncodedAddresses() 131 final Address[] ccs = Address.fromHeader(ccList); in testUpdateMessageFields_EncodedAddresses() [all …]
|
D | LegacyConversionsTests.java | 30 import com.android.emailcommon.mail.Address; 373 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/Email/tests/src/com/android/emailcommon/internet/ |
D | MimeMessageTest.java | 24 import com.android.emailcommon.mail.Address; 229 Address noName1 = new Address("noname1@dom1.com"); in testEncodingAddressField() 230 Address noName2 = new Address("<noname2@dom2.com>", ""); in testEncodingAddressField() 231 Address simpleName = new Address("address3@dom3.org", "simple long and long long name"); in testEncodingAddressField() 232 Address dquoteName = new Address("address4@dom4.org", "name,4,long long name"); in testEncodingAddressField() 233 Address quotedName = new Address("bigG@dom5.net", "big \"G\""); in testEncodingAddressField() 234 Address utf16Name = new Address("<address6@co.jp>", "\"\u65E5\u672C\u8A9E\""); in testEncodingAddressField() 235 Address utf32Name = new Address("<address8@ne.jp>", "\uD834\uDF01\uD834\uDF46"); in testEncodingAddressField() 241 message.setRecipients(RecipientType.CC, new Address[] { simpleName, dquoteName }); in testEncodingAddressField() 242 message.setReplyTo(new Address[] { quotedName, utf16Name, utf32Name }); in testEncodingAddressField() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeMessage.java | 19 import com.android.emailcommon.mail.Address; 62 private Address[] mFrom; 63 private Address[] mTo; 64 private Address[] mCc; 65 private Address[] mBcc; 66 private Address[] mReplyTo; 250 public Address[] getRecipients(RecipientType type) throws MessagingException { in getRecipients() 253 mTo = Address.parse(MimeUtility.unfold(getFirstHeader("To"))); in getRecipients() 258 mCc = Address.parse(MimeUtility.unfold(getFirstHeader("CC"))); in getRecipients() 263 mBcc = Address.parse(MimeUtility.unfold(getFirstHeader("BCC"))); in getRecipients() [all …]
|
/packages/apps/Email/provider_src/com/android/email/ |
D | LegacyConversions.java | 33 import com.android.emailcommon.mail.Address; 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() 139 localMessage.mFrom = Address.toString(from); in updateMessageFields() 142 localMessage.mTo = Address.toString(to); in updateMessageFields() 143 localMessage.mCc = Address.toString(cc); in updateMessageFields() 144 localMessage.mBcc = Address.toString(bcc); in updateMessageFields() [all …]
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
D | SmtpSender.java | 27 import com.android.emailcommon.mail.Address; 189 Address from = Address.firstAddress(message.mFrom); in sendMessage() 190 Address[] to = Address.fromHeader(message.mTo); in sendMessage() 191 Address[] cc = Address.fromHeader(message.mCc); in sendMessage() 192 Address[] bcc = Address.fromHeader(message.mBcc); in sendMessage() 196 for (Address address : to) { in sendMessage() 199 for (Address address : cc) { in sendMessage() 202 for (Address address : bcc) { in sendMessage()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
D | AddressList.java | 35 private ArrayList<Address> addresses; 41 public AddressList(ArrayList<Address> addresses, boolean dontCopy) { in AddressList() 43 this.addresses = (dontCopy ? addresses : new ArrayList<Address>(addresses)); in AddressList() 45 this.addresses = new ArrayList<Address>(0); in AddressList() 58 public Address get(int index) { in get() 82 ArrayList<Address> results = new ArrayList<Address>(); in flatten() 84 Address addr = get(i); in flatten() 99 Address addr = get(i); in print()
|
D | Builder.java | 58 ArrayList<Address> list = new ArrayList<Address>(); in buildAddressList() 61 Address address = buildAddress(childNode); in buildAddressList() 67 private Address buildAddress(ASTaddress node) { in buildAddress() 98 ArrayList<Address> results = new ArrayList<Address>(); in buildGroupBody()
|
D | MailboxList.java | 31 private ArrayList<Address> mailboxes; 37 public MailboxList(ArrayList<Address> mailboxes, boolean dontCopy) { in MailboxList() 39 this.mailboxes = (dontCopy ? mailboxes : new ArrayList<Address>(mailboxes)); in MailboxList() 41 this.mailboxes = new ArrayList<Address>(0); in MailboxList()
|
D | Address.java | 32 public abstract class Address { class 41 final void addMailboxesTo(ArrayList<Address> results) { in addMailboxesTo() 50 protected abstract void doAddMailboxesTo(ArrayList<Address> results); in doAddMailboxesTo()
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
D | CalendarUtilitiesTests.java | 27 import com.android.emailcommon.mail.Address; 322 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/UnifiedEmail/src/com/android/mail/print/ |
D | PrintUtils.java | 29 import com.android.emailcommon.mail.Address; 57 MessageCursor cursor, Map<String, Address> addressCache, in printConversation() 71 Map<String, Address> addressCache, String baseUri, boolean useJavascript) { in printMessage() 111 MessageCursor cursor, Map<String, Address> addressCache, boolean useJavascript) { in buildConversationHtml() 138 String subject, Map<String, Address> addressCache, boolean useJavascript) { in buildMessageHtml() 158 Message message, Map<String, Address> addressCache, in appendSingleMessageHtml() 160 final Address fromAddress = Utils.getAddress(addressCache, message.getFrom()); in appendSingleMessageHtml() 175 Map<String, Address> addressCache, Message message) { in renderRecipients() 227 Map<String, Address> addressCache) { in renderEmailList() 233 final Address email = Utils.getAddress(addressCache, emails[i]); in renderEmailList()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 20 import android.location.Address; 76 private static Address sCurrentAddress; // last known address 101 Address addr1 = lookupAddress(setMinLatitude, setMinLongitude, true); in computeAddress() 102 Address addr2 = lookupAddress(setMaxLatitude, setMaxLongitude, true); in computeAddress() 127 Address currentAddress = lookupAddress( in computeAddress() 284 private String getLocalityAdminForAddress(final Address addr, final boolean approxLocation) { in getLocalityAdminForAddress() 305 public Address lookupAddress(final double latitude, final double longitude, in lookupAddress() 314 Address address = null; in lookupAddress() 320 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1); in lookupAddress() 374 address = new Address(locale); in lookupAddress()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | DetailsAddressResolver.java | 20 import android.location.Address; 36 private Future<Address> mAddressLookupJob; 39 private class AddressLookupJob implements Job<Address> { 47 public Address run(JobContext jc) { in run() 66 new FutureListener<Address>() { in resolveAddress() 68 public void onFutureDone(final Future<Address> future) { in resolveAddress() 83 private void updateLocation(Address address) { in updateLocation()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageHeaderView.java | 46 import com.android.emailcommon.mail.Address; 139 private Address mSender; 147 private Map<String, Address> mAddressCache; 287 Map<String, Address> addressCache, MessageHeaderViewCallbacks callbacks, in initialize() 339 Map<String, Address> addressCache) { in initialize() 498 public Address getAddress(String emailStr) { in getAddress() 575 private static String getSenderName(Address sender) { in getSenderName() 710 Map<String, Address> addressCache, VeiledAddressMatcher matcher, in getRecipientSummaryText() 732 private final Map<String, Address> mAddressCache; 740 Map<String, Address> addressCache, VeiledAddressMatcher matcher, in RecipientListsBuilder() [all …]
|
D | EmlMessageViewFragment.java | 41 import com.android.emailcommon.mail.Address; 95 protected final Map<String, Address> mAddressCache = Collections.synchronizedMap( 96 new HashMap<String, Address>()); 128 final List<Address> cacheCopy; in onPageFinished() 132 for (Address addr : cacheCopy) { in onPageFinished() 255 public Map<String, Address> getAddressCache() { in getAddressCache()
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | EmailSyncParser.java | 23 import com.android.emailcommon.mail.Address; 144 msg.mTo = Address.toString(Address.parse(getValue())); in addData() 147 Address[] froms = Address.parse(getValue()); in addData() 151 msg.mFrom = Address.toString(froms); in addData() 154 msg.mCc = Address.toString(Address.parse(getValue())); in addData() 157 msg.mReplyTo = Address.toString(Address.parse(getValue())); in addData()
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 40 import com.android.emailcommon.mail.Address; 1691 static private void addAttendeeToMessage(SimpleIcsWriter ics, ArrayList<Address> toList, in addAttendeeToMessage() 1702 toList.add(attendeeName == null ? new Address(attendeeEmail) : in addAttendeeToMessage() 1703 new Address(attendeeEmail, attendeeName)); in addAttendeeToMessage() 1939 ArrayList<Address> toList = new ArrayList<Address>(); in createMessageForEntity() 1986 toList.add(organizerName == null ? new Address(organizerEmail) : in createMessageForEntity() 1987 new Address(organizerEmail, organizerName)); in createMessageForEntity() 1995 Address[] toArray = new Address[toList.size()]; in createMessageForEntity() 1997 for (Address address: toList) { in createMessageForEntity() 2000 msg.mTo = Address.toHeader(toArray); in createMessageForEntity()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Message.java | 37 import com.android.emailcommon.mail.Address; 426 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/ui/ |
D | SecureConversationViewFragment.java | 30 import com.android.emailcommon.mail.Address; 92 final List<Address> cacheCopy; in onPageFinished() 96 for (Address addr : cacheCopy) { in onPageFinished() 176 public Map<String, Address> getAddressCache() { in getAddressCache()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailConversationCursor.java | 32 import com.android.emailcommon.mail.Address; 207 final Address[] recipientAddresses = Address.parse(recipientsString); in generateConversationInfo() 208 for (Address recipientAddress : recipientAddresses) { in generateConversationInfo()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | Pop3StoreUnitTests.java | 29 import com.android.emailcommon.mail.Address; 902 Address[] to = message.getRecipients(RecipientType.TO); in checkFetchedMessage() 909 Address[] from = message.getFrom(); in checkFetchedMessage() 916 Address[] cc = message.getRecipients(RecipientType.CC); in checkFetchedMessage() 923 Address[] replyto = message.getReplyTo(); in checkFetchedMessage()
|