Home
last modified time | relevance | path

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

12

/packages/modules/adb/
Dcompression_utils.h32 enum class DecodeResult { enum
57 virtual DecodeResult Decode(std::span<char>* output) = 0;
93 DecodeResult Decode(std::span<char>* output) final { in Decode()
104 return finished_ ? DecodeResult::Done : DecodeResult::NeedInput; in Decode()
106 return DecodeResult::MoreOutput; in Decode()
142 DecodeResult Decode(std::span<char>* output) final { in Decode()
161 return finished_ ? DecodeResult::Done : DecodeResult::NeedInput; in Decode()
163 return DecodeResult::Error; in Decode()
168 return DecodeResult::NeedInput; in Decode()
170 return DecodeResult::MoreOutput; in Decode()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaTypeData.java117 protected DecodeResult<T> decode(@NonNull byte[] typeData) { in decode()
120 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
128 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
143 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
157 return new DecodeResult<>(eapSimAkaTypeData); in decode()
160 return new DecodeResult<>(AtClientErrorCode.INSUFFICIENT_CHALLENGES); in decode()
163 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
166 return new DecodeResult<>(AtClientErrorCode.UNABLE_TO_PROCESS); in decode()
200 public static class DecodeResult<T extends EapSimAkaTypeData> { class in EapSimAkaTypeData
204 public DecodeResult(T eapTypeData) { in DecodeResult() method in EapSimAkaTypeData.DecodeResult
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaIdentityStateTest.java45 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
72 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIdentityRequest()
73 new DecodeResult<>( in testProcessIdentityRequest()
91 DecodeResult<EapAkaTypeData> decodeResult = in testProcessWithoutIdentityRequestAttributes()
92 new DecodeResult<>(new EapAkaTypeData(EAP_AKA_IDENTITY, new LinkedHashMap<>())); in testProcessWithoutIdentityRequestAttributes()
107 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMultipleIdentityRequestAttributes()
108 new DecodeResult<>( in testProcessMultipleIdentityRequestAttributes()
126 DecodeResult<EapAkaTypeData> decodeResult = in testProcessImsiUnavailable()
127 new DecodeResult<>( in testProcessImsiUnavailable()
151 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
[all …]
DEapAkaChallengeStateTest.java77 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
179 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtRand()
180 new DecodeResult<>( in testProcessMissingAtRand()
199 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtAutn()
200 new DecodeResult<>( in testProcessMissingAtAutn()
219 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtMac()
220 new DecodeResult<>( in testProcessMissingAtMac()
280 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIccAuthenticationNullResponse()
281 new DecodeResult<>( in testProcessIccAuthenticationNullResponse()
314 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIccAuthenticationInvalidTag()
[all …]
DEapAkaPrimeChallengeStateTest.java60 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
118 DecodeResult<EapAkaTypeData> decodeResult = in testTransitionWithEapIdentity()
119 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testTransitionWithEapIdentity()
139 DecodeResult<EapAkaTypeData> decodeResult = in testTransitionWithEapAkaPrimeIdentity()
140 new DecodeResult<>( in testTransitionWithEapAkaPrimeIdentity()
154 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testTransitionWithEapAkaPrimeIdentity()
176 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtKdf()
177 new DecodeResult<>( in testProcessMissingAtKdf()
198 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtKdfInput()
199 new DecodeResult<>( in testProcessMissingAtKdfInput()
[all …]
DEapAkaPrimeCreatedStateTest.java38 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
53 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToIdentityState()
54 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_IDENTITY, new ArrayList<>())); in testProcessTransitionToIdentityState()
73 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
74 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testProcessTransitionToChallengeState()
DEapAkaPrimeIdentityStateTest.java42 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
65 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIdentityRequest()
66 new DecodeResult<>( in testProcessIdentityRequest()
86 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
87 new DecodeResult<>(new EapAkaPrimeTypeData(EAP_AKA_CHALLENGE, new ArrayList<>())); in testProcessTransitionToChallengeState()
DEapAkaCreatedStateTest.java43 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
60 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToIdentityState()
61 new DecodeResult<>(new EapAkaTypeData(EAP_AKA_IDENTITY, new LinkedHashMap<>())); in testProcessTransitionToIdentityState()
80 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState()
81 new DecodeResult<>(new EapAkaTypeData(EAP_AKA_CHALLENGE, new LinkedHashMap<>())); in testProcessTransitionToChallengeState()
DEapSimMethodStateMachineTest.java53 import com.android.internal.net.eap.test.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()
DEapAkaMethodStateMachineTest.java55 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
122 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(notificationTypeData); in testEapAkaFailsOnMultipleAkaNotifications()
132 new DecodeResult<>( in testEapAkaFailsOnMultipleAkaNotifications()
148 decodeResult = new DecodeResult<>(notificationTypeData); in testEapAkaFailsOnMultipleAkaNotifications()
DEapSimStateTest.java50 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
122 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(typeData); in testProcessEapSimNotification()
139 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(atClientErrorCode); in testProcessInvalidDecodeResult()
DEapAkaStateTest.java52 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
125 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(typeData); in testProcessEapAkaNotification()
142 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(atClientErrorCode); in testProcessInvalidDecodeResult()
DEapSimStartStateTest.java64 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
194 DecodeResult decodeResult = new DecodeResult(eapSimTypeData); in testAddIdentityAttributeToResponseImsiUnavailable()
224 DecodeResult eapSimStartDecodeResult = in testProcessWithoutIdentityRequest()
225 new DecodeResult(new EapSimTypeData(EAP_SIM_START, mAttributes)); in testProcessWithoutIdentityRequest()
240 DecodeResult eapSimChallengeDecodeResult = in testProcessWithoutIdentityRequest()
241 new DecodeResult(new EapSimTypeData(EAP_SIM_CHALLENGE, new LinkedHashMap<>())); in testProcessWithoutIdentityRequest()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsTypeDataTest.java30 …com.android.internal.net.eap.test.message.ttls.EapTtlsTypeData.EapTtlsTypeDataDecoder.DecodeResult;
58 DecodeResult result = in testDecodeResult_successfulDecode()
59 new DecodeResult( in testDecodeResult_successfulDecode()
72 DecodeResult result = new DecodeResult(new EapError(new Exception())); in testDecodeResult_unsuccessfulDecode()
79 DecodeResult decodeResult = mTypeDataDecoder.decodeEapTtlsRequestPacket(EAP_TTLS_REQUEST); in testDecodeEapTtlsRequest()
93 DecodeResult decodeResult = in testDecodeEapTtlsRequest_incorrectMessageLength()
103 DecodeResult decodeResult = in testDecodeEapTtlsStart()
/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/message/mschapv2/
DEapMsChapV2SuccessRequestTest.java44 …internal.net.eap.test.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 …internal.net.eap.test.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 …internal.net.eap.test.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 …internal.net.eap.test.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.java119 protected DecodeResult decode(@NonNull byte[] packet) { in decode()
124 return new DecodeResult(new EapError( in decode()
146 return new DecodeResult(new EapError(cause)); in decode()
152 return new DecodeResult(new EapError(cause)); in decode()
155 return new DecodeResult(eapMessage); in decode()
157 return new DecodeResult( in decode()
161 return new DecodeResult(new EapError(ex)); in decode()
165 protected final class DecodeResult { class in EapStateMachine.EapState
169 public DecodeResult(EapMessage eapMessage) { in DecodeResult() method in EapStateMachine.EapState.DecodeResult
174 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/simaka/
DEapSimTypeDataTest.java39 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
92 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(EAP_SIM_START_SUBTYPE); in testDecode()
112 DecodeResult<EapSimTypeData> result = in testDecodeEncode()
121 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(null); in testDecodeNullTypeData()
128 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(INVALID_SUBTYPE); in testDecodeInvalidSubtype()
135 DecodeResult<EapSimTypeData> result = in testDecodeInvalidAtRand()
143 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(SHORT_TYPE_DATA); in testDecodeShortPacket()
150 DecodeResult<EapSimTypeData> result = in testDecodeInvalidEapAttribute()
169 DecodeResult<EapSimTypeData> result = in testDecodeDuplicateAttributes()
DEapAkaTypeDataTest.java48 import com.android.internal.net.eap.test.message.simaka.EapSimAkaTypeData.DecodeResult;
87 DecodeResult<EapAkaTypeData> result = in testDecode()
110 DecodeResult<EapAkaTypeData> result = mEapAkaTypeDataDecoder.decode(EAP_AKA_REQUEST); in testDecodeEncode()
118 DecodeResult<EapAkaTypeData> result = mEapAkaTypeDataDecoder.decode(EAP_AKA_REQUEST); in testDecodeWithOptionalAttributes()
152 DecodeResult<EapAkaTypeData> result = mEapAkaTypeDataDecoder.decode(INVALID_SUBTYPE); in testDecodeInvalidSubtype()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsTypeData.java216 public DecodeResult decodeEapTtlsRequestPacket(byte[] eapTypeData) { in decodeEapTtlsRequestPacket()
219 return new DecodeResult(new EapTtlsTypeData(buffer)); in decodeEapTtlsRequestPacket()
221 return new DecodeResult(new EapError(e)); in decodeEapTtlsRequestPacket()
229 public static class DecodeResult { class in EapTtlsTypeData.EapTtlsTypeDataDecoder
233 public DecodeResult(EapTtlsTypeData eapTypeData) { in DecodeResult() method in EapTtlsTypeData.EapTtlsTypeDataDecoder.DecodeResult
238 public DecodeResult(EapError eapError) { in DecodeResult() method in EapTtlsTypeData.EapTtlsTypeDataDecoder.DecodeResult
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java59 import com.android.internal.net.ipsec.test.ike.message.IkeMessage.DecodeResult;
287 DecodeResult decodeResult, byte[] firstPacket) throws Exception { in verifyDecodeResultOkAndGetMessage()
298 DecodeResult decodeResult, int decodeStatus, byte[] firstPacket) throws Exception { in verifyDecodeResultErrorAndGetIkeException()
312 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeIkeMessage()
330 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeMessageWithUnsupportedUncriticalPayload()
384 DecodeResult decodeResult = in testDecodeEncryptedMessage()
400 DecodeResult decodeResult = in testDecodeEncryptedMessageWithWrongId()
420 DecodeResult decodeResult = in testDecodeEncryptedMessageWithWrongChecksum()
442 DecodeResult decodeResult = in testDecryptFail()
469 DecodeResult decodeResult = in testParsingErrorInEncryptedMessage()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java159 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode()
175 public static DecodeResult decode( in decode()
525 DecodeResult decode(int expectedMsgId, IkeHeader ikeHeader, byte[] packet); in decode()
539 DecodeResult decode( in decode()
688 public DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode()
715 public DecodeResult decode( in decode()
734 private DecodeResult decode( in decode()
964 public abstract static class DecodeResult { class in IkeMessage
968 protected DecodeResult(int status) { in DecodeResult() method in IkeMessage.DecodeResult
974 public static class DecodeResultOk extends DecodeResult {
[all …]

12