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.java100 int numTs = 2; in testDecodeIkeTrafficSelectors() local
105 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectors()
107 assertEquals(numTs, selectors.length); in testDecodeIkeTrafficSelectors()
197 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsType() local
202 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidTsType()
211 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidIpProtocol() local
216 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
225 int numTs = 1; in testDecodeIkeTrafficSelectorWithExpectedTrailing() local
229 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithExpectedTrailing()
238 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsLength() local
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayload.java43 public final int numTs; field in IkeTsPayload
52 numTs = Byte.toUnsignedInt(inputBuffer.get()); in IkeTsPayload()
53 if (numTs == 0) { in IkeTsPayload()
63 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()
80 numTs = ikeTrafficSelectors.length; in IkeTsPayload()
120 byteBuffer.put((byte) numTs).put(new byte[TS_HEADER_RESERVED_LEN]); in encodeToByteBuffer()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeTrafficSelector.java279 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors() argument
281 IkeTrafficSelector[] tsArray = new IkeTrafficSelector[numTs]; in decodeIkeTrafficSelectors()
285 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()