Home
last modified time | relevance | path

Searched refs:MetadataBuilder (Results 1 – 25 of 32) sorted by relevance

12

/system/core/fs_mgr/liblp/
Dbuilder_test.cpp48 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(1024 * 1024, 1024, 2); in TEST_F()
63 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(1024 * 1024, 1024, 2); in TEST_F()
124 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(1024 * 1024, 1024, 2); in TEST_F()
144 unique_ptr<MetadataBuilder> builder = in TEST_F()
145 MetadataBuilder::New(kDiskSize, kMetadataSize, kMetadataSlots); in TEST_F()
151 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(1024 * 1024, 1000, 2); in TEST_F()
161 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
171 builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
181 builder = MetadataBuilder::New(device_info, 1024, 2); in TEST_F()
187 builder = MetadataBuilder::New(device_info, 16 * 1024, 2); in TEST_F()
[all …]
Dbuilder.cpp174 std::unique_ptr<MetadataBuilder> MetadataBuilder::New(const IPartitionOpener& opener, in New()
184 std::unique_ptr<MetadataBuilder> MetadataBuilder::New(const std::string& super_partition, in New()
189 std::unique_ptr<MetadataBuilder> MetadataBuilder::New( in New()
192 std::unique_ptr<MetadataBuilder> builder(new MetadataBuilder()); in New()
199 std::unique_ptr<MetadataBuilder> MetadataBuilder::New(const LpMetadata& metadata, in New()
201 std::unique_ptr<MetadataBuilder> builder(new MetadataBuilder()); in New()
217 std::unique_ptr<MetadataBuilder> MetadataBuilder::NewForUpdate(const IPartitionOpener& opener, in NewForUpdate()
261 bool MetadataBuilder::UpdateMetadataForOtherSuper(LpMetadata* metadata, uint32_t source_slot_number, in UpdateMetadataForOtherSuper()
300 MetadataBuilder::MetadataBuilder() : auto_slot_suffixing_(false) { in MetadataBuilder() function in android::fs_mgr::MetadataBuilder
316 bool MetadataBuilder::Init(const LpMetadata& metadata) { in Init()
[all …]
Dio_test.cpp82 static unique_ptr<MetadataBuilder> CreateDefaultBuilder() { in CreateDefaultBuilder()
83 unique_ptr<MetadataBuilder> builder = in CreateDefaultBuilder()
84 MetadataBuilder::New(kDiskSize, kMetadataSize, kMetadataSlots); in CreateDefaultBuilder()
94 static bool AddDefaultPartitions(MetadataBuilder* builder) { in AddDefaultPartitions()
104 unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); in CreateFlashedDisk()
143 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(kDiskSize + 4096, 512, 2); in TEST_F()
160 unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); in TEST_F()
369 unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); in TEST_F()
423 unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); in TEST_F()
439 unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); in TEST_F()
[all …]
Dutility_test.cpp119 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(1024 * 1024, 1024, 2); in TEST()
149 auto new_builder = MetadataBuilder::New(*metadata); in TEST()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h110 friend class MetadataBuilder; variable
127 friend class MetadataBuilder; variable
195 class MetadataBuilder {
206 static std::unique_ptr<MetadataBuilder> New(const std::vector<BlockDeviceInfo>& block_devices,
214 static std::unique_ptr<MetadataBuilder> New(const IPartitionOpener& opener,
219 static std::unique_ptr<MetadataBuilder> New(const std::string& super_partition,
232 static std::unique_ptr<MetadataBuilder> NewForUpdate(const IPartitionOpener& opener,
243 static std::unique_ptr<MetadataBuilder> New(const LpMetadata& metadata,
247 static std::unique_ptr<MetadataBuilder> New(const BlockDeviceInfo& device_info, in New()
256 static std::unique_ptr<MetadataBuilder> New(uint64_t blockdev_size, uint32_t metadata_max_size, in New()
[all …]
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.h36 using MetadataBuilder = android::fs_mgr::MetadataBuilder; member
43 MetadataBuilder* target_metadata = nullptr;
50 MetadataBuilder* current_metadata = nullptr;
Dpartition_cow_creator_test.cpp52 auto builder_a = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
58 auto builder_b = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
84 auto source = MetadataBuilder::New(devices, "super", 1_KiB, 2); in TEST_F()
97 auto target = MetadataBuilder::NewForUpdate(opener, "super", 0, 1); in TEST_F()
124 auto builder_a = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
130 auto builder_b = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
140 auto cow_device_size = [](const std::vector<InstallOperation>& iopv, MetadataBuilder* builder_a, in TEST_F()
141 MetadataBuilder* builder_b, Partition* system_b) { in TEST_F()
202 auto builder_a = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
205 auto builder_b = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
Dsnapshot_metadata_updater.h43 SnapshotMetadataUpdater(android::fs_mgr::MetadataBuilder* builder, uint32_t target_slot,
78 android::fs_mgr::MetadataBuilder* const builder_;
Dutility.cpp34 using android::fs_mgr::MetadataBuilder;
74 std::vector<Partition*> ListPartitionsWithSuffix(MetadataBuilder* builder, in ListPartitionsWithSuffix()
Dsnapshot_metadata_updater.cpp32 using android::fs_mgr::MetadataBuilder;
39 SnapshotMetadataUpdater::SnapshotMetadataUpdater(MetadataBuilder* builder, uint32_t target_slot, in SnapshotMetadataUpdater()
Dsnapshot_metadata_updater_test.cpp32 using android::fs_mgr::MetadataBuilder;
54 builder_ = MetadataBuilder::New(4_GiB + 1_MiB, 4_KiB, 2); in SetUp()
131 std::unique_ptr<MetadataBuilder> builder_;
Dsnapshot_test.cpp67 using android::fs_mgr::MetadataBuilder;
170 auto builder = MetadataBuilder::New(devices, "super", 65536, 2); in FormatFakeSuper()
183 auto builder = MetadataBuilder::New(opener, "super", 0); in CreatePartition()
213 auto builder = MetadataBuilder::NewForUpdate(opener, "super", 0, 1); in MapUpdatePartitions()
804 src_ = MetadataBuilder::New(*opener_, "super", 0); in SetUp()
967 std::unique_ptr<MetadataBuilder> src_;
999 auto tgt = MetadataBuilder::New(*opener_, "super", 1); in TEST_F()
1071 auto tgt = MetadataBuilder::New(*opener_, "super", 1); in TEST_F()
1218 auto src = MetadataBuilder::New(*opener_, "super", 1); in TEST_F()
1220 auto tgt = MetadataBuilder::New(*opener_, "super", 0); in TEST_F()
[all …]
Dutility.h112 android::fs_mgr::MetadataBuilder* builder, const std::string& suffix);
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp62 std::unique_ptr<MetadataBuilder> OpenOrCreateMetadata(const std::string& metadata_dir, in OpenOrCreateMetadata()
67 std::unique_ptr<MetadataBuilder> builder; in OpenOrCreateMetadata()
84 builder = MetadataBuilder::New(block_devices, super_name, kMaxMetadataSize, 1); in OpenOrCreateMetadata()
90 builder = MetadataBuilder::New(*metadata.get(), &opener); in OpenOrCreateMetadata()
100 bool SaveMetadata(MetadataBuilder* builder, const std::string& metadata_dir) { in SaveMetadata()
129 bool FillPartitionExtents(MetadataBuilder* builder, Partition* partition, SplitFiemap* file, in FillPartitionExtents()
174 auto builder = MetadataBuilder::New(*metadata.get(), &opener); in RemoveImageMetadata()
212 auto builder = MetadataBuilder::New(*metadata.get()); in AddAttributes()
/system/update_engine/
Ddynamic_partition_utils.cc24 using android::fs_mgr::MetadataBuilder;
28 void DeleteGroupsWithSuffix(MetadataBuilder* builder, in DeleteGroupsWithSuffix()
Ddynamic_partition_test_utils.h40 using android::fs_mgr::MetadataBuilder;
177 inline std::unique_ptr<MetadataBuilder> NewFakeMetadata(
180 MetadataBuilder::New(kDefaultSuperSize, kFakeMetadataSize, kMaxNumSlots);
197 class MetadataMatcher : public MatcherInterface<MetadataBuilder*> {
204 bool MatchAndExplain(MetadataBuilder* metadata, in MatchAndExplain()
260 inline Matcher<MetadataBuilder*> MetadataMatches( in MetadataMatches()
265 inline Matcher<MetadataBuilder*> MetadataMatches( in MetadataMatches()
Ddynamic_partition_control_android.h94 virtual std::unique_ptr<android::fs_mgr::MetadataBuilder> LoadMetadataBuilder(
101 virtual std::unique_ptr<android::fs_mgr::MetadataBuilder> LoadMetadataBuilder(
108 android::fs_mgr::MetadataBuilder* builder,
208 bool UpdatePartitionMetadata(android::fs_mgr::MetadataBuilder* builder,
244 bool DeleteSourcePartitions(android::fs_mgr::MetadataBuilder* builder,
Dmock_dynamic_partition_control.h53 MOCK_METHOD(std::unique_ptr<::android::fs_mgr::MetadataBuilder>,
57 MOCK_METHOD(std::unique_ptr<::android::fs_mgr::MetadataBuilder>,
63 (const std::string&, android::fs_mgr::MetadataBuilder*, uint32_t),
Ddynamic_partition_utils.h28 void DeleteGroupsWithSuffix(android::fs_mgr::MetadataBuilder* builder,
Ddynamic_partition_control_android.cc57 using android::fs_mgr::MetadataBuilder;
294 std::unique_ptr<MetadataBuilder>
297 auto builder = MetadataBuilder::New(PartitionOpener(), super_device, slot); in LoadMetadataBuilder()
308 std::unique_ptr<MetadataBuilder>
314 auto builder = MetadataBuilder::NewForUpdate(PartitionOpener(), in LoadMetadataBuilder()
333 MetadataBuilder* builder, in StoreMetadata()
792 MetadataBuilder* builder, in UpdatePartitionMetadata()
1026 MetadataBuilder* builder, in DeleteSourcePartitions()
1135 return MetadataBuilder::VerifyExtentsAgainstSourceMetadata( in VerifyExtentsForUntouchedPartitions()
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h37 using android::fs_mgr::MetadataBuilder;
151 AssertionResult FillFakeMetadata(MetadataBuilder* builder, const DeltaArchiveManifest& manifest,
/system/core/fastboot/device/
Dflashing.cpp221 std::unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(*new_metadata.get()); in UpdateSuper()
Dcommands.cpp46 using android::fs_mgr::MetadataBuilder;
380 MetadataBuilder* operator->() const { return builder_.get(); } in operator ->()
386 std::unique_ptr<MetadataBuilder> builder_;
398 builder_ = MetadataBuilder::New(super_device_, slot_number_); in PartitionBuilder()
/system/extras/partition_tools/
Dlpadd.cc31 using android::fs_mgr::MetadataBuilder;
134 std::unique_ptr<MetadataBuilder> builder_;
152 builder_ = MetadataBuilder::New(*metadata_.get()); in Open()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h254 using MetadataBuilder = android::fs_mgr::MetadataBuilder; variable
548 LockedFile* lock, MetadataBuilder* target_metadata,

12