Searched refs:toRead (Results 1 - 6 of 6) 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/base/core/java/android/app/backup/
H A DFullBackup.java121 int toRead = (size > buffer.length) ? buffer.length : (int)size;
122 int got = in.read(buffer, 0, toRead);
/frameworks/base/core/java/android/os/
H A DRecoverySystem.java276 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/
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;
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java3089 int toRead = (chunkTotal > buffer.length) ? buffer.length : chunkTotal;
3090 int nRead = in.read(buffer, 0, toRead);
4640 int toRead = (toCopy > mBuffer.length)
4642 int nRead = instream.read(mBuffer, 0, toRead);
4697 int toRead = (bytesToConsume > mBuffer.length)
4699 long nRead = instream.read(mBuffer, 0, toRead);
4849 long toRead = (buffer.length < size) ? buffer.length : size;
4850 int didRead = instream.read(buffer, 0, (int)toRead);
6004 int toRead = (toCopy > buffer.length)
6006 int nRead = instream.read(buffer, 0, toRead);
[all...]

Completed in 3033 milliseconds