Home
last modified time | relevance | path

Searched refs:bytesToRead (Results 1 – 25 of 32) sorted by relevance

12

/external/oboe/src/common/
DFixedBlockReader.cpp38 int32_t bytesToRead = numBytes; in readFromStorage() local
40 if (bytesToRead > dataAvailable) { in readFromStorage()
41 bytesToRead = dataAvailable; in readFromStorage()
43 memcpy(buffer, mStorage.get() + mPosition, bytesToRead); in readFromStorage()
44 mPosition += bytesToRead; in readFromStorage()
45 return bytesToRead; in readFromStorage()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DBoundedSeekableByteChannelInputStream.java60 int bytesToRead = len; in read() local
61 if (bytesToRead > bytesRemaining) { in read()
62 bytesToRead = (int) bytesRemaining; in read()
66 if (bytesToRead <= buffer.capacity()) { in read()
68 bytesRead = read(bytesToRead); in read()
70 buf = ByteBuffer.allocate(bytesToRead); in read()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DRegularFile.java475 int bytesToRead = (int) bytesToRead(pos, len); in read() local
477 if (bytesToRead > 0) { in read()
478 int remaining = bytesToRead; in read()
498 return bytesToRead; in read()
508 int bytesToRead = (int) bytesToRead(pos, buf.remaining()); in read() local
510 if (bytesToRead > 0) { in read()
511 int remaining = bytesToRead; in read()
526 return bytesToRead; in read()
560 long bytesToRead = bytesToRead(pos, count); in transferTo() local
562 if (bytesToRead > 0) { in transferTo()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DBoundedInputStream.java57 int bytesToRead = len; in read() local
58 if (bytesToRead > bytesRemaining) { in read()
59 bytesToRead = (int) bytesRemaining; in read()
61 final int bytesRead = in.read(b, off, bytesToRead); in read()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DDtsReader.java110 int bytesToRead = Math.min(data.bytesLeft(), sampleSize - bytesRead); in consume() local
111 output.sampleData(data, bytesToRead); in consume()
112 bytesRead += bytesToRead; in consume()
140 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead() local
141 source.readBytes(target, bytesRead, bytesToRead); in continueRead()
142 bytesRead += bytesToRead; in continueRead()
DMpegAudioReader.java170 int bytesToRead = Math.min(source.bytesLeft(), HEADER_SIZE - frameBytesRead); in readHeaderRemainder() local
171 source.readBytes(headerScratch.data, frameBytesRead, bytesToRead); in readHeaderRemainder()
172 frameBytesRead += bytesToRead; in readHeaderRemainder()
222 int bytesToRead = Math.min(source.bytesLeft(), frameSize - frameBytesRead); in readFrameRemainder() local
223 output.sampleData(source, bytesToRead); in readFrameRemainder()
224 frameBytesRead += bytesToRead; in readFrameRemainder()
DAc4Reader.java133 int bytesToRead = Math.min(data.bytesLeft(), sampleSize - bytesRead); in consume() local
134 output.sampleData(data, bytesToRead); in consume()
135 bytesRead += bytesToRead; in consume()
163 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead() local
164 source.readBytes(target, bytesRead, bytesToRead); in continueRead()
165 bytesRead += bytesToRead; in continueRead()
DAc3Reader.java134 int bytesToRead = Math.min(data.bytesLeft(), sampleSize - bytesRead); in consume() local
135 output.sampleData(data, bytesToRead); in consume()
136 bytesRead += bytesToRead; in consume()
164 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead() local
165 source.readBytes(target, bytesRead, bytesToRead); in continueRead()
166 bytesRead += bytesToRead; in continueRead()
DPesReader.java173 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead() local
174 if (bytesToRead <= 0) { in continueRead()
177 source.skipBytes(bytesToRead); in continueRead()
179 source.readBytes(target, bytesRead, bytesToRead); in continueRead()
181 bytesRead += bytesToRead; in continueRead()
DAdtsReader.java216 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead() local
217 source.readBytes(target, bytesRead, bytesToRead); in continueRead()
218 bytesRead += bytesToRead; in continueRead()
534 int bytesToRead = Math.min(data.bytesLeft(), sampleSize - bytesRead); in readSample() local
535 currentOutput.sampleData(data, bytesToRead); in readSample()
536 bytesRead += bytesToRead; in readSample()
DLatmReader.java106 int bytesToRead; in consume() local
132 bytesToRead = Math.min(data.bytesLeft(), sampleSize - bytesRead); in consume()
133 data.readBytes(sampleBitArray.data, bytesRead, bytesToRead); in consume()
134 bytesRead += bytesToRead; in consume()
/external/exoplayer/tree/extensions/okhttp/src/main/java/com/google/android/exoplayer2/ext/okhttp/
DOkHttpDataSource.java77 private long bytesToRead; field in OkHttpDataSource
258 bytesToRead = dataSpec.length; in open()
261 bytesToRead = contentLength != -1 ? (contentLength - bytesToSkip) : C.LENGTH_UNSET; in open()
267 return bytesToRead; in open()
319 return bytesToRead == C.LENGTH_UNSET ? bytesToRead : bytesToRead - bytesRead; in bytesRemaining()
420 if (bytesToRead != C.LENGTH_UNSET) { in readInternal()
421 long bytesRemaining = bytesToRead - bytesRead; in readInternal()
430 if (bytesToRead != C.LENGTH_UNSET) { in readInternal()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultHttpDataSource.java92 private long bytesToRead; field in DefaultHttpDataSource
324 bytesToRead = dataSpec.length; in open()
327 bytesToRead = contentLength != C.LENGTH_UNSET ? (contentLength - bytesToSkip) in open()
334 bytesToRead = dataSpec.length; in open()
350 return bytesToRead; in open()
423 return bytesToRead == C.LENGTH_UNSET ? bytesToRead : bytesToRead - bytesRead; in bytesRemaining()
689 if (bytesToRead != C.LENGTH_UNSET) { in readInternal()
690 long bytesRemaining = bytesToRead - bytesRead; in readInternal()
699 if (bytesToRead != C.LENGTH_UNSET) { in readInternal()
DUdpDataSource.java140 int bytesToRead = Math.min(packetRemaining, readLength); in read() local
141 System.arraycopy(packetBuffer, packetOffset, buffer, offset, bytesToRead); in read()
142 packetRemaining -= bytesToRead; in read()
143 return bytesToRead; in read()
DAssetDataSource.java105 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() local
107 bytesRead = castNonNull(inputStream).read(buffer, offset, bytesToRead); in read()
DContentDataSource.java118 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() local
120 bytesRead = castNonNull(inputStream).read(buffer, offset, bytesToRead); in read()
DRawResourceDataSource.java144 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() local
146 bytesRead = castNonNull(inputStream).read(buffer, offset, bytesToRead); in read()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DRelay.java115 int bytesToRead; in run() local
122 bytesToRead = byteBuffer.capacity() - byteBuffer.limit(); in run()
124 bytesRead = transport.read(byteArray, offset, bytesToRead); in run()
/external/skia/tests/
DFrontBufferedStreamTest.cpp21 const void* expectations, size_t bytesToRead) { in test_read() argument
23 SkAutoMalloc storage(bytesToRead); in test_read()
25 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read()
26 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
/external/skqp/tests/
DFrontBufferedStreamTest.cpp17 const void* expectations, size_t bytesToRead) { in test_read() argument
19 SkAutoMalloc storage(bytesToRead); in test_read()
21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read()
22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/pgs/
DPgsDecoder.java185 int bytesToRead = Math.min(sectionLength, limit - position); in parseBitmapSection() local
186 buffer.readBytes(bitmapData.data, position, bytesToRead); in parseBitmapSection()
187 bitmapData.setPosition(position + bytesToRead); in parseBitmapSection()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavExtractor.java256 int bytesToRead = (int) Math.min(targetSampleSizeBytes - pendingOutputBytes, bytesLeft); in sampleData() local
257 int bytesAppended = trackOutput.sampleData(input, bytesToRead, true); in sampleData()
408 int bytesToRead = (int) Math.min(targetReadBytes - pendingInputBytes, bytesLeft); in sampleData() local
409 int bytesAppended = input.read(inputData, pendingInputBytes, bytesToRead); in sampleData()
/external/skia/src/codec/
DSkRawCodec.cpp364 const size_t bytesToRead = std::min(sum, fStream->getLength()) - offset; in transferBuffer() local
365 if (bytesToRead == 0) { in transferBuffer()
371 static_cast<const uint8_t*>(fStream->getMemoryBase()) + offset, bytesToRead)); in transferBuffer()
375 sk_sp<SkData> data(SkData::MakeUninitialized(bytesToRead)); in transferBuffer()
379 const size_t bytesRead = fStream->read(data->writable_data(), bytesToRead); in transferBuffer()
380 if (bytesRead < bytesToRead) { in transferBuffer()
/external/skqp/src/codec/
DSkRawCodec.cpp364 const size_t bytesToRead = SkTMin(sum, fStream->getLength()) - offset; in transferBuffer() local
365 if (bytesToRead == 0) { in transferBuffer()
371 static_cast<const uint8_t*>(fStream->getMemoryBase()) + offset, bytesToRead)); in transferBuffer()
375 sk_sp<SkData> data(SkData::MakeUninitialized(bytesToRead)); in transferBuffer()
379 const size_t bytesRead = fStream->read(data->writable_data(), bytesToRead); in transferBuffer()
380 if (bytesRead < bytesToRead) { in transferBuffer()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DAbstractLZ77CompressorInputStream.java236 private void tryToReadLiteral(int bytesToRead) throws IOException { in tryToReadLiteral() argument
238 final int reallyTryToRead = Math.min((int) Math.min(bytesToRead, bytesRemaining), in tryToReadLiteral()

12