Home
last modified time | relevance | path

Searched refs:ranges (Results 1 – 15 of 15) sorted by relevance

/bootable/recovery/update_verifier/
Dupdate_verifier.cpp139 const std::string& dm_block_device, const RangeSet& ranges) { in ReadBlocks() argument
143 std::vector<RangeSet> groups = ranges.Split(thread_num); in ReadBlocks()
198 for (const auto& [partition_name, ranges] : partition_map_) { in VerifyPartitions()
204 if (!ReadBlocks(partition_name, dm_block_devices.at(partition_name), ranges)) { in VerifyPartitions()
252 if (partition.ranges().empty()) { in ParseCareMap()
256 RangeSet ranges = RangeSet::Parse(partition.ranges()); in ParseCareMap() local
257 if (!ranges) { in ParseCareMap()
258 LOG(WARNING) << "Error parsing RangeSet string " << partition.ranges(); in ParseCareMap()
277 partition_map_.emplace(partition.name(), ranges); in ParseCareMap()
Dcare_map_generator.py52 info.ranges = lines[index + 1]
57 info.name, info.ranges, info.id, info.fingerprint)
79 assert info.ranges, "source range is required in care_map"
80 info_list += [info.name, info.ranges]
Dcare_map.proto25 string ranges = 2; field
/bootable/recovery/updater/include/private/
Dcommands.h36 TargetInfo(std::string hash, RangeSet ranges) in TargetInfo() argument
37 : hash_(std::move(hash)), ranges_(std::move(ranges)) {} in TargetInfo()
43 const RangeSet& ranges() const { in ranges() function
71 StashInfo(std::string id, RangeSet ranges) : id_(std::move(id)), ranges_(std::move(ranges)) {} in StashInfo() argument
81 const RangeSet& ranges() const { in ranges() function
106 SourceInfo(std::string hash, RangeSet ranges, RangeSet location, std::vector<StashInfo> stashes) in SourceInfo() argument
108 ranges_(std::move(ranges)), in SourceInfo()
113 blocks_ += stash.ranges().blocks(); in SourceInfo()
/bootable/recovery/uncrypt/
Duncrypt.cpp157 static void add_block_to_ranges(std::vector<int>& ranges, int new_block) { in add_block_to_ranges() argument
158 if (!ranges.empty() && new_block == ranges.back()) { in add_block_to_ranges()
161 ++ranges.back(); in add_block_to_ranges()
164 ranges.push_back(new_block); in add_block_to_ranges()
165 ranges.push_back(new_block + 1); in add_block_to_ranges()
274 std::vector<int> ranges; in ProductBlockMap() local
358 add_block_to_ranges(ranges, block); in ProductBlockMap()
403 add_block_to_ranges(ranges, block); in ProductBlockMap()
415 android::base::StringPrintf("%zu\n", ranges.size() / 2), mapfd)) { in ProductBlockMap()
419 for (size_t i = 0; i < ranges.size(); i += 2) { in ProductBlockMap()
[all …]
/bootable/recovery/tests/unit/
Dsysutil_test.cpp102 ASSERT_EQ(1U, mapping.ranges()); in TEST()
123 ASSERT_EQ(1U, mapping.ranges()); in TEST()
131 ASSERT_EQ(1U, mapping.ranges()); in TEST()
139 ASSERT_EQ(1U, mapping.ranges()); in TEST()
147 ASSERT_EQ(3U, mapping.ranges()); in TEST()
Drangeset_test.cpp230 std::vector<Range> ranges; in TEST() local
232 ranges.push_back(range); in TEST()
234 ASSERT_EQ((std::vector<Range>{ Range{ 1, 5 }, Range{ 8, 10 } }), ranges); in TEST()
236 ranges.clear(); in TEST()
240 ranges.push_back(*it); in TEST()
242 ASSERT_EQ((std::vector<Range>{ Range{ 8, 10 }, Range{ 1, 5 } }), ranges); in TEST()
Dfuse_provider_test.cpp48 static_cast<FuseBlockDataProvider*>(block_map_data.get())->ranges()); in TEST()
/bootable/recovery/fuse_sideload/include/
Dfuse_provider.h89 RangeSet ranges() const { in ranges() function
104 uint32_t source_block_size, RangeSet ranges);
/bootable/recovery/otautil/
Dsysutil.cpp79 RangeSet ranges; in ParseBlockMapFile() local
93 ranges.PushBack({ start, end }); in ParseBlockMapFile()
102 return BlockMapData(block_dev, file_size, blksize, std::move(ranges)); in ParseBlockMapFile()
/bootable/recovery/fuse_sideload/
Dfuse_provider.cpp83 uint32_t source_block_size, RangeSet ranges) in FuseBlockDataProvider() argument
87 ranges_(std::move(ranges)) { in FuseBlockDataProvider()
/bootable/recovery/update_verifier/include/update_verifier/
Dupdate_verifier.h58 const RangeSet& ranges);
/bootable/recovery/otautil/include/otautil/
Dsysutil.h85 size_t ranges() const { in ranges() function
/bootable/recovery/updater/
Dcommands.cpp312 return ranges_.Overlaps(target.ranges()); in Overlaps()
354 MoveRange(buffer, stash.ranges(), stash_buffer, block_size); in ReadAll()
Dblockimg.cpp2080 const std::unique_ptr<Value>& ranges = args[1]; in RangeSha1Fn() local
2086 if (ranges->type != Value::Type::STRING) { in RangeSha1Fn()
2106 RangeSet rs = RangeSet::Parse(ranges->data); in RangeSha1Fn()
2221 const std::unique_ptr<Value>& ranges = args[1]; in BlockImageRecoverFn() local
2227 if (ranges->type != Value::Type::STRING) { in BlockImageRecoverFn()
2231 RangeSet rs = RangeSet::Parse(ranges->data); in BlockImageRecoverFn()
2233 ErrorAbort(state, kArgsParsingFailure, "failed to parse ranges: %s", ranges->data.c_str()); in BlockImageRecoverFn()