Home
last modified time | relevance | path

Searched refs:toRead (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/androidfw/
DStreamingZipInflater.cpp139 size_t toRead = min_of(count, size_t(mOutTotalSize - mOutCurPosition)); in read() local
140 while (toRead > 0) { in read()
142 size_t deliverable = min_of(toRead, mOutLastDecoded - mOutDeliverable); in read()
149 toRead -= deliverable; in read()
153 if (toRead > 0) { in read()
211 size_t toRead = min_of(mInBufSize, mInTotalSize - mInNextChunkOffset); in readNextChunk() local
212 if (toRead > 0) { in readNextChunk()
213 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); in readNextChunk()
215 ALOGV("Reading input chunk, size %08zx didread %08zx", toRead, didRead); in readNextChunk()
DBackupHelpers.cpp682 size_t toRead = toWrite; in write_tarfile() local
683 if (toRead > BUFSIZE) { in write_tarfile()
684 toRead = BUFSIZE; in write_tarfile()
686 ssize_t nRead = read(fd, buf, toRead); in write_tarfile()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprModelTest.java199 List<Expr> toRead = getShouldRead(); in testTernaryWithPlus() local
200 List<Expr> readNow = getReadFirst(toRead); in testTernaryWithPlus()
205 readNow = filterOut(getReadFirst(toRead, justRead), justRead); in testTernaryWithPlus()
209 readNow = filterOut(getReadFirst(toRead, justRead), justRead); in testTernaryWithPlus()
212 readNow = filterOut(getReadFirst(toRead, justRead), justRead); in testTernaryWithPlus()
216 toRead = getShouldRead(); in testTernaryWithPlus()
217 assertEquals(2, toRead.size()); in testTernaryWithPlus()
219 readNow = filterOut(getReadFirst(toRead, justRead), justRead); in testTernaryWithPlus()
224 readNow = filterOut(getReadFirst(toRead, justRead), justRead); in testTernaryWithPlus()
229 readNow = filterOut(getReadFirst(toRead, justRead), justRead); in testTernaryWithPlus()
[all …]
/frameworks/base/core/java/android/os/
DRecoverySystem.java255 long toRead = fileLen - commentSize - 2; in verifyPackage()
268 if (soFar >= toRead) { in verifyPackage()
276 if (soFar + size > toRead) { in verifyPackage()
277 size = (int)(toRead - soFar); in verifyPackage()
284 int p = (int)(soFar * 100 / toRead); in verifyPackage()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp882 int toRead = (mode == MUTED) ? 0 : sampleCount; in threadLoop() local
885 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { in threadLoop()
902 if (toRead > 0) { in threadLoop()
904 buffer.frameCount = toRead; in threadLoop()
908 int offset = sampleCount - toRead; in threadLoop()
910 toRead -= buffer.frameCount; in threadLoop()
/frameworks/base/core/java/android/app/backup/
DFullBackup.java169 int toRead = (size > buffer.length) ? buffer.length : (int)size; in restoreFile() local
170 int got = in.read(buffer, 0, toRead); in restoreFile()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java3554 int toRead = (chunkTotal > buffer.length) ? buffer.length : chunkTotal; in routeSocketDataToOutput() local
3555 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput()
5592 int toRead = (toCopy > mBuffer.length) in restoreOneFile() local
5594 int nRead = instream.read(mBuffer, 0, toRead); in restoreOneFile()
5648 int toRead = (bytesToConsume > mBuffer.length) in restoreOneFile() local
5650 long nRead = instream.read(mBuffer, 0, toRead); in restoreOneFile()
5792 long toRead = (buffer.length < size) ? buffer.length : size; in installApk() local
5793 int didRead = instream.read(buffer, 0, (int)toRead); in installApk()
7012 int toRead = (toCopy > buffer.length) in restoreOneFile() local
7014 int nRead = instream.read(buffer, 0, toRead); in restoreOneFile()
[all …]