/frameworks/base/libs/androidfw/ |
D | StreamingZipInflater.cpp | 139 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()
|
D | BackupHelpers.cpp | 692 size_t toRead = toWrite; in write_tarfile() local 693 if (toRead > BUFSIZE) { in write_tarfile() 694 toRead = BUFSIZE; in write_tarfile() 696 ssize_t nRead = read(fd, buf, toRead); in write_tarfile()
|
/frameworks/base/media/jni/tuner/ |
D | DvrClient.cpp | 141 int64_t toRead = min(size, available); in writeToFile() local 145 if (mDvrMQ->beginRead(toRead, &tx)) { in writeToFile() 149 int64_t firstToRead = std::min(length, toRead); in writeToFile() 159 } else if (firstToRead < toRead) { in writeToFile() 161 toRead); in writeToFile() 165 int32_t secondToRead = toRead - firstToRead; in writeToFile() 168 ALOGV("MQ to file: %" PRIu64 " bytes to be read, %" PRIu64 " bytes written", toRead, ret); in writeToFile()
|
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/ |
D | FakeBlobData.java | 235 int toRead = (bytesRead + buffer.length <= lengthBytes) in createSha256Digest() local 237 toRead = in.read(buffer, 0, toRead); in createSha256Digest() 238 digest.update(buffer, 0, toRead); in createSha256Digest() 239 bytesRead += toRead; in createSha256Digest()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | FullBackupUtils.java | 58 int toRead = (chunkTotal > buffer.length) ? buffer.length : chunkTotal; in routeSocketDataToOutput() local 59 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput()
|
D | RestoreUtils.java | 105 long toRead = (buffer.length < size) ? buffer.length : size; in installApk() local 106 int didRead = instream.read(buffer, 0, (int) toRead); in installApk()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 894 int toRead = (mode == MUTED) ? 0 : sampleCount; in threadLoop() local 897 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { in threadLoop() 914 if (toRead > 0) { in threadLoop() 916 buffer.frameCount = toRead; in threadLoop() 920 int offset = sampleCount - toRead; in threadLoop() 922 toRead -= buffer.getFrameCount(); in threadLoop()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | FullRestoreEngine.java | 533 int toRead = (toCopy > buffer.length) in restoreOneFile() local 535 int nRead = instream.read(buffer, 0, toRead); in restoreOneFile() 598 int toRead = (bytesToConsume > buffer.length) in restoreOneFile() local 600 long nRead = instream.read(buffer, 0, toRead); in restoreOneFile()
|
/frameworks/native/services/gpuservice/gpustats/ |
D | GpuStats.cpp | 382 const size_t toRead = reader->currentToRead(); in protoOutputStreamToByteString() local 383 byteString.append((char*)reader->readBuffer(), toRead); in protoOutputStreamToByteString() 384 reader->move(toRead); in protoOutputStreamToByteString()
|
/frameworks/base/core/java/android/os/ |
D | RecoverySystem.java | 366 long toRead = fileLen - commentSize - 2; in verifyPackage() 379 if (soFar >= toRead) { in verifyPackage() 387 if (soFar + size > toRead) { in verifyPackage() 388 size = (int)(toRead - soFar); in verifyPackage() 395 int p = (int)(soFar * 100 / toRead); in verifyPackage()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_pm_PackageManagerShellCommandDataLoader.cpp | 482 auto toRead = std::min<IncFsSize>(remaining, capacity - size); in copyToIncFs() local 483 buffer->resize(size + toRead); in copyToIncFs() 484 auto read = ::read(incomingFd.get(), buffer->data() + size, toRead); in copyToIncFs()
|
/frameworks/av/media/libaudiohal/impl/ |
D | StreamHalAidl.cpp | 408 if (auto toRead = mContext.getDataMQ()->availableToRead(&fmqError, &fmqErrorMsg); in transfer() local 409 toRead != 0 && !mContext.getDataMQ()->read(static_cast<int8_t*>(buffer), toRead)) { in transfer() 410 ALOGE("%s: failed to read %zu bytes to data MQ", __func__, toRead); in transfer()
|
/frameworks/base/core/java/android/app/backup/ |
D | FullBackup.java | 246 int toRead = (size > buffer.length) ? buffer.length : (int)size; in restoreFile() local 247 int got = in.read(buffer, 0, toRead); in restoreFile()
|