/system/update_engine/payload_generator/ |
D | extent_ranges.h | 38 bool operator()(const Extent& x, const Extent& y) const { in operator() 43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks); 44 Extent ExtentForBytes(uint64_t block_size, 50 typedef std::set<Extent, ExtentLess> ExtentSet; 55 void AddExtent(Extent extent); 56 void SubtractExtent(const Extent& extent); 57 void AddExtents(const std::vector<Extent>& extents); 58 void SubtractExtents(const std::vector<Extent>& extents); 60 const ::google::protobuf::RepeatedPtrField<Extent>& exts); 62 const ::google::protobuf::RepeatedPtrField<Extent>& exts); [all …]
|
D | extent_utils.cc | 38 void AppendBlockToExtents(vector<Extent>* extents, uint64_t block) { in AppendBlockToExtents() 41 Extent& extent = extents->back(); in AppendBlockToExtents() 51 Extent new_extent; in AppendBlockToExtents() 58 google::protobuf::RepeatedPtrField<Extent>* extents, in ExtendExtents() 59 const google::protobuf::RepeatedPtrField<Extent>& extents_to_add) { in ExtendExtents() 60 vector<Extent> extents_vector; in ExtendExtents() 61 vector<Extent> extents_to_add_vector; in ExtendExtents() 73 void StoreExtents(const vector<Extent>& extents, in StoreExtents() 74 google::protobuf::RepeatedPtrField<Extent>* out) { in StoreExtents() 75 for (const Extent& extent : extents) { in StoreExtents() [all …]
|
D | extent_utils.h | 35 void AppendBlockToExtents(std::vector<Extent>* extents, uint64_t block); 57 void StoreExtents(const std::vector<Extent>& extents, 58 google::protobuf::RepeatedPtrField<Extent>* out); 61 void ExtentsToVector(const google::protobuf::RepeatedPtrField<Extent>& extents, 62 std::vector<Extent>* out_vector); 65 std::string ExtentsToString(const std::vector<Extent>& extents); 70 google::protobuf::RepeatedPtrField<Extent>* extents, 71 const google::protobuf::RepeatedPtrField<Extent>& extents_to_add); 76 void NormalizeExtents(std::vector<Extent>* extents); 82 std::vector<Extent> ExtentsSublist(const std::vector<Extent>& extents, [all …]
|
D | extent_utils_unittest.cc | 35 vector<Extent> extents; in TEST() 56 vector<Extent> extents; in TEST() 66 google::protobuf::RepeatedPtrField<Extent> extents; in TEST() 87 vector<Extent> first_op_vec; in TEST() 90 (vector<Extent>{ in TEST() 97 vector<Extent> extents; in TEST() 108 vector<Extent> extents = {ExtentForRange(0, 3), in TEST() 122 vector<Extent> extents = { in TEST() 126 EXPECT_EQ(vector<Extent>(), ExtentsSublist(extents, 1000, 20)); in TEST() 127 EXPECT_EQ(vector<Extent>(), ExtentsSublist(extents, 5, 0)); in TEST() [all …]
|
D | extent_ranges.cc | 34 bool ExtentRanges::ExtentsOverlapOrTouch(const Extent& a, const Extent& b) { in ExtentsOverlapOrTouch() 46 bool ExtentRanges::ExtentsOverlap(const Extent& a, const Extent& b) { in ExtentsOverlap() 68 Extent UnionOverlappingExtents(const Extent& first, const Extent& second) { in UnionOverlappingExtents() 79 void ExtentRanges::AddExtent(Extent extent) { in AddExtent() 107 ExtentRanges::ExtentSet SubtractOverlappingExtents(const Extent& base, in SubtractOverlappingExtents() 108 const Extent& subtractee) { in SubtractOverlappingExtents() 123 void ExtentRanges::SubtractExtent(const Extent& extent) { in SubtractExtent() 175 void ExtentRanges::AddExtents(const vector<Extent>& extents) { in AddExtents() 176 for (vector<Extent>::const_iterator it = extents.begin(), e = extents.end(); in AddExtents() 183 void ExtentRanges::SubtractExtents(const vector<Extent>& extents) { in SubtractExtents() [all …]
|
D | deflate_utils.h | 47 bool ShiftExtentsOverExtents(const std::vector<Extent>& base_extents, 48 std::vector<Extent>* over_extents); 62 bool ShiftBitExtentsOverExtents(const std::vector<Extent>& base_extents, 68 const std::vector<Extent>& extents, 84 bool CompactDeflates(const std::vector<Extent>& extents, 89 bool FindAndCompactDeflates(const std::vector<Extent>& extents,
|
D | extent_ranges_unittest.cc | 223 ranges.AddExtents(vector<Extent>(1, ExtentForRange(10, 30))); in TEST() 225 vector<Extent> zero_extents = ranges.GetExtentsForBlockCount(0); in TEST() 228 ::google::protobuf::RepeatedPtrField<Extent> rep_field; in TEST() 231 ranges.SubtractExtents(vector<Extent>(1, ExtentForRange(20, 10))); in TEST() 237 vector<Extent> expected(2); in TEST() 240 vector<Extent> actual = in TEST() 243 for (vector<Extent>::size_type j = 0, e = expected.size(); j != e; ++j) { in TEST() 273 EXPECT_EQ(vector<Extent>(), FilterExtentRanges(vector<Extent>(), ranges)); in TEST() 274 EXPECT_EQ(vector<Extent>{ExtentForRange(50, 10)}, in TEST() 275 FilterExtentRanges(vector<Extent>{ExtentForRange(50, 10)}, ranges)); in TEST() [all …]
|
D | deflate_utils_unittest.cc | 50 vector<Extent> base_extents = {ExtentForRange(10, 10), in TEST() 55 vector<Extent> over_extents = {ExtentForRange(2, 2), in TEST() 61 vector<Extent> out_over_extents = {ExtentForRange(12, 2), in TEST() 80 vector<Extent> base_extents = {ExtentForRange(3, 1), in TEST() 94 vector<Extent> base_extents = {ExtentForRange(1, 1)}; in TEST() 125 vector<Extent> extents = { in TEST() 145 vector<Extent> extents = {}; in TEST() 159 vector<Extent> extents = { in TEST() 171 vector<Extent> extents = {}; in TEST()
|
D | mapfile_filesystem_unittest.cc | 47 void ExpectBlocksInRange(const vector<Extent>& extents, uint64_t total_blocks) { in ExpectBlocksInRange() 48 for (const Extent& extent : extents) { in ExpectBlocksInRange() 98 (vector<Extent>{ExtentForRange(1, 1)})); in TEST_F() 100 (vector<Extent>{ExtentForRange(2, 3)})); in TEST_F() 103 (vector<Extent>{ in TEST_F() 106 (vector<Extent>{ExtentForRange(14, 1), ExtentForRange(19, 1)})); in TEST_F() 107 EXPECT_EQ(map_files["/1234"].extents, (vector<Extent>{ExtentForRange(7, 1)})); in TEST_F()
|
D | merge_sequence_generator.h | 33 CowMergeOperation CreateCowMergeOperation(const Extent& src_extent, 34 const Extent& dst_extent); 73 void SplitSelfOverlapping(const Extent& src_extent, 74 const Extent& dst_extent,
|
D | payload_generation_config.h | 62 Extent hash_tree_data_extent; 65 Extent hash_tree_extent; 74 Extent fec_data_extent; 77 Extent fec_extent;
|
D | delta_diff_utils_unittest.cc | 47 const vector<Extent>& extents, in WriteExtents() 54 for (const Extent& extent : extents) { in WriteExtents() 189 vector<Extent> old_extents = {ExtentForRange(1, 1)}; in TEST_F() 190 vector<Extent> new_extents = {ExtentForRange(2, 1)}; in TEST_F() 245 vector<Extent> old_extents = {ExtentForRange(11, 1)}; in TEST_F() 246 vector<Extent> new_extents = {ExtentForRange(1, 1)}; in TEST_F() 277 vector<Extent> old_extents = {ExtentForRange(1, 1)}; in TEST_F() 278 vector<Extent> new_extents = {ExtentForRange(2, 1)}; in TEST_F() 305 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 360 vector<Extent> already_visited = {ExtentForRange(5, 5), in TEST_F() [all …]
|
D | delta_diff_utils.h | 87 const std::vector<Extent>& old_extents, 88 const std::vector<Extent>& new_extents, 107 const std::vector<Extent>& old_extents, 108 const std::vector<Extent>& new_extents,
|
D | delta_diff_utils.cc | 146 const vector<Extent>& old_extents, in FileDeltaProcessor() 147 const vector<Extent>& new_extents, in FileDeltaProcessor() 185 const vector<Extent> old_extents_; 186 const vector<Extent> new_extents_; 335 vector<Extent> new_file_extents = in DeltaReadPartition() 369 vector<Extent> new_unvisited = { in DeltaReadPartition() 373 vector<Extent> old_unvisited; in DeltaReadPartition() 465 vector<Extent> new_zeros; in DeltaMovedAndZeroBlocks() 467 vector<Extent> old_identical_blocks; in DeltaMovedAndZeroBlocks() 468 vector<Extent> new_identical_blocks; in DeltaMovedAndZeroBlocks() [all …]
|
D | deflate_utils.cc | 49 const vector<Extent>& extents, in CopyExtentsToFile() 108 bool IsBitExtentInExtent(const Extent& extent, const BitExtent& bit_extent) { in IsBitExtentInExtent() 131 bool ShiftExtentsOverExtents(const vector<Extent>& base_extents, in ShiftExtentsOverExtents() 132 vector<Extent>* over_extents) { in ShiftExtentsOverExtents() 158 vector<Extent> new_extents = { in ShiftExtentsOverExtents() 173 bool ShiftBitExtentsOverExtents(const vector<Extent>& base_extents, in ShiftBitExtentsOverExtents() 215 vector<BitExtent> FindDeflates(const vector<Extent>& extents, in FindDeflates() 230 bool CompactDeflates(const vector<Extent>& extents, in CompactDeflates() 260 bool FindAndCompactDeflates(const vector<Extent>& extents, in FindAndCompactDeflates()
|
/system/update_engine/payload_consumer/ |
D | extent_writer.h | 41 virtual bool Init(const google::protobuf::RepeatedPtrField<Extent>& extents, 56 bool Init(const google::protobuf::RepeatedPtrField<Extent>& extents, in Init() 71 google::protobuf::RepeatedPtrField<Extent> extents_; 73 google::protobuf::RepeatedPtrField<Extent>::iterator cur_extent_;
|
D | extent_reader.h | 35 const google::protobuf::RepeatedPtrField<Extent>& extents, 53 const google::protobuf::RepeatedPtrField<Extent>& extents, 60 google::protobuf::RepeatedPtrField<Extent> extents_; 64 google::protobuf::RepeatedPtrField<Extent>::iterator cur_extent_;
|
D | file_descriptor_utils.h | 39 const google::protobuf::RepeatedPtrField<Extent>& src_extents, 41 const google::protobuf::RepeatedPtrField<Extent>& tgt_extents, 51 const google::protobuf::RepeatedPtrField<Extent>& extents,
|
D | file_descriptor_utils.cc | 39 const RepeatedPtrField<Extent>& src_extents, in CommonHashExtents() 80 const RepeatedPtrField<Extent>& src_extents, in CopyAndHashExtents() 82 const RepeatedPtrField<Extent>& tgt_extents, in CopyAndHashExtents() 95 const RepeatedPtrField<Extent>& extents, in ReadAndHashExtents()
|
D | extent_reader_unittest.cc | 64 void ReadExtents(vector<Extent> extents, brillo::Blob* blob) { in ReadExtents() 80 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 92 vector<Extent> extents = {ExtentForRange(1, 0)}; in TEST_F() 111 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 120 vector<Extent> extents = {ExtentForRange(1, 0)}; in TEST_F() 135 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F() 144 vector<Extent> extents = {ExtentForRange(0, 0), in TEST_F()
|
D | snapshot_extent_writer.h | 35 bool Init(const google::protobuf::RepeatedPtrField<Extent>& extents, 51 google::protobuf::RepeatedPtrField<Extent> extents_;
|
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator.h | 33 using Extent = android::fs_mgr::Extent; member 34 using ChromeOSExtent = chromeos_update_engine::Extent; 71 bool HasExtent(Partition* p, Extent* e);
|
D | partition_cow_creator.cpp | 27 using android::fs_mgr::Extent; 43 static std::unique_ptr<Extent> Intersect(Extent* target_extent, Extent* existing_extent) { in Intersect() 60 bool PartitionCowCreator::HasExtent(Partition* p, Extent* e) { in HasExtent() 134 void WriteExtent(DmSnapCowSizeCalculator* sc, const chromeos_update_engine::Extent& de, in WriteExtent()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | builder.h | 51 class Extent { 53 explicit Extent(uint64_t num_sectors) : num_sectors_(num_sectors) {} in Extent() function 54 virtual ~Extent() {} in ~Extent() 60 virtual bool operator==(const Extent& other) const = 0; 61 virtual bool operator!=(const Extent& other) const { return !(*this == other); } 70 std::ostream& operator<<(std::ostream& os, const Extent& extent); 73 class LinearExtent final : public Extent { 76 : Extent(num_sectors), device_index_(device_index), physical_sector_(physical_sector) {} in LinearExtent() 82 bool operator==(const Extent& other) const override; 99 class ZeroExtent final : public Extent { [all …]
|
/system/core/fs_mgr/libsnapshot/update_engine/ |
D | update_metadata.proto | 38 message Extent { message 55 repeated Extent src_extents = 4; 56 repeated Extent dst_extents = 6; 63 optional Extent hash_tree_extent = 11; 64 optional Extent fec_extent = 15;
|