/system/core/fs_mgr/liblp/ |
D | io_test.cpp | 118 DefaultPartitionOpener opener(fd); in CreateFlashedDisk() local 119 if (!FlashPartitionTable(opener, "super", *exported.get())) { in CreateFlashedDisk() 134 DefaultPartitionOpener opener(fd); in TEST_F() local 137 ASSERT_EQ(ReadMetadata(opener, "super", 1), nullptr); in TEST_F() 153 DefaultPartitionOpener opener(fd); in TEST_F() local 155 EXPECT_FALSE(FlashPartitionTable(opener, "super", *exported.get())); in TEST_F() 167 DefaultPartitionOpener opener(fd); in TEST_F() local 172 ASSERT_TRUE(FlashPartitionTable(opener, "super", *exported.get())); in TEST_F() 178 unique_ptr<LpMetadata> imported = ReadMetadata(opener, "super", 0); in TEST_F() 213 DefaultPartitionOpener opener(fd); in TEST_F() local [all …]
|
D | writer.cpp | 86 static bool ValidateAndSerializeMetadata([[maybe_unused]] const IPartitionOpener& opener, in ValidateAndSerializeMetadata() argument 137 if (!opener.GetInfo(partition_name, &info)) { in ValidateAndSerializeMetadata() 248 bool FlashPartitionTable(const IPartitionOpener& opener, const std::string& super_partition, in FlashPartitionTable() argument 250 android::base::unique_fd fd = opener.Open(super_partition, O_RDWR | O_SYNC); in FlashPartitionTable() 265 if (!ValidateAndSerializeMetadata(opener, metadata, slot_suffix, &metadata_blob)) { in FlashPartitionTable() 323 bool UpdatePartitionTable(const IPartitionOpener& opener, const std::string& super_partition, in UpdatePartitionTable() argument 326 android::base::unique_fd fd = opener.Open(super_partition, O_RDWR | O_SYNC); in UpdatePartitionTable() 338 if (!ValidateAndSerializeMetadata(opener, metadata, slot_suffix, &blob)) { in UpdatePartitionTable() 370 if (!ValidateAndSerializeMetadata(opener, *primary.get(), slot_suffix, &old_blob)) { in UpdatePartitionTable() 382 if (!ValidateAndSerializeMetadata(opener, *backup.get(), slot_suffix, &old_blob)) { in UpdatePartitionTable() [all …]
|
D | device_test.cpp | 46 PartitionOpener opener; in TEST_F() local 48 ASSERT_TRUE(opener.GetInfo(fs_mgr_get_super_partition_name(), &device_info)); in TEST_F()
|
D | writer.h | 33 bool UpdatePartitionTable(const IPartitionOpener& opener, const std::string& super_partition,
|
D | builder.cpp | 174 std::unique_ptr<MetadataBuilder> MetadataBuilder::New(const IPartitionOpener& opener, in New() argument 177 std::unique_ptr<LpMetadata> metadata = ReadMetadata(opener, super_partition, slot_number); in New() 181 return New(*metadata.get(), &opener); in New() 200 const IPartitionOpener* opener) { in New() argument 205 if (opener) { in New() 209 if (opener->GetInfo(partition_name, &device_info)) { in New() 217 std::unique_ptr<MetadataBuilder> MetadataBuilder::NewForUpdate(const IPartitionOpener& opener, in NewForUpdate() argument 222 auto metadata = ReadMetadata(opener, source_partition, source_slot_number); in NewForUpdate() 254 return New(*metadata.get(), &opener); in NewForUpdate()
|
D | reader.cpp | 439 std::unique_ptr<LpMetadata> ReadMetadata(const IPartitionOpener& opener, in ReadMetadata() argument 441 android::base::unique_fd fd = opener.Open(super_partition, O_RDONLY); in ReadMetadata()
|
/system/core/fs_mgr/libfiemap/ |
D | metadata.cpp | 66 PartitionOpener opener; in OpenOrCreateMetadata() local 77 if (!opener.GetInfo(data_device, &device_info)) { in OpenOrCreateMetadata() 90 builder = MetadataBuilder::New(*metadata.get(), &opener); in OpenOrCreateMetadata() 173 PartitionOpener opener; in RemoveImageMetadata() local 174 auto builder = MetadataBuilder::New(*metadata.get(), &opener); in RemoveImageMetadata()
|
D | binder.cpp | 61 bool MapImageWithDeviceMapper(const IPartitionOpener& opener, const std::string& name, 163 bool ImageManagerBinder::MapImageWithDeviceMapper(const IPartitionOpener& opener, in MapImageWithDeviceMapper() argument 165 (void)opener; in MapImageWithDeviceMapper()
|
D | image_manager.cpp | 99 void ImageManager::set_partition_opener(std::unique_ptr<IPartitionOpener>&& opener) { in set_partition_opener() argument 100 partition_opener_ = std::move(opener); in set_partition_opener() 284 bool ImageManager::MapWithDmLinear(const IPartitionOpener& opener, const std::string& name, in MapWithDmLinear() argument 301 .partition_opener = &opener, in MapWithDmLinear() 554 bool ImageManager::MapImageWithDeviceMapper(const IPartitionOpener& opener, const std::string& name, in MapImageWithDeviceMapper() argument 557 if (!MapWithDmLinear(opener, name, {}, &ignore_path)) { in MapImageWithDeviceMapper()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | liblp.h | 50 bool FlashPartitionTable(const IPartitionOpener& opener, const std::string& super_partition, 59 bool UpdatePartitionTable(const IPartitionOpener& opener, const std::string& super_partition, 64 std::unique_ptr<LpMetadata> ReadMetadata(const IPartitionOpener& opener,
|
D | builder.h | 214 static std::unique_ptr<MetadataBuilder> New(const IPartitionOpener& opener, 232 static std::unique_ptr<MetadataBuilder> NewForUpdate(const IPartitionOpener& opener, 244 const IPartitionOpener* opener = nullptr);
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
D | image_manager.h | 90 virtual bool MapImageWithDeviceMapper(const IPartitionOpener& opener, const std::string& name, 149 bool MapImageWithDeviceMapper(const IPartitionOpener& opener, const std::string& name, 163 void set_partition_opener(std::unique_ptr<IPartitionOpener>&& opener); 176 bool MapWithDmLinear(const IPartitionOpener& opener, const std::string& name,
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_fuzz_utils.h | 46 TestPartitionOpener* opener = nullptr; member 92 const android::fs_mgr::IPartitionOpener& opener); 173 bool MapImageWithDeviceMapper(const IPartitionOpener& opener, const std::string& name, in MapImageWithDeviceMapper() argument 175 return impl_->MapImageWithDeviceMapper(opener, name, dev); in MapImageWithDeviceMapper()
|
D | partition_cow_creator_test.cpp | 76 const auto& opener = test_device->GetPartitionOpener(); in TEST_F() local 95 ASSERT_TRUE(FlashPartitionTable(opener, fake_super, *source_metadata.get())); in TEST_F() 97 auto target = MetadataBuilder::NewForUpdate(opener, "super", 0, 1); in TEST_F()
|
D | snapshot.cpp | 487 const auto& opener = device_->GetPartitionOpener(); in MapCowImage() local 488 ok = images_->MapImageWithDeviceMapper(opener, cow_image_name, &cow_dev); in MapCowImage() 1236 const auto& opener = device_->GetPartitionOpener(); in ReadCurrentMetadata() local 1239 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, slot); in ReadCurrentMetadata() 1306 const auto& opener = device_->GetPartitionOpener(); in GetSnapshotFlashingStatus() local 1308 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, target_slot); in GetSnapshotFlashingStatus() 1544 const auto& opener = device_->GetPartitionOpener(); in CreateLogicalAndSnapshotPartitions() local 1546 auto metadata = android::fs_mgr::ReadMetadata(opener, super_device, slot); in CreateLogicalAndSnapshotPartitions() 1563 .partition_opener = &opener, in CreateLogicalAndSnapshotPartitions() 2148 const auto& opener = device_->GetPartitionOpener(); in CreateUpdateSnapshots() local [all …]
|
D | snapshot_fuzz_utils.cpp | 423 ret.opener = partition_opener.get(); in CheckCreateSnapshotManager() 448 const IPartitionOpener& opener) { in CheckWriteSuperMetadata() argument 483 CHECK(FlashPartitionTable(opener, super(), *metadata.get())); in CheckWriteSuperMetadata()
|
D | snapshot_test.cpp | 176 TestPartitionOpener opener(fake_super); in FormatFakeSuper() local 177 ASSERT_TRUE(FlashPartitionTable(opener, fake_super, *metadata.get())); in FormatFakeSuper() 182 TestPartitionOpener opener(fake_super); in CreatePartition() local 183 auto builder = MetadataBuilder::New(opener, "super", 0); in CreatePartition() 195 if (!UpdatePartitionTable(opener, "super", *metadata.get(), 0)) { in CreatePartition() 212 TestPartitionOpener opener(fake_super); in MapUpdatePartitions() local 213 auto builder = MetadataBuilder::NewForUpdate(opener, "super", 0, 1); in MapUpdatePartitions() 220 if (!UpdatePartitionTable(opener, "super", *metadata.get(), 1)) { in MapUpdatePartitions()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 72 auto opener = params.partition_opener; in GetPhysicalPartitionDevicePath() local 73 std::string dev_string = opener->GetDeviceString(name); in GetPhysicalPartitionDevicePath() 75 dev_string = opener->GetDeviceString(super_device); in GetPhysicalPartitionDevicePath()
|
D | fs_mgr_overlayfs.cpp | 1062 PartitionOpener opener; in CreateScratchOnData() local 1063 if (!opener.GetInfo(fs_mgr_get_super_partition_name(), &info)) { in CreateScratchOnData()
|
/system/extras/boottime_tools/io_analysis/ |
D | check_file_read.py | 160 for opener in self.processes: 161 process_names.append(opener[1] + "-" + name_to_pid_map.get(opener[1], '?') + " t:" + \ 162 str(opener[0]) + " flags:" + opener[2])
|
/system/extras/partition_tools/ |
D | lpadd.cc | 284 LocalSuperOpener opener(abs_super_path_, super_fd_); in UpdateSuper() local 287 if (!UpdatePartitionTable(opener, abs_super_path_, *metadata_.get(), i)) { in UpdateSuper()
|