Home
last modified time | relevance | path

Searched refs:partition_size (Results 1 – 21 of 21) sorted by relevance

/system/update_engine/payload_consumer/
Dpartition_update_generator_android.cc178 int64_t partition_size) { in CreatePartitionUpdate() argument
182 old_partition_info->set_size(partition_size); in CreatePartitionUpdate()
184 auto raw_hash = CalculateHashForPartition(source_device, partition_size); in CreatePartitionUpdate()
190 new_partition_info->set_size(partition_size); in CreatePartitionUpdate()
197 copy_extent.set_num_blocks(partition_size / block_size_); in CreatePartitionUpdate()
207 const std::string& block_device, int64_t partition_size) { in CalculateHashForPartition() argument
215 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition()
216 partition_size) { in CalculateHashForPartition()
Dpartition_update_generator_android.h59 int64_t partition_size);
67 const std::string& block_device, int64_t partition_size);
/system/core/fs_mgr/libfs_avb/tests/
Dbasic_test.cpp74 const size_t partition_size = 10 * 1024 * 1024; in TEST_F() local
82 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F()
111 const size_t partition_size = 60 * 1024 * 1024; in TEST_F() local
119 AddAvbFooter(system_path, "hashtree", "system", partition_size, "SHA512_RSA8192", 20, in TEST_F()
Dfs_avb_util_test.cpp106 const size_t partition_size = 10 * 1024 * 1024; in TEST_F() local
109 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F()
Davb_util_test.cpp189 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
199 AddAvbFooter(system_path, "hashtree", "system", partition_size, "SHA512_RSA8192", 20, in TEST_F()
205 EXPECT_EQ(partition_size, file_size); in TEST_F()
336 const size_t partition_size = 10 * 1024 * 1024; in TEST_F() local
339 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F()
480 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
482 auto vbmeta = GenerateImageAndExtractVBMetaData("system", image_size, partition_size, in TEST_F()
500 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
502 auto vbmeta = GenerateImageAndExtractVBMetaData("system", image_size, partition_size, in TEST_F()
541 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
[all …]
Dfs_avb_test_util.cpp160 const std::string& partition_name, const uint64_t partition_size, in AddAvbFooter() argument
183 partition_size, rollback_index, salt.c_str(), signing_options.c_str(), in AddAvbFooter()
188 const std::string& partition_name, const size_t image_size, const size_t partition_size, in GenerateImageAndExtractVBMetaData() argument
195 AddAvbFooter(image_path, footer_type, partition_name, partition_size, avb_algorithm, in GenerateImageAndExtractVBMetaData()
Dfs_avb_test_util.h101 const std::string& partition_name, const uint64_t partition_size,
107 const std::string& partition_name, const size_t image_size, const size_t partition_size,
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator_test.cpp50 constexpr uint64_t partition_size = 40_KiB; in TEST_F() local
56 ASSERT_TRUE(builder_a->ResizePartition(system_a, partition_size)); in TEST_F()
62 ASSERT_TRUE(builder_b->ResizePartition(system_b, partition_size)); in TEST_F()
71 ASSERT_EQ(partition_size, ret->snapshot_status.device_size()); in TEST_F()
72 ASSERT_EQ(partition_size, ret->snapshot_status.snapshot_size()); in TEST_F()
122 constexpr uint64_t partition_size = 40_MiB; in TEST_F() local
128 ASSERT_TRUE(builder_a->ResizePartition(system_a, partition_size)); in TEST_F()
134 ASSERT_TRUE(builder_b->ResizePartition(system_b, partition_size)); in TEST_F()
Dsnapshot_test.cpp987 constexpr uint64_t partition_size = 3788_KiB; in TEST_F() local
988 SetSize(sys_, partition_size); in TEST_F()
989 SetSize(vnd_, partition_size); in TEST_F()
990 SetSize(prd_, partition_size); in TEST_F()
1007 ASSERT_TRUE(WriteSnapshotAndHash(name, partition_size)); in TEST_F()
1595 constexpr auto partition_size = 4_MiB; in TEST_F() local
1598 constexpr auto fec_size = partition_size - data_size - hashtree_size; in TEST_F()
1601 SetSize(sys_, partition_size); in TEST_F()
1623 ASSERT_TRUE(WriteSnapshotAndHash("sys_b", partition_size)); in TEST_F()
1673 constexpr uint64_t partition_size = 5_MiB; in TEST_F() local
[all …]
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp130 uint64_t partition_size) { in FillPartitionExtents() argument
133 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in FillPartitionExtents()
183 SplitFiemap* file, uint64_t partition_size, bool readonly) { in UpdateMetadata() argument
200 if (!FillPartitionExtents(builder.get(), partition, file, partition_size)) { in UpdateMetadata()
Dmetadata.h31 SplitFiemap* file, uint64_t partition_size, bool readonly);
Dimage_manager.cpp373 uint64_t partition_size = GetPartitionSize(*metadata.get(), *partition); in MapWithLoopDeviceList() local
374 if (partition_size % LP_SECTOR_SIZE != 0) { in MapWithLoopDeviceList()
375 LOG(ERROR) << "Partition size not sector aligned: " << name << ", " << partition_size in MapWithLoopDeviceList()
383 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList()
/system/update_engine/
Ddynamic_partition_test_utils.h134 uint64_t partition_size) { in AddPartition() argument
138 p->mutable_new_partition_info()->set_size(partition_size); in AddPartition()
228 auto partition_size = it->new_partition_info().size(); in MatchAndExplain() local
229 if (p->size() != partition_size) { in MatchAndExplain()
233 << p->size() << ", expected " << partition_size; in MatchAndExplain()
Ddynamic_partition_control_android.cc849 uint64_t partition_size = partition_sizes_it->second; in UpdatePartitionMetadata() local
859 if (!builder->ResizePartition(p, partition_size)) { in UpdatePartitionMetadata()
861 << " to size " << partition_size << ". Not enough space?"; in UpdatePartitionMetadata()
865 << group_name_suffix << " with size " << partition_size; in UpdatePartitionMetadata()
Ddynamic_partition_control_android_unittest.cc473 uint64_t partition_size) { in AddGroupAndPartition() argument
475 AddPartition(manifest, g, partition, partition_size); in AddGroupAndPartition()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp978 auto partition_size = in CreateDynamicScratch() local
980 if ((partition_size > kMinimumSize) || !partition->size()) { in CreateDynamicScratch()
994 partition_size = std::max(std::min(kMinimumSize, partition_size - margin_size), in CreateDynamicScratch()
995 partition_size / 2); in CreateDynamicScratch()
996 if (partition_size > partition->size()) { in CreateDynamicScratch()
997 if (!builder->ResizePartition(partition, partition_size)) { in CreateDynamicScratch()
1001 partition_size = in CreateDynamicScratch()
1003 partition_size = std::max(std::min(kMinimumSize, partition_size - margin_size), in CreateDynamicScratch()
1004 partition_size / 2); in CreateDynamicScratch()
1005 if (!builder->ResizePartition(partition, partition_size)) { in CreateDynamicScratch()
/system/core/fastboot/device/
Dcommands.cpp418 uint64_t partition_size; in CreatePartitionHandler() local
420 if (!android::base::ParseUint(args[2].c_str(), &partition_size)) { in CreatePartitionHandler()
437 if (!builder->ResizePartition(partition, partition_size)) { in CreatePartitionHandler()
478 uint64_t partition_size; in ResizePartitionHandler() local
480 if (!android::base::ParseUint(args[2].c_str(), &partition_size)) { in ResizePartitionHandler()
498 if (!builder->ResizePartition(partition, partition_size)) { in ResizePartitionHandler()
/system/core/fastboot/
Dfastboot.cpp1020 int64_t partition_size; in copy_boot_avb_footer() local
1021 if (!android::base::ParseInt(partition_size_str, &partition_size)) { in copy_boot_avb_footer()
1024 if (partition_size == buf->sz) { in copy_boot_avb_footer()
1027 if (partition_size < buf->sz) { in copy_boot_avb_footer()
1045 lseek(fd, partition_size - AVB_FOOTER_SIZE, SEEK_SET); in copy_boot_avb_footer()
1051 buf->sz = partition_size; in copy_boot_avb_footer()
1582 std::string partition_type, partition_size; in fb_perform_format() local
1610 if (fb->GetVar("partition-size:" + partition, &partition_size) != fastboot::SUCCESS) { in fb_perform_format()
1615 if (partition_size != size_override) { in fb_perform_format()
1617 partition.c_str(), partition_size.c_str(), size_override.c_str()); in fb_perform_format()
[all …]
/system/core/fs_mgr/liblp/
Dimages.cpp336 uint64_t partition_size = ComputePartitionSize(partition); in AddPartitionImage() local
337 if (file_length > partition_size) { in AddPartitionImage()
339 << "' is greater than its size (" << file_length << ", expected " << partition_size in AddPartitionImage()
/system/extras/verity/
Dbuild_verity_metadata.py112 print get_verity_metadata_size(args.partition_size)
/system/apex/apexer/
Dapexer.py569 partition_size = RoundUp(vbmeta_offset + vbmeta_size,
577 cmd.extend(['--partition_size', str(partition_size)])