Home
last modified time | relevance | path

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

/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()
Dfilesystem_verifier_action.cc159 offset_ = 0; in StartPartitionHashing()
181 offset_ < partition.hash_tree_data_offset + partition.hash_tree_data_size) in ScheduleRead()
184 offset_ < partition.fec_data_offset + partition.fec_data_size) in ScheduleRead()
187 std::min(static_cast<uint64_t>(buffer_.size()), read_end - offset_); in ScheduleRead()
214 LOG(ERROR) << "Failed to read the remaining " << partition_size_ - offset_ in OnReadDoneCallback()
232 (static_cast<double>(offset_) / partition_size_ + partition_index_) / in OnReadDoneCallback()
236 if (!verity_writer_->Update(offset_, buffer_.data(), bytes_read)) { in OnReadDoneCallback()
242 offset_ += bytes_read; in OnReadDoneCallback()
244 if (offset_ == partition_size_) { in OnReadDoneCallback()
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()
Dextent_reader.h70 uint64_t offset_{0};
Dfilesystem_verifier_action.h142 uint64_t offset_{0};
Dcached_file_descriptor.h69 off64_t offset_{0};
Ddelta_performer.cc1310 offset_ += count; in Read()
1317 offset_ += count; in Write()
1324 offset_ = pos; in Seek()
1328 TEST_AND_RETURN_FALSE(offset_ == static_cast<uint64_t>(pos)); in Seek()
1347 offset_(0) {} in BsdiffExtentFile()
1352 uint64_t offset_; member in chromeos_update_engine::__anona5c7ad4d0311::BsdiffExtentFile
1417 *offset = offset_; in GetOffset()
1424 offset_ = offset; in Seek()
1428 TEST_AND_RETURN_FALSE(offset_ == offset); in Seek()
1436 offset_ += count; in Read()
[all …]
Dfake_file_descriptor.h109 uint64_t offset_{0};
/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/bt/vendor_libs/test_vendor_lib/model/devices/
Dlink_layer_socket_device.cc45 offset_ = 0; in TimerTick()
47 size_t bytes_received = socket_.TryReceive(bytes_left_, received_->data() + offset_); in TimerTick()
52 offset_ += bytes_received; in TimerTick()
59 offset_ = 0; in TimerTick()
Dlink_layer_socket_device.h56 size_t offset_{};
/system/update_engine/common/
Dmulti_range_http_fetcher.h130 Range(off_t offset, size_t length) : offset_(offset), length_(length) {} in Range()
131 explicit Range(off_t offset) : offset_(offset), length_(0) {} in Range()
133 inline off_t offset() const { return offset_; } in offset()
141 off_t offset_;
Dfile_fetcher.h47 void SetOffset(off_t offset) override { offset_ = offset; } in SetOffset()
110 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/core/libunwindstack/
DMemoryRange.h41 uint64_t offset() { return offset_; } in offset()
48 uint64_t offset_; variable
DMemory.cpp244 munmap(&data_[-offset_], size_ + offset_); in Clear()
265 offset_ = offset & (getpagesize() - 1); in Init()
274 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init()
283 data_ = &reinterpret_cast<uint8_t*>(map)[offset_]; in Init()
284 size_ -= offset_; in Init()
349 : memory_(memory), begin_(begin), length_(length), offset_(offset) {} in MemoryRange()
352 if (addr < offset_) { in Read()
356 uint64_t read_offset = addr - offset_; in Read()
DSymbols.cpp33 : offset_(offset), in Symbols()
53 if (!elf_memory->ReadFully(offset_ + symbol_index * entry_size_, &sym, sizeof(sym))) { in ReadFuncInfo()
102 size_t size = elf_memory->Read(offset_ + symbol_idx * entry_size_, buffer, read); in BuildRemapTable()
153 if (!elf_memory->ReadFully(offset_ + i * entry_size_, &entry, sizeof(entry))) { in GetGlobal()
DMemoryFileAtOffset.h41 size_t offset_ = 0; variable
DSymbols.h64 const uint64_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::__anonfb5e7ce80111::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/libziparchive/
Dzip_archive_stream_entry.cc43 offset_ = entry.offset; in Init()
94 if (!archive->mapped_zip.ReadAtOffset(data_.data(), bytes, offset_)) { in Read()
110 offset_ += bytes; in Read()
225 if (!archive->mapped_zip.ReadAtOffset(in_.data(), bytes, offset_)) { in Read()
235 offset_ += bytes; in Read()
/system/libziparchive/include/ziparchive/
Dzip_archive_stream_entry.h44 off64_t offset_ = 0; variable