Home
last modified time | relevance | path

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

/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java249 Address[] addresses = Address.parse("address1@dom1.net, <address2@dom2.com>"); in testParsingAddress() local
250 assertEquals("address count", 2, addresses.length); in testParsingAddress()
252 assertEquals("bare address", "address1@dom1.net", addresses[0].getAddress()); in testParsingAddress()
253 assertNull("bare address name", addresses[0].getPersonal()); in testParsingAddress()
255 assertEquals("bracket address", "address2@dom2.com", addresses[1].getAddress()); in testParsingAddress()
256 assertNull("bracket address name", addresses[1].getPersonal()); in testParsingAddress()
263 Address[] addresses = Address.parse( in testParsingSimpleName() local
266 assertEquals("address count", 2, addresses.length); in testParsingSimpleName()
268 assertEquals("bare name address", "address1@dom1.net", addresses[0].getAddress()); in testParsingSimpleName()
269 assertEquals("bare name", "name 1", addresses[0].getPersonal()); in testParsingSimpleName()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DAddress.java144 ArrayList<Address> addresses = new ArrayList<Address>(); in parse() local
154 addresses.add(new Address(address, name)); in parse()
158 return addresses.toArray(new Address[] {}); in parse()
224 public static String toString(Address[] addresses) { in toString() argument
225 return toString(addresses, ","); in toString()
235 public static String toString(Address[] addresses, String separator) { in toString() argument
236 if (addresses == null || addresses.length == 0) { in toString()
239 if (addresses.length == 1) { in toString()
240 return addresses[0].toString(); in toString()
242 StringBuffer sb = new StringBuffer(addresses[0].toString()); in toString()
[all …]
DMessage.java69 public abstract void setRecipients(RecipientType type, Address[] addresses) in setRecipients() argument
/packages/apps/Email/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/Email/emailcommon/src/com/android/emailcommon/internet/
DMimeMessage.java240 public void setRecipients(RecipientType type, Address[] addresses) throws MessagingException { in setRecipients() argument
245 if (addresses == null || addresses.length == 0) { in setRecipients()
249 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH)); in setRecipients()
250 this.mTo = addresses; in setRecipients()
253 if (addresses == null || addresses.length == 0) { in setRecipients()
257 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH)); in setRecipients()
258 this.mCc = addresses; in setRecipients()
261 if (addresses == null || addresses.length == 0) { in setRecipients()
265 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), BCC_LENGTH)); in setRecipients()
266 this.mBcc = addresses; in setRecipients()
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java137 Address[] addresses = Address.parse(to); in buildTestMessage() local
138 message.setRecipients(RecipientType.TO, addresses); in buildTestMessage()
141 Address[] addresses = Address.parse(cc); in buildTestMessage() local
142 message.setRecipients(RecipientType.CC, addresses); in buildTestMessage()
145 Address[] addresses = Address.parse(bcc); in buildTestMessage() local
146 message.setRecipients(RecipientType.BCC, addresses); in buildTestMessage()
149 Address[] addresses = Address.parse(replyTo); in buildTestMessage() local
150 message.setReplyTo(addresses); in buildTestMessage()
153 Address[] addresses = Address.parse(sender); in buildTestMessage() local
154 message.setFrom(addresses[0]); in buildTestMessage()
/packages/apps/Email/src/com/android/email/activity/
DMessageCompose.java1155 private static void addAddresses(MultiAutoCompleteTextView view, Address[] addresses) { in addAddresses() argument
1156 if (addresses == null) { in addAddresses()
1159 for (Address address : addresses) { in addAddresses()
1164 private static void addAddresses(MultiAutoCompleteTextView view, String[] addresses) { in addAddresses() argument
1165 if (addresses == null) { in addAddresses()
1168 for (String oneAddress : addresses) { in addAddresses()
1173 private static void addAddresses(MultiAutoCompleteTextView view, String addresses) { in addAddresses() argument
1174 if (addresses == null) { in addAddresses()
1177 Address[] unpackedAddresses = Address.unpack(addresses); in addAddresses()
1188 Address[] addresses = Address.parse(view.getText().toString().trim()); in getPackedAddresses() local
[all …]
DMessageViewFragmentBase.java290 mAddressesView = (TextView) UiUtilities.getView(view, R.id.addresses); in onCreateView()
/packages/apps/Settings/src/com/android/settings/
DUtils.java331 String addresses = ""; in formatIpAddresses()
333 addresses += iter.next().getHostAddress(); in formatIpAddresses()
334 if (iter.hasNext()) addresses += ", "; in formatIpAddresses()
336 return addresses; in formatIpAddresses()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java319 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1); in lookupAddress() local
320 if (!addresses.isEmpty()) { in lookupAddress()
321 address = addresses.get(0); in lookupAddress()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java537 LinkedHashSet<Rfc822Token> addresses = new LinkedHashSet<Rfc822Token>(); in getAddressesFromList() local
538 Rfc822Tokenizer.tokenize(list, addresses); in getAddressesFromList()
540 return addresses; in getAddressesFromList()
545 Iterator<Rfc822Token> addressIterator = addresses.iterator(); in getAddressesFromList()
553 return addresses; in getAddressesFromList()
DAttendeesView.java386 final LinkedHashSet<Rfc822Token> addresses = in addAttendees() local
389 for (final Rfc822Token address : addresses) { in addAttendees()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnDialog.java276 private boolean validateAddresses(String addresses, boolean cidr) { in validateAddresses() argument
278 for (String address : addresses.split(" ")) { in validateAddresses()
/packages/apps/Email/src/com/android/mail/providers/
DUIProvider.java1359 String[] addresses = TextUtils.split(addressString, EMAIL_SEPARATOR_PATTERN); in incrementRecipientsTimesContacted() local
1360 for (String address : addresses) { in incrementRecipientsTimesContacted()
/packages/apps/Email/tests/src/com/android/email/activity/
DMessageComposeTests.java914 Address[] addresses = Address.parse(sender); in buildTestMessage() local
915 assertTrue("from address", addresses.length > 0); in buildTestMessage()
916 message.mFrom = addresses[0].pack(); in buildTestMessage()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java436 final LinkedHashSet<Rfc822Token> addresses = EditEventHelper.getAddressesFromList( in addAttendees() local
439 for (final Rfc822Token address : addresses) { in addAttendees()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java535 private Set<Long> getAddressIds(List<String> addresses) { in getAddressIds() argument
536 Set<Long> result = new HashSet<Long>(addresses.size()); in getAddressIds()
538 for (String address : addresses) { in getAddressIds()