/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 | 687 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/cmds/statsd/tests/ |
D | FieldValue_test.cpp | 259 size_t toRead = reader->currentToRead(); in TEST() local 260 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST() 261 pos += toRead; in TEST() 262 reader->move(toRead); in TEST() 350 size_t toRead = reader->currentToRead(); in TEST() local 351 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST() 352 pos += toRead; in TEST() 353 reader->move(toRead); in TEST() 412 size_t toRead = reader->currentToRead(); in TEST() local 413 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST() [all …]
|
D | LogEvent_test.cpp | 596 size_t toRead = reader->currentToRead(); in TEST() local 597 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST() 598 pos += toRead; in TEST() 599 reader->move(toRead); in TEST() 635 size_t toRead = reader->currentToRead(); in TEST() local 636 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST() 637 pos += toRead; in TEST() 638 reader->move(toRead); in TEST()
|
D | UidMap_test.cpp | 185 size_t toRead = reader->currentToRead(); in protoOutputStreamToUidMapping() local 186 std::memcpy(&((bytes)[pos]), reader->readBuffer(), toRead); in protoOutputStreamToUidMapping() 187 pos += toRead; in protoOutputStreamToUidMapping() 188 reader->move(toRead); in protoOutputStreamToUidMapping()
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.h | 85 size_t toRead = reader->currentToRead(); in parseProtoOutputStream() local 86 pbBytes.append(reinterpret_cast<const char*>(reader->readBuffer()), toRead); in parseProtoOutputStream() 87 reader->move(toRead); in parseProtoOutputStream()
|
D | StatsLogProcessor.cpp | 106 size_t toRead = reader->currentToRead(); in flushProtoToBuffer() local 107 std::memcpy(&((*outData)[pos]), reader->readBuffer(), toRead); in flushProtoToBuffer() 108 pos += toRead; in flushProtoToBuffer() 109 reader->move(toRead); in flushProtoToBuffer()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | EventMetricProducer.cpp | 95 size_t toRead = reader->currentToRead(); in serializeProtoLocked() local 96 std::memcpy(&((*buffer)[pos]), reader->readBuffer(), toRead); in serializeProtoLocked() 97 pos += toRead; in serializeProtoLocked() 98 reader->move(toRead); in serializeProtoLocked()
|
/frameworks/base/cmds/statsd/src/subscriber/ |
D | IncidentdReporter.cpp | 128 size_t toRead = reader->currentToRead(); in getProtoData() local 129 std::memcpy(&((*protoData)[pos]), reader->readBuffer(), toRead); in getProtoData() 130 pos += toRead; in getProtoData() 131 reader->move(toRead); in getProtoData()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | FullBackupUtils.java | 51 int toRead = (chunkTotal > buffer.length) ? buffer.length : chunkTotal; in routeSocketDataToOutput() local 52 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput()
|
D | RestoreUtils.java | 99 long toRead = (buffer.length < size) ? buffer.length : size; in installApk() local 100 int didRead = instream.read(buffer, 0, (int) toRead); in installApk()
|
/frameworks/base/cmds/statsd/src/external/ |
D | GpuStatsPuller.cpp | 130 const size_t toRead = reader->currentToRead(); in protoOutputStreamToByteString() local 131 byteString.append((char*)reader->readBuffer(), toRead); in protoOutputStreamToByteString() 132 reader->move(toRead); in protoOutputStreamToByteString()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 889 int toRead = (mode == MUTED) ? 0 : sampleCount; in threadLoop() local 892 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { in threadLoop() 909 if (toRead > 0) { in threadLoop() 911 buffer.frameCount = toRead; in threadLoop() 915 int offset = sampleCount - toRead; in threadLoop() 917 toRead -= buffer.frameCount; in threadLoop()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | FullRestoreEngine.java | 485 int toRead = (toCopy > buffer.length) in restoreOneFile() local 487 int nRead = instream.read(buffer, 0, toRead); in restoreOneFile() 548 int toRead = (bytesToConsume > buffer.length) in restoreOneFile() local 550 long nRead = instream.read(buffer, 0, toRead); in restoreOneFile()
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEvent.cpp | 662 size_t toRead = reader->currentToRead(); in writeExperimentIdsToProto() local 663 std::memcpy(protoOut->data() + pos, reader->readBuffer(), toRead); in writeExperimentIdsToProto() 664 pos += toRead; in writeExperimentIdsToProto() 665 reader->move(toRead); in writeExperimentIdsToProto()
|
/frameworks/base/core/java/android/os/ |
D | RecoverySystem.java | 302 long toRead = fileLen - commentSize - 2; in verifyPackage() 315 if (soFar >= toRead) { in verifyPackage() 323 if (soFar + size > toRead) { in verifyPackage() 324 size = (int)(toRead - soFar); in verifyPackage() 331 int p = (int)(soFar * 100 / toRead); in verifyPackage()
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.cpp | 1011 size_t toRead = reader->currentToRead(); in dumpStats() local 1012 std::memcpy(&((*output)[pos]), reader->readBuffer(), toRead); in dumpStats() 1013 pos += toRead; in dumpStats() 1014 reader->move(toRead); in dumpStats()
|
/frameworks/base/core/java/android/app/backup/ |
D | FullBackup.java | 179 int toRead = (size > buffer.length) ? buffer.length : (int)size; in restoreFile() local 180 int got = in.read(buffer, 0, toRead); in restoreFile()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | ValueMetricProducer_test.cpp | 2824 size_t toRead = reader->currentToRead(); in outputStreamToProto() local 2825 std::memcpy(&((bytes)[pos]), reader->readBuffer(), toRead); in outputStreamToProto() 2826 pos += toRead; in outputStreamToProto() 2827 reader->move(toRead); in outputStreamToProto()
|