Home
last modified time | relevance | path

Searched refs:bindSocket (Results 1 – 23 of 23) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java64 mNetwork.bindSocket(fd); in testBindSocketOfInvalidFdThrows()
79 mNetwork.bindSocket(fis.getFD()); in testBindSocketOfNonSocketFdThrows()
92 mNetwork.bindSocket(mDgramSocket); in testBindSocketOfConnectedDatagramSocketThrows()
104 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
113 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
/packages/modules/Connectivity/framework/src/android/net/
DNetwork.java269 bindSocket(socket); in createSocket()
381 public void bindSocket(DatagramSocket socket) throws IOException { in bindSocket() method in Network
391 bindSocket(pfd.getFileDescriptor()); in bindSocket()
400 public void bindSocket(Socket socket) throws IOException { in bindSocket() method in Network
409 bindSocket(pfd.getFileDescriptor()); in bindSocket()
419 public void bindSocket(FileDescriptor fd) throws IOException { in bindSocket() method in Network
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeLocalAddressGenerator.java43 network.bindSocket(sock); in generateLocalAddress()
/packages/modules/Connectivity/framework/src/android/net/util/
DDnsUtils.java175 if (network != null) network.bindSocket(socket); in findSrcAddress()
368 if (network != null) network.bindSocket(socket); in checkConnectivity()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpSecManagerTunnelTest.java388 ipsecNetwork.bindSocket(socket.mSocket); in getIpSecTunnelTestRunnable()
460 ipsecNetwork.bindSocket(socket.mSocket);
509 ipsecNetwork.bindSocket(socket.mSocket);
810 sTunWrapperNew.network.bindSocket(encapSocket.getFileDescriptor());
1126 sTunWrapper.network.bindSocket(encapSocket.getFileDescriptor());
1765 ipsecNetwork.bindSocket(socket.mSocket);
1814 ipsecNetwork.bindSocket(outSocket.mSocket);
DRateLimitTest.java183 mNetwork.bindSocket(mSocket); in setUp()
DIpSecAlgorithmImplTest.java171 testNetwork.bindSocket(localSocket); in runTest()
DNetworkAgentTest.kt1277 .also { assertNotNull(agent.network?.bindSocket(it)) in setupForQosSocket()
1284 .also { assertNotNull(agent.network?.bindSocket(it)) } in setupForQosDatagram()
1525 network1.bindSocket(DatagramSocket()) in testUnregisterAfterReplacement()
1541 assertThrows(IOException::class.java) { network1.bindSocket(DatagramSocket()) } in testUnregisterAfterReplacement()
DDscpPolicyTest.kt230 network.bindSocket(sock) in <lambda>()
309 checkNotNull(agent.network).bindSocket(socket) in <lambda>()
DEthernetManagerTest.kt956 assertThrows(IOException::class.java, { network.bindSocket(socket) }) in <lambda>()
970 Socket().use { socket -> updatedNetwork.bindSocket(socket) } in <lambda>()
DConnectivityManagerTest.java2162 assertThrows(IOException.class, () -> network.bindSocket(socket));
2189 wifiNetwork.bindSocket(socket);
2204 network.bindSocket(socket); // binding should succeed
2206 assertThrows(IOException.class, () -> network.bindSocket(socket));
3358 network.bindSocket(socket);
3445 assertThrows(IOException.class, () -> network.bindSocket(socket));
DApfIntegrationTest.kt180 network.bindSocket(sock) in createFd()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestDnsServer.kt57 private val socket = DatagramSocket(addr).also { network.bindSocket(it) } in <lambda>()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkDiagnostics.java346 mNetwork.bindSocket(socket); in getMtuForTarget()
552 mNetwork.bindSocket(mFileDescriptor); in setupSocket()
802 mNetwork.bindSocket(sslSocket); in setupSSLSocket()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSocket.java167 network.bindSocket(getFd()); in bindToNetwork()
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/
DTapTestNetworkTracker.java183 network.bindSocket(sock); in hasUsableAddress()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp81 Result<void> bindSocket(int socket, const sockaddr* address, socklen_t address_len) { in bindSocket() function
1256 if (auto result = bindSocket(fd.get(), (struct sockaddr*)&addr, sizeof(addr)); in createListeningSocket()
1276 if (auto result = bindSocket(fd.get(), (struct sockaddr*)&addr, sizeof(addr)); in createListeningSocket()
1285 if (auto result = bindSocket(fd.get(), ai->ai_addr, ai->ai_addrlen); !result.ok()) { in createListeningSocket()
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DMainActivity.java232 network.bindSocket(socket);
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/
DConnectivityToolsFragment.java298 mThreadNetwork.bindSocket(socket); in doSendUdpMessage()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt292 method public void bindSocket(java.net.DatagramSocket) throws java.io.IOException;
293 method public void bindSocket(java.net.Socket) throws java.io.IOException;
294 method public void bindSocket(java.io.FileDescriptor) throws java.io.IOException;
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1224 mNetwork.bindSocket(s); in doTestAutomaticOnOffKeepaliveMode()
/packages/modules/ImsMedia/test/app/ImsMediaTestingApp/app/src/main/java/com/example/imsmediatestingapp/
DMainActivity.java1096 network.bindSocket(socket); in createDatagramSocket()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java4293 network.bindSocket(socket);