Home
last modified time | relevance | path

Searched refs:getByName (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/tests/net/java/android/net/netlink/
DConntrackMessageTest.java113 (Inet4Address) InetAddress.getByName("192.168.43.209"), 44333, in testConntrackIPv4TcpTimeoutUpdate()
114 (Inet4Address) InetAddress.getByName("23.211.13.26"), 443, in testConntrackIPv4TcpTimeoutUpdate()
125 (Inet4Address) InetAddress.getByName("100.96.167.146"), 37069, in testConntrackIPv4UdpTimeoutUpdate()
126 (Inet4Address) InetAddress.getByName("216.58.197.10"), 443, in testConntrackIPv4UdpTimeoutUpdate()
DInetDiagSocketTest.java92 remoteAddress = InetAddress.getByName(to); in Connection()
94 localAddress = InetAddress.getByName(from); in Connection()
97 Inet4Address.getByName("localhost") : Inet6Address.getByName("::"); in Connection()
101 localhostAddress = Inet4Address.getByName("localhost"); in Connection()
104 localhostAddress = Inet6Address.getByName("::"); in Connection()
232 InetSocketAddress local = new InetSocketAddress(InetAddress.getByName("10.0.100.2"), in testInetDiagReqV2UdpInet4()
234 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2UdpInet4()
268 InetAddress.getByName("fe80::86c9:b2ff:fe6a:ed4b"), 42462); in testInetDiagReqV2TcpInet6()
269 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2TcpInet6()
/frameworks/base/tests/net/java/android/net/util/
DInterfaceParamsTest.java35 assertNull(InterfaceParams.getByName(null)); in testNullInterfaceReturnsNull()
40 assertNull(InterfaceParams.getByName("doesnotexist0")); in testNonExistentInterfaceReturnsNull()
45 final InterfaceParams ifParams = InterfaceParams.getByName("lo"); in testLoopback()
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/
DIkeIdPayloadTest.java58 Inet4Address expectedAddr = (Inet4Address) Inet4Address.getByName(IPV4_ADDR_STRING); in testDecodeIpv4AddrIdPayload()
71 Inet6Address expectedAddr = (Inet6Address) Inet6Address.getByName(IPV6_ADDR_STRING); in testDecodeIpv6AddrIdPayload()
90 Inet4Address ipv4Address = (Inet4Address) Inet4Address.getByName(IPV4_ADDR_STRING); in testConstructAndEncodeIpv4AddrIdPayload()
103 Inet6Address ipv6Address = (Inet6Address) Inet6Address.getByName(IPV6_ADDR_STRING); in testConstructAndEncodeIpv6AddrIdPayload()
DIkeNotifyPayloadTest.java83 InetAddress inetAddress = InetAddress.getByName(IP_ADDR); in testGenerateNatDetectionData()
/frameworks/base/tests/net/java/android/net/ipmemorystore/
DParcelableTests.java46 builder.setAssignedV4Address((Inet4Address) Inet4Address.getByName("1.2.3.4")); in testNetworkAttributesParceling()
55 builder.setAssignedV4Address((Inet4Address) Inet4Address.getByName("6.7.8.9")); in testNetworkAttributesParceling()
59 InetAddress.getByName("ACA1:652B:0911:DE8F:1200:115E:913B:AA2A"), in testNetworkAttributesParceling()
60 InetAddress.getByName("6.7.8.9"))); in testNetworkAttributesParceling()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DDnsManagerTest.java102 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testTrackedValidationUpdates()
103 lp.addDnsServer(InetAddress.getByName("4.4.4.4")); in testTrackedValidationUpdates()
119 assertEquals(Arrays.asList(InetAddress.getByName("4.4.4.4")), in testTrackedValidationUpdates()
124 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("192.0.2.4"), in testTrackedValidationUpdates()
127 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("2001:db8:1::1"), in testTrackedValidationUpdates()
170 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testIgnoreUntrackedValidationUpdates()
/frameworks/base/services/net/java/android/net/util/
DInterfaceParams.java49 public static InterfaceParams getByName(String name) { in getByName() method in InterfaceParams
84 return NetworkInterface.getByName(name); in getNetworkInterfaceByName()
/frameworks/base/services/net/java/android/net/netlink/
DInetDiagMessage.java141 Inet6Address.getByName("::"), 0); in lookupUid()
147 wildcard = new InetSocketAddress(Inet4Address.getByName("0.0.0.0"), 0); in lookupUid()
/frameworks/base/core/java/android/app/admin/
DConnectEvent.java58 return InetAddress.getByName(mIpAddress); in getInetAddress()
DDnsEvent.java80 inetAddresses.add(InetAddress.getByName(ipAddress)); in getInetAddresses()
/frameworks/base/tests/net/java/android/net/
DIpSecManagerTest.java67 GOOGLE_DNS_4 = InetAddress.getByName("8.8.8.8");
68 VTI_LOCAL_ADDRESS = InetAddress.getByName("8.8.4.4");
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java4166 InetAddress myIPv4 = InetAddress.getByName("192.0.2.129"); in testPacketKeepalives()
4167 InetAddress notMyIPv4 = InetAddress.getByName("192.0.2.35"); in testPacketKeepalives()
4168 InetAddress myIPv6 = InetAddress.getByName("2001:db8::1"); in testPacketKeepalives()
4169 InetAddress dstIPv4 = InetAddress.getByName("8.8.8.8"); in testPacketKeepalives()
4170 InetAddress dstIPv6 = InetAddress.getByName("2001:4860:4860::8888"); in testPacketKeepalives()
4179 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); in testPacketKeepalives()
4180 lp.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in testPacketKeepalives()
4305 final InetAddress myIPv4 = InetAddress.getByName("192.0.2.129"); in doTestNattSocketKeepalivesWithExecutor()
4306 final InetAddress notMyIPv4 = InetAddress.getByName("192.0.2.35"); in doTestNattSocketKeepalivesWithExecutor()
4307 final InetAddress myIPv6 = InetAddress.getByName("2001:db8::1"); in doTestNattSocketKeepalivesWithExecutor()
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipAudioCall.java365 mAudioStream = new AudioStream(InetAddress.getByName( in transferToNewSession()
632 mAudioStream = new AudioStream(InetAddress.getByName(
703 mAudioStream = new AudioStream(InetAddress.getByName(
1040 stream.associate(InetAddress.getByName(address),
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareNetworkInfo.java130 ni = NetworkInterface.getByName(interfaceName);
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java292 lp.addRoute(new RouteInfo(InetAddress.getByName(ipv4Gateway))); in testSetUpstreamLinkPropertiesWorking()
303 lp.addRoute(new RouteInfo(InetAddress.getByName(ipv6Gw1))); in testSetUpstreamLinkPropertiesWorking()
317 lp.addRoute(new RouteInfo(InetAddress.getByName(ipv6Gw2))); in testSetUpstreamLinkPropertiesWorking()
334 stacked.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in testSetUpstreamLinkPropertiesWorking()
335 stacked.addRoute(new RouteInfo(InetAddress.getByName("fe80::bad:f00"))); in testSetUpstreamLinkPropertiesWorking()
/frameworks/base/core/java/android/net/
DSntpClient.java93 address = networkForResolv.getByName(host); in requestTime()
DNetwork.java154 public InetAddress getByName(String host) throws UnknownHostException { in getByName() method in Network
/frameworks/base/media/apex/java/android/media/
DMedia2HTTPConnection.java164 if (InetAddress.getByName(host).isLoopbackAddress()) { in isLocalHost()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java336 return InetAddress.getByName(ipAddress); in getInetAddress()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java255 NetworkInterface netIntf = NetworkInterface.getByName(iface);
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/
DIkeSocketTest.java109 mLocalAddress = InetAddress.getByName(IPV4_LOOPBACK); in setUp()
DIkeSessionStateMachineTest.java195 InetAddress serveAddress = InetAddress.getByName(SERVER_ADDRESS); in buildIkeSessionOptions()
/frameworks/base/tests/net/common/java/android/net/
DLinkAddressTest.java109 List<InterfaceAddress> addrs = NetworkInterface.getByName("lo").getInterfaceAddresses(); in testConstructors()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipService.java298 s.connect(InetAddress.getByName("192.168.1.1"), 80); in determineLocalIp()
455 byte[] d = InetAddress.getByName(address).getAddress(); in isBehindNAT()

12