Home
last modified time | relevance | path

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

12

/system/update_engine/payload_consumer/
Dpartition_update_generator_android.cc125 int64_t partition_size) { in CreatePartitionUpdate() argument
129 old_partition_info->set_size(partition_size); in CreatePartitionUpdate()
131 auto raw_hash = CalculateHashForPartition(source_device, partition_size); in CreatePartitionUpdate()
134 << " size: " << partition_size; in CreatePartitionUpdate()
139 new_partition_info->set_size(partition_size); in CreatePartitionUpdate()
146 copy_extent.set_num_blocks(partition_size / block_size_); in CreatePartitionUpdate()
156 const std::string& block_device, int64_t partition_size) { in CalculateHashForPartition() argument
164 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition()
165 partition_size) { in CalculateHashForPartition()
Dxor_extent_writer.h39 size_t partition_size) in XORExtentWriter() argument
44 partition_size_(partition_size) { in XORExtentWriter()
Dpartition_update_generator_android.h57 int64_t partition_size);
60 const std::string& block_device, int64_t partition_size);
/system/update_engine/payload_generator/
Dcow_size_estimator.h39 const size_t partition_size,
51 size_t partition_size,
Dcow_size_estimator.cc46 const size_t partition_size, in CowDryRun() argument
117 const size_t last_block = partition_size / block_size; in CowDryRun()
146 const size_t partition_size, in EstimateCowSize() argument
160 partition_size, in EstimateCowSize()
/system/core/fs_mgr/libfs_avb/tests/
Dbasic_test.cpp76 const size_t partition_size = 10 * 1024 * 1024; in TEST_F() local
84 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F()
115 const size_t partition_size = 60 * 1024 * 1024; in TEST_F() local
123 AddAvbFooter(system_path, "hashtree", "system", partition_size, "SHA512_RSA8192", 20, in TEST_F()
Dfs_avb_util_test.cpp108 const size_t partition_size = 10 * 1024 * 1024; in TEST_F() local
111 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F()
Davb_util_test.cpp190 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
200 AddAvbFooter(system_path, "hashtree", "system", partition_size, "SHA512_RSA8192", 20, in TEST_F()
206 EXPECT_EQ(partition_size, file_size); in TEST_F()
339 const size_t partition_size = 10 * 1024 * 1024; in TEST_F() local
342 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F()
485 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
487 auto vbmeta = GenerateImageAndExtractVBMetaData("system", image_size, partition_size, in TEST_F()
505 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
507 auto vbmeta = GenerateImageAndExtractVBMetaData("system", image_size, partition_size, in TEST_F()
546 const size_t partition_size = 15 * 1024 * 1024; in TEST_F() local
[all …]
Dfs_avb_test_util.cpp161 const std::string& partition_name, const uint64_t partition_size, in AddAvbFooter() argument
184 partition_size, rollback_index, salt.c_str(), signing_options.c_str(), in AddAvbFooter()
189 const std::string& partition_name, const size_t image_size, const size_t partition_size, in GenerateImageAndExtractVBMetaData() argument
196 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/libfiemap/
Dmetadata.h32 SplitFiemap* file, uint64_t partition_size, bool readonly);
40 uint64_t partition_size);
Dmetadata.cpp139 uint64_t partition_size) { in FillPartitionExtents() argument
142 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in FillPartitionExtents()
192 SplitFiemap* file, uint64_t partition_size, bool readonly) { in UpdateMetadata() argument
209 if (!FillPartitionExtents(builder.get(), partition, file, partition_size)) { in UpdateMetadata()
Dimage_manager.cpp387 uint64_t partition_size = GetPartitionSize(*metadata.get(), *partition); in MapWithLoopDeviceList() local
388 if (partition_size % LP_SECTOR_SIZE != 0) { in MapWithLoopDeviceList()
389 LOG(ERROR) << "Partition size not sector aligned: " << name << ", " << partition_size in MapWithLoopDeviceList()
397 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList()
836 auto partition_size = android::fs_mgr::GetPartitionSize(*metadata.get(), partition); in ValidateImageMaps() local
837 if (!FillPartitionExtents(builder.get(), new_p, fiemap.get(), partition_size)) { in ValidateImageMaps()
/system/core/fastboot/
Dtask.cpp135 uint64_t partition_size; in Initialize() local
142 if (!android::base::ParseUint(partition_size_str, &partition_size)) { in Initialize()
171 partition_size); in Initialize()
198 uint64_t partition_size; in InitializeFromTasks() local
205 if (!android::base::ParseUint(partition_size_str, &partition_size)) { in InitializeFromTasks()
242 partition_size); in InitializeFromTasks()
Dfastboot.cpp1176 uint64_t partition_size; in get_partition_size() local
1177 if (!android::base::ParseUint(partition_size_str, &partition_size)) { in get_partition_size()
1183 return partition_size; in get_partition_size()
1192 int64_t partition_size = static_cast<int64_t>(get_partition_size(partition)); in copy_avb_footer() local
1194 if (partition_size == buf->sz) { in copy_avb_footer()
1199 if (partition_size < buf->sz) { in copy_avb_footer()
1203 partition.c_str(), partition.c_str(), partition_size, partition.c_str(), buf->sz); in copy_avb_footer()
1225 lseek(fd.get(), partition_size - AVB_FOOTER_SIZE, SEEK_SET); in copy_avb_footer()
1230 buf->sz = partition_size; in copy_avb_footer()
1429 uint64_t partition_size = get_partition_size(partition); in fetch_partition() local
[all …]
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator_test.cpp56 constexpr uint64_t partition_size = 40_KiB; in TEST_F() local
62 ASSERT_TRUE(builder_a->ResizePartition(system_a, partition_size)); in TEST_F()
68 ASSERT_TRUE(builder_b->ResizePartition(system_b, partition_size)); in TEST_F()
77 ASSERT_EQ(partition_size, ret->snapshot_status.device_size()); in TEST_F()
78 ASSERT_EQ(partition_size, ret->snapshot_status.snapshot_size()); in TEST_F()
128 constexpr uint64_t partition_size = 40_MiB; in TEST_F() local
134 ASSERT_TRUE(builder_a->ResizePartition(system_a, partition_size)); in TEST_F()
140 ASSERT_TRUE(builder_b->ResizePartition(system_b, partition_size)); in TEST_F()
Dsnapshot_test.cpp1296 constexpr uint64_t partition_size = 3788_KiB; in TEST_F() local
1297 SetSize(sys_, partition_size); in TEST_F()
1298 SetSize(vnd_, partition_size); in TEST_F()
2238 constexpr auto partition_size = 4_MiB; in TEST_F() local
2241 constexpr auto fec_size = partition_size - data_size - hashtree_size; in TEST_F()
2244 SetSize(sys_, partition_size); in TEST_F()
2247 sys_->set_estimate_cow_size(partition_size + data_size); in TEST_F()
2325 constexpr uint64_t partition_size = 3788_KiB; in TEST_F() local
2326 SetSize(sys_, partition_size); in TEST_F()
2327 SetSize(vnd_, partition_size); in TEST_F()
[all …]
/system/update_engine/aosp/
Ddynamic_partition_test_utils.h134 uint64_t partition_size) { in AddPartition() argument
138 p->mutable_new_partition_info()->set_size(partition_size); in AddPartition()
230 auto partition_size = it->new_partition_info().size(); in MatchAndExplain() local
231 if (p->size() != partition_size) { in MatchAndExplain()
235 << p->size() << ", expected " << partition_size; in MatchAndExplain()
Ddynamic_partition_control_android.cc1044 uint64_t partition_size = partition_sizes_it->second; in UpdatePartitionMetadata() local
1054 if (!builder->ResizePartition(p, partition_size)) { in UpdatePartitionMetadata()
1056 << " to size " << partition_size << ". Not enough space?"; in UpdatePartitionMetadata()
1059 if (p->size() < partition_size) { in UpdatePartitionMetadata()
1061 << " was expected to have size " << partition_size in UpdatePartitionMetadata()
1066 << group_name_suffix << " with size " << partition_size; in UpdatePartitionMetadata()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp1008 auto partition_size = in CreateDynamicScratch() local
1010 if ((partition_size > kMinimumSize) || !partition->size()) { in CreateDynamicScratch()
1024 partition_size = std::max(std::min(kMinimumSize, partition_size - margin_size), in CreateDynamicScratch()
1025 partition_size / 2); in CreateDynamicScratch()
1026 if (partition_size > partition->size()) { in CreateDynamicScratch()
1027 if (!builder->ResizePartition(partition, partition_size)) { in CreateDynamicScratch()
1031 partition_size = in CreateDynamicScratch()
1033 partition_size = std::max(std::min(kMinimumSize, partition_size - margin_size), in CreateDynamicScratch()
1034 partition_size / 2); in CreateDynamicScratch()
1035 if (!builder->ResizePartition(partition, partition_size)) { in CreateDynamicScratch()
/system/tools/mkbootimg/gki/
Dcertify_bootimg.py135 def add_avb_footer(image, partition_size, extra_footer_args): argument
141 if partition_size:
142 avbtool_cmd.extend(['--partition_size', str(partition_size)])
/system/core/fs_mgr/liblp/
Dsuper_layout_builder.cpp72 const std::string& image_name, uint64_t partition_size) { in AddPartition() argument
77 if (!builder_->ResizePartition(p, partition_size)) { in AddPartition()
Dimages.cpp341 uint64_t partition_size = ComputePartitionSize(partition); in AddPartitionImage() local
342 if (file_length > partition_size) { in AddPartitionImage()
344 << "' is greater than its size (" << file_length << ", expected " << partition_size in AddPartitionImage()
/system/core/fastboot/device/
Dcommands.cpp495 uint64_t partition_size; in CreatePartitionHandler() local
497 if (!android::base::ParseUint(args[2].c_str(), &partition_size)) { in CreatePartitionHandler()
514 if (!builder->ResizePartition(partition, partition_size)) { in CreatePartitionHandler()
555 uint64_t partition_size; in ResizePartitionHandler() local
557 if (!android::base::ParseUint(args[2].c_str(), &partition_size)) { in ResizePartitionHandler()
575 if (!builder->ResizePartition(partition, partition_size)) { in ResizePartitionHandler()
/system/core/fs_mgr/liblp/include/liblp/
Dsuper_layout_builder.h87 uint64_t partition_size);

12