Home
last modified time | relevance | path

Searched refs:numTs (Results 1 – 4 of 4) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeTrafficSelectorTest.java99 int numTs = 2; in testDecodeIkeTrafficSelectors() local
104 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectors()
106 assertEquals(numTs, selectors.length); in testDecodeIkeTrafficSelectors()
180 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsType() local
185 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidTsType()
194 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidIpProtocol() local
199 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
208 int numTs = 1; in testDecodeIkeTrafficSelectorWithExpectedTrailing() local
212 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithExpectedTrailing()
221 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsLength() local
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayload.java44 public final int numTs; field in IkeTsPayload
53 numTs = Byte.toUnsignedInt(inputBuffer.get()); in IkeTsPayload()
54 if (numTs == 0) { in IkeTsPayload()
64 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()
81 numTs = ikeTrafficSelectors.length; in IkeTsPayload()
121 byteBuffer.put((byte) numTs).put(new byte[TS_HEADER_RESERVED_LEN]); in encodeToByteBuffer()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeTrafficSelector.java236 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors() argument
238 IkeTrafficSelector[] tsArray = new IkeTrafficSelector[numTs]; in decodeIkeTrafficSelectors()
242 for (int i = 0; i < numTs; i++) { in decodeIkeTrafficSelectors()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayloadTest.java87 assertEquals(NUMBER_OF_TS, tsPayload.numTs); in testDecodeTsInitiatorPayload()