Home
last modified time | relevance | path

Searched refs:hasIkeOption (Results 1 – 10 of 10) sorted by relevance

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeSessionParamsTest.java225 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_ACCEPT_ANY_REMOTE_ID)); in testBuildWithMinimumSet()
342 assertTrue(sessionParams.hasIkeOption(ikeOption)); in verifyAddIkeOption()
359 assertFalse(sessionParams.hasIkeOption(ikeOption)); in verifyRemoveIkeOption()
369 assertTrue(sessionParams.hasIkeOption(IKE_OPTION_MOBIKE)); in testAddIkeOptionMobike()
372 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_REKEY_MOBILITY)); in testAddIkeOptionMobike()
374 assertTrue(sessionParams.hasIkeOption(IKE_OPTION_REKEY_MOBILITY)); in testAddIkeOptionMobike()
436 assertTrue(sessionParams.hasIkeOption(IkeSessionParams.IKE_OPTION_MOBIKE)); in testBuildWithPskMobikeEnabled()
465 assertTrue(sessionParams.hasIkeOption(IKE_OPTION_EAP_ONLY_AUTH)); in testBuildWithEapOnlyAuth()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionControllerTest.java220 when(mMockIkeParams.hasIkeOption(eq(IKE_OPTION_FORCE_PORT_4500))).thenReturn(false); in resetMockIkeParams()
221 when(mMockIkeParams.hasIkeOption(eq(IKE_OPTION_AUTOMATIC_ADDRESS_FAMILY_SELECTION))) in resetMockIkeParams()
223 when(mMockIkeParams.hasIkeOption(eq(IKE_OPTION_FORCE_DNS_RESOLUTION))).thenReturn(false); in resetMockIkeParams()
387 when(mMockIkeParams.hasIkeOption(eq(IKE_OPTION_FORCE_PORT_4500))).thenReturn(force4500); in verifySetupAndTeardownWithIpVersionAndPort()
663 .hasIkeOption(IKE_OPTION_AUTOMATIC_ADDRESS_FAMILY_SELECTION); in verifyIsIpV4Preferred()
785 .hasIkeOption(IKE_OPTION_AUTOMATIC_ADDRESS_FAMILY_SELECTION); in verifyUsedIpVersion()
812 .hasIkeOption(IKE_OPTION_AUTOMATIC_ADDRESS_FAMILY_SELECTION); in verifyUsedIpVersion()
816 .hasIkeOption(IKE_OPTION_AUTOMATIC_ADDRESS_FAMILY_SELECTION); in verifyUsedIpVersion()
1136 verify(mMockIkeParams, times(2)).hasIkeOption(IKE_OPTION_AUTOMATIC_NATT_KEEPALIVES); in testOnUnderlyingNetworkUpdatedWithNewNetwork()
1174 when(mMockIkeParams.hasIkeOption(eq(IKE_OPTION_FORCE_PORT_4500))).thenReturn(force4500); in verifyUnderlyingNetworkUpdated()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionParamsTest.java168 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_ACCEPT_ANY_REMOTE_ID)); in verifyIkeParamsWithSeverIpAndDefaultValues()
257 assertTrue(sessionParams.hasIkeOption(IKE_OPTION_ACCEPT_ANY_REMOTE_ID)); in testAddIkeOption()
270 assertTrue(sessionParams.hasIkeOption(IKE_OPTION_INITIAL_CONTACT)); in testAddInitialContactIkeOption()
284 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_ACCEPT_ANY_REMOTE_ID)); in testAddAndRemoveIkeOption()
298 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_INITIAL_CONTACT)); in testAddAndRemoveInitialContactIkeOption()
370 sessionParams.hasIkeOption(IKE_OPTION_INVALID); in testCheckInvalidIkeOption()
390 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_ACCEPT_ANY_REMOTE_ID)); in testBuildWithPskAndDpdDelay()
492 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_ACCEPT_ANY_REMOTE_ID)); in testBuildWithPskAndRetransmission()
842 assertTrue(sessionParams.hasIkeOption(IKE_OPTION_EAP_ONLY_AUTH)); in testBuildWithEapOnlyOption()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/
DHardwareKeepaliveImpl.java109 if (ikeParams.hasIkeOption(IKE_OPTION_AUTOMATIC_KEEPALIVE_ON_OFF)) { in getKeepaliveStartOptions()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSessionParams.java630 if (hasIkeOption(ikeOptions, option)) { in fromPersistableBundle()
893 private static boolean hasIkeOption(long ikeOptionsRecord, @IkeOption int ikeOption) { in hasIkeOption() method in IkeSessionParams
904 public boolean hasIkeOption(@IkeOption int ikeOption) { in hasIkeOption() method in IkeSessionParams
905 return hasIkeOption(mIkeOptions, ikeOption); in hasIkeOption()
2397 pw.println(prefix + "Force port4500 status: " + hasIkeOption(IKE_OPTION_FORCE_PORT_4500)); in dump()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionController.java211 mForcePort4500 = config.ikeParams.hasIkeOption(IKE_OPTION_FORCE_PORT_4500); in IkeConnectionController()
367 if (ikeParams.hasIkeOption(IKE_OPTION_AUTOMATIC_NATT_KEEPALIVES)) { in getKeepaliveDelaySec()
1098 && ikeParams.hasIkeOption(IKE_OPTION_AUTOMATIC_ADDRESS_FAMILY_SELECTION) in isIpV4Preferred()
1189 if (mIkeParams.hasIkeOption(IKE_OPTION_FORCE_DNS_RESOLUTION)) { in isDnsLookupRequiredWithGlobalRemoteAddress()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java526 if (ikeParams.hasIkeOption(IkeSessionParams.IKE_OPTION_MOBIKE) in IkeSessionStateMachine()
527 || ikeParams.hasIkeOption(IkeSessionParams.IKE_OPTION_REKEY_MOBILITY)) { in IkeSessionStateMachine()
867 if (mIkeSessionParams.hasIkeOption(IKE_OPTION_MOBIKE) in openChildSession()
932 if (!mIkeSessionParams.hasIkeOption(IKE_OPTION_MOBIKE) in setNetwork()
933 && !mIkeSessionParams.hasIkeOption(IKE_OPTION_REKEY_MOBILITY)) { in setNetwork()
4026 } else if (mIkeSessionParams.hasIkeOption(IKE_OPTION_MOBIKE) in handleNotifyInLastAuthResp()
4096 } else if (mIkeSessionParams.hasIkeOption(IKE_OPTION_REKEY_MOBILITY)) { in maybeEnableMobility()
4222 if (mIkeSessionParams.hasIkeOption(IKE_OPTION_EAP_ONLY_AUTH)) { in buildIkeAuthReq()
4227 if (mIkeSessionParams.hasIkeOption(IKE_OPTION_MOBIKE)) { in buildIkeAuthReq()
4231 if (mIkeSessionParams.hasIkeOption(IKE_OPTION_INITIAL_CONTACT)) { in buildIkeAuthReq()
[all …]
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgTunnelManagerTest.java525 assertTrue(ikeSessionParams.hasIkeOption(IkeSessionParams.IKE_OPTION_MOBIKE)); in testBringUpTunnelWithMobilityOptions()
526 assertTrue(ikeSessionParams.hasIkeOption(IkeSessionParams.IKE_OPTION_REKEY_MOBILITY)); in testBringUpTunnelWithMobilityOptions()
543 assertTrue(ikeSessionParams.hasIkeOption(IkeSessionParams.IKE_OPTION_REKEY_MOBILITY)); in testBringUpTunnelIpv6_verifyMobikeDisabled()
544 assertFalse(ikeSessionParams.hasIkeOption(IkeSessionParams.IKE_OPTION_MOBIKE)); in testBringUpTunnelIpv6_verifyMobikeDisabled()
570 assertTrue(firstTunnelParams.hasIkeOption(IkeSessionParams.IKE_OPTION_INITIAL_CONTACT)); in testInitialContactForFirstTunnelOnly()
571 assertFalse(secondTunnelParams.hasIkeOption(IkeSessionParams.IKE_OPTION_INITIAL_CONTACT)); in testInitialContactForFirstTunnelOnly()
2972 assertFalse(ikeSessionParams.hasIkeOption(IkeSessionParams.IKE_OPTION_INITIAL_CONTACT)); in testEmergencyPdnFailedEstablishWithImsPdn_establishWithSeparateEpdg()
3001 assertTrue(ikeSessionParams.hasIkeOption(IkeSessionParams.IKE_OPTION_INITIAL_CONTACT)); in testEmergencyPdnFailedEstablishWithImsPdn_establishWithSeparateEpdg()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/keepalive/
DIkeNattKeepaliveTest.java193 .hasIkeOption(IKE_OPTION_AUTOMATIC_KEEPALIVE_ON_OFF); in setupKeepaliveWithDisableKeepaliveNoTcpConnectionsOption()
/packages/modules/IPsec/api/
Dcurrent.txt236 method public boolean hasIkeOption(int);