Home
last modified time | relevance | path

Searched refs:IkeSessionCallback (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DLivenessAssister.java22 import android.net.ipsec.ike.IkeSessionCallback;
72 private final IkeSessionCallback mCallback;
80 @NonNull IkeSessionCallback callback, in LivenessAssister()
112 invokeUserCallback(IkeSessionCallback.LIVENESS_STATUS_ON_DEMAND_STARTED); in livenessCheckRequested()
115 invokeUserCallback(IkeSessionCallback.LIVENESS_STATUS_BACKGROUND_STARTED); in livenessCheckRequested()
119 invokeUserCallback(IkeSessionCallback.LIVENESS_STATUS_ON_DEMAND_ONGOING); in livenessCheckRequested()
122 invokeUserCallback(IkeSessionCallback.LIVENESS_STATUS_BACKGROUND_ONGOING); in livenessCheckRequested()
138 invokeUserCallback(IkeSessionCallback.LIVENESS_STATUS_SUCCESS); in markPeerAsAlive()
152 invokeUserCallback(IkeSessionCallback.LIVENESS_STATUS_FAILURE); in markPeerAsDead()
169 private void invokeUserCallback(@IkeSessionCallback.LivenessStatus int status) { in invokeUserCallback()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/utils/
DLivenessAssisterTest.java31 import android.net.ipsec.test.ike.IkeSessionCallback;
46 IkeSessionCallback mMockIkeSessionCallback;
52 mMockIkeSessionCallback = mock(IkeSessionCallback.class); in setUp()
72 .onLivenessStatusChanged(eq(IkeSessionCallback.LIVENESS_STATUS_ON_DEMAND_STARTED)); in testLivenessCheckRequestedWithDpdOnDemandIkeLocalInfo()
74 .onLivenessStatusChanged(eq(IkeSessionCallback.LIVENESS_STATUS_ON_DEMAND_ONGOING)); in testLivenessCheckRequestedWithDpdOnDemandIkeLocalInfo()
88 .onLivenessStatusChanged(eq(IkeSessionCallback.LIVENESS_STATUS_BACKGROUND_STARTED)); in testLivenessCheckRequestedWithJoiningBusyStateRunningInBackground()
90 .onLivenessStatusChanged(eq(IkeSessionCallback.LIVENESS_STATUS_BACKGROUND_ONGOING)); in testLivenessCheckRequestedWithJoiningBusyStateRunningInBackground()
107 .onLivenessStatusChanged(eq(IkeSessionCallback.LIVENESS_STATUS_SUCCESS)); in testLivenessCheckRequestedAndSuccessCallback()
127 .onLivenessStatusChanged(eq(IkeSessionCallback.LIVENESS_STATUS_FAILURE)); in testLivenessCheckRequestedAndFailureCallback()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeSessionLivenessCheckTest.java29 import android.net.ipsec.ike.IkeSessionCallback;
164 if (livenessStatus == IkeSessionCallback.LIVENESS_STATUS_ON_DEMAND_STARTED) { in testIkeLivenessCheck()
166 IkeSessionCallback.LIVENESS_STATUS_ON_DEMAND_ONGOING, in testIkeLivenessCheck()
168 } else if (livenessStatus == IkeSessionCallback.LIVENESS_STATUS_BACKGROUND_STARTED) { in testIkeLivenessCheck()
170 IkeSessionCallback.LIVENESS_STATUS_BACKGROUND_ONGOING, in testIkeLivenessCheck()
183 assertEquals(IkeSessionCallback.LIVENESS_STATUS_SUCCESS, livenessStatus); in testIkeLivenessCheck()
DIkeSessionTestBase.java36 import android.net.ipsec.ike.IkeSessionCallback;
319 abstract static class TestIkeSessionCallback implements IkeSessionCallback {
348 IkeSessionCallback.super.onError(exception); in onError()
355 IkeSessionCallback.super.onIkeSessionConnectionInfoChanged(connectionInfo); in onIkeSessionConnectionInfoChanged()
361 IkeSessionCallback.super.onLivenessStatusChanged(livenessStatus); in onLivenessStatusChanged()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgTunnelManagerTest.java59 import android.net.ipsec.ike.IkeSessionCallback;
180 ArgumentCaptor<IkeSessionCallback> mIkeSessionCallbackCaptor =
181 ArgumentCaptor.forClass(IkeSessionCallback.class);
391 any(IkeSessionCallback.class), in setupTunnelBringup()
436 any(IkeSessionCallback.class), in testBringUpTunnelSetsDeviceIdentityImeiSv()
470 any(IkeSessionCallback.class), in testBringUpTunnelSetsDeviceIdentityImei()
501 any(IkeSessionCallback.class), in testBringUpTunnelNoDeviceIdentityWhenImeiUnavailable()
522 any(IkeSessionCallback.class), in testBringUpTunnelWithMobilityOptions()
540 any(IkeSessionCallback.class), in testBringUpTunnelIpv6_verifyMobikeDisabled()
898 any(IkeSessionCallback.class), in testRekeyAndNattTimerFromCarrierConfig()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSession.java120 @NonNull IkeSessionCallback ikeSessionCallback, in IkeSession()
140 IkeSessionCallback ikeSessionCallback, in IkeSession()
162 IkeSessionCallback ikeSessionCallback, in IkeSession()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeTimeoutException.java20 import android.net.ipsec.ike.IkeSessionCallback;
DTsUnacceptableException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DNoAdditionalSasException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DFailedCpRequiredException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DInvalidIkeSpiException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DSinglePairRequiredException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DInternalAddressFailureException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DUnrecognizedIkeProtocolException.java20 import android.net.ipsec.ike.IkeSessionCallback;
DTemporaryFailureException.java20 import android.net.ipsec.ike.IkeSessionCallback;
DInvalidMessageIdException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DIkeNetworkLostException.java21 import android.net.ipsec.ike.IkeSessionCallback;
DInvalidKeException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DIkeInternalException.java20 import android.net.ipsec.ike.IkeSessionCallback;
DChildSaNotFoundException.java19 import android.net.ipsec.ike.IkeSessionCallback;
DInvalidMajorVersionException.java20 import android.net.ipsec.ike.IkeSessionCallback;
DAuthenticationFailedException.java20 import android.net.ipsec.ike.IkeSessionCallback;
DNoValidProposalChosenException.java20 import android.net.ipsec.ike.IkeSessionCallback;
DInvalidSelectorsException.java20 import android.net.ipsec.ike.IkeSessionCallback;
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionTest.java58 private IkeSessionCallback mMockIkeSessionCb;
71 mMockIkeSessionCb = mock(IkeSessionCallback.class); in setUp()

12