Searched refs:addresses (Results 1 - 22 of 22) sorted by relevance

/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DAddressUnitTests.java249 Address[] addresses = Address.parse("address1@dom1.net, <address2@dom2.com>");
250 assertEquals("address count", 2, addresses.length);
252 assertEquals("bare address", "address1@dom1.net", addresses[0].getAddress());
253 assertNull("bare address name", addresses[0].getPersonal());
255 assertEquals("bracket address", "address2@dom2.com", addresses[1].getAddress());
256 assertNull("bracket address name", addresses[1].getPersonal());
263 Address[] addresses = Address.parse(
266 assertEquals("address count", 2, addresses.length);
268 assertEquals("bare name address", "address1@dom1.net", addresses[0].getAddress());
269 assertEquals("bare name", "name 1", addresses[
693 legacyPack(Address[] addresses) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
H A DAddress.java127 * This method is used to check that all the addresses that the user
147 * Parse a comma-delimited list of addresses in RFC822 format and return an
158 ArrayList<Address> addresses = new ArrayList<Address>();
168 addresses.add(new Address(address, name));
172 return addresses.toArray(new Address[] {});
255 * @param addresses Address array
258 public static String toString(Address[] addresses) { argument
259 return toString(addresses, ",");
265 * @param addresses Address array
269 public static String toString(Address[] addresses, Strin argument
306 toHeader(Address[] addresses) argument
344 toFriendly(Address[] addresses) argument
446 pack(Address[] addresses) argument
[all...]
H A DMessage.java69 public abstract void setRecipients(RecipientType type, Address[] addresses) argument
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
H A DAddressList.java35 private ArrayList<Address> addresses; field in class:AddressList
38 * @param addresses An ArrayList that contains only Address objects.
39 * @param dontCopy true iff it is not possible for the addresses ArrayList to be modified by someone else.
41 public AddressList(ArrayList<Address> addresses, boolean dontCopy) { argument
42 if (addresses != null)
43 this.addresses = (dontCopy ? addresses : new ArrayList<Address>(addresses));
45 this.addresses = new ArrayList<Address>(0);
52 return addresses
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DAddress.java185 * This method is used to check that all the addresses that the user
205 * Parse a comma-delimited list of addresses in RFC822 format and return an
216 ArrayList<Address> addresses = new ArrayList<Address>();
226 addresses.add(new Address(name, address));
230 return addresses.toArray(new Address[] {});
285 * @param addresses Address array
288 public static String toString(Address[] addresses) { argument
289 return toString(addresses, ADDRESS_DELIMETER);
295 * @param addresses Address array
299 public static String toString(Address[] addresses, Strin argument
336 toHeader(Address[] addresses) argument
374 toFriendly(Address[] addresses) argument
476 pack(Address[] addresses) argument
[all...]
H A DMessage.java546 public static String[] tokenizeAddresses(String addresses) { argument
547 if (TextUtils.isEmpty(addresses)) {
551 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addresses);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMessageHeaderDetailsDialogFragment.java42 private static final String ARG_ADDRESS_CACHE = "addresses";
55 * @param addressCache a mapping of RFC822 addresses as strings to {@link Address}.
58 * @param from from addresses for the message
59 * @param replyTo replyTo addresses for the message
60 * @param to to addresses for the message
61 * @param cc cc addresses for the message
62 * @param bcc bcc addresses for the message
74 final Bundle addresses = new Bundle();
75 addAddressesToBundle(addresses, addressCache, from);
76 addAddressesToBundle(addresses, addressCach
93 addAddressesToBundle( Bundle addresses, Map<String, Address> addressCache, String[] emails) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
H A DMimeMessage.java251 * Returns a list of the given recipient type from this message. If no addresses are
277 public void setRecipients(RecipientType type, Address[] addresses) throws MessagingException { argument
282 if (addresses == null || addresses.length == 0) {
286 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), TO_LENGTH));
287 this.mTo = addresses;
290 if (addresses == null || addresses.length == 0) {
294 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), CC_LENGTH));
295 this.mCc = addresses;
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
H A DContactPhotoManager.java44 * An LRU cache for photo ids mapped to contact addresses.
175 Set<String> addresses = new HashSet<String>();
188 addresses.add(emailAddress);
192 // get the Map of email addresses to ContactInfo
195 getResolver(), addresses, false /* decodeBitmaps */);
197 // Put all entries into photos map: a mapping of email addresses to photoBytes.
202 for (final String address : addresses) {
208 // Still need to set a null result for all addresses, otherwise we end
210 for (final String address: addresses) {
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DContextMap.java40 * Connection class helps map connection IDs to device addresses.
193 * Get the device addresses for all connected devices
196 Set<String> addresses = new HashSet<String>();
200 addresses.add(connection.address);
202 return addresses;
/packages/apps/Email/tests/src/com/android/email/
H A DLegacyConversionsTests.java140 Address[] addresses = Address.parse(to);
141 message.setRecipients(RecipientType.TO, addresses);
144 Address[] addresses = Address.parse(cc);
145 message.setRecipients(RecipientType.CC, addresses);
148 Address[] addresses = Address.parse(bcc);
149 message.setRecipients(RecipientType.BCC, addresses);
152 Address[] addresses = Address.parse(replyTo);
153 message.setReplyTo(addresses);
156 Address[] addresses = Address.parse(sender);
157 message.setFrom(addresses[
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DReverseGeocoder.java320 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1);
321 if (!addresses.isEmpty()) {
322 address = addresses.get(0);
/packages/apps/Settings/src/com/android/settings/
H A DUtils.java331 * Returns the WIFI IP Addresses, if any, taking into account IPv4 and IPv6 style addresses.
333 * @return the formatted and newline-separated IP addresses, or null if none.
343 * Returns the default link's IP addresses, if any, taking into account IPv4 and IPv6 style
344 * addresses.
346 * @return the formatted and newline-separated IP addresses, or null if none.
360 // Concatenate all available addresses, comma separated
361 String addresses = "";
363 addresses += iter.next().getHostAddress();
364 if (iter.hasNext()) addresses += "\n";
366 return addresses;
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
H A DMailPrefs.java298 public void setSenderWhitelist(Set<String> addresses) { argument
299 getEditor().putStringSet(PreferenceKeys.DISPLAY_IMAGES, addresses).apply();
/packages/apps/Calendar/src/com/android/calendar/event/
H A DAttendeesView.java386 final LinkedHashSet<Rfc822Token> addresses =
389 for (final Rfc822Token address : addresses) {
H A DEditEventHelper.java575 LinkedHashSet<Rfc822Token> addresses = new LinkedHashSet<Rfc822Token>();
576 Rfc822Tokenizer.tokenize(list, addresses);
578 return addresses;
583 Iterator<Rfc822Token> addressIterator = addresses.iterator();
591 return addresses;
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DVpnDialog.java277 private boolean validateAddresses(String addresses, boolean cidr) { argument
279 for (String address : addresses.split(" ")) {
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DComposeActivity.java1057 * custom addresses associated with that account. Return the match if there
1739 // message, excluding the current user's email address and any addresses
1754 private void addToAddresses(Collection<String> addresses) { argument
1755 addAddressesToList(addresses, mTo);
1758 private void addCcAddresses(Collection<String> addresses, Collection<String> toAddresses) { argument
1759 addCcAddressesToList(tokenizeAddressList(addresses),
1763 private void addBccAddresses(Collection<String> addresses) { argument
1764 addAddressesToList(addresses, mBcc);
1768 protected void addCcAddressesToList(List<Rfc822Token[]> addresses, argument
1773 for (Rfc822Token[] tokens : addresses) {
1804 tokenizeAddressList(Collection<String> addresses) argument
1815 addAddressesToList(Collection<String> addresses, RecipientEditTextView list) argument
1865 addRecipients(final Set<String> recipients, final String[] addresses) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapbMessageMmsEmail.java261 * @param addresses the reformatted address substrings to encode.
264 ArrayList<Rfc822Token> addresses) {
265 /* TODO: Do we need to encode the addresses if they contain illegal characters?
273 for(Rfc822Token address : addresses) {
263 encodeHeaderAddresses(StringBuilder sb, String headerName, ArrayList<Rfc822Token> addresses) argument
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsSmsProvider.java59 * This class also provides the ability to find out what addresses
105 * the name of the table that is used to store the canonical addresses for both SMS and MMS.
246 // Use this pattern to query all canonical addresses.
247 URI_MATCHER.addURI(AUTHORITY, "canonical-addresses", URI_CANONICAL_ADDRESSES);
488 // We lowercase all email addresses, but not addresses that aren't numbers, because
540 * Return the canonical address IDs for these addresses.
542 private Set<Long> getAddressIds(List<String> addresses) { argument
543 Set<Long> result = new HashSet<Long>(addresses.size());
545 for (String address : addresses) {
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarEventModel.java451 final LinkedHashSet<Rfc822Token> addresses = EditEventHelper.getAddressesFromList(
454 for (final Rfc822Token address : addresses) {
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DNotificationUtils.java1300 private static ArrayList<Long> findContacts(Context context, Collection<String> addresses) { argument
1303 String[] questionMarks = new String[addresses.size()];
1305 whereArgs.addAll(addresses);

Completed in 628 milliseconds