/system/core/fs_mgr/liblp/include/liblp/ |
D | liblp.h | 37 struct LpMetadata { struct 51 const LpMetadata& metadata); 60 const LpMetadata& metadata, uint32_t slot_number); 64 std::unique_ptr<LpMetadata> ReadMetadata(const IPartitionOpener& opener, 68 bool FlashPartitionTable(const std::string& super_partition, const LpMetadata& metadata); 69 bool UpdatePartitionTable(const std::string& super_partition, const LpMetadata& metadata, 71 std::unique_ptr<LpMetadata> ReadMetadata(const std::string& super_partition, uint32_t slot_number); 81 bool WriteToImageFile(const std::string& file, const LpMetadata& metadata, uint32_t block_size, 86 bool WriteToImageFile(const std::string& file, const LpMetadata& metadata); 87 bool WriteToImageFile(android::base::borrowed_fd fd, const LpMetadata& metadata); [all …]
|
D | builder.h | 56 virtual bool AddTo(LpMetadata* out) const = 0; 78 bool AddTo(LpMetadata* metadata) const override; 103 bool AddTo(LpMetadata* out) const override; 243 static std::unique_ptr<MetadataBuilder> New(const LpMetadata& metadata, 280 std::unique_ptr<LpMetadata> Export(); 360 bool ImportPartitions(const LpMetadata& metadata, const std::set<std::string>& partition_names); 381 bool Init(const LpMetadata& metadata); 391 void ImportExtents(Partition* dest, const LpMetadata& metadata, 393 bool ImportPartition(const LpMetadata& metadata, const LpMetadataPartition& source); 416 static bool UpdateMetadataForOtherSuper(LpMetadata* metadata, uint32_t source_slot_number,
|
/system/core/fs_mgr/liblp/ |
D | reader.h | 34 std::unique_ptr<LpMetadata> ParseMetadata(const LpMetadataGeometry& geometry, int fd); 35 std::unique_ptr<LpMetadata> ParseMetadata(const LpMetadataGeometry& geometry, const void* buffer, 44 std::unique_ptr<LpMetadata> ReadPrimaryMetadata(int fd, const LpMetadataGeometry& geometry, 46 std::unique_ptr<LpMetadata> ReadBackupMetadata(int fd, const LpMetadataGeometry& geometry,
|
D | writer.cpp | 50 std::string SerializeMetadata(const LpMetadata& input) { in SerializeMetadata() 51 LpMetadata metadata = input; in SerializeMetadata() 87 const LpMetadata& metadata, const std::string& slot_suffix, in ValidateAndSerializeMetadata() 173 static bool ValidateMetadataRegion(const LpMetadata& metadata, uint64_t start, size_t size) { in ValidateMetadataRegion() 187 static bool WritePrimaryMetadata(int fd, const LpMetadata& metadata, uint32_t slot_number, in WritePrimaryMetadata() 205 static bool WriteBackupMetadata(int fd, const LpMetadata& metadata, uint32_t slot_number, in WriteBackupMetadata() 223 static bool WriteMetadata(int fd, const LpMetadata& metadata, uint32_t slot_number, in WriteMetadata() 249 const LpMetadata& metadata) { in FlashPartitionTable() 314 bool FlashPartitionTable(const std::string& super_partition, const LpMetadata& metadata) { in FlashPartitionTable() 318 static bool CompareMetadata(const LpMetadata& a, const LpMetadata& b) { in CompareMetadata() [all …]
|
D | writer.h | 29 std::string SerializeMetadata(const LpMetadata& input); 34 const LpMetadata& metadata, uint32_t slot_number,
|
D | images.h | 31 std::unique_ptr<LpMetadata> ReadFromImageFile(int fd); 38 ImageBuilder(const LpMetadata& metadata, uint32_t block_size, 58 const LpMetadata& metadata_;
|
D | reader.cpp | 167 static bool ReadMetadataHeader(Reader* reader, LpMetadata* metadata) { in ReadMetadataHeader() 246 static std::unique_ptr<LpMetadata> ParseMetadata(const LpMetadataGeometry& geometry, in ParseMetadata() 249 std::unique_ptr<LpMetadata> metadata = std::make_unique<LpMetadata>(); in ParseMetadata() 365 std::unique_ptr<LpMetadata> ParseMetadata(const LpMetadataGeometry& geometry, const void* buffer, in ParseMetadata() 371 std::unique_ptr<LpMetadata> ParseMetadata(const LpMetadataGeometry& geometry, int fd) { in ParseMetadata() 376 std::unique_ptr<LpMetadata> ReadPrimaryMetadata(int fd, const LpMetadataGeometry& geometry, in ReadPrimaryMetadata() 386 std::unique_ptr<LpMetadata> ReadBackupMetadata(int fd, const LpMetadataGeometry& geometry, in ReadBackupMetadata() 398 bool AdjustMetadataForSlot(LpMetadata* metadata, uint32_t slot_number) { in AdjustMetadataForSlot() 439 std::unique_ptr<LpMetadata> ReadMetadata(const IPartitionOpener& opener, in ReadMetadata() 460 std::unique_ptr<LpMetadata> metadata; in ReadMetadata() [all …]
|
D | io_test.cpp | 113 unique_ptr<LpMetadata> exported = builder->Export(); in CreateFlashedDisk() 145 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 170 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 178 unique_ptr<LpMetadata> imported = ReadMetadata(opener, "super", 0); in TEST_F() 215 unique_ptr<LpMetadata> imported = ReadMetadata(opener, "super", 0); in TEST_F() 261 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() 279 unique_ptr<LpMetadata> imported = ReadMetadata(opener, "super", 0); in TEST_F() 316 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() 347 unique_ptr<LpMetadata> metadata = ReadMetadata(opener, "super", 0); in TEST_F() 387 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() [all …]
|
D | utility.cpp | 102 const LpMetadataBlockDevice* GetMetadataSuperBlockDevice(const LpMetadata& metadata) { in GetMetadataSuperBlockDevice() 128 uint64_t GetTotalSuperPartitionSize(const LpMetadata& metadata) { in GetTotalSuperPartitionSize() 136 std::vector<std::string> GetBlockDevicePartitionNames(const LpMetadata& metadata) { in GetBlockDevicePartitionNames() 144 const LpMetadataPartition* FindPartition(const LpMetadata& metadata, const std::string& name) { in FindPartition() 153 uint64_t GetPartitionSize(const LpMetadata& metadata, const LpMetadataPartition& partition) { in GetPartitionSize() 224 bool UpdateMetadataForInPlaceSnapshot(LpMetadata* metadata, uint32_t source_slot_number, in UpdateMetadataForInPlaceSnapshot() 294 void SetMetadataHeaderV0(LpMetadata* metadata) { in SetMetadataHeaderV0()
|
D | images.cpp | 70 std::unique_ptr<LpMetadata> ReadFromImageFile(int fd) { in ReadFromImageFile() 87 std::unique_ptr<LpMetadata> ReadFromImageBlob(const void* data, size_t bytes) { in ReadFromImageBlob() 104 std::unique_ptr<LpMetadata> ReadFromImageFile(const std::string& image_file) { in ReadFromImageFile() 113 bool WriteToImageFile(borrowed_fd fd, const LpMetadata& input) { in WriteToImageFile() 126 bool WriteToImageFile(const std::string& file, const LpMetadata& input) { in WriteToImageFile() 135 ImageBuilder::ImageBuilder(const LpMetadata& metadata, uint32_t block_size, in ImageBuilder() 475 bool WriteToImageFile(const std::string& file, const LpMetadata& metadata, uint32_t block_size, in WriteToImageFile() 481 bool WriteSplitImageFiles(const std::string& output_dir, const LpMetadata& metadata, in WriteSplitImageFiles()
|
D | utility.h | 103 bool UpdateMetadataForInPlaceSnapshot(LpMetadata* metadata, uint32_t source_slot_number, 108 void SetMetadataHeaderV0(LpMetadata* metadata);
|
D | builder.cpp | 50 bool LinearExtent::AddTo(LpMetadata* out) const { in AddTo() 89 bool ZeroExtent::AddTo(LpMetadata* out) const { in AddTo() 177 std::unique_ptr<LpMetadata> metadata = ReadMetadata(opener, super_partition, slot_number); in New() 199 std::unique_ptr<MetadataBuilder> MetadataBuilder::New(const LpMetadata& metadata, in New() 261 bool MetadataBuilder::UpdateMetadataForOtherSuper(LpMetadata* metadata, uint32_t source_slot_number, in UpdateMetadataForOtherSuper() 316 bool MetadataBuilder::Init(const LpMetadata& metadata) { in Init() 345 void MetadataBuilder::ImportExtents(Partition* dest, const LpMetadata& metadata, in ImportExtents() 875 std::unique_ptr<LpMetadata> MetadataBuilder::Export() { in Export() 880 std::unique_ptr<LpMetadata> metadata = std::make_unique<LpMetadata>(); in Export() 1139 bool MetadataBuilder::ImportPartitions(const LpMetadata& metadata, in ImportPartitions() [all …]
|
D | builder_test.cpp | 153 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 163 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 223 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 331 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 386 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 420 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 658 unique_ptr<LpMetadata> metadata = builder->Export(); in TEST_F() 700 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() 710 unique_ptr<LpMetadata> new_metadata = builder->Export(); in TEST_F() 740 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F() [all …]
|
/system/core/fs_mgr/include/ |
D | fs_mgr_dm_linear.h | 43 std::unique_ptr<LpMetadata> ReadCurrentMetadata(const std::string& block_device); 47 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& block_device); 58 const LpMetadata* metadata = nullptr; 90 std::unique_ptr<LpMetadata> metadata;
|
/system/core/fastboot/device/ |
D | utility.cpp | 116 static const LpMetadataPartition* FindLogicalPartition(const LpMetadata& metadata, in FindLogicalPartition() 134 std::unique_ptr<LpMetadata> metadata = ReadMetadata(path->c_str(), slot_number); in LogicalPartitionExists() 178 std::vector<std::unique_ptr<LpMetadata>> metadata_list; in ListPartitions() 211 const android::fs_mgr::LpMetadata& metadata) { in UpdateAllPartitionMetadata()
|
D | flashing.cpp | 180 std::unique_ptr<LpMetadata> new_metadata = ReadFromImageBlob(data.data(), data.size()); in UpdateSuper() 195 std::unique_ptr<LpMetadata> old_metadata = ReadMetadata(super_name, slot_number); in UpdateSuper()
|
D | utility.h | 89 const android::fs_mgr::LpMetadata& metadata);
|
/system/extras/partition_tools/ |
D | lpflash.cc | 43 std::unique_ptr<LpMetadata> pt = ReadFromImageFile(argv[2]); in main()
|
D | lpdump.cc | 136 static bool MergeMetadata(const LpMetadata* metadata, in MergeMetadata() 242 static int PrintJson(const LpMetadata* metadata, std::ostream& cout, in PrintJson() 272 static int DumpMetadataSize(const LpMetadata& metadata, std::ostream& cout) { in DumpMetadataSize() 297 ParseLinearExtentData(const LpMetadata& pt, const LpMetadataExtent& extent) { in ParseLinearExtentData() 306 static void PrintMetadata(const LpMetadata& pt, std::ostream& cout) { in PrintMetadata() 383 static std::unique_ptr<LpMetadata> ReadDeviceOrFile(const std::string& path, uint32_t slot) { in ReadDeviceOrFile()
|
D | lpunpack.cc | 41 ImageExtractor(unique_fd&& image_fd, std::unique_ptr<LpMetadata>&& metadata, 52 std::unique_ptr<LpMetadata> metadata_; 175 ImageExtractor::ImageExtractor(unique_fd&& image_fd, std::unique_ptr<LpMetadata>&& metadata, in ImageExtractor()
|
/system/core/fs_mgr/libfiemap/ |
D | metadata.h | 29 std::unique_ptr<android::fs_mgr::LpMetadata> OpenMetadata(const std::string& metadata_dir);
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapshot.h | 304 using LpMetadata = android::fs_mgr::LpMetadata; variable 568 std::unique_ptr<LpMetadata> ReadCurrentMetadata(); 579 MetadataPartitionState GetMetadataPartitionState(const LpMetadata& metadata, 623 const LpMetadata* ReadOldPartitionMetadata(LockedFile* lock); 701 const LpMetadata* exported_target_metadata, const std::string& target_suffix, 783 std::unique_ptr<LpMetadata> old_partition_metadata_;
|
/system/update_engine/aosp/ |
D | metrics_reporter_android.cc | 38 using android::fs_mgr::LpMetadata; 102 std::unique_ptr<LpMetadata> metadata = ReadMetadata(super_device, slot); in ReportUpdateAttemptMetrics()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 149 std::unique_ptr<LpMetadata> ReadCurrentMetadata(const std::string& block_device) { in ReadCurrentMetadata() 154 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& super_device) { in CreateLogicalPartitions()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_metadata_updater_test.cpp | 31 using android::fs_mgr::LpMetadata; 138 std::unique_ptr<LpMetadata> exported_;
|