/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | BoundedInputStream.java | 30 private long bytesRemaining; field in BoundedInputStream 40 bytesRemaining = size; in BoundedInputStream() 45 if (bytesRemaining > 0) { in read() 46 --bytesRemaining; in read() 54 if (bytesRemaining == 0) { in read() 58 if (bytesToRead > bytesRemaining) { in read() 59 bytesToRead = (int) bytesRemaining; in read() 63 bytesRemaining -= bytesRead; in read()
|
D | ChecksumVerifyingInputStream.java | 32 private long bytesRemaining; field in ChecksumVerifyingInputStream 41 this.bytesRemaining = size; in ChecksumVerifyingInputStream() 52 if (bytesRemaining <= 0) { in read() 58 --bytesRemaining; in read() 60 if (bytesRemaining == 0 && expectedChecksum != checksum.getValue()) { in read() 88 bytesRemaining -= ret; in read() 90 if (bytesRemaining <= 0 && expectedChecksum != checksum.getValue()) { in read()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | AssetDataSource.java | 48 private long bytesRemaining; field in AssetDataSource 76 bytesRemaining = dataSpec.length; in open() 78 bytesRemaining = inputStream.available(); in open() 79 if (bytesRemaining == Integer.MAX_VALUE) { in open() 83 bytesRemaining = C.LENGTH_UNSET; in open() 92 return bytesRemaining; in open() 99 } else if (bytesRemaining == 0) { in read() 105 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() 106 : (int) Math.min(bytesRemaining, readLength); in read() 113 if (bytesRemaining != C.LENGTH_UNSET) { in read() [all …]
|
D | TeeDataSource.java | 35 private long bytesRemaining; field in TeeDataSource 53 bytesRemaining = upstream.open(dataSpec); in open() 54 if (bytesRemaining == 0) { in open() 57 if (dataSpec.length == C.LENGTH_UNSET && bytesRemaining != C.LENGTH_UNSET) { in open() 59 dataSpec = dataSpec.subrange(0, bytesRemaining); in open() 63 return bytesRemaining; in open() 68 if (bytesRemaining == 0) { in read() 75 if (bytesRemaining != C.LENGTH_UNSET) { in read() 76 bytesRemaining -= bytesRead; in read()
|
D | ContentDataSource.java | 51 private long bytesRemaining; field in ContentDataSource 85 bytesRemaining = dataSpec.length; in open() 93 bytesRemaining = channelSize == 0 ? C.LENGTH_UNSET : channelSize - channel.position(); in open() 95 bytesRemaining = assetFileDescriptorLength - skipped; in open() 105 return bytesRemaining; in open() 112 } else if (bytesRemaining == 0) { in read() 118 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() 119 : (int) Math.min(bytesRemaining, readLength); in read() 126 if (bytesRemaining != C.LENGTH_UNSET) { in read() 132 if (bytesRemaining != C.LENGTH_UNSET) { in read() [all …]
|
D | ByteArrayDataSource.java | 31 private int bytesRemaining; field in ByteArrayDataSource 49 bytesRemaining = (int) ((dataSpec.length == C.LENGTH_UNSET) in open() 51 if (bytesRemaining <= 0 || readPosition + bytesRemaining > data.length) { in open() 57 return bytesRemaining; in open() 64 } else if (bytesRemaining == 0) { in read() 68 readLength = Math.min(readLength, bytesRemaining); in read() 71 bytesRemaining -= readLength; in read()
|
D | RawResourceDataSource.java | 73 private long bytesRemaining; field in RawResourceDataSource 117 bytesRemaining = dataSpec.length; in open() 121 bytesRemaining = assetFileDescriptorLength == AssetFileDescriptor.UNKNOWN_LENGTH in open() 131 return bytesRemaining; in open() 138 } else if (bytesRemaining == 0) { in read() 144 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read() 145 : (int) Math.min(bytesRemaining, readLength); in read() 152 if (bytesRemaining != C.LENGTH_UNSET) { in read() 158 if (bytesRemaining != C.LENGTH_UNSET) { in read() 159 bytesRemaining -= bytesRead; in read()
|
D | FileDataSource.java | 73 private long bytesRemaining; field in FileDataSource 90 bytesRemaining = dataSpec.length == C.LENGTH_UNSET ? file.length() - dataSpec.position in open() 92 if (bytesRemaining < 0) { in open() 102 return bytesRemaining; in open() 109 } else if (bytesRemaining == 0) { in read() 115 castNonNull(file).read(buffer, offset, (int) Math.min(bytesRemaining, readLength)); in read() 121 bytesRemaining -= bytesRead; in read()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/ |
D | BoundedSeekableByteChannelInputStream.java | 29 private long bytesRemaining; field in BoundedSeekableByteChannelInputStream 34 this.bytesRemaining = size; in BoundedSeekableByteChannelInputStream() 44 if (bytesRemaining > 0) { in read() 45 --bytesRemaining; in read() 57 if (bytesRemaining == 0) { in read() 61 if (bytesToRead > bytesRemaining) { in read() 62 bytesToRead = (int) bytesRemaining; in read() 76 bytesRemaining -= bytesRead; in read()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | Http1xStream.java | 271 private long bytesRemaining; field in Http1xStream.FixedLengthSink 273 private FixedLengthSink(long bytesRemaining) { in FixedLengthSink() argument 274 this.bytesRemaining = bytesRemaining; in FixedLengthSink() 284 if (byteCount > bytesRemaining) { in write() 285 throw new ProtocolException("expected " + bytesRemaining in write() 289 bytesRemaining -= byteCount; in write() 300 if (bytesRemaining > 0) throw new ProtocolException("unexpected end of stream"); in close() 379 private long bytesRemaining; field in Http1xStream.FixedLengthSource 382 bytesRemaining = length; in FixedLengthSource() 383 if (bytesRemaining == 0) { in FixedLengthSource() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | CacheDataSource.java | 369 private long bytesRemaining; field in CacheDataSource 564 bytesRemaining = dataSpec.length; in open() 566 bytesRemaining = ContentMetadata.getContentLength(cache.getContentMetadata(key)); in open() 567 if (bytesRemaining != C.LENGTH_UNSET) { in open() 568 bytesRemaining -= dataSpec.position; in open() 569 if (bytesRemaining <= 0) { in open() 575 return bytesRemaining; in open() 587 if (bytesRemaining == 0) { in read() 600 if (bytesRemaining != C.LENGTH_UNSET) { in read() 601 bytesRemaining -= bytesRead; in read() [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
D | Http1xStream.java | 273 private long bytesRemaining; field in Http1xStream.FixedLengthSink 275 private FixedLengthSink(long bytesRemaining) { in FixedLengthSink() argument 276 this.bytesRemaining = bytesRemaining; in FixedLengthSink() 286 if (byteCount > bytesRemaining) { in write() 287 throw new ProtocolException("expected " + bytesRemaining in write() 291 bytesRemaining -= byteCount; in write() 302 if (bytesRemaining > 0) throw new ProtocolException("unexpected end of stream"); in close() 381 private long bytesRemaining; field in Http1xStream.FixedLengthSource 384 bytesRemaining = length; in FixedLengthSource() 385 if (bytesRemaining == 0) { in FixedLengthSource() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/ |
D | AbstractLZ77CompressorInputStream.java | 103 private long bytesRemaining; field in AbstractLZ77CompressorInputStream 139 bytesRemaining = 0; in AbstractLZ77CompressorInputStream() 206 bytesRemaining = length; in startLiteral() 214 return bytesRemaining > 0; in hasMoreDataInBlock() 238 final int reallyTryToRead = Math.min((int) Math.min(bytesToRead, bytesRemaining), in tryToReadLiteral() 248 bytesRemaining -= reallyTryToRead; in tryToReadLiteral() 277 bytesRemaining = length; in startBackReference() 299 int copy = Math.min((int) Math.min(bytesToCopy, bytesRemaining), in tryToCopy() 326 bytesRemaining -= copy; in tryToCopy()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeDataSource.java | 71 private long bytesRemaining; field in FakeDataSource 140 bytesRemaining = totalLength - dataSpec.position; in open() 141 return fakeData.isSimulatingUnknownLength() ? C.LENGTH_UNSET : bytesRemaining; in open() 143 bytesRemaining = dataSpec.length; in open() 144 return bytesRemaining; in open() 153 if (currentSegmentIndex == fakeData.getSegments().size() || bytesRemaining == 0) { in read() 169 readLength = (int) Math.min(readLength, bytesRemaining); in read() 179 bytesRemaining -= readLength; in read()
|
/external/exoplayer/tree/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/ |
D | CronetDataSource.java | 135 private long bytesRemaining; field in CronetDataSource 480 bytesRemaining = dataSpec.length; in open() 482 bytesRemaining = getContentLength(responseInfo); in open() 487 bytesRemaining = dataSpec.length; in open() 493 return bytesRemaining; in open() 502 } else if (bytesRemaining == 0) { in read() 519 bytesRemaining = 0; in read() 536 if (bytesRemaining != C.LENGTH_UNSET) { in read() 537 bytesRemaining -= bytesRead; in read() 576 } else if (bytesRemaining == 0) { in read() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
D | DebugFrameDataSubsection.cpp | 16 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) { in initialize() 21 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) in initialize() 25 uint32_t Count = Reader.bytesRemaining() / sizeof(FrameData); in initialize()
|
/external/llvm-project/llvm/lib/DebugInfo/CodeView/ |
D | DebugFrameDataSubsection.cpp | 16 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) { in initialize() 21 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) in initialize() 25 uint32_t Count = Reader.bytesRemaining() / sizeof(FrameData); in initialize()
|
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
D | PublicsStream.cpp | 62 if (Reader.bytesRemaining() < in reload() 90 if (Reader.bytesRemaining() > 0) { in reload() 97 if (Reader.bytesRemaining() > 0) in reload()
|
D | PDBStringTable.cpp | 38 assert(Reader.bytesRemaining() == 0); in readHeader() 53 assert(Reader.bytesRemaining() == 0); in readStrings() 80 assert(Reader.bytesRemaining() == 0); in readEpilogue() 105 assert(Reader.bytesRemaining() == 0); in reload()
|
D | PDBStringTableBuilder.cpp | 161 assert(Writer.bytesRemaining() == 0); in writeHeader() 169 assert(Writer.bytesRemaining() == 0); in writeStrings() 197 assert(Writer.bytesRemaining() == 0); in writeHashTable() 204 assert(Writer.bytesRemaining() == 0); in writeEpilogue()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
D | PublicsStream.cpp | 62 if (Reader.bytesRemaining() < in reload() 90 if (Reader.bytesRemaining() > 0) { in reload() 97 if (Reader.bytesRemaining() > 0) in reload()
|
D | PDBStringTable.cpp | 38 assert(Reader.bytesRemaining() == 0); in readHeader() 53 assert(Reader.bytesRemaining() == 0); in readStrings() 80 assert(Reader.bytesRemaining() == 0); in readEpilogue() 105 assert(Reader.bytesRemaining() == 0); in reload()
|
D | PDBStringTableBuilder.cpp | 161 assert(Writer.bytesRemaining() == 0); in writeHeader() 169 assert(Writer.bytesRemaining() == 0); in writeStrings() 197 assert(Writer.bytesRemaining() == 0); in writeHashTable() 204 assert(Writer.bytesRemaining() == 0); in writeEpilogue()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | TiledWorld.java | 86 final int bytesRemaining = byteStream.available(); in parseInput() local 87 assert bytesRemaining >= totalTiles; in parseInput() 88 if (bytesRemaining >= totalTiles) { in parseInput()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | CodeViewYAMLTypeHashing.cpp | 58 while (Reader.bytesRemaining() != 0) { in fromDebugH() 63 assert(Reader.bytesRemaining() == 0); in fromDebugH() 85 assert(Writer.bytesRemaining() == 0); in toDebugH()
|