Searched refs:addresses (Results 1 – 24 of 24) sorted by relevance
263 Address[] addresses = Address.parse("address1@dom1.net, <address2@dom2.com>"); in testParsingAddress() local264 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() local280 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 …]
229 ArrayList<Address> addresses = new ArrayList<Address>(); in parse() local239 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() argument328 return toString(addresses, ADDRESS_DELIMETER); in toString()338 public static String toString(Address[] addresses, String separator) { in toString() argument339 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 …]
69 public abstract void setRecipients(RecipientType type, Address[] addresses) in setRecipients() argument
35 private ArrayList<Address> addresses; field in AddressList41 public AddressList(ArrayList<Address> addresses, boolean dontCopy) { in AddressList() argument42 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()
76 final ArrayList<InetAddress> addresses = new ArrayList<InetAddress>(); in resolveHostName() local79 addresses.add(address); in resolveHostName()81 addresses.add(address); in resolveHostName()84 return addresses; in resolveHostName()125 ArrayList<InetAddress> addresses = resolveHostName(target.getHostName()); in openConnection() local127 for (int i = 0; i < addresses.size(); ++i) { in openConnection()129 + addresses.get(i)); in openConnection()135 addresses.get(i).getHostAddress(), in openConnection()170 if (i == addresses.size() - 1) { in openConnection()179 if (i == addresses.size() - 1) { in openConnection()
272 public void setRecipients(RecipientType type, Address[] addresses) throws MessagingException { in setRecipients() argument277 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()
69 final List<Address> addresses = geocoder.getFromLocation( in getCountryFromLocation() local71 if (addresses != null && addresses.size() > 0) { in getCountryFromLocation()72 country = addresses.get(0).getCountryCode(); in getCountryFromLocation()
2019 private void addToAddresses(Collection<String> addresses) { in addToAddresses() argument2020 addAddressesToList(addresses, mTo); in addToAddresses()2023 private void addCcAddresses(Collection<String> addresses, Collection<String> toAddresses) { in addCcAddresses() argument2024 addCcAddressesToList(tokenizeAddressList(addresses), in addCcAddresses()2028 private void addBccAddresses(Collection<String> addresses) { in addBccAddresses() argument2029 addAddressesToList(addresses, mBcc); in addBccAddresses()2033 protected void addCcAddressesToList(List<Rfc822Token[]> addresses, in addCcAddressesToList() argument2038 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList()2046 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList()2069 protected List<Rfc822Token[]> tokenizeAddressList(Collection<String> addresses) { in tokenizeAddressList() argument[all …]
103 final Address[] addresses = Address.parse(emailField); in validateFields() local106 && addresses.length == 1 in validateFields()107 && !TextUtils.isEmpty(addresses[0].getAddress()); in validateFields()
211 Set<String> addresses = new HashSet<String>(); in getConnectedDevices() local215 addresses.add(connection.address); in getConnectedDevices()217 return addresses; in getConnectedDevices()
575 LinkedHashSet<Rfc822Token> addresses = new LinkedHashSet<Rfc822Token>(); in getAddressesFromList() local576 Rfc822Tokenizer.tokenize(list, addresses); in getAddressesFromList()578 return addresses; in getAddressesFromList()583 Iterator<Rfc822Token> addressIterator = addresses.iterator(); in getAddressesFromList()591 return addresses; in getAddressesFromList()
386 final LinkedHashSet<Rfc822Token> addresses = in addAttendees() local389 for (final Rfc822Token address : addresses) { in addAttendees()
320 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1); in lookupAddress() local321 if (!addresses.isEmpty()) { in lookupAddress()322 address = addresses.get(0); in lookupAddress()
298 String addresses = ""; in formatIpAddresses()300 addresses += iter.next().getHostAddress(); in formatIpAddresses()301 if (iter.hasNext()) addresses += "\n"; in formatIpAddresses()303 return addresses; in formatIpAddresses()
625 public static String[] tokenizeAddresses(String addresses) { in tokenizeAddresses() argument626 if (TextUtils.isEmpty(addresses)) { in tokenizeAddresses()630 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addresses); in tokenizeAddresses()
336 public void setSenderWhitelist(Set<String> addresses) { in setSenderWhitelist() argument337 getEditor().putStringSet(PreferenceKeys.DISPLAY_IMAGES, addresses).apply(); in setSenderWhitelist()
545 private Set<Long> getAddressIds(List<String> addresses) { in getAddressIds() argument546 Set<Long> result = new HashSet<Long>(addresses.size()); in getAddressIds()548 for (String address : addresses) { in getAddressIds()
277 private boolean validateAddresses(String addresses, boolean cidr) { in validateAddresses() argument279 for (String address : addresses.split(" ")) { in validateAddresses()
313 ArrayList<Rfc822Token> addresses) { in encodeHeaderAddresses() argument322 for(Rfc822Token address : addresses) { in encodeHeaderAddresses()
451 final LinkedHashSet<Rfc822Token> addresses = EditEventHelper.getAddressesFromList( in addAttendees() local454 for (final Rfc822Token address : addresses) { in addAttendees()
1747 private static ArrayList<Long> findContacts(Context context, Collection<String> addresses) { in findContacts() argument1750 String[] questionMarks = new String[addresses.size()]; in findContacts()1752 whereArgs.addAll(addresses); in findContacts()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...