/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() 73 const size_t image_size = 5 * 1024 * 1024; in TEST_F() local 75 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F() 80 EXPECT_EQ(file_size, image_size); in TEST_F() [all …]
|
D | fs_avb_util_test.cpp | 83 EXPECT_EQ(10485760UL, hashtree_desc->image_size); in TEST_F() 105 const size_t image_size = 5 * 1024 * 1024; in TEST_F() local 107 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F()
|
D | avb_util_test.cpp | 160 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 …]
|
D | fs_avb_test_util.cpp | 145 base::FilePath BaseFsAvbTest::GenerateImage(const std::string& file_name, size_t image_size, in GenerateImage() argument 148 image.resize(image_size); in GenerateImage() 149 for (size_t n = 0; n < image_size; n++) { in GenerateImage() 153 EXPECT_EQ(image_size, in GenerateImage() 188 const std::string& partition_name, const size_t image_size, const size_t partition_size, in GenerateImageAndExtractVBMetaData() argument 192 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 | 69 auto image_size = verity_data.desc->image_size; in GenerateHashTree() local 78 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in GenerateHashTree() 79 return Error() << "Invalid image size " << image_size; in GenerateHashTree() 86 auto block_count = image_size / block_size; in GenerateHashTree() 125 auto image_size = verity_data.desc->image_size; in CalculateRootDigest() local 137 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in CalculateRootDigest() 138 return Error() << "Invalid image size " << image_size; in CalculateRootDigest()
|
D | apex_file.h | 62 size_t image_size, ApexManifest manifest, in ApexFile() argument 66 image_size_(image_size), in ApexFile()
|
D | apex_file.cpp | 59 size_t image_size; in Open() local 80 image_size = entry.uncompressed_length; in Open() 115 return ApexFile(path, image_offset, image_size, std::move(*manifest), pubkey, in Open()
|
D | apexd.cpp | 195 0, desc->image_size / 512, desc->dm_verity_version, block_device, in createVerityTable() 197 desc->image_size / desc->data_block_size, hash_start_block, in createVerityTable() 462 readVerityDevice(blockDevice, (*verityData).desc->image_size); in MountPackageImpl()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 79 size_t image_size; member 132 size_t image_size) { in CompareFilesByBlock() argument 133 EXPECT_EQ(0U, image_size % kBlockSize); in CompareFilesByBlock() 139 EXPECT_GE(a_data.size(), image_size); in CompareFilesByBlock() 140 EXPECT_GE(b_data.size(), image_size); in CompareFilesByBlock() 141 for (size_t i = 0; i < image_size; i += kBlockSize) { in CompareFilesByBlock() 148 LOG(INFO) << "Compared filesystems with size " << image_size in CompareFilesByBlock() 375 state->image_size = utils::FileSize(state->a_img); in GenerateDeltaFile() 436 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile() 575 state->image_size + 1024 * 1024))); in GenerateDeltaFile() [all …]
|
/system/core/fs_mgr/libsnapshot/ |
D | power_test.cpp | 270 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/tools/mkbootimg/ |
D | unpack_bootimg.py | 42 def get_number_of_pages(image_size, page_size): argument 44 return (image_size + page_size - 1) // page_size
|
D | mkbootimg.py | 50 def get_number_of_pages(image_size, page_size): argument 52 return (image_size + page_size - 1) / page_size
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_util.cpp | 77 0, hashtree_desc.image_size / 512, hashtree_desc.dm_verity_version, blk_device, in ConstructVerityTable() 79 hashtree_desc.image_size / hashtree_desc.data_block_size, in ConstructVerityTable()
|
/system/update_engine/payload_generator/ |
D | payload_generation_config_android.cc | 59 ExtentForBytes(hashtree.data_block_size, 0, hashtree.image_size); in AvbDescriptorCallback()
|
/system/core/fastboot/ |
D | fastboot.cpp | 118 int64_t image_size; member 897 buf->image_size = sparse_file_len(s, false, false); in load_buf_fd() 900 buf->image_size = sz; in load_buf_fd() 1250 fb->ResizePartition(pname, std::to_string(buf.image_size)); in do_flash() 1444 fb->ResizePartition(partition_name, std::to_string(buf->image_size)); in FlashImage()
|