/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | Address.java | 217 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/ |
D | getaddrinfo.topsite.netflix.pbtxt | 17 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 …]
|
D | getaddrinfo.topsite.reddit.pbtxt | 17 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"
|
D | getaddrinfo.topsite.youtube.pbtxt | 17 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"
|
D | gethostbyname.topsite.youtube.pbtxt | 14 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"
|
D | gethostbyname.tls.topsite.youtube.pbtxt | 14 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"
|
D | getaddrinfo.topsite.yahoo.pbtxt | 17 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"
|
D | getaddrinfo.topsite.bing.pbtxt | 17 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/ |
D | CarDuckingUtilsTest.java | 136 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/ |
D | ConnectedClientsTracker.java | 147 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/ |
D | MimeMessage.java | 286 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/ |
D | TestNetworkRunnable.java | 68 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()
|
D | SSLCertificateSocketFactoryTest.java | 66 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/ |
D | LinkProperties.java | 254 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/ |
D | IpClientTest.java | 247 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/ |
D | LocationUtils.java | 150 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/ |
D | MyVpnService.java | 61 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/ |
D | CountryDetector.java | 262 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/ |
D | IpClientLinkObserver.java | 248 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/ |
D | IkeTestNetworkBase.java | 77 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/ |
D | AdbIpAddressPreferenceController.java | 146 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/ |
D | CarDuckingUtils.java | 155 Set<String> addresses = new HashSet<>(); in getAddressesForContexts() local 157 addresses.add(zone.getAddressForContext(context)); in getAddressesForContexts() 159 return addresses; in getAddressesForContexts()
|
D | CarAudioZonesValidator.java | 52 Set<String> addresses = new HashSet<>(); in validateEachAddressAppearsAtMostOnce() local 57 if (!addresses.add(address)) { in validateEachAddressAppearsAtMostOnce()
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/ |
D | NetworkAttributes.java | 163 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/ |
D | IPv6TetheringCoordinatorTest.java | 100 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()
|