/system/update_engine/payload_consumer/ |
D | partition_update_generator_android.cc | 125 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()
|
D | xor_extent_writer.h | 39 size_t partition_size) in XORExtentWriter() argument 44 partition_size_(partition_size) { in XORExtentWriter()
|
D | partition_update_generator_android.h | 57 int64_t partition_size); 60 const std::string& block_device, int64_t partition_size);
|
/system/update_engine/payload_generator/ |
D | cow_size_estimator.h | 39 const size_t partition_size, 51 size_t partition_size,
|
D | cow_size_estimator.cc | 46 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/ |
D | basic_test.cpp | 76 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()
|
D | fs_avb_util_test.cpp | 108 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()
|
D | avb_util_test.cpp | 190 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 …]
|
D | fs_avb_test_util.cpp | 161 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()
|
D | fs_avb_test_util.h | 101 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/ |
D | metadata.h | 32 SplitFiemap* file, uint64_t partition_size, bool readonly); 40 uint64_t partition_size);
|
D | metadata.cpp | 139 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()
|
D | image_manager.cpp | 387 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/ |
D | task.cpp | 135 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()
|
D | fastboot.cpp | 1176 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/ |
D | partition_cow_creator_test.cpp | 56 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()
|
D | snapshot_test.cpp | 1296 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/ |
D | dynamic_partition_test_utils.h | 134 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()
|
D | dynamic_partition_control_android.cc | 1044 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/ |
D | fs_mgr_overlayfs.cpp | 1008 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/ |
D | certify_bootimg.py | 135 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/ |
D | super_layout_builder.cpp | 72 const std::string& image_name, uint64_t partition_size) { in AddPartition() argument 77 if (!builder_->ResizePartition(p, partition_size)) { in AddPartition()
|
D | images.cpp | 341 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/ |
D | commands.cpp | 495 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/ |
D | super_layout_builder.h | 87 uint64_t partition_size);
|