Home
last modified time | relevance | path

Searched refs:IkeMetrics (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DIkeContext.java24 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
38 private final @IkeMetrics.IkeCaller int mIkeCaller;
52 private static @IkeMetrics.IkeCaller int getIkeCaller(Context context) { in getIkeCaller()
56 return IkeMetrics.IKE_CALLER_UNKNOWN; in getIkeCaller()
61 return IkeMetrics.IKE_CALLER_IWLAN; in getIkeCaller()
63 return IkeMetrics.IKE_CALLER_VCN; in getIkeCaller()
65 return IkeMetrics.IKE_CALLER_VPN; in getIkeCaller()
67 return IkeMetrics.IKE_CALLER_UNKNOWN; in getIkeCaller()
71 public @IkeMetrics.IkeCaller int getIkeCaller() { in getIkeCaller()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeManager.java19 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
32 private static IkeMetrics sIkeMetrics = new IkeMetrics();
68 public static IkeMetrics getIkeMetrics() { in getIkeMetrics()
78 public static void setIkeMetrics(IkeMetrics ikeMetrics) { in setIkeMetrics()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DAbstractSessionStateMachine.java27 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
195 protected abstract @IkeMetrics.IkeState int getMetricsStateCode(); in getMetricsStateCode()
238 private @IkeMetrics.IkeState int getMetricsIkeStateCode() { in getMetricsIkeStateCode()
242 : IkeMetrics.IKE_STATE_UNKNOWN; in getMetricsIkeStateCode()
246 final @IkeMetrics.IkeError int exceptionCode = in recordMetricsEvent_sessionTerminated()
247 exception == null ? IkeMetrics.IKE_ERROR_NONE : exception.getMetricsErrorCode(); in recordMetricsEvent_sessionTerminated()
279 final @IkeMetrics.IkeError int exceptionCode = in recordMetricsEvent_SaNegotiation()
280 exception == null ? IkeMetrics.IKE_ERROR_NONE : exception.getMetricsErrorCode(); in recordMetricsEvent_SaNegotiation()
294 protected abstract @IkeMetrics.IkeSessionType int getMetricsSessionType(); in getMetricsSessionType()
DChildSessionStateMachine.java98 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
831 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
832 return IkeMetrics.IKE_STATE_CHILD_KILL; in getMetricsStateCode()
906 ? IkeMetrics.DH_GROUP_UNSPECIFIED in validateAndBuildChild()
911 ? IkeMetrics.INTEGRITY_ALGORITHM_NONE in validateAndBuildChild()
913 IkeMetrics.PSEUDORANDOM_FUNCTION_UNSPECIFIED, in validateAndBuildChild()
1094 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
1095 return IkeMetrics.IKE_STATE_CHILD_INITIAL; in getMetricsStateCode()
1181 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
1182 return IkeMetrics.IKE_STATE_CHILD_CREATE_LOCAL_CREATE; in getMetricsStateCode()
[all …]
DIkeSessionStateMachine.java180 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
1316 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
1317 return IkeMetrics.IKE_STATE_IKE_KILL; in getMetricsStateCode()
1412 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
1413 return IkeMetrics.IKE_STATE_IKE_INITIAL; in getMetricsStateCode()
1643 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
1644 return IkeMetrics.IKE_STATE_IKE_IDLE; in getMetricsStateCode()
2607 ? IkeMetrics.INTEGRITY_ALGORITHM_NONE in handleRequestIkeMessage()
2661 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
2662 return IkeMetrics.IKE_STATE_IKE_RECEIVING; in getMetricsStateCode()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeIOException.java24 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
76 return IkeMetrics.IKE_ERROR_IO_DNS_FAILURE; in getMetricsErrorCode()
78 return IkeMetrics.IKE_ERROR_IO_TIMEOUT; in getMetricsErrorCode()
80 return IkeMetrics.IKE_ERROR_IO_GENERAL; in getMetricsErrorCode()
DTsUnacceptableException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
70 return IkeMetrics.IKE_ERROR_PROTOCOL_TS_UNACCEPTABLE; in getMetricsErrorCode()
DNoAdditionalSasException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
69 return IkeMetrics.IKE_ERROR_PROTOCOL_NO_ADDITIONAL_SAS; in getMetricsErrorCode()
DFailedCpRequiredException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
70 return IkeMetrics.IKE_ERROR_PROTOCOL_FAILED_CP_REQUIRED; in getMetricsErrorCode()
DInvalidIkeSpiException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
69 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_IKE_SPI; in getMetricsErrorCode()
DSinglePairRequiredException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
70 return IkeMetrics.IKE_ERROR_PROTOCOL_SINGLE_PAIR_REQUIRED; in getMetricsErrorCode()
DInternalAddressFailureException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
69 return IkeMetrics.IKE_ERROR_PROTOCOL_INTERNAL_ADDRESS_FAILURE; in getMetricsErrorCode()
DTemporaryFailureException.java22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
73 return IkeMetrics.IKE_ERROR_PROTOCOL_TEMPORARY_FAILURE; in getMetricsErrorCode()
DInvalidMessageIdException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
82 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_MESSAGE_ID; in getMetricsErrorCode()
DIkeNetworkLostException.java23 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
75 return IkeMetrics.IKE_ERROR_NETWORK_LOST; in getMetricsErrorCode()
DInvalidKeException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
83 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_KE_PAYLOAD; in getMetricsErrorCode()
DIkeInternalException.java22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
80 return IkeMetrics.IKE_ERROR_INTERNAL; in getMetricsErrorCode()
DChildSaNotFoundException.java21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
81 return IkeMetrics.IKE_ERROR_PROTOCOL_CHILD_SA_NOT_FOUND; in getMetricsErrorCode()
DInvalidMajorVersionException.java22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
86 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_MAJOR_VERSION; in getMetricsErrorCode()
DAuthenticationFailedException.java22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
83 return IkeMetrics.IKE_ERROR_PROTOCOL_AUTHENTICATION_FAILED; in getMetricsErrorCode()
DNoValidProposalChosenException.java22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
90 return IkeMetrics.IKE_ERROR_PROTOCOL_NO_PROPOSAL_CHOSEN; in getMetricsErrorCode()
DInvalidSelectorsException.java22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics;
85 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_SELECTORS; in getMetricsErrorCode()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java133 import com.android.internal.net.ipsec.test.ike.utils.IkeMetrics;
547 IkeMetrics.IKE_CALLER_UNKNOWN, in verifyInitCreateChildResp()
548 IkeMetrics.IKE_SESSION_TYPE_CHILD, in verifyInitCreateChildResp()
549 IkeMetrics.IKE_STATE_CHILD_CREATE_LOCAL_CREATE, in verifyInitCreateChildResp()
551 IkeMetrics.ENCRYPTION_ALGORITHM_AES_CBC, in verifyInitCreateChildResp()
552 IkeMetrics.KEY_LEN_AES_128, in verifyInitCreateChildResp()
553 IkeMetrics.INTEGRITY_ALGORITHM_HMAC_SHA1_96, in verifyInitCreateChildResp()
554 IkeMetrics.PSEUDORANDOM_FUNCTION_UNSPECIFIED, in verifyInitCreateChildResp()
555 IkeMetrics.IKE_ERROR_NONE); in verifyInitCreateChildResp()
703 verifyMetricsLogged(IkeMetrics.IKE_SESSION_TYPE_CHILD, stateCode, exceptionCode); in verifyChildMetricsLogged()
[all …]
DAbstractSessionStateMachineTest.java31 import com.android.internal.net.ipsec.test.ike.utils.IkeMetrics;
108 protected @IkeMetrics.IkeState int getMetricsStateCode() { in getMetricsStateCode()
114 protected @IkeMetrics.IkeSessionType int getMetricsSessionType() { in getMetricsSessionType()
DIkeSessionTestBase.java60 import com.android.internal.net.ipsec.test.ike.utils.IkeMetrics;
95 protected IkeMetrics mIkeMetrics;
151 mIkeMetrics = mock(IkeMetrics.class); in setUp()
253 IkeMetrics.IKE_CALLER_UNKNOWN, sessionType, stateCode, exceptionCode); in verifyMetricsLogged()
283 : IkeMetrics.IKE_STATE_UNKNOWN; in getStateCode()

12