Home
last modified time | relevance | path

Searched refs:image_path (Results 1 – 11 of 11) 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
125 GTEST_LOG_(INFO) << "ExtractVBMetaImage: " << image_path << " to " << output_file_name; in ExtractVBMetaImage()
131 image_path.value().c_str(), vbmeta_image.path.value().c_str(), padding_size); in ExtractVBMetaImage()
153 base::FilePath image_path = test_dir_.Append(file_name); in GenerateImage() local
156 image_path, reinterpret_cast<const char*>(image.data()), image.size()))); in GenerateImage()
157 return image_path; in GenerateImage()
160 void BaseFsAvbTest::AddAvbFooter(const base::FilePath& image_path, const std::string& footer_type, in AddAvbFooter() argument
183 add_footer_option.c_str(), image_path.value().c_str(), partition_name.c_str(), in AddAvbFooter()
[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.cpp548 const std::string& image_path, const std::string& partition_name, in LoadAndVerifyVbmetaByPath() argument
557 if (!WaitForFile(image_path, 1s)) { in LoadAndVerifyVbmetaByPath()
558 PERROR << "No such path: " << image_path; in LoadAndVerifyVbmetaByPath()
562 unique_fd fd(TEMP_FAILURE_RETRY(open(image_path.c_str(), O_RDONLY | O_CLOEXEC))); in LoadAndVerifyVbmetaByPath()
564 PERROR << "Failed to open: " << image_path; in LoadAndVerifyVbmetaByPath()
575 vbmeta->set_vbmeta_path(image_path); in LoadAndVerifyVbmetaByPath()
622 auto image_path = device_path_constructor( in LoadAndVerifyVbmetaByPartition() local
627 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/apex/tools/
Dapex_compression_tool.py114 image_path = os.path.join(work_dir, 'apex_payload.img')
118 assert AddOriginalApexDigestToManifest(apex_manifest_path, image_path)
/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.cpp667 auto image_path = GetImageHeaderPath(name); in Validate() local
668 auto fiemap = SplitFiemap::Open(image_path); in Validate()
670 LOG(ERROR) << "SplitFiemap::Open(\"" << image_path << "\") failed"; in Validate()
675 LOG(ERROR) << "Image doesn't have pinned extents: " << image_path; in Validate()
/system/core/fastboot/
Dfastboot.cpp1839 auto image_path = temp_dir.path + "/"s + super_bdev_name + ".img"; in wipe_super() local
1840 ok = WriteToImageFile(image_path, metadata, block_size, {}, true); in wipe_super()
1858 auto image_path = temp_dir.path + "/"s + image_name; in wipe_super() local
1860 do_flash(partition_name.c_str(), image_path.c_str()); in wipe_super()
1864 unlink(image_path.c_str()); in wipe_super()