Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/
DEapMessage.java100 @EapCode public final int eapCode; field in EapMessage
105 public EapMessage(@EapCode int eapCode, int eapIdentifier, @Nullable EapData eapData) in EapMessage() argument
107 this.eapCode = eapCode; in EapMessage()
124 int eapCode; in decode() local
129 eapCode = Byte.toUnsignedInt(buffer.get()); in decode()
133 if (eapCode == EAP_CODE_REQUEST || eapCode == EAP_CODE_RESPONSE) { in decode()
165 return new EapMessage(eapCode, eapIdentifier, eapData); in decode()
175 byteBuffer.put((byte) eapCode); in encode()
236 if (eapCode != EAP_CODE_REQUEST in validate()
237 && eapCode != EAP_CODE_RESPONSE in validate()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java137 + EAP_CODE_STRING.getOrDefault(eapMessage.eapCode, "UNKNOWN") in decode()
141 if (eapMessage.eapCode == EAP_CODE_RESPONSE) { in decode()
145 } else if (eapMessage.eapCode == EAP_CODE_REQUEST in decode()
194 if (message.eapCode != EAP_CODE_REQUEST) { in process()
225 if (message.eapCode != EAP_CODE_REQUEST) { in process()
277 if (eapMessage.eapCode == EAP_CODE_SUCCESS) { in process()
283 } else if (eapMessage.eapCode == EAP_CODE_FAILURE) { in process()
DEapMethodStateMachine.java84 if (message.eapCode == EAP_CODE_SUCCESS) { in handleEapSuccessFailureNotification()
90 } else if (message.eapCode == EAP_CODE_FAILURE) { in handleEapSuccessFailureNotification()
DEapSimAkaMethodStateMachine.java221 byte[] mac = getMac(message.eapCode, message.eapIdentifier, typeData, extraData); in isValidMac()
239 byte[] getMac(int eapCode, int eapIdentifier, EapSimAkaTypeData typeData, byte[] extraData) in getMac() argument
252 EapMessage messageForMac = new EapMessage(eapCode, eapIdentifier, eapData); in getMac()
DEapMsChapV2MethodStateMachine.java428 if (message.eapCode == EAP_CODE_FAILURE) { in process()
432 } else if (message.eapCode != EAP_CODE_SUCCESS) { in process()
DEapSimMethodStateMachine.java368 if (message.eapCode == EAP_CODE_SUCCESS) { in process()
DEapAkaMethodStateMachine.java325 if (message.eapCode == EAP_CODE_SUCCESS) { in process()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapMessageTest.java70 assertEquals(EAP_CODE_SUCCESS, result.eapCode); in testDecode()
78 assertEquals(EAP_CODE_REQUEST, result.eapCode); in testDecode()
156 assertEquals(eapMessage.eapCode, result.eapCode); in testEncodeDecode()
191 assertEquals(EAP_CODE_REQUEST, result.eapCode); in testDecodewithExtraBytes()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DMethodStateTest.java165 msg.eapCode == EAP_CODE_SUCCESS in testProcessTransitionToSuccessState()
185 msg.eapCode == EAP_CODE_FAILURE in testProcessTransitionToFailureState()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/
DEapResult.java84 } else if (message.eapCode != EapMessage.EAP_CODE_RESPONSE) { in getEapResponse()