Home
last modified time | relevance | path

Searched refs:ranges_ (Results 1 – 8 of 8) sorted by relevance

/bootable/recovery/otautil/include/otautil/
Drangeset.h69 return ranges_.size(); in size()
78 return ranges_.cbegin(); in cbegin()
82 return ranges_.cend(); in cend()
86 return ranges_.begin(); in begin()
90 return ranges_.end(); in end()
94 return ranges_.begin(); in begin()
98 return ranges_.end(); in end()
103 return ranges_.crbegin(); in crbegin()
107 return ranges_.crend(); in crend()
112 return !ranges_.empty();
[all …]
Dsysutil.h86 return ranges_.size(); in ranges()
101 std::vector<MappedRange> ranges_; variable
/bootable/recovery/otautil/
Drangeset.cpp96 ranges_.push_back(std::move(range)); in PushBack()
102 ranges_.clear(); in Clear()
107 if (ranges_.empty() || groups == 0) return {}; in Split()
121 auto it = ranges_.cbegin(); in Split()
136 if (it != ranges_.cend()) { in Split()
147 if (ranges_.empty()) { in ToString()
150 std::string result = std::to_string(ranges_.size() * 2); in ToString()
151 for (const auto& [begin, end] : ranges_) { in ToString()
162 for (const auto& [begin, end] : ranges_) { in GetBlockNumber()
176 for (const auto& [begin, end] : ranges_) { in Overlaps()
[all …]
Dsysutil.cpp120 ranges_.clear(); in MapFD()
121 ranges_.emplace_back(MappedRange{ memPtr, static_cast<size_t>(sb.st_size) }); in MapFD()
153 ranges_.clear(); in MapBlockFile()
166 ranges_.emplace_back(MappedRange{ range_start, range_size }); in MapBlockFile()
214 for (const auto& range : ranges_) { in ~MemMapping()
219 ranges_.clear(); in ~MemMapping()
/bootable/recovery/updater/include/private/
Dcommands.h37 : hash_(std::move(hash)), ranges_(std::move(ranges)) {} in TargetInfo()
44 return ranges_; in ranges()
48 return ranges_.blocks(); in blocks()
52 return hash_ == other.hash_ && ranges_ == other.ranges_;
61 RangeSet ranges_; variable
71 StashInfo(std::string id, RangeSet ranges) : id_(std::move(id)), ranges_(std::move(ranges)) {} in StashInfo()
74 return ranges_.blocks(); in blocks()
82 return ranges_; in ranges()
86 return id_ == other.id_ && ranges_ == other.ranges_;
95 RangeSet ranges_; variable
[all …]
/bootable/recovery/updater/
Dcommands.cpp312 return ranges_.Overlaps(target.ranges()); in Overlaps()
339 if (ranges_) { in ReadAll()
340 if (block_reader(ranges_, buffer) != 0) { in ReadAll()
360 LOG(INFO) << "Dumping hashes in hex for " << ranges_.blocks() << " source blocks"; in DumpBuffer()
362 const RangeSet& location = location_ ? location_ : RangeSet({ Range{ 0, ranges_.blocks() } }); in DumpBuffer()
363 for (size_t i = 0; i < ranges_.blocks(); i++) { in DumpBuffer()
364 size_t block_num = ranges_.GetBlockNumber(i); in DumpBuffer()
381 os << target.blocks() << " blocks (" << target.hash_ << "): " << target.ranges_.ToString(); in operator <<()
386 os << stash.blocks() << " blocks (" << stash.id_ << "): " << stash.ranges_.ToString(); in operator <<()
392 if (source.ranges_) { in operator <<()
[all …]
/bootable/recovery/fuse_sideload/include/
Dfuse_provider.h90 return ranges_; in ranges()
110 RangeSet ranges_; variable
/bootable/recovery/fuse_sideload/
Dfuse_provider.cpp87 ranges_(std::move(ranges)) { in FuseBlockDataProvider()
103 ranges_.GetSubRanges(offset / source_block_size_, fetch_size / source_block_size_); in ReadBlockAlignedData()