/frameworks/base/libs/utils/ |
StreamingZipInflater.cpp | 120 size_t toRead = min_of(count, size_t(mOutTotalSize - mOutCurPosition)); 121 while (toRead > 0) { 123 size_t deliverable = min_of(toRead, mOutLastDecoded - mOutDeliverable); 130 toRead -= deliverable; 134 if (toRead > 0) { 192 size_t toRead = min_of(mInBufSize, mInTotalSize - mInNextChunkOffset); 193 if (toRead > 0) { 194 ssize_t didRead = ::read(mFd, mInBuf, toRead); 195 //LOGD("Reading input chunk, size %08x didread %08x", toRead, didRead);
|
/external/bouncycastle/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...] |
/libcore/luni/src/main/java/libcore/base/ |
Streams.java | 54 int toRead = (int) Math.min(byteCount - skipped, buffer.length); 55 int read = in.read(buffer, 0, toRead); 60 if (read < toRead) {
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipInputStream.java | 323 int toRead = length > (len - lastRead) ? len - lastRead : length; 324 if ((csize - inRead) < toRead) { 325 toRead = csize - inRead; 327 System.arraycopy(buf, lastRead, buffer, start, toRead); 328 lastRead += toRead; 329 inRead += toRead; 330 crc.update(buffer, start, toRead); 331 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;
|
/external/webkit/WebCore/platform/graphics/chromium/ |
FontCustomPlatformData.cpp | 159 size_t toRead = (left > size) ? size : left; 160 std::memcpy(buffer, m_buffer->data() + m_offset, toRead); 161 m_offset += toRead; 162 return toRead;
|
/libcore/luni/src/main/java/java/io/ |
Reader.java | 232 int toRead = count < 512 ? (int) count : 512; 233 char[] charsSkipped = new char[toRead]; 235 int read = read(charsSkipped, 0, toRead); 240 if (read < toRead) { 243 if (count - skipped < toRead) { 244 toRead = (int) (count - skipped);
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
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;
|
/libcore/luni/src/test/java/tests/api/java/io/ |
BufferedInputStreamTest.java | 472 int toRead = len; 473 if (toRead > available()) { 474 toRead = available(); 476 System.arraycopy(contents, pos, buf, off, toRead); 477 pos += toRead; 478 return toRead;
|
BufferedReaderTest.java | 309 int toRead = len; 310 if (toRead > (size - pos)) 311 toRead = size - pos; 312 System.arraycopy(contents, pos, buf, off, toRead); 313 pos += toRead; 314 return toRead;
|
/frameworks/base/core/java/android/os/ |
RecoverySystem.java | 264 long toRead = fileLen - commentSize - 2; 269 while (soFar < toRead) { 273 if (soFar + size > toRead) { 274 size = (int)(toRead - soFar); 282 int p = (int)(soFar * 100 / toRead);
|
/packages/apps/Browser/src/com/android/browser/ |
BrowserBackupAgent.java | 284 private long copyBackupToFile(BackupDataInput data, File file, int toRead) 292 while (toRead > 0) { 296 toRead -= numRead;
|
/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...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/ |
tar.h | 81 #define TOREAD 00004
|
/frameworks/base/voip/jni/rtp/ |
AudioGroup.cpp | 828 int toRead = (mode == MUTED) ? 0 : sampleCount; 831 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { 848 if (toRead > 0) { 850 buffer.frameCount = toRead; 854 int offset = sampleCount - toRead; 856 toRead -= buffer.frameCount;
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSocketTest.java | [all...] |
/bionic/libc/tzcode/ |
localtime.c | 420 int toread = sizeof u.buf; local 482 toread = toint((unsigned char *) buf + NAMELEN + INTLEN); 507 nread = read(fid, u.buf, toread); [all...] |
/system/core/libcutils/ |
tztime.c | 370 int toread = sizeof u.buf; local 422 toread = toint((unsigned char *) buf + NAMELEN + INTLEN); 443 nread = read(fid, u.buf, toread); [all...] |
/development/ndk/platforms/android-3/arch-arm/lib/ |
libc.so | |
/development/ndk/platforms/android-5/arch-arm/lib/ |
libc.so | |
/development/ndk/platforms/android-5/arch-x86/lib/ |
libc.so | |
/development/ndk/platforms/android-8/arch-arm/lib/ |
libc.so | |
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/lib/ |
libc.so | |