Home
last modified time | relevance | path

Searched refs:getByAddress (Results 1 – 25 of 101) sorted by relevance

12345

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DProcfsParsingUtilsTest.kt50 InetAddress.getByAddress( in testParseAnycast6Address()
53 InetAddress.getByAddress( in testParseAnycast6Address()
116 InetAddress.getByAddress( in testParseIpv6MulticastAddress()
119 InetAddress.getByAddress( in testParseIpv6MulticastAddress()
122 InetAddress.getByAddress( in testParseIpv6MulticastAddress()
125 InetAddress.getByAddress( in testParseIpv6MulticastAddress()
128 InetAddress.getByAddress( in testParseIpv6MulticastAddress()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInetAddressUtils.java71 return Inet6Address.getByAddress(null /* host */, addressArray, scopeId); in unparcelInetAddress()
74 return InetAddress.getByAddress(addressArray); in unparcelInetAddress()
89 return Inet6Address.getByAddress(null /* host */, addr.getAddress(), in withScopeId()
113 return Inet6Address.getByAddress(null /* host */, v6AddrBytes, -1 /* scope_id */); in v4MappedV6Address()
DNetworkStackConstants.java326 return (Inet4Address) InetAddress.getByAddress(new byte[] { b1, b2, b3, b4 }); in makeInet4Address()
337 return (Inet6Address) InetAddress.getByAddress(bytes); in makeInet6Address()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringInterfaceUtils.java38 private static final InetAddress IN6ADDR_ANY = getByAddress(
40 private static final InetAddress INADDR_ANY = getByAddress(new byte[] {0, 0, 0, 0});
103 private static InetAddress getByAddress(final byte[] addr) { in getByAddress() method in TetheringInterfaceUtils
105 return InetAddress.getByAddress(null, addr); in getByAddress()
DTetherDownstream6Key.java49 final Inet6Address unused = (Inet6Address) InetAddress.getByAddress(neigh6); in TetherDownstream6Key()
63 Inet6Address.getByAddress(neigh6)); in toString()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ipmemorystore/
DNetworkAttributesTest.java66 (Inet4Address) Inet4Address.getByAddress(new byte[] {1, 2, 3, 4}), in testTotalWeight()
69 Arrays.asList(Inet4Address.getByAddress(new byte[] {5, 6, 7, 8}), in testTotalWeight()
70 Inet4Address.getByAddress(new byte[] {9, 0, 1, 2})), in testTotalWeight()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructInetDiagSockId.java105 srcAddr = Inet4Address.getByAddress(srcAddrByte); in parse()
106 dstAddr = Inet4Address.getByAddress(dstAddrByte); in parse()
120 srcAddr = Inet6Address.getByAddress( in parse()
122 dstAddr = Inet6Address.getByAddress( in parse()
DNduseroptMessage.java126 srcaddr = Inet6Address.getByAddress(null /* hostname */, nla.nla_value, ifindex); in NduseroptMessage()
128 srcaddr = InetAddress.getByAddress(nla.nla_value); in NduseroptMessage()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DInetDiagSocketTest.java277 final Inet6Address srcAddr = Inet6Address.getByAddress( in testInetDiagReqV2TcpInet6V4Mapped()
279 final Inet6Address dstAddr = Inet6Address.getByAddress( in testInetDiagReqV2TcpInet6V4Mapped()
654 final Inet6Address srcAddr = Inet6Address.getByAddress( in testParseInetDiagResponseV4MappedV6()
656 final Inet6Address dstAddr = Inet6Address.getByAddress( in testParseInetDiagResponseV4MappedV6()
751 final Inet6Address addrLoopback = Inet6Address.getByAddress(null, addrLoopbackByte, -1); in testIsLoopbackV4MappedV6()
753 Inet6Address.getByAddress(null, addrNonLoopbackByte1, -1); in testIsLoopbackV4MappedV6()
755 Inet6Address.getByAddress(null, addrNonLoopbackByte2, -1); in testIsLoopbackV4MappedV6()
/packages/modules/Connectivity/framework/src/android/net/
DConnectionInfo.java62 localAddress = InetAddress.getByAddress(in.createByteArray());
69 remoteAddress = InetAddress.getByAddress(in.createByteArray());
DIpPrefix.java154 return InetAddress.getByAddress(address); in getAddress()
232 return InetAddress.getByAddress(address).getHostAddress() + "/" + prefixLength; in toString()
DNattKeepalivePacketData.java68 srcAddr = InetAddress.getByAddress(srcAddress.getAddress()); in nattKeepalivePacket()
69 dstAddr = InetAddress.getByAddress(dstAddress.getAddress()); in nattKeepalivePacket()
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DTether4Key.java75 Inet4Address.getByAddress(src4), Inet4Address.getByAddress(dst4), in toString()
DTether4Value.java90 InetAddress.getByAddress(src46), InetAddress.getByAddress(dst46), in toString()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java432 InetAddress netAddress = InetAddress.getByAddress(value); in TunnelModeChildConfigAttrIpv4AddressBase()
506 InetAddress netAddress = InetAddress.getByAddress(value); in IkeConfigAttrIpv4AddressBase()
730 InetAddress address = InetAddress.getByAddress(ipBytes); in ConfigAttributeIpv4Subnet()
731 InetAddress netmask = InetAddress.getByAddress(netmaskBytes); in ConfigAttributeIpv4Subnet()
842 InetAddress netAddress = InetAddress.getByAddress(value); in TunnelModeChildConfigAttrIpv6AddressBase()
916 InetAddress netAddress = InetAddress.getByAddress(value); in IkeConfigAttrIpv6AddressBase()
999 InetAddress address = InetAddress.getByAddress(ip6AddrBytes); in TunnelModeChildConfigAttrIpv6AddrRangeBase()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTrackerTest.java436 final InetAddress srcAddress = InetAddress.getByAddress(V4_SRC_ADDR); in doStartNattKeepalive()
438 final InetAddress dstAddress = InetAddress.getByAddress(new byte[] {8, 8, 8, 8}); in doStartNattKeepalive()
615 doReturn(InetAddress.getByAddress(V4_SRC_ADDR)).when(mNai).getClatv4SrcAddress(); in setupTestNaiForClat()
619 final InetAddress srcAddress = InetAddress.getByAddress( in setupTestNaiForClat()
629 InetAddress.getByAddress(new byte[] { 8, 8, 8, 8}) /* dstAddr */, in doStartTcpKeepalive()
650 final InetAddress srcAddr = InetAddress.getByAddress(V4_SRC_ADDR); in testStartTcpKeepalive_addressTranslationOnClat()
957 final InetAddress srcAddress = InetAddress.getByAddress( in testStartTcpKeepalive_fdInitiatedStop()
962 doStartTcpKeepalive(InetAddress.getByAddress(V4_SRC_ADDR)); in testStartTcpKeepalive_fdInitiatedStop()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DNetworkStackUtils.java344 return (Inet6Address) InetAddress.getByAddress(address); in ipv6AddressToSolicitedNodeMulticast()
393 return (Inet6Address) InetAddress.getByAddress(address); in createInet6AddressFromEui64()
/packages/modules/NetworkStack/src/android/net/apf/
DProcfsParsingUtils.java113 addresses.add((Inet6Address) InetAddress.getByAddress(addr)); in parseAnycast6Addresses()
166 addresses.add((Inet6Address) InetAddress.getByAddress(addr)); in parseIPv6MulticastAddresses()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDscpPolicyValue.java158 srcIpString = InetAddress.getByAddress(src46).getHostAddress(); in toString()
164 dstIpString = InetAddress.getByAddress(src46).getHostAddress(); in toString()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/arp/
DArpPacket.java155 (Inet4Address) InetAddress.getByAddress(senderIp), in parseArpPacket()
157 (Inet4Address) InetAddress.getByAddress(targetIp)); in parseArpPacket()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java240 InetAddress addr = InetAddress.getByAddress(addressList.get(addrIndex)); in skiptestDnsPerf()
247 InetAddress.getByAddress(addressList.get(addrIndex)); in skiptestDnsPerf()
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java90 assertEquals(InetAddress.getByAddress(testInfo.srcAddress), resultData.getSrcAddress()); in testFromTcpKeepaliveStableParcelable()
91 assertEquals(InetAddress.getByAddress(testInfo.dstAddress), resultData.getDstAddress()); in testFromTcpKeepaliveStableParcelable()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DArpResponder.kt44 val targetIp = InetAddress.getByAddress( in replyToPacket()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DStructXfrmAddressT.java77 return InetAddress.getByAddress(addressBytes); in getAddress()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pInfoTest.java41 mGroupOnwerIpv4Address = InetAddress.getByAddress(ipv4); in setUp()

12345