/bootable/recovery/update_verifier/ |
D | update_verifier.cpp | 139 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()
|
D | care_map_generator.py | 52 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]
|
D | care_map.proto | 25 string ranges = 2; field
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 36 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/ |
D | uncrypt.cpp | 157 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/ |
D | sysutil_test.cpp | 102 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()
|
D | rangeset_test.cpp | 229 std::vector<Range> ranges; in TEST() local 231 ranges.push_back(range); in TEST() 233 ASSERT_EQ((std::vector<Range>{ Range{ 1, 5 }, Range{ 8, 10 } }), ranges); in TEST() 235 ranges.clear(); in TEST() 239 ranges.push_back(*it); in TEST() 241 ASSERT_EQ((std::vector<Range>{ Range{ 8, 10 }, Range{ 1, 5 } }), ranges); in TEST()
|
/bootable/recovery/update_verifier/include/update_verifier/ |
D | update_verifier.h | 58 const RangeSet& ranges);
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 79 RangeSet ranges; in ParseBlockMapFile() local 93 ranges.PushBack({ start, end }); in ParseBlockMapFile() 97 return BlockMapData(block_dev, file_size, blksize, std::move(ranges)); in ParseBlockMapFile()
|
/bootable/recovery/otautil/include/otautil/ |
D | sysutil.h | 85 size_t ranges() const { in ranges() function
|
/bootable/recovery/updater/ |
D | commands.cpp | 313 return ranges_.Overlaps(target.ranges()); in Overlaps() 355 MoveRange(buffer, stash.ranges(), stash_buffer, block_size); in ReadAll()
|
D | blockimg.cpp | 2071 const std::unique_ptr<Value>& ranges = args[1]; in RangeSha1Fn() local 2077 if (ranges->type != Value::Type::STRING) { in RangeSha1Fn() 2090 RangeSet rs = RangeSet::Parse(ranges->data); in RangeSha1Fn() 2196 const std::unique_ptr<Value>& ranges = args[1]; in BlockImageRecoverFn() local 2202 if (ranges->type != Value::Type::STRING) { in BlockImageRecoverFn() 2206 RangeSet rs = RangeSet::Parse(ranges->data); in BlockImageRecoverFn() 2208 ErrorAbort(state, kArgsParsingFailure, "failed to parse ranges: %s", ranges->data.c_str()); in BlockImageRecoverFn()
|