/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecBaseTest.java | 315 public JavaUdpSocket(InetAddress localAddr, int port) { in JavaUdpSocket() argument 317 mSocket = new DatagramSocket(port, localAddr); in JavaUdpSocket() 326 public JavaUdpSocket(InetAddress localAddr) { in JavaUdpSocket() argument 328 mSocket = new DatagramSocket(0, localAddr); in JavaUdpSocket() 573 InetAddress localAddr, IpSecManager ism, IpSecTransform transform, boolean connected) in getNativeUdpSocketPair() argument 575 int domain = getDomain(localAddr); in getNativeUdpSocketPair() 584 Os.bind(sock.mFd, localAddr, 0); in getNativeUdpSocketPair() 588 Os.connect(leftSock.mFd, localAddr, rightSock.getPort()); in getNativeUdpSocketPair() 589 Os.connect(rightSock.mFd, localAddr, leftSock.getPort()); in getNativeUdpSocketPair() 596 InetAddress localAddr, IpSecManager ism, IpSecTransform transform) throws Exception { in getNativeTcpSocketPair() argument [all …]
|
D | IpSecManagerTest.java | 278 SecurityParameterIndex spi, InetAddress localAddr, in buildTransportModeTransform() argument 292 return builder.buildTransportModeTransform(localAddr, spi); in buildTransportModeTransform() 306 InetAddress localAddr = InetAddress.getByName(loopbackAddrString); in doTestCreateTransform() local 311 final DatagramPacket outPacket = new DatagramPacket(data, 0, data.length, localAddr, 0); in doTestCreateTransform() 321 SecurityParameterIndex spi = mISM.allocateSecurityParameterIndex(localAddr); in doTestCreateTransform() argument 323 ? getPrivilegedUdpEncapSocket(/*ipv6=*/ localAddr instanceof Inet6Address) in doTestCreateTransform() 325 IpSecTransform transform = buildTransportModeTransform(spi, localAddr, in doTestCreateTransform() 714 NativeUdpSocket wrappedEncapSocket, InetAddress localAddr) throws Exception { 717 try (NativeUdpSocket remoteSocket = new NativeUdpSocket(getBoundUdpSocket(localAddr))) { 727 remoteSocket.sendTo(dataWithEspHeader, localAddr, wrappedEncapSocket.getPort()); [all …]
|
D | NsdManagerDownstreamTetheringTest.kt | 121 val localAddr = LinkAddress("192.0.2.3/28") in testMdnsDiscoveryWorkOnTetheringInterface() constant 124 .setStaticIpv4Addresses(localAddr, clientAddr) in testMdnsDiscoveryWorkOnTetheringInterface()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/ |
D | TestDnsServerTest.kt | 47 private val localAddr = InetSocketAddress(InetAddress.getLocalHost(), 0 /* port */) constant 48 private val testServer: TestDnsServer = TestDnsServer(network, localAddr) 58 val server = TestDnsServer(network, localAddr) in testStartStop() 105 val socket = DatagramSocket(localAddr).also { it.soTimeout = 100 } in resolve() 106 val queryPacket = DatagramPacket(bytes, bytes.size, localAddr.address, serverPort) in resolve()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | IpSecService.java | 887 String localAddr, in TunnelInterfaceRecord() argument 896 mLocalAddress = localAddr; in TunnelInterfaceRecord() 1233 private int bindToRandomPort(FileDescriptor sockFd, int family, InetAddress localAddr) in bindToRandomPort() argument 1238 Os.bind(probeSocket, localAddr, 0); in bindToRandomPort() 1242 Os.bind(sockFd, localAddr, port); in bindToRandomPort() 1286 final InetAddress localAddr; in openUdpEncapsulationSocket() local 1291 localAddr = IN6ADDR_ANY; in openUdpEncapsulationSocket() 1294 localAddr = INADDR_ANY; in openUdpEncapsulationSocket() 1332 Os.bind(pFd.getFileDescriptor(), localAddr, port); in openUdpEncapsulationSocket() local 1334 port = bindToRandomPort(pFd.getFileDescriptor(), family, localAddr); in openUdpEncapsulationSocket() [all …]
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | IIpSecService.aidl | 46 in String localAddr, in createTunnelInterface() argument 54 in LinkAddress localAddr, in addAddressToTunnelInterface() argument 59 in LinkAddress localAddr, in removeAddressFromTunnelInterface() argument
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeLocalAddressGenerator.java | 45 InetSocketAddress localAddr = (InetSocketAddress) Os.getsockname(sock); in generateLocalAddress() local 48 return localAddr.getAddress(); in generateLocalAddress()
|
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/ |
D | TetheringManagerTest.java | 226 final LinkAddress localAddr = new LinkAddress("192.168.24.5/24"); in testTetheringRequest() local 229 .setStaticIpv4Addresses(localAddr, clientAddr) in testTetheringRequest() 233 assertEquals(localAddr, tr2.getLocalIpv4Address()); in testTetheringRequest() 242 final LinkAddress localAddr = new LinkAddress("192.168.24.5/24"); in testTetheringRequestParcelable() local 245 .setStaticIpv4Addresses(localAddr, clientAddr) in testTetheringRequestParcelable()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | InetAddressUtilsTest.java | 90 final Inet6Address localAddr = (Inet6Address) InetAddresses in testWithScopeId() local 92 final Inet6Address updatedLocalAddr = InetAddressUtils.withScopeId(localAddr, scopeId); in testWithScopeId()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocket.java | 193 InetSocketAddress localAddr = (InetSocketAddress) Os.getsockname(getFd()); in getLocalPort() local 194 return localAddr.getPort(); in getLocalPort()
|
D | IkeSessionStateMachine.java | 6018 InetAddress localAddr, in addNatDetectionPayloadsToList() argument 6029 InetAddress localAddressToUse = localAddr; in addNatDetectionPayloadsToList() 6105 InetAddress localAddr, in getIkeInitSaRequestPayloads() argument 6124 localAddr, in getIkeInitSaRequestPayloads() 6139 InetAddress localAddr, in getRekeyIkeSaRequestPayloads() argument 6142 if (localAddr == null) { in getRekeyIkeSaRequestPayloads() 6153 saProposals, ikeSpiGenerator, localAddr), in getRekeyIkeSaRequestPayloads() 6161 InetAddress localAddr, in getRekeyIkeSaResponsePayloads() argument 6164 if (localAddr == null) { in getRekeyIkeSaResponsePayloads() 6173 respProposalNumber, saProposal, ikeSpiGenerator, localAddr), in getRekeyIkeSaResponsePayloads()
|
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 279 final String localAddr = "192.0.2.3/28"; in testStaticIpv4() local 282 requestWithStaticIpv4(localAddr, clientAddr), null /* any upstream */); in testStaticIpv4() 285 assertInterfaceHasIpAddress(iface, localAddr); in testStaticIpv4() 444 LinkAddress localAddr = local == null ? null : new LinkAddress(local); in requestWithStaticIpv4() local 447 .setStaticIpv4Addresses(localAddr, clientAddr) in requestWithStaticIpv4()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | SipDelegateBinderConnectionTest.java | 199 InetSocketAddress localAddr = new InetSocketAddress( in testStateCallback() local 204 SipDelegateConfiguration.SIP_TRANSPORT_TCP, localAddr, serverAddr).build(); in testStateCallback()
|
D | MessageTransportWrapperTest.java | 98 InetSocketAddress localAddr = new InetSocketAddress( in testImsConfigurationChanged() local 103 SipDelegateConfiguration.SIP_TRANSPORT_TCP, localAddr, serverAddr).build(); in testImsConfigurationChanged()
|
D | DelegateStateTrackerTest.java | 98 InetSocketAddress localAddr = new InetSocketAddress( in testDelegateCreated() local 103 SipDelegateConfiguration.SIP_TRANSPORT_TCP, localAddr, serverAddr).build(); in testDelegateCreated()
|
D | TransportSipMessageValidatorTest.java | 491 InetSocketAddress localAddr = new InetSocketAddress( in getConfigBuilder() local 496 SipDelegateConfiguration.SIP_TRANSPORT_TCP, localAddr, serverAddr); in getConfigBuilder()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkDiagnostics.java | 271 InetAddress localAddr = inetSockAddr.getAddress(); in socketAddressToString() local 273 (localAddr instanceof Inet6Address ? "[%s]:%d" : "%s:%d"), in socketAddressToString() 274 localAddr.getHostAddress(), inetSockAddr.getPort()); in socketAddressToString()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 730 String localAddr, String remoteAddr, String pkgName) throws Exception { in createAndValidateTunnel() argument
|