Home
last modified time | relevance | path

Searched refs:DecodeResult (Results 1 – 25 of 43) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaTypeData.java106 protected DecodeResult<T> decode(@NonNull byte[] typeData) { in decode()
109 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
117 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
131 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
145 return new DecodeResult<>(eapSimAkaTypeData); in decode()
148 return new DecodeResult<>(AtClientErrorCode.INSUFFICIENT_CHALLENGES); in decode()
151 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
154 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
187 public static class DecodeResult<T extends EapSimAkaTypeData> { class in EapSimAkaTypeData
191 public DecodeResult(T eapTypeData) { in DecodeResult() method in EapSimAkaTypeData.DecodeResult
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2TypeData.java482 public DecodeResult<EapMsChapV2ChallengeRequest> decodeChallengeRequest( in decodeChallengeRequest()
489 return new DecodeResult<>( in decodeChallengeRequest()
497 return new DecodeResult<>(new EapMsChapV2ChallengeRequest(buffer)); in decodeChallengeRequest()
500 return new DecodeResult<>(new EapError(ex)); in decodeChallengeRequest()
513 public DecodeResult<EapMsChapV2SuccessRequest> decodeSuccessRequest( in decodeSuccessRequest()
520 return new DecodeResult<>( in decodeSuccessRequest()
528 return new DecodeResult<>(new EapMsChapV2SuccessRequest(buffer)); in decodeSuccessRequest()
533 return new DecodeResult<>(new EapError(ex)); in decodeSuccessRequest()
546 public DecodeResult<EapMsChapV2FailureRequest> decodeFailureRequest( in decodeFailureRequest()
553 return new DecodeResult<>( in decodeFailureRequest()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaIdentityStateTest.java44 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
70 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIdentityRequest()
71 new DecodeResult<>( in testProcessIdentityRequest()
89 DecodeResult<EapAkaTypeData> decodeResult = in testProcessWithoutIdentityRequestAttributes()
90 new DecodeResult<>(new EapAkaTypeData(EAP_AKA_IDENTITY, new LinkedHashMap<>())); in testProcessWithoutIdentityRequestAttributes()
105 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMultipleIdentityRequestAttributes()
106 new DecodeResult<>( in testProcessMultipleIdentityRequestAttributes()
124 DecodeResult<EapAkaTypeData> decodeResult = in testProcessImsiUnavailable()
125 new DecodeResult<>( in testProcessImsiUnavailable()
149 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
[all …]
DEapAkaChallengeStateTest.java71 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
172 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtRand()
173 new DecodeResult<>( in testProcessMissingAtRand()
192 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtAutn()
193 new DecodeResult<>( in testProcessMissingAtAutn()
212 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtMac()
213 new DecodeResult<>( in testProcessMissingAtMac()
273 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIccAuthenticationNullResponse()
274 new DecodeResult<>( in testProcessIccAuthenticationNullResponse()
307 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIccAuthenticationInvalidTag()
[all …]
DEapAkaPrimeChallengeStateTest.java60 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
117 DecodeResult<EapAkaTypeData> decodeResult = in testTransitionWithEapIdentity()
118 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testTransitionWithEapIdentity()
138 DecodeResult<EapAkaTypeData> decodeResult = in testTransitionWithEapAkaPrimeIdentity()
139 new DecodeResult<>( in testTransitionWithEapAkaPrimeIdentity()
153 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testTransitionWithEapAkaPrimeIdentity()
175 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtKdf()
176 new DecodeResult<>( in testProcessMissingAtKdf()
197 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtKdfInput()
198 new DecodeResult<>( in testProcessMissingAtKdfInput()
[all …]
DEapAkaPrimeCreatedStateTest.java37 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
52 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToIdentityState()
53 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_IDENTITY, new ArrayList<>())); in testProcessTransitionToIdentityState()
72 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
73 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testProcessTransitionToChallengeState()
DEapAkaPrimeIdentityStateTest.java41 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
63 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIdentityRequest()
64 new DecodeResult<>( in testProcessIdentityRequest()
84 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
85 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testProcessTransitionToChallengeState()
DEapAkaCreatedStateTest.java42 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
59 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToIdentityState()
60 new DecodeResult<>(new EapAkaTypeData(EAP_AKA_IDENTITY, new LinkedHashMap<>())); in testProcessTransitionToIdentityState()
79 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
80 new DecodeResult<>(new EapAkaTypeData(EAP_AKA_CHALLENGE, new LinkedHashMap<>())); in testProcessTransitionToChallengeState()
DEapSimStartStateTest.java64 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
193 DecodeResult decodeResult = new DecodeResult(eapSimTypeData); in testAddIdentityAttributeToResponseImsiUnavailable()
223 DecodeResult eapSimStartDecodeResult = in testProcessWithoutIdentityRequest()
224 new DecodeResult(new EapSimTypeData(EAP_SIM_START, mAttributes)); in testProcessWithoutIdentityRequest()
239 DecodeResult eapSimChallengeDecodeResult = in testProcessWithoutIdentityRequest()
240 new DecodeResult(new EapSimTypeData(EAP_SIM_CHALLENGE, new LinkedHashMap<>())); in testProcessWithoutIdentityRequest()
DEapAkaMethodStateMachineTest.java55 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
118 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(notificationTypeData); in testEapAkaFailsOnMultipleAkaNotifications()
128 new DecodeResult<>( in testEapAkaFailsOnMultipleAkaNotifications()
144 decodeResult = new DecodeResult<>(notificationTypeData); in testEapAkaFailsOnMultipleAkaNotifications()
DEapSimStateTest.java50 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
122 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(typeData); in testProcessEapSimNotification()
139 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(atClientErrorCode); in testProcessInvalidDecodeResult()
DEapSimMethodStateMachineTest.java53 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
120 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(notificationTypeData); in testEapSimFailsOnMultipleSimNotifications()
130 new DecodeResult<>( in testEapSimFailsOnMultipleSimNotifications()
144 decodeResult = new EapSimAkaTypeData.DecodeResult<>(notificationTypeData); in testEapSimFailsOnMultipleSimNotifications()
DEapAkaStateTest.java52 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
121 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(typeData); in testProcessEapAkaNotification()
138 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(atClientErrorCode); in testProcessInvalidDecodeResult()
DEapTtlsCreatedStateTest.java34 …port com.android.internal.net.eap.message.ttls.EapTtlsTypeData.EapTtlsTypeDataDecoder.DecodeResult;
48 new DecodeResult( in testStartRequest()
64 new DecodeResult( in testUnexpectedRequest()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2SuccessRequestTest.java44 …roid.internal.net.eap.message.mschapv2.EapMsChapV2TypeData.EapMsChapV2TypeDataDecoder.DecodeResult;
63 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequest()
77 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestEmptyMessage()
92 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestMissingMessage()
107 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestMissingMessageWithSpace()
124 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestWrongOpCode()
133 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestShortMessage()
142 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestInvalidPrefix()
151 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestShortAuthString()
160 DecodeResult<EapMsChapV2SuccessRequest> result = in testDecodeSuccessRequestInvalidAuthString()
[all …]
DEapMsChapV2FailureRequestTest.java44 …roid.internal.net.eap.message.mschapv2.EapMsChapV2TypeData.EapMsChapV2TypeDataDecoder.DecodeResult;
61 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequest()
78 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestMissingMessage()
96 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestMissingMessageWithSpace()
116 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestInvalidErrorCode()
124 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestInvalidChallenge()
132 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestShortChallenge()
140 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureRequestInvalidPasswordChangeProtocol()
149 DecodeResult<EapMsChapV2FailureRequest> result = in testDecodeFailureExtraAttribute()
DEapMsChapV2ChallengeRequestTest.java39 …roid.internal.net.eap.message.mschapv2.EapMsChapV2TypeData.EapMsChapV2TypeDataDecoder.DecodeResult;
58 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequest()
72 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestWrongOpCode()
81 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestShortChallenge()
90 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestShortMsLength()
99 DecodeResult<EapMsChapV2ChallengeRequest> result = in testDecodeChallengeRequestLongMsLength()
DEapMsChapV2TypeDataTest.java39 …roid.internal.net.eap.message.mschapv2.EapMsChapV2TypeData.EapMsChapV2TypeDataDecoder.DecodeResult;
84 DecodeResult<EapMsChapV2TypeData> result = in testDecodeResultIsSuccessfulDecode()
85 new DecodeResult(new EapMsChapV2TypeData(EAP_MSCHAP_V2_CHALLENGE) {}); in testDecodeResultIsSuccessfulDecode()
88 result = new DecodeResult(new EapError(new Exception())); in testDecodeResultIsSuccessfulDecode()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java117 protected DecodeResult decode(@NonNull byte[] packet) { in decode()
122 return new DecodeResult(new EapError( in decode()
144 return new DecodeResult(new EapError(cause)); in decode()
150 return new DecodeResult(new EapError(cause)); in decode()
153 return new DecodeResult(eapMessage); in decode()
155 return new DecodeResult( in decode()
160 return new DecodeResult(new EapError(ex)); in decode()
164 protected final class DecodeResult { class in EapStateMachine.EapState
168 public DecodeResult(EapMessage eapMessage) { in DecodeResult() method in EapStateMachine.EapState.DecodeResult
173 public DecodeResult(EapResult eapResult) { in DecodeResult() method in EapStateMachine.EapState.DecodeResult
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsTypeDataTest.java30 …port com.android.internal.net.eap.message.ttls.EapTtlsTypeData.EapTtlsTypeDataDecoder.DecodeResult;
58 DecodeResult result = in testDecodeResult_successfulDecode()
59 new DecodeResult( in testDecodeResult_successfulDecode()
71 DecodeResult result = new DecodeResult(new EapError(new Exception())); in testDecodeResult_unsuccessfulDecode()
77 DecodeResult decodeResult = mTypeDataDecoder.decodeEapTtlsRequestPacket(EAP_TTLS_REQUEST); in testDecodeEapTtlsRequest()
91 DecodeResult decodeResult = in testDecodeEapTtlsRequest_incorrectMessageLength()
100 DecodeResult decodeResult = in testDecodeEapTtlsStart()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java57 import com.android.internal.net.ipsec.ike.message.IkeMessage.DecodeResult;
285 DecodeResult decodeResult, byte[] firstPacket) throws Exception { in verifyDecodeResultOkAndGetMessage()
296 DecodeResult decodeResult, int decodeStatus, byte[] firstPacket) throws Exception { in verifyDecodeResultErrorAndGetIkeException()
310 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeIkeMessage()
328 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeMessageWithUnsupportedUncriticalPayload()
382 DecodeResult decodeResult = in testDecodeEncryptedMessage()
398 DecodeResult decodeResult = in testDecodeEncryptedMessageWithWrongId()
418 DecodeResult decodeResult = in testDecodeEncryptedMessageWithWrongChecksum()
440 DecodeResult decodeResult = in testDecryptFail()
467 DecodeResult decodeResult = in testParsingErrorInEncryptedMessage()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimTypeDataTest.java37 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
84 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(EAP_SIM_START_SUBTYPE); in testDecode()
104 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(null); in testDecodeNullTypeData()
111 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(INVALID_SUBTYPE); in testDecodeInvalidSubtype()
118 DecodeResult<EapSimTypeData> result = in testDecodeInvalidAtRand()
126 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(SHORT_TYPE_DATA); in testDecodeShortPacket()
133 DecodeResult<EapSimTypeData> result = in testDecodeInvalidEapAttribute()
152 DecodeResult<EapSimTypeData> result = in testDecodeDuplicateAttributes()
DEapAkaTypeDataTest.java48 import com.android.internal.net.eap.message.simaka.EapSimAkaTypeData.DecodeResult;
87 DecodeResult<EapAkaTypeData> result = in testDecode()
110 DecodeResult<EapAkaTypeData> result = mEapAkaTypeDataDecoder.decode(EAP_AKA_REQUEST); in testDecodeWithOptionalAttributes()
144 DecodeResult<EapAkaTypeData> result = mEapAkaTypeDataDecoder.decode(INVALID_SUBTYPE); in testDecodeInvalidSubtype()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsTypeData.java207 public DecodeResult decodeEapTtlsRequestPacket(byte[] eapTypeData) { in decodeEapTtlsRequestPacket()
210 return new DecodeResult(new EapTtlsTypeData(buffer)); in decodeEapTtlsRequestPacket()
212 return new DecodeResult(new EapError(e)); in decodeEapTtlsRequestPacket()
220 public static class DecodeResult { class in EapTtlsTypeData.EapTtlsTypeDataDecoder
224 public DecodeResult(EapTtlsTypeData eapTypeData) { in DecodeResult() method in EapTtlsTypeData.EapTtlsTypeDataDecoder.DecodeResult
229 public DecodeResult(EapError eapError) { in DecodeResult() method in EapTtlsTypeData.EapTtlsTypeDataDecoder.DecodeResult
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java114 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode()
130 public static DecodeResult decode( in decode()
382 DecodeResult decode(int expectedMsgId, IkeHeader ikeHeader, byte[] packet); in decode()
396 DecodeResult decode( in decode()
545 public DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode()
572 public DecodeResult decode( in decode()
591 private DecodeResult decode( in decode()
821 public abstract static class DecodeResult { class in IkeMessage
825 protected DecodeResult(int status) { in DecodeResult() method in IkeMessage.DecodeResult
831 public static class DecodeResultOk extends DecodeResult {
[all …]

12