Home
last modified time | relevance | path

Searched refs:image_size (Results 1 – 18 of 18) sorted by relevance

/system/core/fs_mgr/libfs_avb/tests/
Dbasic_test.cpp28 const size_t image_size = 5 * 1024 * 1024; in TEST_F() local
29 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F()
35 EXPECT_EQ(file_size, image_size); in TEST_F()
39 expected_content.resize(image_size); in TEST_F()
40 for (size_t n = 0; n < image_size; n++) { in TEST_F()
44 actual_content.resize(image_size); in TEST_F()
46 base::ReadFile(boot_path, reinterpret_cast<char*>(actual_content.data()), image_size)); in TEST_F()
75 const size_t image_size = 5 * 1024 * 1024; in TEST_F() local
77 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F()
82 EXPECT_EQ(file_size, image_size); in TEST_F()
[all …]
Dfs_avb_util_test.cpp85 EXPECT_EQ(10485760UL, hashtree_desc->image_size); in TEST_F()
107 const size_t image_size = 5 * 1024 * 1024; in TEST_F() local
109 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F()
Davb_util_test.cpp160 const size_t image_size = 5 * 1024 * 1024; in TEST_F() local
161 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F()
166 EXPECT_EQ(image_size, file_size); in TEST_F()
170 EXPECT_EQ(image_size, GetTotalSize(fd)); in TEST_F()
175 const size_t image_size = 10 * 1024 * 1024; in TEST_F() local
176 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F()
182 EXPECT_EQ(image_size, GetTotalSize(fd)); // checks that total size is still returned. in TEST_F()
188 const size_t image_size = 10 * 1024 * 1024; in TEST_F() local
190 base::FilePath system_path = GenerateImage("system.img", image_size); in TEST_F()
196 EXPECT_EQ(image_size, file_size); in TEST_F()
[all …]
Dfs_avb_test_util.cpp146 base::FilePath BaseFsAvbTest::GenerateImage(const std::string& file_name, size_t image_size, in GenerateImage() argument
149 image.resize(image_size); in GenerateImage()
150 for (size_t n = 0; n < image_size; n++) { in GenerateImage()
154 EXPECT_EQ(image_size, in GenerateImage()
189 const std::string& partition_name, const size_t image_size, const size_t partition_size, in GenerateImageAndExtractVBMetaData() argument
193 base::FilePath image_path = GenerateImage(partition_name + ".img", image_size); in GenerateImageAndExtractVBMetaData()
Dfs_avb_test_util.h96 base::FilePath GenerateImage(const std::string& file_name, size_t image_size,
107 const std::string& partition_name, const size_t image_size, const size_t partition_size,
/system/apex/apexd/
Dapexd_verity.cpp70 auto image_size = verity_data.desc->image_size; in GenerateHashTree() local
79 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in GenerateHashTree()
80 return Error() << "Invalid image size " << image_size; in GenerateHashTree()
90 auto block_count = image_size / block_size; in GenerateHashTree()
129 auto image_size = verity_data.desc->image_size; in CalculateRootDigest() local
141 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in CalculateRootDigest()
142 return Error() << "Invalid image size " << image_size; in CalculateRootDigest()
Dapex_file.h63 const std::optional<size_t>& image_size, in ApexFile() argument
68 image_size_(image_size), in ApexFile()
Dapexd_loop.cpp163 const size_t image_size) { in ConfigureLoopDevice() argument
212 li.lo_sizelimit = image_size; in ConfigureLoopDevice()
306 const size_t image_size) { in CreateLoopDevice() argument
326 loop_device->device_fd.get(), target, image_offset, image_size); in CreateLoopDevice()
Dapexd_loop.h64 const size_t image_size);
Dapex_file.cpp82 std::optional<size_t> image_size; in Open() local
119 image_size = entry.uncompressed_length; in Open()
174 return ApexFile(realpath, image_offset, image_size, std::move(*manifest), in Open()
Dapexd.cpp227 0, desc->image_size / 512, desc->dm_verity_version, block_device, in CreateVerityTable()
229 desc->image_size / desc->data_block_size, hash_start_block, in CreateVerityTable()
545 ReadVerityDevice(block_device, (*verity_data).desc->image_size); in MountPackageImpl()
/system/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc87 size_t image_size; member
173 size_t image_size) { in CompareFilesByBlock() argument
174 EXPECT_EQ(0U, image_size % kBlockSize); in CompareFilesByBlock()
180 EXPECT_GE(a_data.size(), image_size); in CompareFilesByBlock()
181 EXPECT_GE(b_data.size(), image_size); in CompareFilesByBlock()
182 for (size_t i = 0; i < image_size; i += kBlockSize) { in CompareFilesByBlock()
189 LOG(INFO) << "Compared filesystems with size " << image_size in CompareFilesByBlock()
412 state->image_size = utils::FileSize(state->a_img->path()); in GenerateDeltaFile()
453 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile()
592 state->image_size + 1024 * 1024))); in GenerateDeltaFile()
[all …]
/system/core/fs_mgr/libsnapshot/
Dpower_test.cpp270 uint64_t image_size = std::max(s1_size, s2_size) + (1024 * 1024 * 128); in SetupImages() local
271 if (!images_->CreateBackingImage(kSnapshotImageName, image_size, 0, nullptr)) { in SetupImages()
276 if (!images_->CreateBackingImage(kSnapshotCowName, image_size, 0, nullptr)) { in SetupImages()
498 uint64_t image_size = get_block_device_size(image_fd); in Check() local
499 if (image_size != md_size) { in Check()
503 if (canonical_size > image_size) { in Check()
505 << image_size << "\n"; in Check()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp79 0, hashtree_desc.image_size / 512, hashtree_desc.dm_verity_version, blk_device, in ConstructVerityTable()
81 hashtree_desc.image_size / hashtree_desc.data_block_size, in ConstructVerityTable()
/system/tools/mkbootimg/
Dunpack_bootimg.py45 def get_number_of_pages(image_size, page_size): argument
47 return (image_size + page_size - 1) // page_size
Dmkbootimg.py90 def get_number_of_pages(image_size, page_size): argument
92 return (image_size + page_size - 1) // page_size
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc59 ExtentForBytes(hashtree.data_block_size, 0, hashtree.image_size); in AvbDescriptorCallback()
/system/core/fastboot/
Dfastboot.cpp121 int64_t image_size; member
927 buf->image_size = sparse_file_len(s, false, false); in load_buf_fd()
930 buf->image_size = sz; in load_buf_fd()
1352 buf->image_size = vendor_boot_size; in repack_ramdisk()
1364 fb->ResizePartition(pname, std::to_string(buf.image_size)); in do_flash()
1564 fb->ResizePartition(partition_name, std::to_string(buf->image_size)); in FlashImage()