Home
last modified time | relevance | path

Searched refs:image_name (Results 1 – 8 of 8) sorted by relevance

/system/core/fastboot/
Dsuper_flash_helper.cpp43 bool SuperFlashHelper::AddPartition(const std::string& partition, const std::string& image_name, in AddPartition() argument
48 auto iter = image_fds_.find(image_name); in AddPartition()
50 unique_fd fd = source_.OpenFile(image_name); in AddPartition()
53 LOG(VERBOSE) << "could not find partition image: " << image_name; in AddPartition()
62 iter = image_fds_.emplace(image_name, std::move(fd)).first; in AddPartition()
65 if (!builder_.AddPartition(partition, image_name, get_file_size(iter->second))) { in AddPartition()
106 auto iter = image_fds_.find(extent.image_name); in GetSparseLayout()
108 LOG(FATAL) << "image added but not found: " << extent.image_name; in GetSparseLayout()
Dsuper_flash_helper.h36 bool AddPartition(const std::string& partition, const std::string& image_name, bool optional);
Dfastboot.cpp2158 std::string image_name; in wipe_super() local
2160 image_name = "super_" + partition + ".img"; in wipe_super()
2162 image_name = partition + ".img"; in wipe_super()
2165 auto image_path = temp_dir.path + "/"s + image_name; in wipe_super()
/system/core/fs_mgr/liblp/include/liblp/
Dsuper_layout_builder.h45 SuperImageExtent(uint64_t offset, uint64_t size, const std::string& image_name, in SuperImageExtent()
48 this->image_name = image_name; in SuperImageExtent()
67 std::string image_name; member
86 bool AddPartition(const std::string& partition_name, const std::string& image_name,
/system/core/fs_mgr/liblp/
Dsuper_layout_builder.cpp72 const std::string& image_name, uint64_t partition_size) { in AddPartition() argument
80 image_map_.emplace(partition_name, image_name); in AddPartition()
172 const auto& image_name = image_name_iter->second; in GetImageLayout() local
187 extents.emplace_back(super_offset, size, image_name, image_offset); in GetImageLayout()
213 return image_name == other.image_name && image_offset == other.image_offset; in operator ==()
226 stream << "partition:" << extent.image_name << ":" << extent.image_offset; in operator <<()
/system/extras/libfec/test/
Dfec_unittest.cpp98 static void BuildAndAppendsEccImage(const std::string &image_name, in BuildAndAppendsEccImage() argument
101 "2", image_name, fec_name }; in BuildAndAppendsEccImage()
105 void AddAvbHashtreeFooter(const std::string &image_name, in AddAvbHashtreeFooter() argument
112 "--image", image_name, in AddAvbHashtreeFooter()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp101 std::string ImageManager::GetStatusFilePath(const std::string& image_name) { in GetStatusFilePath() argument
102 return JoinPaths(metadata_dir_, image_name) + ".status"; in GetStatusFilePath()
105 static std::string GetStatusPropertyName(const std::string& image_name) { in GetStatusPropertyName() argument
110 return "gsid.mapped_image." + image_name; in GetStatusPropertyName()
117 bool ImageManager::IsImageMapped(const std::string& image_name) { in IsImageMapped() argument
118 auto prop_name = GetStatusPropertyName(image_name); in IsImageMapped()
123 return dm.GetState(image_name) != DmDeviceState::INVALID; in IsImageMapped()
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h185 std::string GetStatusFilePath(const std::string& image_name);