Searched refs:byte_count (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/libs/androidfw/ |
D | BigBufferStream.cpp | 80 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()
|
D | FileStream.cpp | 127 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/ |
D | file.cpp | 29 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()
|
D | file.h | 36 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/ |
D | StringStream.cpp | 54 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()
|
D | StringStream.h | 49 bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) override;
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Streams.h | 65 virtual bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() argument 67 (void)byte_count; in ReadFullyAtOffset()
|
D | BigBufferStream.h | 50 bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) override;
|
D | FileStream.h | 59 bool ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) override;
|
/frameworks/proto_logging/stats/atoms/threadnetwork/ |
D | threadnetwork_atoms.proto | 104 optional int64 byte_count = 2; field
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.cpp | 277 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()
|