Searched defs:toRead (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/libs/androidfw/
H A DStreamingZipInflater.cpp137 size_t toRead = min_of(count, size_t(mOutTotalSize - mOutCurPosition)); local
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); local
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);
H A DBackupHelpers.cpp687 size_t toRead = toWrite; local
688 if (toRead > BUFSIZE) {
689 toRead = BUFSIZE;
691 ssize_t nRead = read(fd, buf, toRead);
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp877 int toRead = (mode == MUTED) ? 0 : sampleCount; local
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;

Completed in 2764 milliseconds