Home
last modified time | relevance | path

Searched refs:metadata_ (Results 1 – 5 of 5) sorted by relevance

/system/core/fs_mgr/liblp/
Dimages.cpp103 : metadata_(metadata), in ImageBuilder()
149 return device_images_.size() == metadata_.block_devices.size(); in IsValid()
173 std::string name = GetBlockDevicePartitionName(metadata_.block_devices[i]); in ExportFiles()
233 std::string metadata_blob = SerializeMetadata(metadata_); in Build()
251 for (const auto& partition : metadata_.partitions) { in Build()
284 const LpMetadataExtent& extent = metadata_.extents[extent_index]; in AddPartitionImage()
339 const LpMetadataExtent& extent = metadata_.extents[extent_index]; in AddPartitionImage()
378 sectors += metadata_.extents[partition.first_extent_index + i].num_sectors; in ComputePartitionSize()
391 std::vector<uint64_t> last_sectors(metadata_.block_devices.size()); in CheckExtentOrdering()
393 for (const auto& extent : metadata_.extents) { in CheckExtentOrdering()
Dimages.h60 const LpMetadata& metadata_; variable
/system/extras/partition_tools/
Dlpunpack.cc52 std::unique_ptr<LpMetadata> metadata_; member in ImageExtractor
179 metadata_(std::move(metadata)), in ImageExtractor()
199 for (const auto& partition : metadata_->partitions) { in BuildPartitionList()
219 const LpMetadataExtent& extent = metadata_->extents[index]; in ExtractPartition()
240 SparseWriter writer(output_fd, image_fd_, metadata_->geometry.logical_block_size); in ExtractPartition()
245 const LpMetadataExtent& extent = metadata_->extents[index]; in ExtractPartition()
/system/gsid/
Dgsi_service.cpp632 metadata_ = CreateMetadata(); in PreallocateFiles()
633 if (!metadata_) { in PreallocateFiles()
771 if (!CreateLogicalPartition(kUserdataDevice, *metadata_.get(), name, true, kDmTimeout, in OpenPartition()
943 metadata_ = CreateMetadata(); in ReenableGsi()
944 if (!metadata_) { in ReenableGsi()
975 metadata_ = CreateMetadata(); in WipeUserdata()
976 if (!metadata_) { in WipeUserdata()
1136 if (!WriteToImageFile(kGsiLpMetadataFile, *metadata_.get())) { in CreateMetadataFile()
Dgsi_service.h163 std::unique_ptr<LpMetadata> metadata_; variable