Home
last modified time | relevance | path

Searched refs:ikeSocket (Results 1 – 6 of 6) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdp6Socket.java78 IkeUdp6Socket ikeSocket = sNetworkToUdp6SocketMap.get(network); in getInstance() local
79 if (ikeSocket == null) { in getInstance()
87 ikeSocket = new IkeUdp6Socket(sock, network, handler); in getInstance()
90 ikeSocket.start(); in getInstance()
92 sNetworkToUdp6SocketMap.put(network, ikeSocket); in getInstance()
94 ikeSocket.mAliveIkeSessions.add(ikeSession); in getInstance()
95 return ikeSocket; in getInstance()
DIkeUdp4Socket.java78 IkeUdp4Socket ikeSocket = sNetworkToUdp4SocketMap.get(network); in getInstance() local
79 if (ikeSocket == null) { in getInstance()
87 ikeSocket = new IkeUdp4Socket(sock, network, handler); in getInstance()
90 ikeSocket.start(); in getInstance()
92 sNetworkToUdp4SocketMap.put(network, ikeSocket); in getInstance()
94 ikeSocket.mAliveIkeSessions.add(ikeSession); in getInstance()
95 return ikeSocket; in getInstance()
DIkeUdpEncapSocket.java90 IkeUdpEncapSocket ikeSocket = sNetworkToIkeSocketMap.get(network); in getIkeUdpEncapSocket() local
91 if (ikeSocket == null) { in getIkeUdpEncapSocket()
99 ikeSocket = new IkeUdpEncapSocket(udpEncapSocket, network, new Handler(looper)); in getIkeUdpEncapSocket()
102 ikeSocket.start(); in getIkeUdpEncapSocket()
104 sNetworkToIkeSocketMap.put(network, ikeSocket); in getIkeUdpEncapSocket()
106 ikeSocket.mAliveIkeSessions.add(ikeSession); in getIkeUdpEncapSocket()
107 return ikeSocket; in getIkeUdpEncapSocket()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeUdpEncapSocketTest.java193 IkeUdpEncapSocket ikeSocket = in disableTestSendIkePacket() local
199 ikeSocket.sendIkePacket(mDataOne, IPV4_LOOPBACK); in disableTestSendIkePacket()
210 ikeSocket.releaseReference(mMockIkeSessionStateMachine); in disableTestSendIkePacket()
248 IkeUdpEncapSocket ikeSocket = socketReceiver.getIkeUdpEncapSocket(); in testReceiveIkePacket() local
249 assertNotNull(ikeSocket); in testReceiveIkePacket()
274 ikeSocket.releaseReference(mMockIkeSessionStateMachine); in testReceiveIkePacket()
339 void setIkeUdpEncapSocket(IkeUdpEncapSocket ikeSocket) { in setIkeUdpEncapSocket() argument
340 mIkeUdpEncapSocket = ikeSocket; in setIkeUdpEncapSocket()
DIkeUdp4SocketTest.java117 IkeUdp4Socket ikeSocket = IkeUdp4Socket.getInstance(mMockNetwork, mockIkeSession, mHandler); in testReceiveIkePacket() local
118 assertNotNull(ikeSocket); in testReceiveIkePacket()
121 ikeSocket.registerIke(LOCAL_SPI, mockIkeSession); in testReceiveIkePacket()
127 ikeSocket.handlePacket(pktBytes, pktBytes.length); in testReceiveIkePacket()
132 ikeSocket.releaseReference(mockIkeSession); in testReceiveIkePacket()
DIkeUdp6SocketTest.java117 IkeUdp6Socket ikeSocket = IkeUdp6Socket.getInstance(mMockNetwork, mockIkeSession, mHandler); in testReceiveIkePacket() local
118 assertNotNull(ikeSocket); in testReceiveIkePacket()
121 ikeSocket.registerIke(LOCAL_SPI, mockIkeSession); in testReceiveIkePacket()
127 ikeSocket.handlePacket(pktBytes, pktBytes.length); in testReceiveIkePacket()
132 ikeSocket.releaseReference(mockIkeSession); in testReceiveIkePacket()