Home
last modified time | relevance | path

Searched refs:byte_count (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/libs/androidfw/
DBigBufferStream.cpp80 bool BigBufferInputStream::ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument
81 if (byte_count == 0) { in ReadFullyAtOffset()
87 if (offset > std::numeric_limits<off64_t>::max() - byte_count) { in ReadFullyAtOffset()
90 if (offset + byte_count > buffer_->size()) { in ReadFullyAtOffset()
94 for (auto iter = buffer_->begin(); iter != buffer_->end() && byte_count > 0; ++iter) { in ReadFullyAtOffset()
96 size_t to_read = std::min(byte_count, (size_t)(iter->size - offset)); in ReadFullyAtOffset()
98 byte_count -= to_read; in ReadFullyAtOffset()
105 return byte_count == 0; in ReadFullyAtOffset()
DFileStream.cpp127 bool FileInputStream::ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument
128 return base::ReadFullyAtOffset(fd_, data, byte_count, offset); in ReadFullyAtOffset()
/frameworks/native/libs/binder/
Dfile.cpp29 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count) { in ReadFully() argument
31 size_t remaining = byte_count; in ReadFully()
45 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count) { in WriteFully() argument
47 size_t remaining = byte_count; in WriteFully()
Dfile.h36 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count);
37 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count);
/frameworks/base/tools/aapt2/io/
DStringStream.cpp54 bool StringInputStream::ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument
55 if (byte_count == 0) { in ReadFullyAtOffset()
61 if (offset > std::numeric_limits<off64_t>::max() - byte_count) { in ReadFullyAtOffset()
64 if (offset + byte_count > str_.size()) { in ReadFullyAtOffset()
67 memcpy(data, str_.data() + offset, byte_count); in ReadFullyAtOffset()
DStringStream.h49 bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) override;
/frameworks/base/libs/androidfw/include/androidfw/
DStreams.h65 virtual bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument
67 (void)byte_count; in ReadFullyAtOffset()
DBigBufferStream.h50 bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) override;
DFileStream.h59 bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) override;
/frameworks/proto_logging/stats/atoms/threadnetwork/
Dthreadnetwork_atoms.proto104 optional int64 byte_count = 2; field
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp277 ssize_t byte_count; in CopyFile() local
278 while ((byte_count = TEMP_FAILURE_RETRY(read(in_fd, buf, sizeof(buf)))) > 0) { in CopyFile()
279 if (!android::base::WriteFully(out_fd, buf, byte_count)) { in CopyFile()
283 return (byte_count != -1); in CopyFile()