Home
last modified time | relevance | path

Searched refs:readLength (Results 1 – 25 of 43) sorted by relevance

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DByteArrayDataSource.java61 public int read(byte[] buffer, int offset, int readLength) { in read() argument
62 if (readLength == 0) { in read()
68 readLength = Math.min(readLength, bytesRemaining); in read()
69 System.arraycopy(data, readPosition, buffer, offset, readLength); in read()
70 readPosition += readLength; in read()
71 bytesRemaining -= readLength; in read()
72 bytesTransferred(readLength); in read()
73 return readLength; in read()
DDataSchemeDataSource.java79 public int read(byte[] buffer, int offset, int readLength) { in read() argument
80 if (readLength == 0) { in read()
87 readLength = Math.min(readLength, remainingBytes); in read()
88 System.arraycopy(castNonNull(data), readPosition, buffer, offset, readLength); in read() local
89 readPosition += readLength; in read()
90 bytesTransferred(readLength); in read()
91 return readLength; in read()
DAssetDataSource.java96 public int read(byte[] buffer, int offset, int readLength) throws AssetDataSourceException { in read() argument
97 if (readLength == 0) { in read()
105 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read()
106 : (int) Math.min(bytesRemaining, readLength); in read()
DContentDataSource.java109 public int read(byte[] buffer, int offset, int readLength) throws ContentDataSourceException { in read() argument
110 if (readLength == 0) { in read()
118 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read()
119 : (int) Math.min(bytesRemaining, readLength); in read()
DRawResourceDataSource.java135 public int read(byte[] buffer, int offset, int readLength) throws RawResourceDataSourceException { in read() argument
136 if (readLength == 0) { in read()
144 int bytesToRead = bytesRemaining == C.LENGTH_UNSET ? readLength in read()
145 : (int) Math.min(bytesRemaining, readLength); in read()
DDefaultHttpDataSource.java354 public int read(byte[] buffer, int offset, int readLength) throws HttpDataSourceException { in read() argument
357 return readInternal(buffer, offset, readLength); in read()
655 int readLength = (int) Math.min(bytesToSkip - bytesSkipped, skipBuffer.length); in skipInternal() local
656 int read = inputStream.read(skipBuffer, 0, readLength); in skipInternal()
685 private int readInternal(byte[] buffer, int offset, int readLength) throws IOException { in readInternal() argument
686 if (readLength == 0) { in readInternal()
694 readLength = (int) Math.min(readLength, bytesRemaining); in readInternal()
697 int read = inputStream.read(buffer, offset, readLength); in readInternal()
DUdpDataSource.java123 public int read(byte[] buffer, int offset, int readLength) throws UdpDataSourceException { in read() argument
124 if (readLength == 0) { in read()
140 int bytesToRead = Math.min(packetRemaining, readLength); in read()
DFileDataSource.java106 public int read(byte[] buffer, int offset, int readLength) throws FileDataSourceException { in read() argument
107 if (readLength == 0) { in read()
115 castNonNull(file).read(buffer, offset, (int) Math.min(bytesRemaining, readLength)); in read()
DResolvingDataSource.java109 public int read(byte[] buffer, int offset, int readLength) throws IOException { in read() argument
110 return upstreamDataSource.read(buffer, offset, readLength); in read()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/
DMemoryDataStore.java86 int readLength = Math.min(b.length, size - position); in readAt() local
87 if (readLength <= 0) { in readAt()
93 System.arraycopy(buf, position, b, 0, readLength); in readAt()
94 position += readLength; in readAt()
95 return readLength; in readAt()
99 int readLength = Math.min(len, size - position); in readAt() local
100 if (readLength <= 0) { in readAt()
106 System.arraycopy(buf, position, b, off, readLength); in readAt()
107 position += readLength; in readAt()
108 return readLength; in readAt()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeDataSource.java149 public final int read(byte[] buffer, int offset, int readLength) throws IOException { in read() argument
169 readLength = (int) Math.min(readLength, bytesRemaining); in read()
171 readLength = Math.min(readLength, current.length - current.bytesRead); in read()
173 Assertions.checkArgument(buffer.length - offset >= readLength); in read()
175 System.arraycopy(current.data, current.bytesRead, buffer, offset, readLength); in read()
177 onDataRead(readLength); in read()
178 bytesTransferred(readLength); in read()
179 bytesRemaining -= readLength; in read()
180 current.bytesRead += readLength; in read()
184 return readLength; in read()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DNalUnitTargetBuffer.java84 int readLength = limit - offset; in appendToNalUnit() local
85 if (nalData.length < nalLength + readLength) { in appendToNalUnit()
86 nalData = Arrays.copyOf(nalData, (nalLength + readLength) * 2); in appendToNalUnit()
88 System.arraycopy(data, offset, nalData, nalLength, readLength); in appendToNalUnit()
89 nalLength += readLength; in appendToNalUnit()
DPesReader.java125 int readLength = Math.min(MAX_HEADER_EXTENSION_SIZE, extendedHeaderLength); in consume() local
127 if (continueRead(data, pesScratch.data, readLength) in consume()
136 readLength = data.bytesLeft(); in consume()
137 int padding = payloadSize == -1 ? 0 : readLength - payloadSize; in consume()
139 readLength -= padding; in consume()
140 data.setLimit(data.getPosition() + readLength); in consume()
144 payloadSize -= readLength; in consume()
DH262Reader.java334 int readLength = limit - offset; in onData() local
335 if (data.length < length + readLength) { in onData()
336 data = Arrays.copyOf(data, (length + readLength) * 2); in onData()
338 System.arraycopy(newData, offset, data, length, readLength); in onData()
339 length += readLength; in onData()
/external/angle/src/tests/gl_tests/
DProgramBinaryTest.cpp248 GLsizei readLength = 0; in TEST_P() local
251 glGetProgramBinaryOES(mProgram, length, &readLength, &binaryFormat, binaryBlob.data()); in TEST_P()
351 GLsizei readLength = 0; in testBinaryAndUBOBlockIndexes() local
354 glGetProgramBinary(program.get(), programLength, &readLength, &binaryFormat, binary.data()); in testBinaryAndUBOBlockIndexes()
357 EXPECT_EQ(static_cast<GLsizei>(programLength), readLength); in testBinaryAndUBOBlockIndexes()
476 GLsizei readLength = 0; in TEST_P() local
479 glGetProgramBinary(program.get(), programLength, &readLength, &binaryFormat, binary.data()); in TEST_P()
482 EXPECT_EQ(static_cast<GLsizei>(programLength), readLength); in TEST_P()
569 GLsizei readLength = 0; in TEST_P() local
572 glGetProgramBinary(program.get(), programLength, &readLength, &binaryFormat, binary.data()); in TEST_P()
[all …]
/external/exoplayer/tree/extensions/okhttp/src/main/java/com/google/android/exoplayer2/ext/okhttp/
DOkHttpDataSource.java271 public int read(byte[] buffer, int offset, int readLength) throws HttpDataSourceException { in read() argument
274 return readInternal(buffer, offset, readLength); in read()
389 int readLength = (int) Math.min(bytesToSkip - bytesSkipped, SKIP_BUFFER.length); in skipInternal() local
390 int read = castNonNull(responseByteStream).read(SKIP_BUFFER, 0, readLength); in skipInternal()
416 private int readInternal(byte[] buffer, int offset, int readLength) throws IOException { in readInternal() argument
417 if (readLength == 0) { in readInternal()
425 readLength = (int) Math.min(readLength, bytesRemaining); in readInternal()
428 int read = castNonNull(responseByteStream).read(buffer, offset, readLength); in readInternal()
/external/exoplayer/tree/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/
DByteArrayUploadDataProvider.java43 int readLength = Math.min(byteBuffer.remaining(), data.length - position); in read() local
44 byteBuffer.put(data, position, readLength); in read()
45 position += readLength; in read()
/external/smali/dexlib2/src/main/java/org/jf/util/
DUtf8Utils.java192 @Nullable int[] readLength) { in utf8BytesWithUtf16LengthToString() argument
266 if (readLength != null && readLength.length > 0) { in utf8BytesWithUtf16LengthToString()
267 readLength[0] = at - start; in utf8BytesWithUtf16LengthToString()
268 readLength[0] = at - start; in utf8BytesWithUtf16LengthToString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DEdits.java297 private int readLength(int head) { in readLength() method in Edits.Iterator
420 oldLength_ = readLength((u >> 6) & 0x3f); in next()
421 newLength_ = readLength(u & 0x3f); in next()
435 oldLength_ += readLength((u >> 6) & 0x3f); in next()
436 newLength_ += readLength(u & 0x3f); in next()
511 oldLength_ = readLength((u >> 6) & 0x3f); in previous()
512 newLength_ = readLength(u & 0x3f); in previous()
520 oldLength_ = readLength((u >> 6) & 0x3f); in previous()
521 newLength_ = readLength(u & 0x3f); in previous()
539 oldLength_ += readLength((u >> 6) & 0x3f); in previous()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DEdits.java287 private int readLength(int head) { in readLength() method in Edits.Iterator
409 oldLength_ = readLength((u >> 6) & 0x3f); in next()
410 newLength_ = readLength(u & 0x3f); in next()
424 oldLength_ += readLength((u >> 6) & 0x3f); in next()
425 newLength_ += readLength(u & 0x3f); in next()
500 oldLength_ = readLength((u >> 6) & 0x3f); in previous()
501 newLength_ = readLength(u & 0x3f); in previous()
509 oldLength_ = readLength((u >> 6) & 0x3f); in previous()
510 newLength_ = readLength(u & 0x3f); in previous()
528 oldLength_ += readLength((u >> 6) & 0x3f); in previous()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/crypto/
DAesCipherDataSource.java62 public int read(byte[] data, int offset, int readLength) throws IOException { in read() argument
63 if (readLength == 0) { in read()
66 int read = upstream.read(data, offset, readLength); in read()
/external/icu/icu4c/source/common/
Dedits.cpp405 int32_t Edits::Iterator::readLength(int32_t head) { in readLength() function in Edits::Iterator
522 oldLength_ = readLength((u >> 6) & 0x3f); in next()
523 newLength_ = readLength(u & 0x3f); in next()
537 oldLength_ += readLength((u >> 6) & 0x3f); in next()
538 newLength_ += readLength(u & 0x3f); in next()
616 oldLength_ = readLength((u >> 6) & 0x3f); in previous()
617 newLength_ = readLength(u & 0x3f); in previous()
625 oldLength_ = readLength((u >> 6) & 0x3f); in previous()
626 newLength_ = readLength(u & 0x3f); in previous()
644 oldLength_ += readLength((u >> 6) & 0x3f); in previous()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1InputStream.java109 protected int readLength() in readLength() method in ASN1InputStream
112 return readLength(this, limit); in readLength()
237 int length = readLength(); in readObject()
326 static int readLength(InputStream s, int limit) in readLength() method in ASN1InputStream
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1InputStream.java116 protected int readLength() in readLength() method in ASN1InputStream
119 return readLength(this, limit); in readLength()
246 int length = readLength(); in readObject()
335 static int readLength(InputStream s, int limit) in readLength() method in ASN1InputStream
/external/exoplayer/tree/extensions/rtmp/src/main/java/com/google/android/exoplayer2/ext/rtmp/
DRtmpDataSource.java57 public int read(byte[] buffer, int offset, int readLength) throws IOException { in read() argument
58 int bytesRead = castNonNull(rtmpClient).read(buffer, offset, readLength); in read()

12