Searched refs:newSocket (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecServiceTest.java | 234 FileDescriptor newSocket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in testOpenUdpEncapsulationSocketAfterClose() local 235 Os.bind(newSocket, INADDR_ANY, localport); in testOpenUdpEncapsulationSocketAfterClose() 236 Os.close(newSocket); in testOpenUdpEncapsulationSocketAfterClose() 253 FileDescriptor newSocket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in testUdpEncapPortNotReleased() local 255 Os.bind(newSocket, INADDR_ANY, localport); in testUdpEncapPortNotReleased()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachine.java | 893 private void switchToIkeSocket(IkeSocket newSocket) { in switchToIkeSocket() argument 901 migrateSpiToIkeSocket(currentLocalSpi, mIkeSocket, newSocket); in switchToIkeSocket() 905 migrateSpiToIkeSocket(newLocalSpi, mIkeSocket, newSocket); in switchToIkeSocket() 909 migrateSpiToIkeSocket(newLocalSpi, mIkeSocket, newSocket); in switchToIkeSocket() 913 mIkeSocket = newSocket; in switchToIkeSocket() 943 IkeSocket newSocket = getIkeSocket(isIpv4, useEncapPort); in getAndSwitchToIkeSocket() local 944 if (newSocket == mIkeSocket) { in getAndSwitchToIkeSocket() 948 switchToIkeSocket(newSocket); in getAndSwitchToIkeSocket() 958 private void migrateSpiToIkeSocket(long localSpi, IkeSocket oldSocket, IkeSocket newSocket) { in migrateSpiToIkeSocket() argument 959 newSocket.registerIke(localSpi, IkeSessionStateMachine.this); in migrateSpiToIkeSocket() [all …]
|