Home
last modified time | relevance | path

Searched refs:inputBuffer (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/
DIkeDeletePayloadTest.java43 ByteBuffer inputBuffer = in testDecodeDeleteIkePayload() local
48 IkePayload.PAYLOAD_TYPE_DELETE, false /*is request*/, inputBuffer) in testDecodeDeleteIkePayload()
62 ByteBuffer inputBuffer = in testDecodeDeleteChildPayload() local
67 IkePayload.PAYLOAD_TYPE_DELETE, false /*is request*/, inputBuffer) in testDecodeDeleteChildPayload()
88 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidProtocol() local
92 IkePayload.PAYLOAD_TYPE_DELETE, false /*is request*/, inputBuffer); in testDecodeWithInvalidProtocol()
103 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidSpiSize() local
107 IkePayload.PAYLOAD_TYPE_DELETE, false /*is request*/, inputBuffer); in testDecodeWithInvalidSpiSize()
118 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidNumSpi() local
122 IkePayload.PAYLOAD_TYPE_DELETE, false /*is request*/, inputBuffer); in testDecodeWithInvalidNumSpi()
[all …]
DIkeSaPayloadTest.java176 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeAttribute() local
178 Pair<Attribute, Integer> pair = Attribute.readFrom(inputBuffer); in testDecodeAttribute()
199 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEncryptionTransform() local
205 Transform transform = Transform.readFrom(inputBuffer); in testDecodeEncryptionTransform()
215 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEncryptionTransformWithInvalidKeyLength() local
225 Transform.readFrom(inputBuffer); in testDecodeEncryptionTransformWithInvalidKeyLength()
262 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodePrfTransform() local
268 Transform transform = Transform.readFrom(inputBuffer); in testDecodePrfTransform()
297 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeIntegrityTransform() local
303 Transform transform = Transform.readFrom(inputBuffer); in testDecodeIntegrityTransform()
[all …]
DIkeIdPayloadTest.java93 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv4AddrIdPayload() local
94 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_AUTH, inputBuffer); in testConstructAndEncodeIpv4AddrIdPayload()
98 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeIpv4AddrIdPayload()
106 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv6AddrIdPayload() local
107 payload.encodeToByteBuffer(IkePayload.PAYLOAD_TYPE_AUTH, inputBuffer); in testConstructAndEncodeIpv6AddrIdPayload()
111 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeIpv6AddrIdPayload()
DIkeTsPayloadTest.java33 ByteBuffer inputBuffer = in testDecodeTsInitiatorPayload() local
38 IkePayload.PAYLOAD_TYPE_TS_INITIATOR, false, inputBuffer) in testDecodeTsInitiatorPayload()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/
DIkeDeletePayload.java56 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeDeletePayload() local
58 protocolId = Byte.toUnsignedInt(inputBuffer.get()); in IkeDeletePayload()
59 spiSize = inputBuffer.get(); in IkeDeletePayload()
60 numSpi = Short.toUnsignedInt(inputBuffer.getShort()); in IkeDeletePayload()
68 || inputBuffer.remaining() != 0) { in IkeDeletePayload()
76 || inputBuffer.remaining() != SPI_LEN_IPSEC * numSpi) { in IkeDeletePayload()
81 spisToDelete[i] = inputBuffer.getInt(); in IkeDeletePayload()
DIkeSaPayload.java63 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeSaPayload() local
65 while (inputBuffer.hasRemaining()) { in IkeSaPayload()
66 Proposal proposal = Proposal.readFrom(inputBuffer); in IkeSaPayload()
176 Transform[] decodeTransforms(int count, ByteBuffer inputBuffer) throws IkeException; in decodeTransforms() argument
202 public Transform[] decodeTransforms(int count, ByteBuffer inputBuffer)
206 Transform transform = Transform.readFrom(inputBuffer);
245 static Proposal readFrom(ByteBuffer inputBuffer) throws IkeException { in readFrom() argument
246 byte isLast = inputBuffer.get(); in readFrom()
252 inputBuffer.get(new byte[PROPOSAL_RESERVED_FIELD_LEN]); in readFrom()
254 int length = Short.toUnsignedInt(inputBuffer.getShort()); in readFrom()
[all …]
DIkeTsPayload.java46 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeTsPayload() local
47 numTs = Byte.toUnsignedInt(inputBuffer.get()); in IkeTsPayload()
49 inputBuffer.get(new byte[TS_HEADER_RESERVED_LEN]); in IkeTsPayload()
52 byte[] tsBytes = new byte[inputBuffer.remaining()]; in IkeTsPayload()
53 inputBuffer.get(tsBytes); in IkeTsPayload()
DIkeEncryptedPayloadBody.java61 ByteBuffer inputBuffer = ByteBuffer.wrap(message); in IkeEncryptedPayloadBody() local
65 inputBuffer.get(tempArray); in IkeEncryptedPayloadBody()
81 inputBuffer.get(mIv).get(mEncryptedAndPaddedData).get(mIntegrityChecksum); in IkeEncryptedPayloadBody()
174 ByteBuffer inputBuffer = ByteBuffer.wrap(dataToAuthenticate); in calculateChecksum() local
175 integrityMac.update(inputBuffer); in calculateChecksum()
201 ByteBuffer inputBuffer = ByteBuffer.allocate(paddedDataLength); in encrypt() local
202 inputBuffer.put(dataToEncrypt).put(padding).put((byte) padLength); in encrypt()
203 inputBuffer.rewind(); in encrypt()
209 encryptCipher.doFinal(inputBuffer, outputBuffer); in encrypt()
223 ByteBuffer inputBuffer = ByteBuffer.wrap(encryptedData); in decrypt() local
[all …]
DIkeNotifyPayload.java104 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeNotifyPayload() local
106 protocolId = Byte.toUnsignedInt(inputBuffer.get()); in IkeNotifyPayload()
107 spiSize = inputBuffer.get(); in IkeNotifyPayload()
108 notifyType = Short.toUnsignedInt(inputBuffer.getShort()); in IkeNotifyPayload()
115 spi = inputBuffer.getInt(); in IkeNotifyPayload()
127 inputBuffer.get(notifyData); in IkeNotifyPayload()
DIkeAuthDigitalSignPayload.java105 ByteBuffer inputBuffer = ByteBuffer.wrap(authData); in IkeAuthDigitalSignPayload() local
108 int signAlgoLen = Byte.toUnsignedInt(inputBuffer.get()); in IkeAuthDigitalSignPayload()
110 inputBuffer.get(signAlgoBytes); in IkeAuthDigitalSignPayload()
115 inputBuffer.get(signature); in IkeAuthDigitalSignPayload()
DIkeIdPayload.java63 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeIdPayload() local
64 int idType = Byte.toUnsignedInt(inputBuffer.get()); in IkeIdPayload()
67 inputBuffer.get(new byte[ID_HEADER_RESERVED_LEN]); in IkeIdPayload()
70 inputBuffer.get(idData); in IkeIdPayload()
DIkeCertPayload.java63 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in getIkeCertPayload() local
65 int certEncodingType = Byte.toUnsignedInt(inputBuffer.get()); in getIkeCertPayload()
67 inputBuffer.get(certData); in getIkeCertPayload()
DIkeAuthPayload.java71 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in getIkeAuthPayload() local
73 int authMethod = Byte.toUnsignedInt(inputBuffer.get()); in getIkeAuthPayload()
76 inputBuffer.get(reservedField); in getIkeAuthPayload()
79 inputBuffer.get(authData); in getIkeAuthPayload()
DIkeKePayload.java102 ByteBuffer inputBuffer = ByteBuffer.wrap(payloadBody); in IkeKePayload() local
104 dhGroup = Short.toUnsignedInt(inputBuffer.getShort()); in IkeKePayload()
106 inputBuffer.getShort(); in IkeKePayload()
127 inputBuffer.get(keyExchangeData); in IkeKePayload()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/
DIkeTrafficSelector.java125 ByteBuffer inputBuffer = ByteBuffer.wrap(tsBytes); in decodeIkeTrafficSelectors() local
129 int tsType = Byte.toUnsignedInt(inputBuffer.get()); in decodeIkeTrafficSelectors()
132 tsArray[i] = decodeIpv4TrafficSelector(inputBuffer); in decodeIkeTrafficSelectors()
147 if (inputBuffer.remaining() != 0) { in decodeIkeTrafficSelectors()
157 private static IkeTrafficSelector decodeIpv4TrafficSelector(ByteBuffer inputBuffer) in decodeIpv4TrafficSelector() argument
160 int ipProtocolId = Byte.toUnsignedInt(inputBuffer.get()); in decodeIpv4TrafficSelector()
166 int tsLength = Short.toUnsignedInt(inputBuffer.getShort()); in decodeIpv4TrafficSelector()
172 int startPort = Short.toUnsignedInt(inputBuffer.getShort()); in decodeIpv4TrafficSelector()
173 int endPort = Short.toUnsignedInt(inputBuffer.getShort()); in decodeIpv4TrafficSelector()
181 inputBuffer.get(startAddressBytes); in decodeIpv4TrafficSelector()
[all …]
/frameworks/ml/nn/common/operations/
DDequantize.cpp115 const uint8_t* inputBuffer = context->getInputBuffer<uint8_t>(kInputTensor); in execute() local
117 return compute(inputBuffer, inputShape, in execute()
120 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute()
123 const int8_t* inputBuffer = context->getInputBuffer<int8_t>(kInputTensor); in execute() local
125 return compute(inputBuffer, inputShape, in execute()
128 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute()
131 const int8_t* inputBuffer = context->getInputBuffer<int8_t>(kInputTensor); in execute() local
133 return computePerChannel(inputBuffer, inputShape, in execute()
136 return computePerChannel(inputBuffer, inputShape, in execute()
/frameworks/base/core/java/android/util/
DBase64InputStream.java34 private byte[] inputBuffer; field in Base64InputStream
64 inputBuffer = new byte[BUFFER_SIZE]; in Base64InputStream()
89 inputBuffer = null; in close()
139 int bytesRead = in.read(inputBuffer); in refill()
145 success = coder.process(inputBuffer, 0, bytesRead, false); in refill()
/frameworks/av/media/libaaudio/src/flowgraph/
DRampLinear.cpp48 const float *inputBuffer = input.getBlock(); in onProcess() local
71 *outputBuffer++ = *inputBuffer++ * currentLevel; in onProcess()
81 *outputBuffer++ = *inputBuffer++ * mLevelTo; in onProcess()
DClipToRange.cpp31 const float *inputBuffer = input.getBlock(); in onProcess() local
36 *outputBuffer++ = std::min(mMaximum, std::max(mMinimum, *inputBuffer++)); in onProcess()
DMonoToMultiConverter.cpp34 const float *inputBuffer = input.getBlock(); in onProcess() local
40 float sample = *inputBuffer++; in onProcess()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DExposureFilter.java60 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local
64 inputBuffer); in onProcess()
67 inputBuffer); in onProcess()
DAvgBrightnessFilter.java55 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local
57 brightness = brightnessOperator(inputImage.getWidth(),inputImage.getHeight(), inputBuffer); in onProcess()
DContrastRatioFilter.java55 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local
58 inputBuffer); in onProcess()
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputBufferManager.cpp367 IComponentListener::InputBuffer &inputBuffer in processNotifications() local
369 inputBuffer.arrayIndex = bufferIndex; in processNotifications()
370 inputBuffer.frameIndex = frameIndex; in processNotifications()
400 for (const IComponentListener::InputBuffer& inputBuffer : in processNotifications() local
402 inputBufferLog << " (" << inputBuffer.frameIndex in processNotifications()
403 << ", " << inputBuffer.arrayIndex in processNotifications()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DToGrayValuesFilter.java108 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local
109 if (!toGrayValues(inputBuffer, grayBuffer)) { in onProcess()

12