/cts/suite/audio_quality/lib/src/audio/ |
AudioRecordingLocal.cpp | 73 int toRead = mSizes; 75 toRead = buffer->amountToHandle(); 77 LOGD("recording will read %d", toRead); 79 while (toRead > 0) { 80 int readSize = (toRead > mBufferSize) ? mBufferSize : toRead; 86 toRead -= readSize;
|
/libcore/luni/src/main/java/java/io/ |
Reader.java | 209 int toRead = charCount < 512 ? (int) charCount : 512; 210 char[] charsSkipped = new char[toRead]; 212 int read = read(charsSkipped, 0, toRead); 217 if (read < toRead) { 220 if (charCount - skipped < toRead) { 221 toRead = (int) (charCount - skipped);
|
/frameworks/base/libs/androidfw/ |
StreamingZipInflater.cpp | 137 size_t toRead = min_of(count, size_t(mOutTotalSize - mOutCurPosition)); 138 while (toRead > 0) { 140 size_t deliverable = min_of(toRead, mOutLastDecoded - mOutDeliverable); 147 toRead -= deliverable; 151 if (toRead > 0) { 209 size_t toRead = min_of(mInBufSize, mInTotalSize - mInNextChunkOffset); 210 if (toRead > 0) { 211 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); 212 //ALOGV("Reading input chunk, size %08x didread %08x", toRead, didRead);
|
BackupHelpers.cpp | 687 size_t toRead = toWrite; 688 if (toRead > BUFSIZE) { 689 toRead = BUFSIZE; 691 ssize_t nRead = read(fd, buf, toRead); [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
CachedInputStream.java | 157 int toRead = count > leftInBuffer ? leftInBuffer : count; 158 int reads = in.read(buf, indexInBuf, toRead); 194 int toRead = read > leftInBuffer ? leftInBuffer : read; 195 System.arraycopy(buf, indexInBuf, buffer, offset, toRead); 196 offset += toRead; 197 read -= toRead; 198 totalRead += toRead; 199 mPos += toRead; 236 int toRead = (int) (byteCount > leftInBuffer ? leftInBuffer : byteCount); 237 int reads = in.read(buf, indexInBuf, toRead); [all...] |
/cts/suite/audio_quality/lib/src/ |
ClientSocket.cpp | 97 int toRead = len; 98 while (toRead > 0) { 117 read = recv(mSocket, (void*)data, toRead, 0); 119 toRead -= read;
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
FileDisk.java | 113 int toRead = dest.remaining(); 114 if ((devOffset + toRead) > getSize()) throw new IOException( 117 while (toRead > 0) { 120 toRead -= read;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DefiniteLengthInputStream.java | 73 int toRead = Math.min(len, _remaining); 74 int numRead = _in.read(buf, off, toRead);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLBIOSource.java | 84 int toRead = Math.min(source.remaining(), byteCount); 86 source.get(buffer, byteOffset, toRead);
|
OpenSSLEngineImpl.java | 581 int toRead = src.remaining(); 582 if (buffer == null || toRead > buffer.length) { 583 buffer = new byte[toRead]; 589 src.duplicate().get(buffer, 0, toRead); 590 int numRead = NativeCrypto.SSL_write_BIO(sslNativePointer, buffer, toRead,
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipInputStream.java | 319 int toRead = byteCount > (len - lastRead) ? len - lastRead : byteCount; 320 if ((csize - inRead) < toRead) { 321 toRead = csize - inRead; 323 System.arraycopy(buf, lastRead, buffer, byteOffset, toRead); 324 lastRead += toRead; 325 inRead += toRead; 326 crc.update(buffer, byteOffset, toRead); 327 return toRead;
|
/hardware/invensense/60xx/mlsdk/mllite/ |
mlFIFOHW.c | 116 uint_fast16_t toRead; 119 toRead = length - FIFO_FOOTER_SIZE + fifo_objHW.fifoCount; 121 if (length > MAX_FIFO_LENGTH || toRead > length || NULL == buffer) { 140 0 ? buffer : buffer + FIFO_FOOTER_SIZE, toRead); 169 for (kk = 0; kk < (int)toRead; kk++) {
|
/external/srec/shared/src/ |
CircularBuffer.c | 80 int toRead = bufSize - nbRead; 81 memcpy(((unsigned char *) data) + nbRead, bufferData + buffer->readIdx, toRead); 82 buffer->size -= toRead; 83 buffer->readIdx += toRead;
|
/libcore/luni/src/main/java/libcore/io/ |
Streams.java | 158 int toRead = (int) Math.min(byteCount - skipped, buffer.length); 159 int read = in.read(buffer, 0, toRead); 164 if (read < toRead) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
BufferedInputStreamTest.java | 410 int toRead = len; 411 if (toRead > available()) { 412 toRead = available(); 414 System.arraycopy(contents, pos, buf, off, toRead); 415 pos += toRead; 416 return toRead;
|
BufferedReaderTest.java | 312 int toRead = len; 313 if (toRead > (size - pos)) 314 toRead = size - pos; 315 System.arraycopy(contents, pos, buf, off, toRead); 316 pos += toRead; 317 return toRead;
|
/frameworks/base/core/java/android/app/backup/ |
FullBackup.java | 121 int toRead = (size > buffer.length) ? buffer.length : (int)size; 122 int got = in.read(buffer, 0, toRead);
|
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
NettyHttpClient.java | 180 for (int toRead; (toRead = byteBuf.readableBytes()) > 0; ) { 181 byteBuf.readBytes(buffer, 0, Math.min(buffer.length, toRead)); 182 total += toRead;
|
/external/okhttp/okio/src/main/java/okio/ |
RealBufferedSource.java | 52 long toRead = Math.min(byteCount, buffer.size); 53 return buffer.read(sink, toRead);
|
/packages/apps/Browser/src/com/android/browser/ |
BrowserBackupAgent.java | 187 private long copyBackupToFile(BackupDataInput data, File file, int toRead) 195 while (toRead > 0) { 199 toRead -= numRead;
|
/frameworks/base/core/java/android/os/ |
RecoverySystem.java | 276 long toRead = fileLen - commentSize - 2; 281 while (soFar < toRead) { 285 if (soFar + size > toRead) { 286 size = (int)(toRead - soFar); 294 int p = (int)(soFar * 100 / toRead);
|
/frameworks/opt/net/voip/src/jni/rtp/ |
AudioGroup.cpp | 877 int toRead = (mode == MUTED) ? 0 : sampleCount; 880 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { 897 if (toRead > 0) { 899 buffer.frameCount = toRead; 903 int offset = sampleCount - toRead; 905 toRead -= buffer.frameCount;
|
/prebuilts/devtools/tools/lib/ |
jobb.jar | |
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
MockWebServer.java | 536 int toRead = (int) Math.min(Math.min(buffer.length, limit), bytesPerPeriod - b); 537 int read = in.read(buffer, 0, toRead);
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
MockWebServer.java | 542 int toRead = (int) Math.min(Math.min(buffer.length, limit), bytesPerPeriod - b); 543 int read = in.read(buffer, 0, toRead);
|