/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | IkeContext.java | 24 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/ |
D | IkeManager.java | 19 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/ |
D | AbstractSessionStateMachine.java | 27 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()
|
D | ChildSessionStateMachine.java | 98 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 …]
|
D | IkeSessionStateMachine.java | 180 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/ |
D | IkeIOException.java | 24 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()
|
D | TsUnacceptableException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 70 return IkeMetrics.IKE_ERROR_PROTOCOL_TS_UNACCEPTABLE; in getMetricsErrorCode()
|
D | NoAdditionalSasException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 69 return IkeMetrics.IKE_ERROR_PROTOCOL_NO_ADDITIONAL_SAS; in getMetricsErrorCode()
|
D | FailedCpRequiredException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 70 return IkeMetrics.IKE_ERROR_PROTOCOL_FAILED_CP_REQUIRED; in getMetricsErrorCode()
|
D | InvalidIkeSpiException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 69 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_IKE_SPI; in getMetricsErrorCode()
|
D | SinglePairRequiredException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 70 return IkeMetrics.IKE_ERROR_PROTOCOL_SINGLE_PAIR_REQUIRED; in getMetricsErrorCode()
|
D | InternalAddressFailureException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 69 return IkeMetrics.IKE_ERROR_PROTOCOL_INTERNAL_ADDRESS_FAILURE; in getMetricsErrorCode()
|
D | TemporaryFailureException.java | 22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 73 return IkeMetrics.IKE_ERROR_PROTOCOL_TEMPORARY_FAILURE; in getMetricsErrorCode()
|
D | InvalidMessageIdException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 82 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_MESSAGE_ID; in getMetricsErrorCode()
|
D | IkeNetworkLostException.java | 23 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 75 return IkeMetrics.IKE_ERROR_NETWORK_LOST; in getMetricsErrorCode()
|
D | InvalidKeException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 83 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_KE_PAYLOAD; in getMetricsErrorCode()
|
D | IkeInternalException.java | 22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 80 return IkeMetrics.IKE_ERROR_INTERNAL; in getMetricsErrorCode()
|
D | ChildSaNotFoundException.java | 21 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 81 return IkeMetrics.IKE_ERROR_PROTOCOL_CHILD_SA_NOT_FOUND; in getMetricsErrorCode()
|
D | InvalidMajorVersionException.java | 22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 86 return IkeMetrics.IKE_ERROR_PROTOCOL_INVALID_MAJOR_VERSION; in getMetricsErrorCode()
|
D | AuthenticationFailedException.java | 22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 83 return IkeMetrics.IKE_ERROR_PROTOCOL_AUTHENTICATION_FAILED; in getMetricsErrorCode()
|
D | NoValidProposalChosenException.java | 22 import com.android.internal.net.ipsec.ike.utils.IkeMetrics; 90 return IkeMetrics.IKE_ERROR_PROTOCOL_NO_PROPOSAL_CHOSEN; in getMetricsErrorCode()
|
D | InvalidSelectorsException.java | 22 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/ |
D | ChildSessionStateMachineTest.java | 133 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 …]
|
D | AbstractSessionStateMachineTest.java | 31 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()
|
D | IkeSessionTestBase.java | 60 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()
|