Home
last modified time | relevance | path

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

12

/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/Dialer/java/com/android/voicemail/impl/mail/
DAddress.java217 ArrayList<Address> addresses = new ArrayList<Address>(); in parse() local
227 addresses.add(new Address(address, name)); in parse()
231 return addresses.toArray(new Address[addresses.size()]); in parse()
305 public static String toString(Address[] addresses) { in toString() argument
306 return toString(addresses, ADDRESS_DELIMETER); in toString()
316 public static String toString(Address[] addresses, String separator) { in toString() argument
317 if (addresses == null || addresses.length == 0) { in toString()
320 if (addresses.length == 1) { in toString()
321 return addresses[0].toString(); in toString()
323 StringBuilder sb = new StringBuilder(addresses[0].toString()); in toString()
[all …]
DMessage.java73 public abstract void setRecipients(String type, Address[] addresses) throws MessagingException; 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/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java235 String[] addresses = { in testProvisioningWithInitialConfiguration() local
245 .withInitialConfiguration(conf(links(addresses), prefixes(prefixes), ips())) in testProvisioningWithInitialConfiguration()
254 for (String addr : addresses) { in testProvisioningWithInitialConfiguration()
260 final int lastAddr = addresses.length - 1; in testProvisioningWithInitialConfiguration()
264 mObserver.onInterfaceAddressUpdated(new LinkAddress(addresses[i]), iface); in testProvisioningWithInitialConfiguration()
270 mObserver.onInterfaceAddressUpdated(new LinkAddress(addresses[lastAddr]), iface); in testProvisioningWithInitialConfiguration()
271 LinkProperties want = linkproperties(links(addresses), routes(prefixes)); in testProvisioningWithInitialConfiguration()
450 static LinkProperties linkproperties(Set<LinkAddress> addresses, Set<RouteInfo> routes) { in linkproperties() argument
452 lp.setLinkAddresses(addresses); in linkproperties()
480 static Set<LinkAddress> links(String... addresses) { in links() argument
[all …]
/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/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java286 public void setRecipients(String type, Address[] addresses) throws MessagingException { in setRecipients() argument
291 if (addresses == null || addresses.length == 0) { in setRecipients()
295 setHeader("To", MimeUtility.fold(Address.toHeader(addresses), toLength)); in setRecipients()
296 this.to = addresses; in setRecipients()
299 if (addresses == null || addresses.length == 0) { in setRecipients()
303 setHeader("CC", MimeUtility.fold(Address.toHeader(addresses), ccLength)); in setRecipients()
304 this.cc = addresses; in setRecipients()
307 if (addresses == null || addresses.length == 0) { in setRecipients()
311 setHeader("BCC", MimeUtility.fold(Address.toHeader(addresses), bccLength)); in setRecipients()
312 this.bcc = addresses; in setRecipients()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java173 public void onInterfaceDnsServerInfo(String iface, long lifetime, String[] addresses) { in onInterfaceDnsServerInfo() argument
175 maybeLog("interfaceDnsServerInfo", Arrays.toString(addresses)); in onInterfaceDnsServerInfo()
176 boolean changed = mDnsServerRepository.addServers(lifetime, addresses); in onInterfaceDnsServerInfo()
279 public synchronized boolean addServers(long lifetime, String[] addresses) { in addServers() argument
288 for (String addressString : addresses) { in addServers()
/packages/apps/TV/common/src/com/android/tv/common/util/
DLocationUtils.java124 List<Address> addresses = in updateAddress() local
126 if (addresses != null && !addresses.isEmpty()) { in updateAddress()
127 sAddress = addresses.get(0); in updateAddress()
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java262 List<Address> addresses = in doInBackground() local
264 if (addresses != null && !addresses.isEmpty()) { in doInBackground()
265 return addresses.get(0).getCountryCode(); in doInBackground()
/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/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreDatabase.java214 private static byte[] encodeAddressList(@NonNull final List<InetAddress> addresses) { in encodeAddressList() argument
216 for (final InetAddress address : addresses) { in encodeAddressList()
227 final ArrayList<InetAddress> addresses = new ArrayList<>(); in decodeAddressList() local
233 addresses.add(InetAddress.getByAddress(bytes)); in decodeAddressList()
236 return addresses; in decodeAddressList()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java376 Set<String> addresses = new HashSet<String>(); in getConnectedDevices() local
380 addresses.add(connection.address); in getConnectedDevices()
382 return addresses; in getConnectedDevices()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAdapter.java346 final HashSet<String> addresses = new HashSet<String>();
349 addresses.add(tokens.length > 0 ? tokens[0].getAddress() : inAddresses.get(i));
355 for (final String address : addresses) {
/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/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java2139 private void addToAddresses(Collection<String> addresses) { in addToAddresses() argument
2140 addAddressesToList(addresses, mTo); in addToAddresses()
2143 private void addCcAddresses(Collection<String> addresses, Collection<String> toAddresses) { in addCcAddresses() argument
2144 addCcAddressesToList(tokenizeAddressList(addresses), in addCcAddresses()
2148 private void addBccAddresses(Collection<String> addresses) { in addBccAddresses() argument
2149 addAddressesToList(addresses, mBcc); in addBccAddresses()
2153 protected void addCcAddressesToList(List<Rfc822Token[]> addresses, in addCcAddressesToList() argument
2158 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList()
2166 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList()
2189 protected List<Rfc822Token[]> tokenizeAddressList(Collection<String> addresses) { in tokenizeAddressList() argument
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java360 int bodyCharset, String[] addresses, long threadId, in createMmsRow() argument
391 mCursors.put(addrUri, createAddrCursor(addresses)); in createMmsRow()
452 private FakeCursor createAddrCursor(String[] addresses) { in createAddrCursor() argument
454 for (int i=0; i<addresses.length; ++i) { in createAddrCursor()
457 addr.put(Telephony.Mms.Addr.ADDRESS, addresses[i]); in createAddrCursor()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothProfileDeviceManagerTest.java219 private ArrayList<BluetoothDevice> makeDeviceList(List<String> addresses) { in makeDeviceList() argument
221 for (String address : addresses) { in makeDeviceList()
229 private static String makeSettingsString(List<String> addresses) { in makeSettingsString() argument
230 return TextUtils.join(",", addresses); in makeSettingsString()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java627 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/
DUtils.java240 String addresses = ""; in formatIpAddresses()
242 addresses += iter.next().getHostAddress(); in formatIpAddresses()
243 if (iter.hasNext()) addresses += "\n"; in formatIpAddresses()
245 return addresses; in formatIpAddresses()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java245 String addresses = ""; in formatIpAddresses()
247 addresses += iter.next().getHostAddress(); in formatIpAddresses()
248 if (iter.hasNext()) addresses += "\n"; in formatIpAddresses()
250 return addresses; in formatIpAddresses()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java1053 mms.addresses = new ArrayList<ContentValues>();
1078 mms.addresses.add(addrValues);
1213 for (ContentValues mmsAddress : mms.addresses) {
1247 public List<ContentValues> addresses;
1253 return "Values:" + values.toString() + "\nRecipients:" + addresses.toString()
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java364 public void setSenderWhitelist(Set<String> addresses) { in setSenderWhitelist() argument
365 getEditor().putStringSet(PreferenceKeys.DISPLAY_IMAGES, addresses).apply(); in setSenderWhitelist()

12