Searched refs:toRead (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/libs/androidfw/ |
D | StreamingZipInflater.cpp | 137 size_t toRead = min_of(count, size_t(mOutTotalSize - mOutCurPosition)); in read() local 138 while (toRead > 0) { in read() 140 size_t deliverable = min_of(toRead, mOutLastDecoded - mOutDeliverable); in read() 147 toRead -= deliverable; in read() 151 if (toRead > 0) { in read() 209 size_t toRead = min_of(mInBufSize, mInTotalSize - mInNextChunkOffset); in readNextChunk() local 210 if (toRead > 0) { in readNextChunk() 211 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); in readNextChunk()
|
D | BackupHelpers.cpp | 684 size_t toRead = toWrite; in write_tarfile() local 685 if (toRead > BUFSIZE) { in write_tarfile() 686 toRead = BUFSIZE; in write_tarfile() 688 ssize_t nRead = read(fd, buf, toRead); in write_tarfile()
|
/frameworks/base/core/java/android/os/ |
D | RecoverySystem.java | 276 long toRead = fileLen - commentSize - 2; in verifyPackage() local 281 while (soFar < toRead) { in verifyPackage() 285 if (soFar + size > toRead) { in verifyPackage() 286 size = (int)(toRead - soFar); in verifyPackage() 294 int p = (int)(soFar * 100 / toRead); in verifyPackage()
|
/frameworks/base/core/java/android/app/backup/ |
D | FullBackup.java | 121 int toRead = (size > buffer.length) ? buffer.length : (int)size; in restoreFile() local 122 int got = in.read(buffer, 0, toRead); in restoreFile()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 877 int toRead = (mode == MUTED) ? 0 : sampleCount; in threadLoop() local 880 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { in threadLoop() 897 if (toRead > 0) { in threadLoop() 899 buffer.frameCount = toRead; in threadLoop() 903 int offset = sampleCount - toRead; in threadLoop() 905 toRead -= buffer.frameCount; in threadLoop()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 3000 int toRead = (chunkTotal > buffer.length) ? buffer.length : chunkTotal; in routeSocketDataToOutput() local 3001 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput() 4530 int toRead = (toCopy > mBuffer.length) in restoreOneFile() local 4532 int nRead = instream.read(mBuffer, 0, toRead); in restoreOneFile() 4587 int toRead = (bytesToConsume > mBuffer.length) in restoreOneFile() local 4589 long nRead = instream.read(mBuffer, 0, toRead); in restoreOneFile() 4739 long toRead = (buffer.length < size) ? buffer.length : size; in installApk() local 4740 int didRead = instream.read(buffer, 0, (int)toRead); in installApk() 5894 int toRead = (toCopy > buffer.length) in restoreOneFile() local 5896 int nRead = instream.read(buffer, 0, toRead); in restoreOneFile() [all …]
|