/frameworks/libs/binary_translation/tools/nogrod/ |
D | byte_input_stream.cc | 26 : buffer_(buffer), size_(size), offset_(0) {} in ByteInputStream() 29 return offset_ < size_; in available() 33 return offset_; in offset() 37 CHECK(offset_ < size_); in ReadUint8() 38 return buffer_[offset_++]; in ReadUint8() 43 CHECK(offset_ + sizeof(result) <= size_); in ReadUint16() 44 memcpy(&result, buffer_ + offset_, sizeof(result)); in ReadUint16() 45 offset_ += sizeof(result); in ReadUint16() 52 CHECK_LE(offset_ + 3, size_); in ReadUint24() 53 memcpy(&result, buffer_ + offset_, 3); in ReadUint24() [all …]
|
D | dwarf_info.h | 51 [[nodiscard]] uint64_t offset() const { return offset_; } in offset() 74 uint64_t offset_; variable
|
D | byte_input_stream.h | 47 uint64_t offset_; variable
|
D | dwarf_info.cc | 407 : compilation_unit_header_(cu), parent_(parent), offset_(offset), tag_(tag) {} in DwarfDie()
|
/frameworks/base/libs/androidfw/ |
D | BigBufferStream.cpp | 32 if (offset_ == iter_->size) { in Next() 37 offset_ = 0; in Next() 40 *data = iter_->buffer.get() + offset_; in Next() 41 *size = iter_->size - offset_; in Next() 42 bytes_read_ += iter_->size - offset_; in Next() 43 offset_ = iter_->size; in Next() 48 if (count > offset_) { in BackUp() 49 bytes_read_ -= offset_; in BackUp() 50 offset_ = 0; in BackUp() 52 offset_ -= count; in BackUp() [all …]
|
/frameworks/base/tools/aapt2/io/ |
D | StringStream.cpp | 24 StringInputStream::StringInputStream(StringPiece str) : str_(str), offset_(0u) { in StringInputStream() 28 if (offset_ == str_.size()) { in Next() 32 *data = str_.data() + offset_; in Next() 33 *size = str_.size() - offset_; in Next() 34 offset_ = str_.size(); in Next() 39 if (count > offset_) { in BackUp() 40 offset_ = 0u; in BackUp() 42 offset_ -= count; in BackUp() 47 return offset_; in ByteCount()
|
D | Data.h | 45 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment() 49 return static_cast<const uint8_t*>(data_->data()) + offset_; in data() 55 if (next_read_ == offset_ + len_) { in Next() 59 *size = len_ - (next_read_ - offset_); in Next() 60 next_read_ = offset_ + len_; in Next() 65 if (count > next_read_ - offset_) { in BackUp() 66 next_read_ = offset_; in BackUp() 75 next_read_ = offset_; in Rewind() 79 size_t ByteCount() const override { return next_read_ - offset_; } in ByteCount() 87 size_t offset_; variable
|
D | File.cpp | 36 if (offset_ <= data->size() - len_) { in OpenAsData() 37 return util::make_unique<DataSegment>(std::move(data), offset_, len_); in OpenAsData()
|
D | File.h | 78 : file_(file), offset_(offset), len_(len) {} in FileSegment() 95 size_t offset_; variable
|
D | StringStream.h | 55 size_t offset_; variable
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | RawPrintVisitor.cpp | 163 stream_ << base::StringPrintf("%08zx: %02x", offset_, value) << " " << comment in print() 165 offset_ += sizeof(uint8_t); in print() 176 stream_ << base::StringPrintf("%08zx: %04x", offset_, value) << " " << comment << '\n'; in print() 177 offset_ += sizeof(uint16_t); in print() 188 stream_ << base::StringPrintf("%08zx: %08x", offset_, value) << " " << comment << '\n'; in print() 189 offset_ += sizeof(uint32_t); in print() 200 stream_ << base::StringPrintf("%08zx: %08x", offset_, (uint32_t)value.size()) << " " << comment in print() 202 offset_ += sizeof(uint32_t); in print() 204 stream_ << base::StringPrintf("%08zx: ", offset_) << "........ " << comment; in print() 205 offset_ += value.size() + CalculatePadding(value.size()); in print() [all …]
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | RawPrintVisitor.h | 35 explicit RawPrintVisitor(std::ostream& stream) : stream_(stream), offset_(0) { in RawPrintVisitor() 52 size_t offset_; variable
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | BigBufferStream.h | 58 size_t offset_ = 0; variable
|
/frameworks/av/media/codec2/vndk/ |
D | C2Buffer.cpp | 328 C2ConstLinearBlock C2ConstLinearBlock::subBlock(size_t offset_, size_t size_) const { in subBlock() argument 329 C2LinearRange subRange(*mImpl, offset_, size_); in subBlock() 358 C2ConstLinearBlock C2LinearBlock::share(size_t offset_, size_t size_, C2Fence fence) { in share() argument 359 return ConstLinearBlockBuddy(mImpl, C2LinearRange(*this, offset_, size_), fence); in share()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Buffer.h | 257 inline constexpr C2Segment(uint32_t offset_, uint32_t size_) in C2Segment() 258 : offset(offset_), in C2Segment()
|