Home
last modified time | relevance | path

Searched refs:MetadataBuilder (Results 1 – 25 of 33) 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
44 MetadataBuilder* target_metadata = nullptr;
51 MetadataBuilder* current_metadata = nullptr;
Dpartition_cow_creator_test.cpp58 auto builder_a = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
64 auto builder_b = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
90 auto source = MetadataBuilder::New(devices, "super", 1_KiB, 2); in TEST_F()
103 auto target = MetadataBuilder::NewForUpdate(opener, "super", 0, 1); in TEST_F()
130 auto builder_a = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
136 auto builder_b = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
146 auto cow_device_size = [](const std::vector<InstallOperation>& iopv, MetadataBuilder* builder_a, in TEST_F()
147 MetadataBuilder* builder_b, Partition* system_b) { in TEST_F()
210 auto builder_a = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
213 auto builder_b = MetadataBuilder::New(super_size, 1_KiB, 2); in TEST_F()
[all …]
Dsnapshot_metadata_updater.h43 SnapshotMetadataUpdater(android::fs_mgr::MetadataBuilder* builder, uint32_t target_slot,
78 android::fs_mgr::MetadataBuilder* const builder_;
Dutility.cpp35 using android::fs_mgr::MetadataBuilder;
75 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()
134 std::unique_ptr<MetadataBuilder> builder_;
Dsnapshot_test.cpp71 using android::fs_mgr::MetadataBuilder;
175 auto builder = MetadataBuilder::New(devices, "super", 65536, 2); in FormatFakeSuper()
189 auto builder = MetadataBuilder::New(opener, "super", 0);
199 bool CreatePartition(MetadataBuilder* builder, const std::string& name, uint64_t size, in CreatePartition()
350 auto builder = MetadataBuilder::New(opener, "super", 0); in PrepareOneSnapshot()
885 src_ = MetadataBuilder::New(*opener_, "super", 0); in SetUp()
1086 std::unique_ptr<MetadataBuilder> src_;
1124 auto tgt = MetadataBuilder::New(*opener_, "super", 1); in TEST_F()
1328 auto tgt = MetadataBuilder::New(*opener_, "super", 1); in TEST_F()
1480 auto src = MetadataBuilder::New(*opener_, "super", 1); 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/aosp/
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(
182 MetadataBuilder::New(super_size, kFakeMetadataSize, kMaxNumSlots);
199 class MetadataMatcher : public MatcherInterface<MetadataBuilder*> {
206 bool MatchAndExplain(MetadataBuilder* metadata, in MatchAndExplain()
262 inline Matcher<MetadataBuilder*> MetadataMatches( in MetadataMatches()
267 inline Matcher<MetadataBuilder*> MetadataMatches( in MetadataMatches()
Ddynamic_partition_control_android.h127 virtual std::unique_ptr<android::fs_mgr::MetadataBuilder> LoadMetadataBuilder(
134 virtual std::unique_ptr<android::fs_mgr::MetadataBuilder> LoadMetadataBuilder(
141 android::fs_mgr::MetadataBuilder* builder,
250 bool UpdatePartitionMetadata(android::fs_mgr::MetadataBuilder* builder,
276 android::fs_mgr::MetadataBuilder* builder,
305 bool DeleteSourcePartitions(android::fs_mgr::MetadataBuilder* builder,
Dmock_dynamic_partition_control_android.h59 MOCK_METHOD(std::unique_ptr<::android::fs_mgr::MetadataBuilder>,
63 MOCK_METHOD(std::unique_ptr<::android::fs_mgr::MetadataBuilder>,
69 (const std::string&, android::fs_mgr::MetadataBuilder*, uint32_t),
Ddynamic_partition_utils.h28 void DeleteGroupsWithSuffix(android::fs_mgr::MetadataBuilder* builder,
Dmetrics_reporter_android.cc39 using android::fs_mgr::MetadataBuilder;
114 auto metadata_builder = MetadataBuilder::New(*metadata); in ReportUpdateAttemptMetrics()
Ddynamic_partition_control_android.cc65 using android::fs_mgr::MetadataBuilder;
322 std::unique_ptr<MetadataBuilder>
325 auto builder = MetadataBuilder::New(PartitionOpener(), super_device, slot); in LoadMetadataBuilder()
336 std::unique_ptr<MetadataBuilder>
342 auto builder = MetadataBuilder::NewForUpdate(PartitionOpener(), in LoadMetadataBuilder()
361 MetadataBuilder* builder, in StoreMetadata()
881 android::fs_mgr::MetadataBuilder* builder, in CheckSuperPartitionAllocatableSpace()
968 MetadataBuilder* builder, in UpdatePartitionMetadata()
1243 MetadataBuilder* builder, in DeleteSourcePartitions()
1370 return MetadataBuilder::VerifyExtentsAgainstSourceMetadata( in VerifyExtentsForUntouchedPartitions()
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h37 using android::fs_mgr::MetadataBuilder;
159 AssertionResult FillFakeMetadata(MetadataBuilder* builder, const DeltaArchiveManifest& manifest,
/system/core/fastboot/device/
Dflashing.cpp224 std::unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(*new_metadata.get()); in UpdateSuper()
/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.h305 using MetadataBuilder = android::fs_mgr::MetadataBuilder; variable
513 void UnmapAndDeleteCowPartition(MetadataBuilder* current_metadata);
700 LockedFile* lock, MetadataBuilder* target_metadata,

12