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.cpp95 auto p = builder_->FindPartition(T(name)); in CheckSize()
122 auto p = builder_->FindPartition(T(partition_name)); in CheckGroupName()
243 EXPECT_EQ(nullptr, builder_->FindPartition(T("vendor"))); in TEST_P()
265 EXPECT_EQ(nullptr, builder_->FindPartition(T("vendor"))); in TEST_P()
Dpartition_cow_creator_test.cpp105 vendor = target->FindPartition("vendor_b"); in TEST_F()
109 system = target->FindPartition("system_b"); in TEST_F()
Dtest_helpers.cpp235 auto p = builder->FindPartition(partition.partition_name() + suffix); in FillFakeMetadata()
Dsnapshot_test.cpp1126 ASSERT_NE(nullptr, tgt->FindPartition("sys_b-cow")); in TEST_F()
1127 ASSERT_NE(nullptr, tgt->FindPartition("vnd_b-cow")); in TEST_F()
1128 ASSERT_EQ(nullptr, tgt->FindPartition("prd_b-cow")); in TEST_F()
1485 auto* cow_part = tgt->FindPartition(cow_part_name); in TEST_F()
1489 auto* old_part = src->FindPartition(old_part_name); in TEST_F()
2181 ASSERT_NE(nullptr, flashed_builder->FindPartition("prd" + flashed_slot_suffix)); in TEST_P()
Dsnapshot_fuzz_utils.cpp466 auto p = builder->FindPartition(partition_proto.partition_name()); in CheckWriteSuperMetadata()
Dsnapshot.cpp1589 auto partition = android::fs_mgr::FindPartition(metadata, name); in GetMetadataPartitionState()
2955 auto old_partition = cow_creator->current_metadata->FindPartition(old_partition_name); in CreateUpdateSnapshotsInternal()
/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()
635 ASSERT_NE(builder->FindPartition("system"), nullptr); in TEST_F()
636 ASSERT_EQ(builder->FindPartition("vendor"), nullptr); in TEST_F()
640 ASSERT_NE(builder->FindPartition("system"), nullptr); in TEST_F()
[all …]
Dbuilder.cpp535 if (FindPartition(name)) { in AddPartition()
547 Partition* MetadataBuilder::FindPartition(std::string_view name) const { in FindPartition() function in android::fs_mgr::MetadataBuilder
1177 Partition* partition = FindPartition(partition_name); in ImportPartition()
1306 const auto target_partition = target_metadata.FindPartition(target_partition_name); in VerifyExtentsAgainstSourceMetadata()
1314 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.cpp150 return !!FindPartition(*metadata.get(), name); in BackingImageExists()
379 auto partition = FindPartition(*metadata.get(), name); in MapWithLoopDeviceList()
/system/update_engine/aosp/
Ddynamic_partition_test_utils.h192 auto p = builder->FindPartition(partition.partition_name());
211 auto p = metadata->FindPartition(partition_name); in MatchAndExplain()
Ddynamic_partition_control_android.cc711 auto p = builder->FindPartition(partition_name_suffix); in GetSystemOtherPath()
1189 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.cpp479 if (builder->FindPartition(partition_name)) { in CreatePartitionHandler()
539 auto partition = builder->FindPartition(partition_name); in ResizePartitionHandler()
561 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.cpp536 if (builder->FindPartition(partition_name) == nullptr) { in fs_mgr_overlayfs_teardown_scratch()
1002 builder->ResizePartition(builder->FindPartition(name), 0); in TruncatePartitionsWithSuffix()
1023 auto partition = builder->FindPartition(partition_name); in CreateDynamicScratch()
1416 auto partition = FindPartition(*metadata.get(), partition_name); in EnsureScratchMapped()