Home
last modified time | relevance | path

Searched refs:Extent (Results 1 – 25 of 64) sorted by relevance

123

/system/update_engine/payload_generator/
Dextent_ranges.h38 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 …]
Dextent_utils.cc38 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 …]
Dextent_utils.h33 void AppendBlockToExtents(std::vector<Extent>* extents, uint64_t block);
55 void StoreExtents(const std::vector<Extent>& extents,
56 google::protobuf::RepeatedPtrField<Extent>* out);
59 void ExtentsToVector(const google::protobuf::RepeatedPtrField<Extent>& extents,
60 std::vector<Extent>* out_vector);
63 std::string ExtentsToString(const std::vector<Extent>& extents);
68 google::protobuf::RepeatedPtrField<Extent>* extents,
69 const google::protobuf::RepeatedPtrField<Extent>& extents_to_add);
74 void NormalizeExtents(std::vector<Extent>* extents);
80 std::vector<Extent> ExtentsSublist(const std::vector<Extent>& extents,
[all …]
Dextent_utils_unittest.cc35 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 …]
Dextent_ranges.cc34 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 …]
Ddeflate_utils.h47 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,
Dextent_ranges_unittest.cc223 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 …]
Ddeflate_utils_unittest.cc50 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()
Dmapfile_filesystem_unittest.cc47 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()
Dpayload_generation_config.h62 Extent hash_tree_data_extent;
65 Extent hash_tree_extent;
74 Extent fec_data_extent;
77 Extent fec_extent;
Ddelta_diff_utils_unittest.cc47 const vector<Extent>& extents, in WriteExtents()
54 for (const Extent& extent : extents) { in WriteExtents()
199 vector<Extent> old_extents = {ExtentForRange(1, 1)}; in TEST_F()
200 vector<Extent> new_extents = {ExtentForRange(2, 1)}; in TEST_F()
255 vector<Extent> old_extents = {ExtentForRange(11, 1)}; in TEST_F()
256 vector<Extent> new_extents = {ExtentForRange(1, 1)}; in TEST_F()
287 vector<Extent> old_extents = {ExtentForRange(1, 1)}; in TEST_F()
288 vector<Extent> new_extents = {ExtentForRange(2, 1)}; in TEST_F()
315 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F()
370 vector<Extent> already_visited = {ExtentForRange(5, 5), in TEST_F()
[all …]
Ddelta_diff_utils.cc146 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 …]
Ddelta_diff_utils.h87 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,
Ddeflate_utils.cc49 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()
Dfake_filesystem.cc40 const std::vector<Extent>& extents) { in AddFile()
44 for (const Extent& extent : extents) { in AddFile()
/system/update_engine/payload_consumer/
Dextent_writer.h42 const google::protobuf::RepeatedPtrField<Extent>& extents,
58 const google::protobuf::RepeatedPtrField<Extent>& extents, in Init()
74 google::protobuf::RepeatedPtrField<Extent> extents_;
76 google::protobuf::RepeatedPtrField<Extent>::iterator cur_extent_;
Dextent_reader.h35 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_;
Dfile_descriptor_utils.h39 const google::protobuf::RepeatedPtrField<Extent>& src_extents,
41 const google::protobuf::RepeatedPtrField<Extent>& tgt_extents,
51 const google::protobuf::RepeatedPtrField<Extent>& extents,
Dfile_descriptor_utils.cc39 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()
Dextent_reader_unittest.cc64 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()
Dextent_writer_unittest.cc66 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F()
86 vector<Extent> extents = {ExtentForRange(1, 1)}; in TEST_F()
107 vector<Extent> extents = { in WriteAlignedExtents()
144 vector<Extent> extents = {ExtentForRange(1, 1), in TEST_F()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.h33 using Extent = android::fs_mgr::Extent; member
34 using ChromeOSExtent = chromeos_update_engine::Extent;
67 bool HasExtent(Partition* p, Extent* e);
Dpartition_cow_creator.cpp26 using android::fs_mgr::Extent;
38 static std::unique_ptr<Extent> Intersect(Extent* target_extent, Extent* existing_extent) { in Intersect()
55 bool PartitionCowCreator::HasExtent(Partition* p, Extent* e) { in HasExtent()
129 void WriteExtent(DmSnapCowSizeCalculator* sc, const chromeos_update_engine::Extent& de, in WriteExtent()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h51 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/
Dupdate_metadata.proto38 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;

123