/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocketTestBase.java | 88 new LongSparseArray<IkeSocket.Callback>(); 93 protected final IkeSocket.Callback mMockIkeSocketCallback = mock(IkeSocket.Callback.class); 114 protected abstract void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver); in setPacketReceiver() 119 Os.bind(sock, address, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in getBoundUdpSocket() 139 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in verifyCloseFd() 181 protected static class DummyPacketReceiver implements IkeSocket.IPacketReceiver { 190 public void handlePacket(byte[] revbuf, LongSparseArray<IkeSocket.Callback> spiToCallback) { in handlePacket() 224 IkeSocket getIkeSocket(IkeSocketConfig sockConfig, IkeSocket.Callback ikeSocketCallback) in getIkeSocket() 229 IkeSocketConfig spySockConfig, IkeSocket ikeSocket) throws Exception { in verifySocketConfigIsApplied() 235 IkeSocket.Callback mockIkeSocketCbOne = mock(IkeSocket.Callback.class); in verifyGetAndCloseIkeSocketSameConfig() [all …]
|
D | IkeUdp6SocketTest.java | 36 public IkeSocket getIkeSocket( 37 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback) 43 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 48 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 55 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketSameNetwork() 61 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketDifferentNetwork()
|
D | IkeUdp6WithEncapPortSocketTest.java | 36 public IkeSocket getIkeSocket( 37 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback) 44 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 49 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 56 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6WithEncapPortSocketTestSameNetwork() 62 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6WithEncapPortSocketTestDifferentNetwork()
|
D | IkeUdp4SocketTest.java | 36 public IkeSocket getIkeSocket( 37 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback) 43 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 48 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 55 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketSameNetwork() 61 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketDifferentNetwork()
|
D | IkeUdpEncapSocketTest.java | 69 public IkeSocket getIkeSocket( 70 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback) 117 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 122 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 129 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdpEncapSocketSameNetwork() 137 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdpEncapSocketDifferentNetwork()
|
D | IkeSessionTestBase.java | 21 import static com.android.internal.net.ipsec.test.ike.IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED; 22 import static com.android.internal.net.ipsec.test.ike.IkeSocket.SERVER_PORT_UDP_ENCAPSULATED; 185 protected void resetMockIkeSocket(IkeSocket mockSocket) { in resetMockIkeSocket() 194 protected <T extends IkeSocket> T newMockIkeSocket(Class<T> socketClass) { in newMockIkeSocket()
|
D | IkeUdpEncapPortPacketHandlerTest.java | 33 private LongSparseArray<IkeSocket.Callback> mMockSpiToCallback;
|
D | IkeSessionStateMachineTest.java | 411 private IkeSocket mMockCurrentIkeSocket; 6402 private Class<? extends IkeSocket> getExpectedSocketType( in getExpectedSocketType()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeConnectionController.java | 61 import com.android.internal.net.ipsec.ike.IkeSocket; 106 public class IkeConnectionController implements IkeNetworkUpdater, IkeSocket.Callback { 149 private IkeSocket mIkeSocket; 317 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in newIkeUdp4Socket() 324 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in newIkeUdp6Socket() 331 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in newIkeUdp6WithEncapPortSocket() 340 IkeSocket.Callback callback, in newIkeUdpEncapSocket() 414 private void setupOrUpdateNattKeeaplive(IkeSocket ikeSocket) throws IOException { in setupOrUpdateNattKeeaplive() 440 private IkeSocket getIkeSocket(boolean isIpv4, boolean useEncapPort) throws IkeException { in getIkeSocket() 442 IkeSocket result = null; in getIkeSocket() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeUdpEncapPortPacketHandler.java | 55 static class PacketReceiver implements IkeSocket.IPacketReceiver { 59 byte[] recvbuf, LongSparseArray<IkeSocket.Callback> spiToCallback) { in handlePacket() 82 IkeSocket.parseAndDemuxIkePacket(ikePacketBytes, spiToCallback, TAG); in handlePacket() 112 Os.sendto(mSocket, buffer, 0, serverAddress, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in sendIkePacket()
|
D | IkeUdpSocket.java | 37 public abstract class IkeUdpSocket extends IkeSocket { 58 static final class PacketReceiver implements IkeSocket.IPacketReceiver { 72 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
|
D | IkeUdpEncapSocket.java | 45 public final class IkeUdpEncapSocket extends IkeSocket { 81 IkeSocket.Callback callback, in getIkeUdpEncapSocket() 118 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
|
D | IkeUdp6WithEncapPortSocket.java | 75 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in getIkeUdpEncapSocket() 93 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
|
D | IkeSocket.java | 62 public abstract class IkeSocket implements AutoCloseable { class 82 protected IkeSocket(IkeSocketConfig sockConfig, Handler handler) { in IkeSocket() method in IkeSocket
|
D | IkeUdp4Socket.java | 66 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in getInstance()
|
D | IkeUdp6Socket.java | 66 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in getInstance()
|
D | SaRecord.java | 522 udpEncapSocket, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in makeIpSecTransform()
|
D | IkeSessionStateMachine.java | 233 IkeSocket.Callback,
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/ |
D | SoftwareKeepaliveImpl.java | 26 import com.android.internal.net.ipsec.ike.IkeSocket; 89 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in sendKeepaliveAndScheduleNext()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeConnectionControllerTest.java | 85 import com.android.internal.net.ipsec.test.ike.IkeSocket; 254 private void verifySocketBoundToNetwork(IkeSocket socket, Network network) throws Exception { in verifySocketBoundToNetwork() 262 Class<? extends IkeSocket> socketType) in verifySetup() 277 private void verifyDscpSetForSocket(Class<? extends IkeSocket> socketType) throws Exception { in verifyDscpSetForSocket() 363 private Class<? extends IkeSocket> getExpectedSocketType(boolean isIpv4, boolean force4500) { in getExpectedSocketType() 1166 Class<? extends IkeSocket> expectedSocketType) in verifyUnderlyingNetworkUpdated()
|