Home
last modified time | relevance | path

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

1234

/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 …]
/packages/modules/DnsResolver/tests/testdata/
Dgetaddrinfo.topsite.netflix.pbtxt17 addresses: "2620:108:700f::22d1:6443"
18 addresses: "2620:108:700f::36c8:5c97"
19 addresses: "2620:108:700f::36ba:3a73"
20 addresses: "2620:108:700f::36bf:5e94"
21 addresses: "2620:108:700f::3644:8d41"
22 addresses: "2620:108:700f::36bb:ed4c"
23 addresses: "2620:108:700f::3645:f643"
24 addresses: "2620:108:700f::3694:303e"
25 addresses: "52.35.228.185"
26 addresses: "52.38.194.36"
[all …]
Dgetaddrinfo.topsite.reddit.pbtxt17 addresses: "64:ff9b::9765:18c"
18 addresses: "64:ff9b::9765:418c"
19 addresses: "64:ff9b::9765:818c"
20 addresses: "64:ff9b::9765:c18c"
21 addresses: "151.101.1.140"
22 addresses: "151.101.65.140"
23 addresses: "151.101.129.140"
24 addresses: "151.101.193.140"
Dgetaddrinfo.topsite.youtube.pbtxt17 addresses: "2404:6800:4012:1::200e"
18 addresses: "172.217.24.14"
19 addresses: "216.58.200.46"
20 addresses: "172.217.160.78"
21 addresses: "172.217.27.142"
22 addresses: "172.217.160.110"
Dgethostbyname.topsite.youtube.pbtxt14 addresses: "216.58.200.46"
15 addresses: "172.217.160.78"
16 addresses: "172.217.27.142"
17 addresses: "172.217.160.110"
18 addresses: "172.217.24.14"
Dgethostbyname.tls.topsite.youtube.pbtxt14 addresses: "216.58.200.46"
15 addresses: "172.217.160.78"
16 addresses: "216.58.200.238"
17 addresses: "172.217.27.142"
18 addresses: "172.217.160.110"
19 addresses: "172.217.24.14"
Dgetaddrinfo.topsite.yahoo.pbtxt17 addresses: "2406:2000:ec:815::3"
18 addresses: "2406:2000:ec:815::4"
19 addresses: "124.108.103.104"
20 addresses: "124.108.103.103"
Dgetaddrinfo.topsite.bing.pbtxt17 addresses: "2620:1ec:c11::200"
18 addresses: "204.79.197.200"
19 addresses: "13.107.21.200"
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingUtilsTest.java136 List<String> addresses = CarDuckingUtils.getAddressesToDuck(new int[]{USAGE_MEDIA, in getAddressesToDuck_withOneUsage_returnsEmptyList() local
139 assertThat(addresses).isEmpty(); in getAddressesToDuck_withOneUsage_returnsEmptyList()
146 List<String> addresses = CarDuckingUtils.getAddressesToDuck(new int[]{USAGE_MEDIA, in getAddressesToDuck_withMultipleUsagesForTheSameContext_returnsEmptyList() local
149 assertThat(addresses).isEmpty(); in getAddressesToDuck_withMultipleUsagesForTheSameContext_returnsEmptyList()
158 List<String> addresses = CarDuckingUtils.getAddressesToDuck(usages, mockZone); in getAddressesToDuck_onlyReturnsDevicesForUsagesHoldingFocus() local
160 assertThat(addresses).containsExactly(MEDIA_ADDRESS, NAVIGATION_ADDRESS); in getAddressesToDuck_onlyReturnsDevicesForUsagesHoldingFocus()
169 List<String> addresses = CarDuckingUtils.getAddressesToDuck(usages, mockZone); in getAddressesToDuck_withDuckedAndUnduckedContextsSharingDevice_excludesThatDevice() local
171 assertThat(addresses).containsExactly(MEDIA_ADDRESS); in getAddressesToDuck_withDuckedAndUnduckedContextsSharingDevice_excludesThatDevice()
180 List<String> addresses = CarDuckingUtils.getAddressesToDuck(usages, mockZone); in getAddressesToDuck_withDuckedContextsSharingADevice_includesAddressOnce() local
182 assertThat(addresses).containsExactly(MEDIA_ADDRESS); in getAddressesToDuck_withDuckedContextsSharingADevice_includesAddressOnce()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java147 private static boolean hasExpiredAddress(List<AddressInfo> addresses, long now) { in hasExpiredAddress() argument
148 for (AddressInfo info : addresses) { in hasExpiredAddress()
158 final List<AddressInfo> addresses = client.getAddresses(); in pruneExpired() local
159 if (addresses.size() == 0) return null; in pruneExpired()
160 if (!hasExpiredAddress(addresses, now)) return client; in pruneExpired()
162 final ArrayList<AddressInfo> newAddrs = new ArrayList<>(addresses.size() - 1); in pruneExpired()
163 for (AddressInfo info : addresses) { in pruneExpired()
/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/Connectivity/tests/cts/net/src/android/net/cts/
DTestNetworkRunnable.java68 final InetAddress[] addresses = mTest.getTestNetworkAddresses(); in runTest() local
69 final LinkAddress[] linkAddresses = new LinkAddress[addresses.length]; in runTest()
70 for (int i = 0; i < addresses.length; i++) { in runTest()
71 InetAddress address = addresses[i]; in runTest()
DSSLCertificateSocketFactoryTest.java66 InetAddress[] addresses; in setUp() local
68 addresses = InetAddress.getAllByName(TEST_HOST); in setUp()
69 mTestHostAddress = addresses[0]; in setUp()
75 mTestSocketAddresses = Arrays.stream(addresses) in setUp()
/packages/modules/Connectivity/framework/src/android/net/
DLinkProperties.java254 final List<InetAddress> addresses = new ArrayList<>(); in getAddresses() local
256 addresses.add(linkAddress.getAddress()); in getAddresses()
258 return Collections.unmodifiableList(addresses); in getAddresses()
267 List<InetAddress> addresses = new ArrayList<>(); in getAllAddresses() local
269 addresses.add(linkAddress.getAddress()); in getAllAddresses()
272 addresses.addAll(stacked.getAllAddresses()); in getAllAddresses()
274 return addresses; in getAllAddresses()
347 List<LinkAddress> addresses = new ArrayList<>(mLinkAddresses); in getAllLinkAddresses() local
349 addresses.addAll(stacked.getAllLinkAddresses()); in getAllLinkAddresses()
351 return addresses; in getAllLinkAddresses()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java247 final Set<LinkAddress> addresses = links(TEST_LOCAL_ADDRESSES); in makeIPv6ProvisionedLinkProperties() local
248 addresses.add(new LinkAddress(TEST_GLOBAL_ADDRESS, 0, RT_SCOPE_UNIVERSE)); in makeIPv6ProvisionedLinkProperties()
254 return linkproperties(addresses, routes, ips(TEST_DNSES)); in makeIPv6ProvisionedLinkProperties()
587 static LinkProperties linkproperties(Set<LinkAddress> addresses, in linkproperties() argument
590 lp.setLinkAddresses(addresses); in linkproperties()
623 static Set<LinkAddress> links(String... addresses) { in links() argument
624 return mapIntoSet(addresses, LinkAddress::new); in links()
627 static Set<InetAddress> ips(String... addresses) { in ips() argument
628 return mapIntoSet(addresses, InetAddress::getByName); in ips()
631 static Set<InetAddress> dns(String... addresses) { in dns() argument
[all …]
/packages/apps/TV/common/src/com/android/tv/common/util/
DLocationUtils.java150 List<Address> addresses = in updateAddress() local
152 if (addresses != null && !addresses.isEmpty()) { in updateAddress()
153 sAddress = addresses.get(0); in updateAddress()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DMyVpnService.java61 String addresses = intent.getStringExtra(packageName + ".addresses"); in start() local
62 if (addresses != null) { in start()
63 String[] addressArray = addresses.split(","); in start()
142 + " addresses=" + addresses in start()
/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/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java248 public void onInterfaceDnsServerInfo(String iface, long lifetime, String[] addresses) { in onInterfaceDnsServerInfo() argument
250 maybeLog("interfaceDnsServerInfo", Arrays.toString(addresses)); in onInterfaceDnsServerInfo()
251 final boolean changed = mDnsServerRepository.addServers(lifetime, addresses); in onInterfaceDnsServerInfo()
513 public synchronized boolean addServers(long lifetime, String[] addresses) { in addServers() argument
525 for (String addressString : addresses) { in addServers()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeTestNetworkBase.java77 TunNetworkContext(InetAddress... addresses) throws Exception { in TunNetworkContext() argument
78 final LinkAddress[] linkAddresses = new LinkAddress[addresses.length]; in TunNetworkContext()
80 InetAddress addr = addresses[i]; in TunNetworkContext()
/packages/apps/Settings/src/com/android/settings/development/
DAdbIpAddressPreferenceController.java146 StringBuilder addresses = new StringBuilder(); in formatIpAddresses() local
151 addresses.append(addr.getHostAddress()); in formatIpAddresses()
155 return addresses.toString(); in formatIpAddresses()
/packages/services/Car/service/src/com/android/car/audio/
DCarDuckingUtils.java155 Set<String> addresses = new HashSet<>(); in getAddressesForContexts() local
157 addresses.add(zone.getAddressForContext(context)); in getAddressesForContexts()
159 return addresses; in getAddressesForContexts()
DCarAudioZonesValidator.java52 Set<String> addresses = new HashSet<>(); in validateEachAddressAppearsAtMostOnce() local
57 if (!addresses.add(address)) { in validateEachAddressAppearsAtMostOnce()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/
DNetworkAttributes.java163 private static Blob[] inetAddressListToBlobArray(@Nullable final List<InetAddress> addresses) { in inetAddressListToBlobArray() argument
164 if (null == addresses) return null; in inetAddressListToBlobArray()
166 for (int i = 0; i < addresses.size(); ++i) { in inetAddressListToBlobArray()
167 final InetAddress addr = addresses.get(i); in inetAddressListToBlobArray()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinatorTest.java100 final List<LinkAddress> addresses = lp.getLinkAddresses(); in assertOnlyOneV6AddressAndNoV4() local
101 assertEquals(addresses.size(), 1); in assertOnlyOneV6AddressAndNoV4()
102 final LinkAddress v6Address = addresses.get(0); in assertOnlyOneV6AddressAndNoV4()

1234