Home
last modified time | relevance | path

Searched refs:toRead (Results 1 – 12 of 12) 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.cpp687 size_t toRead = toWrite; in write_tarfile() local
688 if (toRead > BUFSIZE) { in write_tarfile()
689 toRead = BUFSIZE; in write_tarfile()
691 ssize_t nRead = read(fd, buf, toRead); in write_tarfile()
/frameworks/base/media/jni/tuner/
DDvrClient.cpp142 long toRead = min(size, available); in writeToFile() local
146 if (mDvrMQ->beginRead(toRead, &tx)) { in writeToFile()
150 long firstToRead = std::min(length, toRead); in writeToFile()
159 } else if (firstToRead < toRead) { in writeToFile()
160 ALOGD("read second region: %ld bytes read, %ld bytes in total", ret, toRead); in writeToFile()
164 int secondToRead = toRead - firstToRead; in writeToFile()
167 ALOGD("MQ to file: %ld bytes to be read, %ld bytes written", toRead, ret); in writeToFile()
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DFakeBlobData.java234 int toRead = (bytesRead + buffer.length <= lengthBytes) in createSha256Digest() local
236 toRead = in.read(buffer, 0, toRead); in createSha256Digest()
237 digest.update(buffer, 0, toRead); in createSha256Digest()
238 bytesRead += toRead; in createSha256Digest()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DFullBackupUtils.java51 int toRead = (chunkTotal > buffer.length) ? buffer.length : chunkTotal; in routeSocketDataToOutput() local
52 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput()
DRestoreUtils.java99 long toRead = (buffer.length < size) ? buffer.length : size; in installApk() local
100 int didRead = instream.read(buffer, 0, (int) toRead); in installApk()
/frameworks/native/services/gpuservice/gpustats/
DGpuStats.cpp264 const size_t toRead = reader->currentToRead(); in protoOutputStreamToByteString() local
265 byteString.append((char*)reader->readBuffer(), toRead); in protoOutputStreamToByteString()
266 reader->move(toRead); in protoOutputStreamToByteString()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp897 int toRead = (mode == MUTED) ? 0 : sampleCount; in threadLoop() local
900 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { in threadLoop()
917 if (toRead > 0) { in threadLoop()
919 buffer.frameCount = toRead; in threadLoop()
923 int offset = sampleCount - toRead; in threadLoop()
925 toRead -= buffer.frameCount; in threadLoop()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java479 int toRead = (toCopy > buffer.length) in restoreOneFile() local
481 int nRead = instream.read(buffer, 0, toRead); in restoreOneFile()
539 int toRead = (bytesToConsume > buffer.length) in restoreOneFile() local
541 long nRead = instream.read(buffer, 0, toRead); in restoreOneFile()
/frameworks/base/core/java/android/os/
DRecoverySystem.java369 long toRead = fileLen - commentSize - 2; in verifyPackage()
382 if (soFar >= toRead) { in verifyPackage()
390 if (soFar + size > toRead) { in verifyPackage()
391 size = (int)(toRead - soFar); in verifyPackage()
398 int p = (int)(soFar * 100 / toRead); in verifyPackage()
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp483 auto toRead = std::min<IncFsSize>(remaining, capacity - size); in copyToIncFs() local
484 buffer->resize(size + toRead); in copyToIncFs()
485 auto read = ::read(incomingFd.get(), buffer->data() + size, toRead); in copyToIncFs()
/frameworks/base/core/java/android/app/backup/
DFullBackup.java246 int toRead = (size > buffer.length) ? buffer.length : (int)size; in restoreFile() local
247 int got = in.read(buffer, 0, toRead); in restoreFile()