Home
last modified time | relevance | path

Searched refs:attributeType (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java141 + attr.attributeType); in validateNetmaskInReply()
143 switch (attr.attributeType) { in validateNetmaskInReply()
180 public final int attributeType; field in IkeConfigPayload.ConfigAttribute
182 protected ConfigAttribute(int attributeType) { in ConfigAttribute() argument
183 this.attributeType = attributeType; in ConfigAttribute()
186 protected ConfigAttribute(int attributeType, int len) throws InvalidSyntaxException { in ConfigAttribute() argument
187 this(attributeType); in ConfigAttribute()
205 int attributeType = Short.toUnsignedInt(inputBuffer.getShort()); in decodeAttributeFrom() local
210 switch (attributeType) { in decodeAttributeFrom()
248 "Unrecognized attribute type: " + attributeType); in decodeAttributeFrom()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java221 assertEquals(CONFIG_ATTR_INTERNAL_IP4_ADDRESS, att.attributeType); in testDecodeConfigRequest()
225 assertEquals(CONFIG_ATTR_INTERNAL_IP6_ADDRESS, att.attributeType); in testDecodeConfigRequest()
229 assertEquals(CONFIG_ATTR_INTERNAL_IP4_DNS, att.attributeType); in testDecodeConfigRequest()
233 assertEquals(CONFIG_ATTR_INTERNAL_IP6_DNS, att.attributeType); in testDecodeConfigRequest()
237 assertEquals(CONFIG_ATTR_IP4_PCSCF, att.attributeType); in testDecodeConfigRequest()
241 assertEquals(CONFIG_ATTR_IP6_PCSCF, att.attributeType); in testDecodeConfigRequest()
261 assertEquals(CONFIG_ATTR_INTERNAL_IP4_ADDRESS, att.attributeType); in testDecodeConfigResponse()
265 assertEquals(CONFIG_ATTR_INTERNAL_IP4_DNS, att.attributeType); in testDecodeConfigResponse()
270 assertEquals(CONFIG_ATTR_INTERNAL_IP4_DNS, att.attributeType); in testDecodeConfigResponse()
274 assertEquals(CONFIG_ATTR_IP4_PCSCF, att.attributeType); in testDecodeConfigResponse()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttributeFactory.java77 EapSimAkaAttribute getAttribute(int attributeType, int lengthInBytes, ByteBuffer byteBuffer) in getAttribute() argument
79 switch (attributeType) { in getAttribute()
105 if (attributeType >= SKIPPABLE_ATTRIBUTE_RANGE_START) { in getAttribute()
107 attributeType, lengthInBytes, byteBuffer); in getAttribute()
111 "Unexpected EAP Attribute=" + attributeType); in getAttribute()
124 int attributeType = Byte.toUnsignedInt(byteBuffer.get()); in getAttribute() local
128 return getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
DEapSimAkaAttribute.java115 public final int attributeType; field in EapSimAkaAttribute
118 protected EapSimAkaAttribute(int attributeType, int lengthInBytes) in EapSimAkaAttribute() argument
120 this.attributeType = attributeType; in EapSimAkaAttribute()
136 byteBuffer.put((byte) attributeType); in encodeAttributeHeader()
160 int attributeType, in EapSimAkaUnsupportedAttribute() argument
163 super(attributeType, lengthInBytes); in EapSimAkaUnsupportedAttribute()
172 public EapSimAkaUnsupportedAttribute(int attributeType, int lengthInBytes, byte[] data) in EapSimAkaUnsupportedAttribute() argument
174 super(attributeType, lengthInBytes); in EapSimAkaUnsupportedAttribute()
331 protected AtIdReq(int lengthInBytes, int attributeType, ByteBuffer byteBuffer) in AtIdReq() argument
333 super(attributeType, ATTR_LENGTH); in AtIdReq()
[all …]
DEapSimAkaTypeData.java128 if (attributeMap.containsKey(attribute.attributeType)) { in decode()
136 + attribute.attributeType); in decode()
138 attributeMap.put(attribute.attributeType, attribute); in decode()
170 for (int attributeType : eapSimAkaTypeData.attributeMap.keySet()) { in logDecodedEapSimAkaTypeData()
172 EAP_ATTRIBUTE_STRING.getOrDefault(attributeType, in logDecodedEapSimAkaTypeData()
173 "Unknown(" + attributeType + ")")); in logDecodedEapSimAkaTypeData()
DEapAkaAttributeFactory.java68 int attributeType = Byte.toUnsignedInt(byteBuffer.get()); in getAttribute() local
73 return getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
78 int attributeType, int lengthInBytes, ByteBuffer byteBuffer) in getAttribute() argument
80 switch (attributeType) { in getAttribute()
92 return super.getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
DEapAkaPrimeAttributeFactory.java63 int attributeType = Byte.toUnsignedInt(byteBuffer.get()); in getAttribute() local
68 switch (attributeType) { in getAttribute()
74 return super.getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
DEapSimTypeData.java78 if (attributeMap.containsKey(attribute.attributeType)) { in EapSimTypeData()
80 "Duplicate attribute in attributes: " + attribute.attributeType); in EapSimTypeData()
82 attributeMap.put(attribute.attributeType, attribute); in EapSimTypeData()
DEapSimAttributeFactory.java67 int attributeType = Byte.toUnsignedInt(byteBuffer.get()); in getAttribute() local
72 switch (attributeType) { in getAttribute()
84 return super.getAttribute(attributeType, lengthInBytes, byteBuffer); in getAttribute()
DEapAkaTypeData.java90 if (attributeMap.containsKey(attribute.attributeType)) { in EapAkaTypeData()
92 "Duplicate attribute in attributes: " + attribute.attributeType); in EapAkaTypeData()
94 attributeMap.put(attribute.attributeType, attribute); in EapAkaTypeData()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtMacTest.java57 assertEquals(EAP_AT_MAC, atMac.attributeType); in testConstructor()
65 assertEquals(EAP_AT_MAC, atMac.attributeType); in testParameterizedConstructor()
87 assertEquals(EAP_AT_MAC, atMac.attributeType); in testDecode()
DAtCounterTest.java62 assertEquals(EAP_AT_COUNTER, atCounter.attributeType); in testDecodeAtCounter()
89 assertEquals(EAP_AT_COUNTER_TOO_SMALL, atCounterTooSmall.attributeType); in testAtCounterTooSmallConstructor()
101 assertEquals(EAP_AT_COUNTER_TOO_SMALL, atCounterTooSmall.attributeType); in testDecodeAtCounterTooSmall()
DAtIdReqTest.java65 assertEquals(EAP_AT_PERMANENT_ID_REQ, atPermanentIdReq.attributeType); in testDecodeAtPermanentIdReq()
96 assertEquals(EAP_AT_ANY_ID_REQ, atAnyIdReq.attributeType); in testDecodeAtAnyIdReq()
127 assertEquals(EAP_AT_FULLAUTH_ID_REQ, atFullauthIdReq.attributeType); in testDecodeAtFullauthIdReq()
DAtKdfInputTest.java52 assertEquals(EAP_AT_KDF_INPUT, atKdfInput.attributeType); in testDecode()
64 assertEquals(EAP_AT_KDF_INPUT, atKdfInput.attributeType); in testDecodeEmptyNetworkName()
DAtBiddingTest.java55 assertEquals(EAP_AT_BIDDING, atBidding.attributeType); in testDecodeServerSupportsAkaPrime()
67 assertEquals(EAP_AT_BIDDING, atBidding.attributeType); in testDecodeDoesNotSupportAkaPrime()
DAtRandAkaTest.java54 assertEquals(EAP_AT_RAND, atRandAka.attributeType); in testDecode()
DAtSelectedVersionTest.java59 assertEquals(EAP_AT_SELECTED_VERSION, atSelectedVersion.attributeType); in testDecode()
DAtAutnTest.java54 assertEquals(EAP_AT_AUTN, atAutn.attributeType); in testDecode()
DAtKdfTest.java54 assertEquals(EAP_AT_KDF, atKdf.attributeType); in testDecode()
DAtPaddingTest.java57 assertEquals(EAP_AT_PADDING, atPadding.attributeType); in testDecode()
DAtAutsTest.java54 assertEquals(EAP_AT_AUTS, atAuts.attributeType); in testDecode()
DAtNonceMtTest.java68 assertEquals(EAP_AT_NONCE_MT, atNonceMt.attributeType); in testDecode()
DAtClientErrorCodeTest.java59 assertEquals(EAP_AT_CLIENT_ERROR_CODE, atClientErrorCode.attributeType); in testDecode()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSessionConfiguration.java91 if (att.attributeType == CONFIG_ATTR_INTERNAL_IP4_NETMASK && !att.isEmptyValue()) { in ChildSessionConfiguration()
98 switch (att.attributeType) { in ChildSessionConfiguration()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttributeFactoryTest.java61 assertEquals(SKIPPABLE_ATTRIBUTE_TYPE, unsupportedAttribute.attributeType); in testDecodeInvalidSkippable()

12