Home
last modified time | relevance | path

Searched refs:FindPartition (Results 1 – 21 of 21) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dsnapshot_metadata_updater.cpp72 auto* existing_partition = builder_->FindPartition(partition_update.name); in ShrinkPartitions()
124 auto* existing_partition = builder_->FindPartition(partition_update.name); in MovePartitionsToDefault()
227 if (builder_->FindPartition(partition_update.name) == nullptr) { in AddPartitions()
242 auto* existing_partition = builder_->FindPartition(partition_update.name); in GrowPartitions()
259 auto* existing_partition = builder_->FindPartition(partition_update.name); in MovePartitionsToCorrectGroup()
Dsnapshot_metadata_updater_test.cpp91 auto p = builder_->FindPartition(T(name)); in CheckSize()
118 auto p = builder_->FindPartition(T(partition_name)); in CheckGroupName()
240 EXPECT_EQ(nullptr, builder_->FindPartition(T("vendor"))); in TEST_P()
262 EXPECT_EQ(nullptr, builder_->FindPartition(T("vendor"))); in TEST_P()
Dpartition_cow_creator_test.cpp99 vendor = target->FindPartition("vendor_b"); in TEST_F()
103 system = target->FindPartition("system_b"); in TEST_F()
Dtest_helpers.cpp160 auto p = builder->FindPartition(partition.partition_name() + suffix); in FillFakeMetadata()
Dsnapshot_test.cpp1001 ASSERT_NE(nullptr, tgt->FindPartition("sys_b-cow")); in TEST_F()
1002 ASSERT_NE(nullptr, tgt->FindPartition("vnd_b-cow")); in TEST_F()
1003 ASSERT_EQ(nullptr, tgt->FindPartition("prd_b-cow")); in TEST_F()
1223 auto* cow_part = tgt->FindPartition(cow_part_name); in TEST_F()
1227 auto* old_part = src->FindPartition(old_part_name); in TEST_F()
1741 ASSERT_NE(nullptr, flashed_builder->FindPartition("prd" + flashed_slot_suffix)); in TEST_P()
Dsnapshot_fuzz_utils.cpp469 auto p = builder->FindPartition(partition_proto.partition_name()); in CheckWriteSuperMetadata()
Dsnapshot.cpp1249 auto partition = android::fs_mgr::FindPartition(metadata, name); in GetMetadataPartitionState()
/system/core/fs_mgr/liblp/
Dutility_test.cpp153 EXPECT_EQ(nullptr, new_builder->FindPartition("system_a")); in TEST()
154 EXPECT_EQ(nullptr, new_builder->FindPartition("vendor_a")); in TEST()
160 auto new_system_b = new_builder->FindPartition("system_b"); in TEST()
166 auto new_vendor_b = new_builder->FindPartition("vendor_b"); in TEST()
Dbuilder_test.cpp56 EXPECT_EQ(builder->FindPartition("system"), partition); in TEST_F()
59 EXPECT_EQ(builder->FindPartition("system"), nullptr); in TEST_F()
112 ASSERT_EQ(FindPartition(*exported.get(), "not found"), nullptr); in TEST_F()
113 auto entry = FindPartition(*exported.get(), "system"); in TEST_F()
362 Partition* original = builder->FindPartition(GetPartitionName(partition)); in TEST_F()
391 system = builder->FindPartition("system"); in TEST_F()
393 vendor = builder->FindPartition("vendor"); in TEST_F()
640 ASSERT_NE(builder->FindPartition("system"), nullptr); in TEST_F()
641 ASSERT_EQ(builder->FindPartition("vendor"), nullptr); in TEST_F()
645 ASSERT_NE(builder->FindPartition("system"), nullptr); in TEST_F()
[all …]
Dbuilder.cpp540 if (FindPartition(name)) { in AddPartition()
552 Partition* MetadataBuilder::FindPartition(std::string_view name) const { in FindPartition() function in android::fs_mgr::MetadataBuilder
1182 Partition* partition = FindPartition(partition_name); in ImportPartition()
1311 const auto target_partition = target_metadata.FindPartition(target_partition_name); in VerifyExtentsAgainstSourceMetadata()
1319 const auto source_partition = source_metadata.FindPartition(source_partition_name); in VerifyExtentsAgainstSourceMetadata()
Dutility.cpp144 const LpMetadataPartition* FindPartition(const LpMetadata& metadata, const std::string& name) { in FindPartition() function
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp188 auto partition = builder->FindPartition(partition_name); in UpdateMetadata()
216 auto partition = builder->FindPartition(partition_name); in AddAttributes()
Dimage_manager.cpp136 return !!FindPartition(*metadata.get(), name); in BackingImageExists()
365 auto partition = FindPartition(*metadata.get(), name); in MapWithLoopDeviceList()
/system/update_engine/
Ddynamic_partition_test_utils.h190 auto p = builder->FindPartition(partition.partition_name());
209 auto p = metadata->FindPartition(partition_name); in MatchAndExplain()
Ddynamic_partition_control_android.cc637 auto p = builder->FindPartition(partition_name_suffix); in GetSystemOtherPath()
972 if (builder->FindPartition(partition_name_suffix) == nullptr) { in GetDynamicPartitionDevice()
/system/core/fs_mgr/liblp/include/liblp/
Dliblp.h121 const LpMetadataPartition* FindPartition(const LpMetadata& metadata, const std::string& name);
Dbuilder.h295 Partition* FindPartition(std::string_view name) const;
/system/core/fastboot/device/
Dcommands.cpp429 if (builder->FindPartition(partition_name)) { in CreatePartitionHandler()
489 auto partition = builder->FindPartition(partition_name); in ResizePartitionHandler()
511 auto partition = builder->FindPartition(partition_name); in CancelPartitionSnapshot()
/system/extras/partition_tools/
Dlpdump.cc180 static DynamicPartitionsDeviceInfoProto::Partition* FindPartition( in FindPartition() function
225 auto partition_proto = FindPartition(proto, *partition); in MergeFsUsage()
Dlpadd.cc297 auto partition = android::fs_mgr::FindPartition(*metadata_.get(), partition_name); in WritePartition()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp497 if (builder->FindPartition(partition_name) == nullptr) { in fs_mgr_overlayfs_teardown_scratch()
943 builder->ResizePartition(builder->FindPartition(name), 0); in TruncatePartitionsWithSuffix()
964 auto partition = builder->FindPartition(partition_name); in CreateDynamicScratch()
1346 auto partition = FindPartition(*metadata.get(), partition_name); in EnsureScratchMapped()