Home
last modified time | relevance | path

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

/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/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/Mms/src/com/android/mms/service/http/
DNetworkAwareClientConnectionOperator.java76 final ArrayList<InetAddress> addresses = new ArrayList<InetAddress>(); in resolveHostName() local
79 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() local
127 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()
/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/apps/ContactsCommon/src/com/android/contacts/common/location/
DUpdateCountryService.java69 final List<Address> addresses = geocoder.getFromLocation( in getCountryFromLocation() local
71 if (addresses != null && addresses.size() > 0) { in getCountryFromLocation()
72 country = addresses.get(0).getCountryCode(); in getCountryFromLocation()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java2019 private void addToAddresses(Collection<String> addresses) { in addToAddresses() argument
2020 addAddressesToList(addresses, mTo); in addToAddresses()
2023 private void addCcAddresses(Collection<String> addresses, Collection<String> toAddresses) { in addCcAddresses() argument
2024 addCcAddressesToList(tokenizeAddressList(addresses), in addCcAddresses()
2028 private void addBccAddresses(Collection<String> addresses) { in addBccAddresses() argument
2029 addAddressesToList(addresses, mBcc); in addBccAddresses()
2033 protected void addCcAddressesToList(List<Rfc822Token[]> addresses, in addCcAddressesToList() argument
2038 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 …]
/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/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java211 Set<String> addresses = new HashSet<String>(); in getConnectedDevices() local
215 addresses.add(connection.address); in getConnectedDevices()
217 return addresses; in getConnectedDevices()
/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/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/Settings/src/com/android/settings/
DUtils.java298 String addresses = ""; in formatIpAddresses()
300 addresses += iter.next().getHostAddress(); in formatIpAddresses()
301 if (iter.hasNext()) addresses += "\n"; in formatIpAddresses()
303 return addresses; in formatIpAddresses()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java625 public static String[] tokenizeAddresses(String addresses) { in tokenizeAddresses() argument
626 if (TextUtils.isEmpty(addresses)) { in tokenizeAddresses()
630 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addresses); in tokenizeAddresses()
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java336 public void setSenderWhitelist(Set<String> addresses) { in setSenderWhitelist() argument
337 getEditor().putStringSet(PreferenceKeys.DISPLAY_IMAGES, addresses).apply(); in setSenderWhitelist()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java545 private Set<Long> getAddressIds(List<String> addresses) { in getAddressIds() argument
546 Set<Long> result = new HashSet<Long>(addresses.size()); in getAddressIds()
548 for (String address : addresses) { in getAddressIds()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnDialog.java277 private boolean validateAddresses(String addresses, boolean cidr) { in validateAddresses() argument
279 for (String address : addresses.split(" ")) { in validateAddresses()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMms.java313 ArrayList<Rfc822Token> addresses) { in encodeHeaderAddresses() argument
322 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.java1747 private static ArrayList<Long> findContacts(Context context, Collection<String> addresses) { in findContacts() argument
1750 String[] questionMarks = new String[addresses.size()]; in findContacts()
1752 whereArgs.addAll(addresses); in findContacts()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz