/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;
|
/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/grub/stage2/ |
fsys_xfs.c | 336 int toread; local 388 toread = roundup8 (le16(dau->unused.length)) - 4; 389 xfs.blkoff += toread; 390 filepos += toread; 399 toread = roundup8 (namelen + 11) - 9; 400 xfs_read (dirbuf, toread); 402 xfs.blkoff += toread + 5; 492 int toread, startpos, endpos; local 509 toread = (endofcur >= endpos) 514 filepos - (offset << xfs.blklog), toread, buf) [all...] |
fsys_jfs.c | 233 int toread, startpos, endpos; local 244 toread = (endofcur >= endpos) 249 filepos - (offset << jfs.l2bsize), toread, buf); 252 buf += toread; 253 len -= toread; 254 filepos += toread; 256 toread = ((offset << jfs.l2bsize) >= endpos) 258 len -= toread; 259 filepos += toread; 260 for (; toread; toread--) [all...] |
/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);
|
/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;
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipInputStream.java | 316 int toRead = byteCount > (len - lastRead) ? len - lastRead : byteCount; 317 if ((csize - inRead) < toRead) { 318 toRead = csize - inRead; 320 System.arraycopy(buf, lastRead, buffer, offset, toRead); 321 lastRead += toRead; 322 inRead += toRead; 323 crc.update(buffer, offset, toRead); 324 return toRead;
|
/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;
|
/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;
|
/hardware/invensense/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++) {
|
/libcore/luni/src/main/java/java/io/ |
Reader.java | 222 int toRead = charCount < 512 ? (int) charCount : 512; 223 char[] charsSkipped = new char[toRead]; 225 int read = read(charsSkipped, 0, toRead); 230 if (read < toRead) { 233 if (charCount - skipped < toRead) { 234 toRead = (int) (charCount - skipped);
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
SavableSerializer.java | 96 int toRead = len > input.remaining() ? input.remaining() : len; 98 return toRead;
|
/libcore/luni/src/main/java/libcore/io/ |
Streams.java | 157 int toRead = (int) Math.min(byteCount - skipped, buffer.length); 158 int read = in.read(buffer, 0, toRead); 163 if (read < toRead) {
|
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/asset/plugins/ |
HttpZipLocator.java | 130 int toRead = Math.min(len - read, byteBuf.capacity()); 132 boolean endOfInput = toRead < byteBuf.capacity(); 134 // read 'toRead' bytes into byteBuf 135 byteBuf.put(b, off + read, toRead); 162 read += toRead;
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
BufferedInputStreamTest.java | 360 int toRead = len; 361 if (toRead > available()) { 362 toRead = available(); 364 System.arraycopy(contents, pos, buf, off, toRead); 365 pos += toRead; 366 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;
|
/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 | 269 long toRead = fileLen - commentSize - 2; 274 while (soFar < toRead) { 278 if (soFar + size > toRead) { 279 size = (int)(toRead - soFar); 287 int p = (int)(soFar * 100 / toRead);
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 267 int toRead = (int) Math.min(byteCount - skipped, buffer.length); 268 int read = in.read(buffer, 0, toRead); 273 if (read < toRead) {
|
/packages/inputmethods/PinyinIME/jni/share/ |
userdict.cpp | 1097 size_t readed, toread; 1158 toread = (dict_info.lemma_count << 2); 1160 while (readed < toread && !ferror(fp) && !feof(fp)) { 1161 readed += fread((((uint8*)offsets) + readed), 1, toread - readed, fp); 1163 if (readed < toread) 1167 toread = (dict_info.lemma_count << 2); 1169 while (readed < toread && !ferror(fp) && !feof(fp)) { 1170 readed += fread((((uint8*)predicts) + readed), 1, toread - readed, fp); 1172 if (readed < toread) 1177 while (readed < toread && !ferror(fp) && !feof(fp)) [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/ |
tar.h | 81 #define TOREAD 00004
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/ |
tar.h | 81 #define TOREAD 00004
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/ |
tar.h | 81 #define TOREAD 00004
|
/frameworks/base/core/java/android/app/backup/ |
FullBackup.java | 124 int toRead = (size > buffer.length) ? buffer.length : (int)size; 125 int got = in.read(buffer, 0, toRead);
|
/external/libmtp/src/ |
libusb-glue.c | 815 unsigned long toread = 0; local 833 toread = size - curread; 835 if (readzero && FLAG_NO_ZERO_READS(ptp_usb) && toread % 64 == 0) { 836 toread += 1; 842 toread = CONTEXT_BLOCK_SIZE_1; 843 else if (toread == CONTEXT_BLOCK_SIZE_1) 844 toread = CONTEXT_BLOCK_SIZE_2; 845 else if (toread == CONTEXT_BLOCK_SIZE_2) 846 toread = CONTEXT_BLOCK_SIZE_1; 848 printf("unexpected toread size 0x%04x, 0x%04x remaining bytes\n", [all...] |