Home
last modified time | relevance | path

Searched refs:numSpi (Results 1 – 3 of 3) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeDeletePayload.java60 public final int numSpi; field in IkeDeletePayload
81 numSpi = Short.toUnsignedInt(inputBuffer.getShort()); in IkeDeletePayload()
82 spisToDelete = new int[numSpi]; in IkeDeletePayload()
88 || numSpi != 0 in IkeDeletePayload()
96 || numSpi == 0 in IkeDeletePayload()
97 || inputBuffer.remaining() != SPI_LEN_IPSEC * numSpi) { in IkeDeletePayload()
101 for (int i = 0; i < numSpi; i++) { in IkeDeletePayload()
120 numSpi = 0; in IkeDeletePayload()
138 numSpi = spis.length; in IkeDeletePayload()
151 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) numSpi); in encodeToByteBuffer()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeDeletePayloadTest.java67 assertEquals(0, deletePayload.numSpi); in testDecodeDeleteIkePayload()
86 assertEquals(NUM_CHILD_SPI, deletePayload.numSpi); in testDecodeDeleteChildPayload()
159 assertEquals(0, deletePayload.numSpi); in testOutboundConstructorForIke()
170 assertEquals(NUM_CHILD_SPI, deletePayload.numSpi); in testOutboundConstructorWithSingleChildSa()
181 assertEquals(childSpis.length, deletePayload.numSpi); in testOutboundConstructorWithMultipleChildSas()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java3333 assertEquals(0, deletePayload.numSpi); in testRekeyIkeLocalDeleteSendsRequest()
4010 assertEquals(0, deletePayload.numSpi); in testDeleteIkeLocalDeleteRequest()