/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/services/Telephony/src/com/android/phone/common/mail/ |
D | Address.java | 45 public class Address implements Parcelable { class 85 private static final Address[] EMPTY_ADDRESS_ARRAY = new Address[0]; 94 public Address(String address) { in Address() method in Address 98 public Address(String address, String personal) { in Address() method in Address 131 public static synchronized Address getEmailAddress(String rawAddress) { in getEmailAddress() 147 return new Address(address, name); in getEmailAddress() 223 public static Address[] parse(String addressList) { in parse() 228 ArrayList<Address> addresses = new ArrayList<Address>(); in parse() 238 addresses.add(new Address(address, name)); in parse() 242 return addresses.toArray(new Address[addresses.size()]); in parse() [all …]
|
D | Message.java | 65 public abstract Address[] getRecipients(String type) throws MessagingException; in getRecipients() 67 public abstract void setRecipients(String type, Address[] addresses) in setRecipients() 70 public void setRecipient(String type, Address address) throws MessagingException { in setRecipient() 71 setRecipients(type, new Address[] { in setRecipient() 76 public abstract Address[] getFrom() throws MessagingException; in getFrom() 78 public abstract void setFrom(Address from) throws MessagingException; in setFrom() 80 public abstract Address[] getReplyTo() throws MessagingException; in getReplyTo() 82 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 …]
|
/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/services/Telephony/src/com/android/phone/common/mail/internet/ |
D | MimeMessage.java | 18 import com.android.phone.common.mail.Address; 61 private Address[] mFrom; 62 private Address[] mTo; 63 private Address[] mCc; 64 private Address[] mBcc; 65 private Address[] mReplyTo; 249 public Address[] getRecipients(String type) throws MessagingException { in getRecipients() 252 mTo = Address.parse(MimeUtility.unfold(getFirstHeader("To"))); in getRecipients() 257 mCc = Address.parse(MimeUtility.unfold(getFirstHeader("CC"))); in getRecipients() 262 mBcc = Address.parse(MimeUtility.unfold(getFirstHeader("BCC"))); in getRecipients() [all …]
|
/packages/services/Telephony/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 | 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()
|
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()
|
/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 | 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()
|
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()
|
/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/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/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/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/UnifiedEmail/src/com/android/mail/browse/ |
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/Dialer/InCallUI/tests/src/com/android/incallui/ |
D | InCallContactInteractionsTest.java | 19 import android.location.Address; 256 Address address = getAddressForTest(); in testLocationInfo_NoLocality() 285 private Address getAddressForTest() { in getAddressForTest() 286 Address address = new Address(Locale.US); in getAddressForTest()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ReverseGeocoderTask.java | 19 import android.location.Address; 52 List<Address> address = in doInBackground() 55 for (Address addr : address) { in doInBackground()
|