Home
last modified time | relevance | path

Searched refs:bytesConsumed (Results 1 – 25 of 27) sorted by relevance

12

/external/libhevc/fuzzer/
Dhevc_dec_fuzzer.cpp87 size_t *bytesConsumed);
301 size_t *bytesConsumed) { in decodeFrame() argument
326 *bytesConsumed = dec_op.u4_num_bytes_consumed; in decodeFrame()
330 if (!*bytesConsumed) *bytesConsumed = 4; in decodeFrame()
366 size_t bytesConsumed; in LLVMFuzzerTestOneInput() local
367 ret = codec->decodeFrame(data, size, &bytesConsumed); in LLVMFuzzerTestOneInput()
369 bytesConsumed = std::min(size, bytesConsumed); in LLVMFuzzerTestOneInput()
370 data += bytesConsumed; in LLVMFuzzerTestOneInput()
371 size -= bytesConsumed; in LLVMFuzzerTestOneInput()
Dhevc_enc_fuzzer.cpp157 size_t bytesConsumed = std::min(size, frameSize); in encodeFrames() local
158 if (bytesConsumed < frameSize) { in encodeFrames()
159 memset(&tmpData[bytesConsumed], data[0], frameSize - bytesConsumed); in encodeFrames()
161 memcpy(tmpData, data, bytesConsumed); in encodeFrames()
194 data += bytesConsumed; in encodeFrames()
195 size -= bytesConsumed; in encodeFrames()
/external/libavc/fuzzer/
Davc_dec_fuzzer.cpp87 size_t *bytesConsumed);
296 size_t *bytesConsumed) { in decodeFrame() argument
321 *bytesConsumed = dec_op.u4_num_bytes_consumed; in decodeFrame()
325 if (!*bytesConsumed) *bytesConsumed = 4; in decodeFrame()
361 size_t bytesConsumed; in LLVMFuzzerTestOneInput() local
362 ret = codec->decodeFrame(data, size, &bytesConsumed); in LLVMFuzzerTestOneInput()
364 bytesConsumed = std::min(size, bytesConsumed); in LLVMFuzzerTestOneInput()
365 data += bytesConsumed; in LLVMFuzzerTestOneInput()
366 size -= bytesConsumed; in LLVMFuzzerTestOneInput()
Davc_enc_fuzzer.cpp880 size_t bytesConsumed = std::min(size, frameSize); in encodeFrames() local
881 if (bytesConsumed < frameSize) { in encodeFrames()
882 memset(&tmpData[bytesConsumed], data[0], frameSize - bytesConsumed); in encodeFrames()
884 memcpy(tmpData, data, bytesConsumed); in encodeFrames()
889 if (mSendEosWithLastFrame && size == bytesConsumed) { in encodeFrames()
918 data += bytesConsumed; in encodeFrames()
919 size -= bytesConsumed; in encodeFrames()
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DMockAltsHandshakerResp.java85 static HandshakerResp getOkResponse(int bytesConsumed) { in getOkResponse() argument
88 resp.setBytesConsumed(bytesConsumed); in getOkResponse()
94 static HandshakerResp getEmptyOutFrameResponse(int bytesConsumed) { in getEmptyOutFrameResponse() argument
96 resp.setBytesConsumed(bytesConsumed); in getEmptyOutFrameResponse()
102 static HandshakerResp getFinishedResponse(int bytesConsumed) { in getFinishedResponse() argument
112 resp.setBytesConsumed(bytesConsumed); in getFinishedResponse()
DAltsTsiTest.java171 int bytesConsumed = 0; in send() local
182 bytesConsumed = req.getServerStart().getInBytes().size(); in send()
191 return MockAltsHandshakerResp.getOkResponse(bytesConsumed); in send()
/external/libmpeg2/fuzzer/
Dmpeg2_dec_fuzzer.cpp75 size_t *bytesConsumed);
376 size_t *bytesConsumed) { in decodeFrame() argument
403 *bytesConsumed = dec_op.u4_num_bytes_consumed; in decodeFrame()
407 if (!*bytesConsumed) *bytesConsumed = 4; in decodeFrame()
443 size_t bytesConsumed; in LLVMFuzzerTestOneInput() local
444 ret = codec->decodeFrame(data, size, &bytesConsumed); in LLVMFuzzerTestOneInput()
446 bytesConsumed = std::min(size, bytesConsumed); in LLVMFuzzerTestOneInput()
447 data += bytesConsumed; in LLVMFuzzerTestOneInput()
448 size -= bytesConsumed; in LLVMFuzzerTestOneInput()
/external/libxaac/fuzzer/
Dxaac_dec_fuzzer.cpp63 int32_t* bytesConsumed);
67 int32_t* bytesConsumed, int32_t* outBytes);
325 int32_t* bytesConsumed) { in configXAACDecoder() argument
357 mXheaacCodecHandle, IA_API_CMD_GET_CURIDX_INPUT_BUF, 0, bytesConsumed); in configXAACDecoder()
639 int32_t* bytesConsumed, in decodeXAACStream() argument
646 configXAACDecoder(inBuffer, inBufferLength, bytesConsumed); in decodeXAACStream()
703 mXheaacCodecHandle, IA_API_CMD_GET_CURIDX_INPUT_BUF, 0, bytesConsumed); in decodeXAACStream()
858 int32_t bytesConsumed = 0; in LLVMFuzzerTestOneInput() local
859 status = codec->configXAACDecoder((uint8_t*)data, size, &bytesConsumed); in LLVMFuzzerTestOneInput()
860 while ((int32_t)size > bytesConsumed) { in LLVMFuzzerTestOneInput()
[all …]
/external/skia/modules/skshaper/src/
DSkShaper_primitive.cpp186 size_t bytesConsumed = linebreak(utf8, utf8 + utf8Bytes, font, width, in shape() local
188 size_t bytesVisible = bytesConsumed - bytesCollapsed; in shape()
220 glyphOffset += SkUTF::CountUTF8(utf8, bytesConsumed); in shape()
221 utf8Offset += bytesConsumed; in shape()
222 utf8 += bytesConsumed; in shape()
223 utf8Bytes -= bytesConsumed; in shape()
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscryptEngine.java827 int bytesConsumed = 0;
841 bytesConsumed += written;
891 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
900 bytesConsumed, bytesProduced);
917 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
936 bytesConsumed, bytesProduced);
939 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
1221 private SSLEngineResult readPendingBytesFromBIO(ByteBuffer dst, int bytesConsumed,
1233 bytesConsumed, bytesProduced);
1252 bytesConsumed, bytesProduced);
[all …]
DConscryptEngineSocket.java668 len -= engineResult.bytesConsumed();
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DConscryptEngine.java824 int bytesConsumed = 0;
838 bytesConsumed += written;
888 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
897 bytesConsumed, bytesProduced);
914 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
933 bytesConsumed, bytesProduced);
936 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
1218 private SSLEngineResult readPendingBytesFromBIO(ByteBuffer dst, int bytesConsumed,
1230 bytesConsumed, bytesProduced);
1249 bytesConsumed, bytesProduced);
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGzipInflatingBuffer.java76 bytesConsumed += 1; in readUnsignedByte()
109 bytesConsumed += length; in skipBytes()
179 private int bytesConsumed = 0; field in GzipInflatingBuffer
232 int savedBytesConsumed = bytesConsumed; in getAndResetBytesConsumed()
233 bytesConsumed = 0; in getAndResetBytesConsumed()
420 bytesConsumed += bytesConsumedDelta; in inflate()
/external/flac/fuzzer/
Dflac_enc_fuzzer.cpp192 const size_t bytesConsumed = std::min(kFramesPerBlock * frameSize, size); in encodeFrames() local
193 const unsigned inputFrames = bytesConsumed / frameSize; in encodeFrames()
206 data += bytesConsumed; in encodeFrames()
207 size -= bytesConsumed; in encodeFrames()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DDefaultExtractorInput.java248 private void updatePeekBuffer(int bytesConsumed) { in updatePeekBuffer() argument
249 peekBufferLength -= bytesConsumed; in updatePeekBuffer()
255 System.arraycopy(peekBuffer, bytesConsumed, newPeekBuffer, 0, peekBufferLength); in updatePeekBuffer()
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DEngineWrapBenchmark.java152 if (result.bytesConsumed() != src.limit()) { in verifyResult()
156 src.limit(), result.bytesConsumed())); in verifyResult()
/external/conscrypt/repackaged/benchmark-base/src/main/java/com/android/org/conscrypt/
DEngineWrapBenchmark.java154 if (result.bytesConsumed() != src.limit()) { in verifyResult()
158 src.limit(), result.bytesConsumed())); in verifyResult()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DTestSSLEnginePair.java191 … assertEquals(input.position() - inputPositionBefore, unwrapResult.bytesConsumed()); in handshakeStep()
206 assertEquals(0, wrapResult.bytesConsumed()); in handshakeStep()
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DTestSSLEnginePair.java195 … assertEquals(input.position() - inputPositionBefore, unwrapResult.bytesConsumed()); in handshakeStep()
210 assertEquals(0, wrapResult.bytesConsumed()); in handshakeStep()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DSSLEngineVersionCompatibilityTest.java121 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly()
168 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectlyWhenSplit()
492 assertEquals(0, res.bytesConsumed()); in test_SSLEngine_Closed()
497 assertEquals(0, res.bytesConsumed()); in test_SSLEngine_Closed()
844 assertEquals(0, result.bytesConsumed()); in sendAppDataInMultipleBuffers()
850 assertEquals(0, result.bytesConsumed()); in sendAppDataInMultipleBuffers()
865 consumed += result.bytesConsumed(); in sendAppDataInMultipleBuffers()
DSSLEngineTest.java311 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly()
358 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectlyWhenSplit()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLEngineVersionCompatibilityTest.java123 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly()
170 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectlyWhenSplit()
494 assertEquals(0, res.bytesConsumed()); in test_SSLEngine_Closed()
499 assertEquals(0, res.bytesConsumed()); in test_SSLEngine_Closed()
844 assertEquals(0, result.bytesConsumed()); in sendAppDataInMultipleBuffers()
850 assertEquals(0, result.bytesConsumed()); in sendAppDataInMultipleBuffers()
865 consumed += result.bytesConsumed(); in sendAppDataInMultipleBuffers()
DSSLEngineTest.java315 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly()
362 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectlyWhenSplit()
/external/conscrypt/testing/src/main/java/org/conscrypt/
DTestUtils.java494 assertEquals(0, clientResult.bytesConsumed()); in doEngineHandshake()
495 assertEquals(0, serverResult.bytesConsumed()); in doEngineHandshake()
524 assertEquals(serverPacketBuffer.position() - sTOcPos, clientResult.bytesConsumed()); in doEngineHandshake()
525 assertEquals(clientPacketBuffer.position() - cTOsPos, serverResult.bytesConsumed()); in doEngineHandshake()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/
DTestUtils.java500 assertEquals(0, clientResult.bytesConsumed()); in doEngineHandshake()
501 assertEquals(0, serverResult.bytesConsumed()); in doEngineHandshake()
530 assertEquals(serverPacketBuffer.position() - sTOcPos, clientResult.bytesConsumed()); in doEngineHandshake()
531 assertEquals(clientPacketBuffer.position() - cTOsPos, serverResult.bytesConsumed()); in doEngineHandshake()

12