Searched refs:ikeSocket (Results 1 – 7 of 7) sorted by relevance
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeUdp4Socket.java | 68 IkeUdp4Socket ikeSocket = sConfigToSocketMap.get(sockConfig); in getInstance() local 69 if (ikeSocket == null) { in getInstance() 75 ikeSocket = new IkeUdp4Socket(sock, sockConfig, handler); in getInstance() 78 ikeSocket.start(); in getInstance() 80 sConfigToSocketMap.put(sockConfig, ikeSocket); in getInstance() 82 ikeSocket.mRegisteredCallbacks.add(callback); in getInstance() 83 return ikeSocket; in getInstance()
|
D | IkeUdp6Socket.java | 68 IkeUdp6Socket ikeSocket = sConfigToSocketMap.get(sockConfig); in getInstance() local 69 if (ikeSocket == null) { in getInstance() 70 ikeSocket = new IkeUdp6Socket(openUdp6Sock(sockConfig), sockConfig, handler); in getInstance() 73 ikeSocket.start(); in getInstance() 75 sConfigToSocketMap.put(sockConfig, ikeSocket); in getInstance() 77 ikeSocket.mRegisteredCallbacks.add(callback); in getInstance() 78 return ikeSocket; in getInstance()
|
D | IkeUdp6WithEncapPortSocket.java | 77 IkeUdp6WithEncapPortSocket ikeSocket = sConfigToSocketMap.get(sockConfig); in getIkeUdpEncapSocket() local 78 if (ikeSocket == null) { in getIkeUdpEncapSocket() 79 ikeSocket = in getIkeUdpEncapSocket() 83 ikeSocket.start(); in getIkeUdpEncapSocket() 85 sConfigToSocketMap.put(sockConfig, ikeSocket); in getIkeUdpEncapSocket() 87 ikeSocket.mRegisteredCallbacks.add(callback); in getIkeUdpEncapSocket() 88 return ikeSocket; in getIkeUdpEncapSocket()
|
D | IkeUdpEncapSocket.java | 84 IkeUdpEncapSocket ikeSocket = sConfigToSocketMap.get(sockConfig); in getIkeUdpEncapSocket() local 85 if (ikeSocket == null) { in getIkeUdpEncapSocket() 90 ikeSocket = new IkeUdpEncapSocket(udpEncapSocket, sockConfig, new Handler(looper)); in getIkeUdpEncapSocket() 93 ikeSocket.start(); in getIkeUdpEncapSocket() 95 sConfigToSocketMap.put(sockConfig, ikeSocket); in getIkeUdpEncapSocket() 97 ikeSocket.mRegisteredCallbacks.add(callback); in getIkeUdpEncapSocket() 98 return ikeSocket; in getIkeUdpEncapSocket()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeUdpEncapSocketTest.java | 151 IkeUdpEncapSocket ikeSocket = in disableTestSendIkePacket() local 157 ikeSocket.sendIkePacket(mDataOne, IPV4_LOOPBACK); in disableTestSendIkePacket() 169 ikeSocket.releaseReference(mMockIkeSocketCallback); in disableTestSendIkePacket() 210 IkeUdpEncapSocket ikeSocket = socketReceiver.getIkeUdpEncapSocket(); in checkReceiveIkePacket() local 211 assertNotNull(ikeSocket); in checkReceiveIkePacket() 226 ikeSocket.releaseReference(mMockIkeSocketCallback); in checkReceiveIkePacket() 320 void setIkeUdpEncapSocket(IkeUdpEncapSocket ikeSocket) { in setIkeUdpEncapSocket() argument 321 mIkeUdpEncapSocket = ikeSocket; in setIkeUdpEncapSocket()
|
D | IkeSocketTestBase.java | 229 IkeSocketConfig spySockConfig, IkeSocket ikeSocket) throws Exception { in verifySocketConfigIsApplied() argument 330 IkeUdpSocket ikeSocket = in verifyIkeUdpSocketReceivePacket() local 334 assertNotNull(ikeSocket); in verifyIkeUdpSocketReceivePacket() 337 ikeSocket.registerIke(LOCAL_SPI, mockIkeSocketCallback); in verifyIkeUdpSocketReceivePacket() 343 ikeSocket.handlePacket(pktBytes, pktBytes.length); in verifyIkeUdpSocketReceivePacket() 348 ikeSocket.releaseReference(mockIkeSocketCallback); in verifyIkeUdpSocketReceivePacket()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeConnectionController.java | 414 private void setupOrUpdateNattKeeaplive(IkeSocket ikeSocket) throws IOException { in setupOrUpdateNattKeeaplive() argument 415 if (!(ikeSocket instanceof IkeUdpEncapSocket)) { in setupOrUpdateNattKeeaplive() 427 ((IkeUdpEncapSocket) ikeSocket).getUdpEncapsulationSocket(), in setupOrUpdateNattKeeaplive()
|