Home
last modified time | relevance | path

Searched refs:image_path (Results 1 – 10 of 10) sorted by relevance

/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp56 base::FilePath image_path = iter->second.path; in CalcVBMetaDigest() local
61 image_path.value().c_str(), hash_algorithm.c_str(), in CalcVBMetaDigest()
120 base::FilePath BaseFsAvbTest::ExtractVBMetaImage(const base::FilePath& image_path, in ExtractVBMetaImage() argument
130 image_path.value().c_str(), vbmeta_image.path.value().c_str(), padding_size); in ExtractVBMetaImage()
152 base::FilePath image_path = test_dir_.Append(file_name); in GenerateImage() local
155 image_path, reinterpret_cast<const char*>(image.data()), image.size()))); in GenerateImage()
156 return image_path; in GenerateImage()
159 void BaseFsAvbTest::AddAvbFooter(const base::FilePath& image_path, const std::string& footer_type, in AddAvbFooter() argument
182 add_footer_option.c_str(), image_path.value().c_str(), partition_name.c_str(), in AddAvbFooter()
192 base::FilePath image_path = GenerateImage(partition_name + ".img", image_size); in GenerateImageAndExtractVBMetaData() local
[all …]
Dfs_avb_test_util.h90 base::FilePath ExtractVBMetaImage(const base::FilePath& image_path,
100 void AddAvbFooter(const base::FilePath& image_path, const std::string& footer_type,
111 VBMetaData ExtractAndLoadVBMetaData(const base::FilePath& image_path,
117 std::string InfoImage(const base::FilePath& image_path);
Davb_util_test.cpp64 void SetVBMetaFlags(const base::FilePath& image_path, uint32_t flags);
67 void AvbUtilTest::SetVBMetaFlags(const base::FilePath& image_path, uint32_t flags) { in SetVBMetaFlags() argument
68 if (!base::PathExists(image_path)) return; in SetVBMetaFlags()
70 std::string image_file_name = image_path.RemoveExtension().BaseName().value(); in SetVBMetaFlags()
74 android::base::unique_fd fd(open(image_path.value().c_str(), O_RDWR | O_CLOEXEC)); in SetVBMetaFlags()
161 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F() local
165 ASSERT_TRUE(base::GetFileSize(image_path, &file_size)); in TEST_F()
169 auto fd = OpenUniqueReadFd(image_path); in TEST_F()
176 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F() local
179 auto fd = OpenUniqueReadFd(image_path); in TEST_F()
/system/extras/partition_tools/
Dlpadd.cc108 uint32_t attributes, const std::string& image_path);
161 uint32_t attributes, const std::string& image_path) { in AddPartition() argument
162 if (!image_path.empty() && was_empty_) { in AddPartition()
179 if (!image_path.empty()) { in AddPartition()
180 raw_image_fd.reset(open(image_path.c_str(), O_RDONLY | O_CLOEXEC)); in AddPartition()
182 std::cerr << "open failed: " << image_path << ": " << strerror(errno) << "\n"; in AddPartition()
185 if (!MaybeUnsparse(image_path, raw_image_fd, &temp_image)) { in AddPartition()
192 std::cerr << "lseek failed: " << image_path << ": " << strerror(errno) << "\n"; in AddPartition()
452 std::string image_path; in main() local
455 image_path = argv[optind++]; in main()
[all …]
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp546 const std::string& image_path, const std::string& partition_name, in LoadAndVerifyVbmetaByPath() argument
555 if (!WaitForFile(image_path, 1s)) { in LoadAndVerifyVbmetaByPath()
556 PERROR << "No such path: " << image_path; in LoadAndVerifyVbmetaByPath()
560 unique_fd fd(TEMP_FAILURE_RETRY(open(image_path.c_str(), O_RDONLY | O_CLOEXEC))); in LoadAndVerifyVbmetaByPath()
562 PERROR << "Failed to open: " << image_path; in LoadAndVerifyVbmetaByPath()
573 vbmeta->set_vbmeta_path(image_path); in LoadAndVerifyVbmetaByPath()
620 auto image_path = device_path_constructor( in LoadAndVerifyVbmetaByPartition() local
625 auto vbmeta = LoadAndVerifyVbmetaByPath(image_path, partition_name, expected_public_key_blob, in LoadAndVerifyVbmetaByPartition()
Davb_util.h97 const std::string& image_path, const std::string& partition_name,
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dfs_avb_util.h37 const std::string& image_path, const std::string& partition_name,
/system/core/fs_mgr/libsnapshot/
Dpower_test.cpp463 std::string md_path, image_path; in Check() local
470 if (!images_->GetMappedImageDevice(kSnapshotImageName, &image_path)) { in Check()
480 unique_fd image_fd(open(image_path.c_str(), O_RDONLY)); in Check()
482 std::cerr << "open: " << image_path << ": " << strerror(errno) << "\n"; in Check()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp645 auto image_path = GetImageHeaderPath(name); in Validate() local
646 auto fiemap = SplitFiemap::Open(image_path); in Validate()
648 LOG(ERROR) << "Image is missing or was moved: " << image_path; in Validate()
/system/core/fastboot/
Dfastboot.cpp1717 auto image_path = temp_dir.path + "/"s + super_bdev_name + ".img"; in wipe_super() local
1718 ok = WriteToImageFile(image_path, metadata, block_size, {}, true); in wipe_super()
1736 auto image_path = temp_dir.path + "/"s + image_name; in wipe_super() local
1738 do_flash(partition_name.c_str(), image_path.c_str()); in wipe_super()
1742 unlink(image_path.c_str()); in wipe_super()