Home
last modified time | relevance | path

Searched refs:getAllByName (Results 1 – 21 of 21) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java62 public static InetAddress[] getAllByName(@NonNull final DnsResolver dnsResolver, in getAllByName() method in DnsUtils
70 getAllByName(dnsResolver, network, host, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in getAllByName()
78 getAllByName(dnsResolver, network, host, TYPE_A, FLAG_NO_CACHE_LOOKUP, in getAllByName()
98 public static InetAddress[] getAllByName(@NonNull final DnsResolver dnsResolver, in getAllByName() method in DnsUtils
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt75 DnsUtils.getAllByName(mockResolver, fakeNetwork, name, type, FLAG_EMPTY, DEFAULT_TIMEOUT_MS, in verifyGetAllByName()
88 DnsUtils.getAllByName(mockResolver, fakeNetwork, name, type, in verifyGetAllByNameFails()
/packages/modules/Connectivity/framework/src/android/net/
DNetwork.java144 public InetAddress[] getAllByName(String host) throws UnknownHostException { in getAllByName() method in Network
204 InetAddress[] hostAddresses = getAllByName(host); in connectToHost()
366 Dns dnsLookup = hostname -> Arrays.asList(getAllByName(hostname)); in openConnection()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionTestBase.java179 .getAllByName(REMOTE_HOSTNAME); in resetDefaultNetwork()
182 .getAllByName(REMOTE_ADDRESS.getHostAddress()); in resetDefaultNetwork()
247 .getAllByName(REMOTE_HOSTNAME); in setupRemoteAddressForNetwork()
DIkeSessionStateMachineTest.java1603 }).when(network).getAllByName(REMOTE_HOSTNAME); in setupDnsResolutionForNetwork()
1647 verify(mMockDefaultNetwork, times(expectedDnsLookups)).getAllByName(REMOTE_HOSTNAME); in setupAndVerifyDnsResolutionForIkeSession()
6740 verify(underlyingNetwork, atLeastOnce()).getAllByName(REMOTE_HOSTNAME); in verifyNetworkAndLocalAddressUpdated()
7362 verify(newNetwork, times(expectedDnsLookups)).getAllByName(REMOTE_HOSTNAME); in setupAndVerifyDnsLookupsOnSetNetwork()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java78 addrs = InetAddress.getAllByName("www.google.com"); in testDnsWorks()
104 addrs = InetAddress.getAllByName("ipv6.google.com"); in testDnsWorks()
DSSLCertificateSocketFactoryTest.java68 addresses = InetAddress.getAllByName(TEST_HOST); in setUp()
DNetworkStatsManagerTest.java334 network.getAllByName(mUrl.getHost()); in waitForHostResolution()
DConnectivityManagerTest.java1718 final InetAddress[] allAddrs = InetAddress.getAllByName(hostname); in getAddrByName()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionControllerTest.java1290 doThrow(testException).when(mockNetwork).getAllByName(anyString()); in testCatchUnexpectedExceptionInNetworkUpdate()
1316 doThrow(testException).when(mockNetwork).getAllByName(anyString()); in testThrowInNetworkUpdate()
1734 verify(mMockDefaultNetwork).getAllByName(anyString()); in verifyDnsLookupWithCachedIpv6Address()
1736 verify(mMockDefaultNetwork, never()).getAllByName(anyString()); in verifyDnsLookupWithCachedIpv6Address()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMailTransport.java112 InetAddress[] inetAddresses = network.getAllByName(host); in open()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DWifiBackhaulMonitor.java334 InetAddress[] inetAddress = InetAddress.getAllByName(rttPingServer); in getHostAddresses()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsRequest.java300 for (final InetAddress addr : InetAddress.getAllByName(host)) { in requestRoute()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DWifiBackhaulMonitorTest.java155 lenient().when(InetAddress.getAllByName(anyString())).thenReturn(inetAddresses); in mockDefaults()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1733 final InetAddress[] ips = DnsUtils.getAllByName(mDependencies.getDnsResolver(), in resolveStrictModeHostname()
1771 final InetAddress[] ips = mNetwork.getAllByName(host); in sendPrivateDnsProbe()
2315 public InetAddress[] getAllByName(String host) throws UnknownHostException { in getAllByName() method in NetworkMonitor.OneAddressPerFamilyNetwork
2316 final List<InetAddress> addrs = Arrays.asList(super.getAllByName(host)); in getAllByName()
2952 return DnsUtils.getAllByName(mDependencies.getDnsResolver(), mCleartextDnsNetwork, host, in sendDnsProbeWithTimeout()
/packages/modules/DnsResolver/
Dstats.proto384 * invoking native APIs such as getaddrinfo() or Java APIs such as Network#getAllByName().
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionController.java958 allRemoteAddresses = mNetwork.getAllByName(mRemoteHostname); in resolveAndSetAvailableRemoteAddresses()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java488 private InetAddress[] getAllByName(Network mockNetwork, String hostname) in getAllByName() method in NetworkMonitorTest.FakeDns
531 return getAllByName((Network) invocation.getMock(), invocation.getArgument(0)); in startMocking()
532 }).when(mNetwork).getAllByName(any()); in startMocking()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1132 final InetAddress[] allAddrs = InetAddress.getAllByName(hostname); in getV4AddrByName()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt297 method public java.net.InetAddress[] getAllByName(String) throws java.net.UnknownHostException;
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java7924 cellLp.setDnsServers(List.of(InetAddress.getAllByName("8.8.8.8")));