Home
last modified time | relevance | path

Searched refs:addresses (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java263 Address[] addresses = Address.parse("address1@dom1.net, <address2@dom2.com>"); in testParsingAddress() local
264 assertEquals("address count", 2, addresses.length); in testParsingAddress()
266 assertEquals("bare address", "address1@dom1.net", addresses[0].getAddress()); in testParsingAddress()
267 assertNull("bare address name", addresses[0].getPersonal()); in testParsingAddress()
269 assertEquals("bracket address", "address2@dom2.com", addresses[1].getAddress()); in testParsingAddress()
270 assertNull("bracket address name", addresses[1].getPersonal()); in testParsingAddress()
277 Address[] addresses = Address.parse( in testParsingSimpleName() local
280 assertEquals("address count", 2, addresses.length); in testParsingSimpleName()
282 assertEquals("bare name address", "address1@dom1.net", addresses[0].getAddress()); in testParsingSimpleName()
283 assertEquals("bare name", "name 1", addresses[0].getPersonal()); in testParsingSimpleName()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DAddress.java229 ArrayList<Address> addresses = new ArrayList<Address>(); in parse() local
239 addresses.add(new Address(address, name)); in parse()
243 return addresses.toArray(new Address[addresses.size()]); in parse()
327 public static String toString(Address[] addresses) { in toString() argument
328 return toString(addresses, ADDRESS_DELIMETER); in toString()
338 public static String toString(Address[] addresses, String separator) { in toString() argument
339 if (addresses == null || addresses.length == 0) { in toString()
342 if (addresses.length == 1) { in toString()
343 return addresses[0].toString(); in toString()
345 StringBuilder sb = new StringBuilder(addresses[0].toString()); in toString()
[all …]
DMessage.java69 public abstract void setRecipients(RecipientType type, Address[] addresses) in setRecipients() argument
/packages/services/Telephony/src/com/android/phone/common/mail/
DAddress.java228 ArrayList<Address> addresses = new ArrayList<Address>(); in parse() local
238 addresses.add(new Address(address, name)); in parse()
242 return addresses.toArray(new Address[addresses.size()]); in parse()
326 public static String toString(Address[] addresses) { in toString() argument
327 return toString(addresses, ADDRESS_DELIMETER); in toString()
337 public static String toString(Address[] addresses, String separator) { in toString() argument
338 if (addresses == null || addresses.length == 0) { in toString()
341 if (addresses.length == 1) { in toString()
342 return addresses[0].toString(); in toString()
344 StringBuilder sb = new StringBuilder(addresses[0].toString()); in toString()
[all …]
DMessage.java67 public abstract void setRecipients(String type, Address[] addresses) in setRecipients() argument
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
DAddressList.java35 private ArrayList<Address> addresses; field in AddressList
41 public AddressList(ArrayList<Address> addresses, boolean dontCopy) { in AddressList() argument
42 if (addresses != null) in AddressList()
43 this.addresses = (dontCopy ? addresses : new ArrayList<Address>(addresses)); in AddressList()
45 this.addresses = new ArrayList<Address>(0); in AddressList()
52 return addresses.size(); in size()
61 return addresses.get(index); in get()
80 return new MailboxList(addresses, true); in flatten()
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/
DAddressList.java35 private ArrayList<Address> addresses; field in AddressList
41 public AddressList(ArrayList<Address> addresses, boolean dontCopy) { in AddressList() argument
42 if (addresses != null) in AddressList()
43 this.addresses = (dontCopy ? addresses : new ArrayList<Address>(addresses)); in AddressList()
45 this.addresses = new ArrayList<Address>(0); in AddressList()
52 return addresses.size(); in size()
61 return addresses.get(index); in get()
80 return new MailboxList(addresses, true); in flatten()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMessage.java272 public void setRecipients(RecipientType type, Address[] addresses) throws MessagingException { in setRecipients() argument
277 if (addresses == null || addresses.length == 0) { in setRecipients()
281 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients()
282 this.mTo = addresses; in setRecipients()
285 if (addresses == null || addresses.length == 0) { in setRecipients()
289 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients()
290 this.mCc = addresses; in setRecipients()
293 if (addresses == null || addresses.length == 0) { in setRecipients()
297 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients()
298 this.mBcc = addresses; in setRecipients()
/packages/services/Telephony/src/com/android/phone/common/mail/internet/
DMimeMessage.java271 public void setRecipients(String type, Address[] addresses) throws MessagingException { in setRecipients() argument
276 if (addresses == null || addresses.length == 0) { in setRecipients()
280 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients()
281 this.mTo = addresses; in setRecipients()
284 if (addresses == null || addresses.length == 0) { in setRecipients()
288 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients()
289 this.mCc = addresses; in setRecipients()
292 if (addresses == null || addresses.length == 0) { in setRecipients()
296 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients()
297 this.mBcc = addresses; in setRecipients()
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/
DUpdateCountryService.java73 final List<Address> addresses = geocoder.getFromLocation( in getCountryFromLocation() local
75 if (addresses != null && addresses.size() > 0) { in getCountryFromLocation()
76 country = addresses.get(0).getCountryCode(); in getCountryFromLocation()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupBasicsFragment.java103 final Address[] addresses = Address.parse(emailField); in validateFields() local
106 && addresses.length == 1 in validateFields()
107 && !TextUtils.isEmpty(addresses[0].getAddress()); in validateFields()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java2107 private void addToAddresses(Collection<String> addresses) { in addToAddresses() argument
2108 addAddressesToList(addresses, mTo); in addToAddresses()
2111 private void addCcAddresses(Collection<String> addresses, Collection<String> toAddresses) { in addCcAddresses() argument
2112 addCcAddressesToList(tokenizeAddressList(addresses), in addCcAddresses()
2116 private void addBccAddresses(Collection<String> addresses) { in addBccAddresses() argument
2117 addAddressesToList(addresses, mBcc); in addBccAddresses()
2121 protected void addCcAddressesToList(List<Rfc822Token[]> addresses, in addCcAddressesToList() argument
2126 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList()
2134 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList()
2157 protected List<Rfc822Token[]> tokenizeAddressList(Collection<String> addresses) { in tokenizeAddressList() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAdapter.java253 final HashSet<String> addresses = new HashSet<String>();
256 addresses.add(tokens.length > 0 ? tokens[0].getAddress() : inAddresses.get(i));
262 for (final String address : addresses) {
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java230 Set<String> addresses = new HashSet<String>(); in getConnectedDevices() local
234 addresses.add(connection.address); in getConnectedDevices()
236 return addresses; in getConnectedDevices()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java320 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1); in lookupAddress() local
321 if (!addresses.isEmpty()) { in lookupAddress()
322 address = addresses.get(0); in lookupAddress()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java575 LinkedHashSet<Rfc822Token> addresses = new LinkedHashSet<Rfc822Token>(); in getAddressesFromList() local
576 Rfc822Tokenizer.tokenize(list, addresses); in getAddressesFromList()
578 return addresses; in getAddressesFromList()
583 Iterator<Rfc822Token> addressIterator = addresses.iterator(); in getAddressesFromList()
591 return addresses; in getAddressesFromList()
DAttendeesView.java386 final LinkedHashSet<Rfc822Token> addresses = in addAttendees() local
389 for (final Rfc822Token address : addresses) { in addAttendees()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java627 public static String[] tokenizeAddresses(String addresses) { in tokenizeAddresses() argument
628 if (TextUtils.isEmpty(addresses)) { in tokenizeAddresses()
632 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addresses); in tokenizeAddresses()
/packages/apps/Settings/src/com/android/settings/
DUtils.java330 String addresses = ""; in formatIpAddresses()
332 addresses += iter.next().getHostAddress(); in formatIpAddresses()
333 if (iter.hasNext()) addresses += "\n"; in formatIpAddresses()
335 return addresses; in formatIpAddresses()
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java364 public void setSenderWhitelist(Set<String> addresses) { in setSenderWhitelist() argument
365 getEditor().putStringSet(PreferenceKeys.DISPLAY_IMAGES, addresses).apply(); in setSenderWhitelist()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java308 private boolean validateAddresses(String addresses, boolean cidr) { in validateAddresses() argument
310 for (String address : addresses.split(" ")) { in validateAddresses()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java581 private Set<Long> getAddressIds(List<String> addresses) { in getAddressIds() argument
582 Set<Long> result = new HashSet<Long>(addresses.size()); in getAddressIds()
584 for (String address : addresses) { in getAddressIds()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMime.java329 ArrayList<Rfc822Token> addresses) { in encodeHeaderAddresses() argument
338 for(Rfc822Token address : addresses) { in encodeHeaderAddresses()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java451 final LinkedHashSet<Rfc822Token> addresses = EditEventHelper.getAddressesFromList( in addAttendees() local
454 for (final Rfc822Token address : addresses) { in addAttendees()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationUtils.java1740 private static ArrayList<Long> findContacts(Context context, Collection<String> addresses) { in findContacts() argument
1743 String[] questionMarks = new String[addresses.size()]; in findContacts()
1745 whereArgs.addAll(addresses); in findContacts()

12