/external/oboe/src/common/ |
D | FixedBlockReader.cpp | 38 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/ |
D | BoundedSeekableByteChannelInputStream.java | 60 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/ |
D | RegularFile.java | 475 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/ |
D | BoundedInputStream.java | 57 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/ |
D | DtsReader.java | 110 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()
|
D | MpegAudioReader.java | 170 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()
|
D | Ac4Reader.java | 133 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()
|
D | Ac3Reader.java | 134 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()
|
D | PesReader.java | 173 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()
|
D | AdtsReader.java | 216 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()
|
D | LatmReader.java | 106 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/ |
D | OkHttpDataSource.java | 77 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/ |
D | DefaultHttpDataSource.java | 92 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()
|
D | UdpDataSource.java | 140 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()
|
D | AssetDataSource.java | 105 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() local 107 bytesRead = castNonNull(inputStream).read(buffer, offset, bytesToRead); in read()
|
D | ContentDataSource.java | 118 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() local 120 bytesRead = castNonNull(inputStream).read(buffer, offset, bytesToRead); in read()
|
D | RawResourceDataSource.java | 144 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/ |
D | Relay.java | 115 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/ |
D | FrontBufferedStreamTest.cpp | 21 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/ |
D | FrontBufferedStreamTest.cpp | 17 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/ |
D | PgsDecoder.java | 185 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/ |
D | WavExtractor.java | 256 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/ |
D | SkRawCodec.cpp | 364 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/ |
D | SkRawCodec.cpp | 364 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/ |
D | AbstractLZ77CompressorInputStream.java | 236 private void tryToReadLiteral(int bytesToRead) throws IOException { in tryToReadLiteral() argument 238 final int reallyTryToRead = Math.min((int) Math.min(bytesToRead, bytesRemaining), in tryToReadLiteral()
|