/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 263 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/ |
D | Address.java | 229 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 …]
|
D | Message.java | 69 public abstract void setRecipients(RecipientType type, Address[] addresses) in setRecipients() argument
|
/packages/services/Telephony/src/com/android/phone/common/mail/ |
D | Address.java | 228 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 …]
|
D | Message.java | 67 public abstract void setRecipients(String type, Address[] addresses) in setRecipients() argument
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
D | AddressList.java | 35 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/ |
D | AddressList.java | 35 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/ |
D | MimeMessage.java | 272 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/ |
D | MimeMessage.java | 271 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/ |
D | UpdateCountryService.java | 73 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/ |
D | AccountSetupBasicsFragment.java | 103 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/ |
D | ComposeActivity.java | 2107 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/ |
D | ContactRecipientAdapter.java | 253 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/ |
D | ContextMap.java | 230 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/ |
D | ReverseGeocoder.java | 320 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/ |
D | EditEventHelper.java | 575 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()
|
D | AttendeesView.java | 386 final LinkedHashSet<Rfc822Token> addresses = in addAttendees() local 389 for (final Rfc822Token address : addresses) { in addAttendees()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Message.java | 627 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/ |
D | Utils.java | 330 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/ |
D | MailPrefs.java | 364 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/ |
D | ConfigDialog.java | 308 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/ |
D | MmsSmsProvider.java | 581 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/ |
D | BluetoothMapbMessageMime.java | 329 ArrayList<Rfc822Token> addresses) { in encodeHeaderAddresses() argument 338 for(Rfc822Token address : addresses) { in encodeHeaderAddresses()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarEventModel.java | 451 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/ |
D | NotificationUtils.java | 1740 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()
|