Home
last modified time | relevance | path

Searched refs:offset_ (Results 1 – 25 of 29) sorted by relevance

12

/system/update_engine/payload_consumer/
Dfake_file_descriptor.cc23 read_ops_.emplace_back(offset_, count); in Read()
26 if (offset_ >= static_cast<uint64_t>(size_) || count == 0) in Read()
34 if (failure.first <= offset_ && offset_ < failure.first + failure.second) { in Read()
38 if (failure.first > offset_) in Read()
41 count = std::min(static_cast<uint64_t>(count), first_failure - offset_); in Read()
45 uint16_t current_num = offset_ / 4; in Read()
46 uint8_t current_digit = (current_num >> (4 * (3 - offset_ % 4))) & 0x0f; in Read()
49 offset_++; in Read()
58 offset_ = offset; in Seek()
61 offset_ += offset; in Seek()
[all …]
Dcached_file_descriptor.cc34 off64_t next_offset = whence == SEEK_SET ? offset : offset_ + offset; in Seek()
36 if (next_offset != offset_) { in Seek()
46 offset_ = next_offset; in Seek()
48 return offset_; in Seek()
71 offset_ += total_bytes_wrote; in Write()
80 offset_ = 0; in Close()
Dextent_reader.cc52 if (offset_ == offset) { in Seek()
62 offset_ = offset; in Seek()
63 cur_extent_bytes_read_ = offset_ - extents_upper_bounds_[extent_idx]; in Seek()
91 offset_ += bytes_to_read; in Read()
Dinstall_operation_executor.cc61 offset_ += count; in Read()
68 offset_ += count; in Write()
75 offset_ = pos; in Seek()
79 TEST_AND_RETURN_FALSE(offset_ == static_cast<uint64_t>(pos)); in Seek()
98 offset_(0) {} in BsdiffExtentFile()
103 uint64_t offset_; member in chromeos_update_engine::BsdiffExtentFile
127 *offset = offset_; in GetOffset()
134 offset_ = offset; in Seek()
138 TEST_AND_RETURN_FALSE(offset_ == offset); in Seek()
146 offset_ += count; in Read()
[all …]
Dextent_reader.h70 uint64_t offset_{0};
Dfake_file_descriptor.h109 uint64_t offset_{0};
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dsnapshot_reader.cpp103 uint64_t start_chunk = offset_ / block_size_; in Read()
104 uint64_t end_chunk = (offset_ + count - 1) / block_size_; in Read()
107 size_t start_offset = offset_ % block_size_; in Read()
117 offset_ += rv; in Read()
126 offset_ += rv; in Read()
136 offset_ += rv; in Read()
243 offset_ = offset; in Seek()
246 offset_ = static_cast<off64_t>(block_device_size_) + offset; in Seek()
249 offset_ += offset; in Seek()
256 return offset_; in Seek()
Dsnapshot_reader.h58 off64_t offset_ = 0; variable
/system/libbase/include/android-base/
Dmapped_file.h70 char* data() const { return base_ + offset_; } in data()
81 size_t offset_; variable
85 : base_(base), size_(size), offset_(offset), handle_(handle) {} in MappedFile()
88 MappedFile(char* base, size_t size, size_t offset) : base_(base), size_(size), offset_(offset) {} in MappedFile()
/system/libbase/
Dmapped_file.cpp91 offset_(std::exchange(other.offset_, 0)) in MappedFile()
103 offset_ = std::exchange(other.offset_, 0); in operator =()
120 if (base_ != nullptr && size_ != 0) munmap(base_, size_ + offset_); in Close()
124 offset_ = size_ = 0; in Close()
/system/unwinding/libunwindstack/
DMemoryBuffer.h30 MemoryBuffer(size_t size) : raw_(size > kMaxBufferSize ? 0 : size), offset_(0) {} in MemoryBuffer()
32 : raw_(size > kMaxBufferSize ? 0 : size), offset_(offset) {} in MemoryBuffer()
44 uint64_t offset_; variable
DMemory.cpp236 if (addr < offset_) { in Read()
239 addr -= offset_; in Read()
252 if (addr < offset_) { in GetPtr()
255 addr -= offset_; in GetPtr()
268 munmap(&data_[-offset_], size_ + offset_); in Clear()
289 offset_ = offset & (getpagesize() - 1); in Init()
298 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init()
307 data_ = &reinterpret_cast<uint8_t*>(map)[offset_]; in Init()
308 size_ -= offset_; in Init()
363 : memory_(memory), begin_(begin), length_(length), offset_(offset) {} in MemoryRange()
[all …]
DMemoryRange.h40 uint64_t offset() { return offset_; } in offset()
47 uint64_t offset_; variable
DSymbols.cpp34 : offset_(offset), in Symbols()
80 if (__builtin_add_overflow(offset, offset_, &offset)) { in BinarySearch()
118 if (__builtin_add_overflow(offset, offset_, &offset)) { in BuildRemapTable()
173 if (__builtin_add_overflow(offset, offset_, &offset)) { in GetName()
209 if (__builtin_add_overflow(offset_, offset, &offset)) { in GetGlobal()
DMemoryFileAtOffset.h42 size_t offset_ = 0; variable
DSymbols.h63 const uint64_t offset_; variable
/system/update_engine/common/
Dmulti_range_http_fetcher.h131 Range(off_t offset, size_t length) : offset_(offset), length_(length) {} in Range()
132 explicit Range(off_t offset) : offset_(offset), length_(0) {} in Range()
134 inline off_t offset() const { return offset_; } in offset()
142 off_t offset_;
Dfile_fetcher.h46 void SetOffset(off_t offset) override { offset_ = offset; } in SetOffset()
109 uint64_t offset_{0};
Dfile_fetcher.cc96 if (offset_) in BeginTransfer()
97 stream_->SetPosition(offset_, nullptr); in BeginTransfer()
/system/core/property_service/libpropertyinfoserializer/
Dtrie_node_arena.h30 : arena_data_(arena_data), offset_(offset) {} in ArenaObjectPointer()
32 T* operator->() { return reinterpret_cast<T*>(arena_data_.data() + offset_); }
36 uint32_t offset_; variable
/system/update_engine/payload_generator/
Dfull_update_generator.cc58 offset_(offset), in ChunkProcessor()
79 off_t offset_; member in chromeos_update_engine::__anon86205efc0111::ChunkProcessor
89 LOG(ERROR) << "Error processing region at " << offset_ << " of size " in Run()
99 fd_, buffer_in_.data(), buffer_in_.size(), offset_, &bytes_read)); in ProcessChunk()
/system/unwinding/libunwindstack/include/unwindstack/
DMapInfo.h44 offset_(offset), in MapInfo()
52 offset_(offset), in MapInfo()
142 inline uint64_t offset() const { return offset_; } in offset()
143 inline void set_offset(uint64_t value) { offset_ = value; } in set_offset()
223 uint64_t offset_ = 0; variable
/system/libziparchive/
Dzip_archive_stream_entry.cc44 offset_ = entry.offset; in Init()
95 auto res = archive->mapped_zip.ReadAtOffset(data_.data(), bytes, offset_); in Read()
114 offset_ += bytes; in Read()
227 auto res = archive->mapped_zip.ReadAtOffset(in_.data(), bytes, offset_); in Read()
238 offset_ += bytes; in Read()
/system/update_engine/lz4diff/
Dlz4patch.cc79 *offset = offset_; in GetOffset()
88 offset_ = offset; in Seek()
94 TEST_AND_RETURN_FALSE(offset_ + length <= read_memory_.size()); in Read()
95 memcpy(buffer, read_memory_.data() + offset_, length); in Read()
96 offset_ += length; in Read()
120 uint64_t offset_{}; member in chromeos_update_engine::__anonb93419ce0111::StringViewStream
/system/libziparchive/include/ziparchive/
Dzip_archive_stream_entry.h44 off64_t offset_ = 0; variable

12