Home
last modified time | relevance | path

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

/bootable/recovery/otautil/
Drangeset.cpp39 for (const auto& range : pairs) { in RangeSet() local
40 if (!PushBack(range)) { in RangeSet()
85 bool RangeSet::PushBack(Range range) { in PushBack() argument
86 if (range.first >= range.second) { in PushBack()
87 LOG(ERROR) << "Empty or negative range: " << range.first << ", " << range.second; in PushBack()
90 size_t sz = range.second - range.first; in PushBack()
96 ranges_.push_back(std::move(range)); in PushBack()
122 Range range = *it; in Split() local
127 size_t range_blocks = range.second - range.first; in Split()
130 buffer.PushBack({ range.first, range.first + needed }); in Split()
[all …]
Dsysutil.cpp214 for (const auto& range : ranges_) { in ~MemMapping() local
215 if (munmap(range.addr, range.length) == -1) { in ~MemMapping()
216 PLOG(ERROR) << "Failed to munmap(" << range.addr << ", " << range.length << ")"; in ~MemMapping()
/bootable/recovery/install/
Dwipe_device.cpp97 uint64_t range[2] = { 0, 0 }; in SecureWipePartition() local
98 if (ioctl(fd, BLKGETSIZE64, &range[1]) == -1 || range[1] == 0) { in SecureWipePartition()
102 LOG(INFO) << "Secure-wiping \"" << partition << "\" from " << range[0] << " to " << range[1]; in SecureWipePartition()
105 if (ioctl(fd, BLKSECDISCARD, &range) == -1) { in SecureWipePartition()
112 if (ioctl(fd, BLKDISCARD, &range) == -1) { in SecureWipePartition()
118 if (ioctl(fd, BLKZEROOUT, &range) == -1) { in SecureWipePartition()
/bootable/recovery/
Dinterlace-frames.py48 for j in range(h):
49 for i in range(w):
83 for k in range(num_frames):
86 for i in range(width):
87 for j in range(height):
/bootable/recovery/otautil/include/otautil/
Drangeset.h39 bool PushBack(Range range);
/bootable/recovery/update_verifier/
Dcare_map_generator.py49 for index in range(0, len(lines), step):
/bootable/recovery/tests/unit/
Drangeset_test.cpp231 for (const auto& range : rs) { in TEST() local
232 ranges.push_back(range); in TEST()
/bootable/recovery/updater/
Dblockimg.cpp305 const Range& range = tgt_[next_range_]; in SeekToOutputRange() local
306 off64_t offset = static_cast<off64_t>(range.first) * BLOCKSIZE; in SeekToOutputRange()
307 current_range_left_ = (range.second - range.first) * BLOCKSIZE; in SeekToOutputRange()