/system/core/fs_mgr/libfs_avb/tests/ |
D | basic_test.cpp | 28 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 …]
|
D | fs_avb_util_test.cpp | 85 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()
|
D | avb_util_test.cpp | 161 const size_t image_size = 5 * 1024 * 1024; in TEST_F() local 162 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F() 167 EXPECT_EQ(image_size, file_size); in TEST_F() 171 EXPECT_EQ(image_size, GetTotalSize(fd)); in TEST_F() 176 const size_t image_size = 10 * 1024 * 1024; in TEST_F() local 177 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F() 183 EXPECT_EQ(image_size, GetTotalSize(fd)); // checks that total size is still returned. in TEST_F() 189 const size_t image_size = 10 * 1024 * 1024; in TEST_F() local 191 base::FilePath system_path = GenerateImage("system.img", image_size); in TEST_F() 197 EXPECT_EQ(image_size, file_size); in TEST_F() [all …]
|
D | fs_avb_test_util.cpp | 146 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()
|
D | fs_avb_test_util.h | 96 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/ |
D | apexd_verity.cpp | 72 auto image_size = verity_data.desc->image_size; in GenerateHashTree() local 81 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in GenerateHashTree() 82 return Error() << "Invalid image size " << image_size; in GenerateHashTree() 92 auto block_count = image_size / block_size; in GenerateHashTree() 131 auto image_size = verity_data.desc->image_size; in CalculateRootDigest() local 143 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in CalculateRootDigest() 144 return Error() << "Invalid image size " << image_size; in CalculateRootDigest()
|
D | apex_file.h | 66 const std::optional<size_t>& image_size, in ApexFile() argument 71 image_size_(image_size), in ApexFile()
|
D | apexd_loop.cpp | 326 const size_t image_size) { in ConfigureLoopDevice() argument 377 li.lo_sizelimit = image_size; in ConfigureLoopDevice() 478 size_t image_size) { in CreateLoopDevice() argument 500 loop_device->device_fd.get(), target, image_offset, image_size); in CreateLoopDevice() 509 const std::string& target, uint32_t image_offset, size_t image_size) { in CreateAndConfigureLoopDevice() argument 518 auto loop_device = CreateLoopDevice(target, image_offset, image_size); in CreateAndConfigureLoopDevice()
|
D | apexd_loop.h | 68 const std::string& target, uint32_t image_offset, size_t image_size);
|
D | apex_file.cpp | 83 std::optional<size_t> image_size; in Open() local 121 image_size = entry.uncompressed_length; in Open() 176 return ApexFile(realpath, image_offset, image_size, std::move(*manifest), in Open()
|
D | apexd.cpp | 207 0, desc->image_size / 512, desc->dm_verity_version, block_device, in CreateVerityTable() 209 desc->image_size / desc->data_block_size, hash_start_block, in CreateVerityTable() 579 ReadVerityDevice(block_device, (*verity_data).desc->image_size); in MountPackageImpl()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 80 size_t image_size; member 166 size_t image_size) { in CompareFilesByBlock() argument 167 ASSERT_EQ(0U, image_size % kBlockSize); in CompareFilesByBlock() 173 EXPECT_GE(a_data.size(), image_size); in CompareFilesByBlock() 174 EXPECT_GE(b_data.size(), image_size); in CompareFilesByBlock() 175 for (size_t i = 0; i < image_size; i += kBlockSize) { in CompareFilesByBlock() 182 LOG(INFO) << "Compared filesystems with size " << image_size in CompareFilesByBlock() 404 state->image_size = utils::FileSize(state->a_img->path()); in GenerateDeltaFile() 445 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile() 584 state->image_size + 1024 * 1024))); in GenerateDeltaFile() [all …]
|
/system/core/fastboot/ |
D | fastboot.h | 63 int64_t image_size; member
|
D | fastboot.cpp | 1046 buf->image_size = sparse_file_len(s, false, false); in load_buf_fd() 1047 if (buf->image_size < 0) { in load_buf_fd() 1053 buf->image_size = sz; in load_buf_fd() 1484 buf->image_size = vendor_boot_size; in repack_ramdisk() 1496 fb->ResizePartition(pname, std::to_string(buf.image_size)); in do_flash() 1919 fb->ResizePartition(partition_name, std::to_string(buf->image_size)); in FlashImage()
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_util.cpp | 66 0, hashtree_desc.image_size / 512, hashtree_desc.dm_verity_version, blk_device, in ConstructVerityTable() 68 hashtree_desc.image_size / hashtree_desc.data_block_size, in ConstructVerityTable()
|
/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 45 def get_number_of_pages(image_size, page_size): argument 47 return (image_size + page_size - 1) // page_size
|
D | mkbootimg.py | 91 def get_number_of_pages(image_size, page_size): argument 93 return (image_size + page_size - 1) // page_size
|
/system/update_engine/payload_generator/ |
D | payload_generation_config_android.cc | 59 ExtentForBytes(hashtree.data_block_size, 0, hashtree.image_size); in AvbDescriptorCallback()
|
/system/apex/apexer/ |
D | apexer.py | 641 image_size = int(output.split()[2]) 642 if image_size == 4096:
|