Home
last modified time | relevance | path

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

123

/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgSelectorTest.java129 .thenReturn(new InetAddress[] {InetAddress.getByName(TEST_IP_ADDRESS)}); in testStaticMethodPass()
141 InetAddress expectedAddress = InetAddress.getByName(TEST_IP_ADDRESS); in testStaticMethodPass()
162 .thenReturn(new InetAddress[] {InetAddress.getByName(TEST_IP_ADDRESS_1)}); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig()
168 assertTrue(testInetAddresses.contains(InetAddress.getByName(TEST_IP_ADDRESS_1))); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig()
193 .thenReturn(new InetAddress[] {InetAddress.getByName(TEST_IP_ADDRESS_1)}); in testPlmnResolutionMethod()
195 .thenReturn(new InetAddress[] {InetAddress.getByName(TEST_IP_ADDRESS_2)}); in testPlmnResolutionMethod()
197 .thenReturn(new InetAddress[] {InetAddress.getByName(TEST_IP_ADDRESS)}); in testPlmnResolutionMethod()
207 assertEquals(testInetAddresses.get(0), InetAddress.getByName(TEST_IP_ADDRESS)); in testPlmnResolutionMethod()
208 assertEquals(testInetAddresses.get(1), InetAddress.getByName(TEST_IP_ADDRESS_2)); in testPlmnResolutionMethod()
209 assertEquals(testInetAddresses.get(2), InetAddress.getByName(TEST_IP_ADDRESS_1)); in testPlmnResolutionMethod()
[all …]
DEpdgTunnelManagerTest.java128 InetAddress testInetaddr = InetAddress.getByName(TEST_IP_ADDRESS); in setUp()
325 ipList.add(InetAddress.getByName(TEST_IP_ADDRESS)); in testRekeyAndNattTimerFromCarrierConfig()
391 ipList.add(InetAddress.getByName(TEST_IP_ADDRESS)); in testSetRetransmissionTimeoutsFromCarrierConfig()
448 ipList.add(InetAddress.getByName(TEST_IP_ADDRESS)); in testSetDpdDelayFromCarrierConfig()
472 ipList1.add(InetAddress.getByName("1.1.1.1")); in testGetValidEpdgAddress_DiffAddr()
507 ipList2.add(InetAddress.getByName("8.8.8.8")); in testGetValidEpdgAddress_DiffAddr()
524 ipList1.add(InetAddress.getByName("1.1.1.1")); in testGetValidEpdgAddress_NextAddr()
525 ipList1.add(InetAddress.getByName("8.8.8.8")); in testGetValidEpdgAddress_NextAddr()
560 ipList2.add(InetAddress.getByName("1.1.1.1")); in testGetValidEpdgAddress_NextAddr()
561 ipList2.add(InetAddress.getByName("8.8.8.8")); in testGetValidEpdgAddress_NextAddr()
[all …]
DTunnelLinkPropertiesTest.java40 InetAddress mDNSAddress = InetAddress.getByName(DNS_ADDRESS); in createTestTunnelLinkProperties()
41 InetAddress mPCSFAddress = InetAddress.getByName(PSCF_ADDRESS); in createTestTunnelLinkProperties()
43 mInternalAddressList.add(new LinkAddress(InetAddress.getByName(IP_ADDRESS), 3)); in createTestTunnelLinkProperties()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DInetDiagSocketTest.java75 InetSocketAddress local = new InetSocketAddress(InetAddress.getByName("10.0.100.2"), in testInetDiagReqV2UdpInet4()
77 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2UdpInet4()
111 InetAddress.getByName("fe80::86c9:b2ff:fe6a:ed4b"), 42462); in testInetDiagReqV2TcpInet6()
112 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2TcpInet6()
148 InetAddress.getByName("1.2.3.4"), 12345); in testInetDiagReqV2TcpInetWithExt()
149 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.4.4"), in testInetDiagReqV2TcpInetWithExt()
157 InetAddress.getByName("fe80::86c9:b2ff:fe6a:ed4b"), 42462); in testInetDiagReqV2TcpInetWithExt()
158 remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2TcpInetWithExt()
194 InetAddress.getByName("fe80::fe6a:ed4b"), 12345); in testInetDiagReqV2TcpInet6NoIdSpecified()
195 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.4.4"), in testInetDiagReqV2TcpInet6NoIdSpecified()
DConntrackMessageTest.java90 (Inet4Address) InetAddress.getByName("192.168.43.209"), 44333, in makeIPv4TimeoutUpdateRequestTcp()
91 (Inet4Address) InetAddress.getByName("23.211.13.26"), 443, in makeIPv4TimeoutUpdateRequestTcp()
131 (Inet4Address) InetAddress.getByName("100.96.167.146"), 37069, in makeIPv4TimeoutUpdateRequestUdp()
132 (Inet4Address) InetAddress.getByName("216.58.197.10"), 443, in makeIPv4TimeoutUpdateRequestUdp()
DStructNdOptPref64Test.java49 InetAddress addr = InetAddress.getByName(addrString); in prefixBytes()
56 return new IpPrefix(InetAddress.getByName(addrString), prefixLength); in prefix()
/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/
DAudioStreamTest.java44 testRtpStream(InetAddress.getByName("127.0.0.1")); in testV4Stream()
48 testRtpStream(InetAddress.getByName("::1")); in testV6Stream()
52 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); in testSetDtmfType()
75 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); in testSetCodec()
92 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); in testDoubleRelease()
/packages/modules/NetworkStack/tests/integration/src/android/net/netlink/
DInetDiagSocketIntegrationTest.java82 remoteAddress = InetAddress.getByName(to); in Connection()
84 localAddress = InetAddress.getByName(from); in Connection()
87 ? Inet4Address.getByName("localhost") : Inet6Address.getByName("::"); in Connection()
91 localhostAddress = Inet4Address.getByName("localhost"); in Connection()
94 localhostAddress = Inet6Address.getByName("::"); in Connection()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java419 (Inet4Address) Inet4Address.getByName("1.2.3.4"), LEASE_EXPIRY_NULL,
420 "cluster1", Arrays.asList(Inet6Address.getByName("0A1C:2E40:480A::1CA6")),
458 (Inet4Address) Inet4Address.getByName("1.2.3.4"),
475 new InetAddress[] {Inet6Address.getByName("0A1C:2E40:480A::1CA6")}));
589 new InetAddress[] {Inet6Address.getByName("8D56:9AF1::08EE:20F1")}));
593 na.setAssignedV4Address((Inet4Address) Inet4Address.getByName("1.2.3.4"));
595 new InetAddress[] {Inet6Address.getByName("0A1C:2E40:480A::1CA6")}));
603 na.setAssignedV4Address((Inet4Address) Inet4Address.getByName("5.6.7.8"));
635 na.setAssignedV4Address((Inet4Address) Inet4Address.getByName("1.2.3.4"));
702 (Inet4Address) Inet4Address.getByName("1.2.3.4"), LEASE_EXPIRY_NULL,
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DDnsManagerTest.java168 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testTrackedValidationUpdates()
169 lp.addDnsServer(InetAddress.getByName("4.4.4.4")); in testTrackedValidationUpdates()
190 assertEquals(Arrays.asList(InetAddress.getByName("4.4.4.4")), in testTrackedValidationUpdates()
195 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("192.0.2.4"), in testTrackedValidationUpdates()
198 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("2001:db8:1::1"), in testTrackedValidationUpdates()
244 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testIgnoreUntrackedValidationUpdates()
353 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testSendDnsConfiguration()
354 lp.addDnsServer(InetAddress.getByName("4.4.4.4")); in testSendDnsConfiguration()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeIdPayloadTest.java115 Inet4Address expectedAddr = (Inet4Address) Inet4Address.getByName(IPV4_ADDR_STRING); in testDecodeIpv4AddrIdPayload()
128 Inet6Address expectedAddr = (Inet6Address) Inet6Address.getByName(IPV6_ADDR_STRING); in testDecodeIpv6AddrIdPayload()
210 Inet4Address ipv4Address = (Inet4Address) Inet4Address.getByName(IPV4_ADDR_STRING); in testConstructAndEncodeIpv4AddrIdPayload()
223 Inet6Address ipv6Address = (Inet6Address) Inet6Address.getByName(IPV6_ADDR_STRING); in testConstructAndEncodeIpv6AddrIdPayload()
293 Inet4Address ipv4Address = (Inet4Address) InetAddress.getByName(IPV4_ADDR_STRING); in testPersistableBundleEncodeDecodeIpv4AddressId()
299 Inet6Address ipv6Address = (Inet6Address) InetAddress.getByName(IPV6_ADDR_STRING); in testPersistableBundleEncodeDecodeIpv6AddressId()
/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DInterfaceParamsTest.java38 assertNull(InterfaceParams.getByName(null)); in testNullInterfaceReturnsNull()
43 assertNull(InterfaceParams.getByName("doesnotexist0")); in testNonExistentInterfaceReturnsNull()
48 final InterfaceParams ifParams = InterfaceParams.getByName("lo"); in testLoopback()
/packages/modules/Connectivity/tests/unit/java/android/net/ipmemorystore/
DParcelableTests.java52 builder.setAssignedV4Address((Inet4Address) Inet4Address.getByName("1.2.3.4")); in testNetworkAttributesParceling()
61 builder.setAssignedV4Address((Inet4Address) Inet4Address.getByName("6.7.8.9")); in testNetworkAttributesParceling()
65 InetAddress.getByName("ACA1:652B:0911:DE8F:1200:115E:913B:AA2A"), in testNetworkAttributesParceling()
66 InetAddress.getByName("6.7.8.9"))); in testNetworkAttributesParceling()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java203 InetAddress addr = InetAddress.getByName(URLS[urlIndex]); in skiptestDnsPerf()
208 InetAddress addr = InetAddress.getByName(URLS[urlIndex]); in skiptestDnsPerf()
228 InetAddress addr = InetAddress.getByName(url); in skiptestDnsPerf()
269 InetAddress exit = InetAddress.getByName("exitrightnow.com"); in skiptestDnsPerf()
DIpSecBaseTest.java671 InetAddress local = InetAddress.getByName(addr); in testJavaTcpSocketPair()
683 InetAddress local = InetAddress.getByName(addr); in testJavaUdpSocketPair()
696 InetAddress local = InetAddress.getByName(addr); in testJavaUdpSocketPairUnconnected()
709 InetAddress local = InetAddress.getByName(addr); in testNativeTcpSocketPair()
722 InetAddress local = InetAddress.getByName(addr); in testNativeUdpSocketPair()
735 InetAddress local = InetAddress.getByName(addr); in testNativeUdpSocketPairUnconnected()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java346 InetAddress address = InetAddress.getByName(to); in checkPing()
422 ServerSocket listen = new ServerSocket(0, 10, InetAddress.getByName("::")); in checkTcpReflection()
425 InetAddress toAddr = InetAddress.getByName(to); in checkTcpReflection()
504 InetAddress address = InetAddress.getByName(to); in checkUdpEcho()
506 s = new DatagramSocket(0, InetAddress.getByName("::")); in checkUdpEcho()
686 InetAddress.getByName(randomName); in setAndVerifyPrivateDns()
694 InetAddress.getByName(randomName)); in setAndVerifyPrivateDns()
836 InetAddress address = InetAddress.getByName("localhost"); in testGetConnectionOwnerUidSecurity()
DMyVpnService.java67 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start()
83 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/util/
DInterfaceParams.java48 public static InterfaceParams getByName(String name) { in getByName() method in InterfaceParams
88 return NetworkInterface.getByName(name); in getNetworkInterfaceByName()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfUtils.java76 final InterfaceParams params = InterfaceParams.getByName(iface); in attachProgram()
115 final InterfaceParams params = InterfaceParams.getByName(iface); in detachProgram()
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pUtils.java56 return (Inet4Address) InetAddress.getByName(path.getHost()); in toInet4Address()
68 return NetworkInterface.getByName(name); in toNetworkInterface()
DP2pPrinterConnection.java116 mInterface = NetworkInterface.getByName(networkInterface); in onConnectionOpen()
167 printerAddress = (Inet4Address) Inet4Address.getByName(printer.path.getHost()); in onPrinterFound()
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DTetheringModuleTest.java113 NetworkInterface nif = NetworkInterface.getByName(wifiTetheringIface); in addressConflictTest()
129 nif = NetworkInterface.getByName(wifiTetheringIface); in addressConflictTest()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java145 mTetheredParams = InterfaceParams.getByName(mTetheredReader.iface.getInterfaceName()); in setupTapInterfaces()
273 final Inet6Address address = (Inet6Address) InetAddress.getByName(ipv6Address); in createRaParams()
303 return Ipv6Utils.buildRsPacket(srcMac, dstMac, (Inet6Address) InetAddress.getByName(srcIp), in createRsPacket()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DInetDiagMessage.java167 Inet6Address.getByName("::"), 0); in lookupUid()
173 wildcard = new InetSocketAddress(Inet4Address.getByName("0.0.0.0"), 0); in lookupUid()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/util/
DTetheringUtilsTest.java170 Inet6Address ll1 = (Inet6Address) InetAddress.getByName("fe80::1"); in testIcmpSocketFilters()
171 Inet6Address ll2 = (Inet6Address) InetAddress.getByName("fe80::abcd"); in testIcmpSocketFilters()

123