Home
last modified time | relevance | path

Searched refs:image_size (Results 1 – 14 of 14) 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()
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 …]
Dfs_avb_util_test.cpp83 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()
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.cpp145 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()
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/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc75 size_t image_size; member
126 size_t image_size) { in CompareFilesByBlock() argument
127 EXPECT_EQ(0U, image_size % kBlockSize); in CompareFilesByBlock()
133 EXPECT_GE(a_data.size(), image_size); in CompareFilesByBlock()
134 EXPECT_GE(b_data.size(), image_size); in CompareFilesByBlock()
135 for (size_t i = 0; i < image_size; i += kBlockSize) { in CompareFilesByBlock()
142 LOG(INFO) << "Compared filesystems with size " << image_size in CompareFilesByBlock()
311 state->image_size = utils::FileSize(state->a_img); in GenerateDeltaFile()
378 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile()
523 state->image_size + 1024 * 1024))); in GenerateDeltaFile()
[all …]
/system/apex/apexd/
Dapex_file.h61 size_t image_size, ApexManifest& manifest, in ApexFile() argument
66 image_size_(image_size), in ApexFile()
Dapex_file.cpp86 size_t image_size; in Open() local
93 image_size = 0; in Open()
133 image_size = entry.uncompressed_length; in Open()
176 ApexFile apexFile(path, flattened, image_offset, image_size, *manifest, in Open()
Dapexd.cpp171 0, desc->image_size / 512, desc->dm_verity_version, loop, loop, in createVerityTable()
173 desc->image_size / desc->data_block_size, in createVerityTable()
475 readVerityDevice(blockDevice, (*verityData).desc->image_size); in mountNonFlattened()
/system/core/mkbootimg/
Dunpack_bootimg.py40 def get_number_of_pages(image_size, page_size): argument
42 return (image_size + page_size - 1) / page_size
Dmkbootimg.py48 def get_number_of_pages(image_size, page_size): argument
50 return (image_size + page_size - 1) / page_size
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp77 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/
Dpayload_generation_config_android.cc59 ExtentForBytes(hashtree.data_block_size, 0, hashtree.image_size); in AvbDescriptorCallback()
/system/core/fastboot/
Dfastboot.cpp116 int64_t image_size; member
875 buf->image_size = sparse_file_len(s, false, false); in load_buf_fd()
878 buf->image_size = sz; in load_buf_fd()
1141 fb->ResizePartition(pname, std::to_string(buf.image_size)); in do_flash()
1325 fb->ResizePartition(partition_name, std::to_string(buf->image_size)); in FlashImage()