/system/update_engine/payload_generator/ |
D | full_update_generator_unittest.cc | 66 brillo::Blob new_part(9 * 1024 * 1024); in TEST_F() local 67 FillWithData(&new_part); in TEST_F() 68 new_part_conf.size = new_part.size(); in TEST_F() 70 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F() 98 brillo::Blob new_part(1536 * 1024); // 1.5 MiB in TEST_F() local 99 new_part_conf.size = new_part.size(); in TEST_F() 101 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F() 112 EXPECT_EQ((new_part.size() - config_.hard_chunk_size) / config_.block_size, in TEST_F() 119 brillo::Blob new_part(16 * 1024); in TEST_F() local 120 new_part_conf.size = new_part.size(); in TEST_F() [all …]
|
D | delta_diff_generator.cc | 74 const PartitionConfig& new_part, in PartitionProcessor() argument 82 new_part_(new_part), in PartitionProcessor() 210 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile() local 211 LOG(INFO) << "Partition name: " << new_part.name; in GenerateUpdatePayloadFile() 212 LOG(INFO) << "Partition size: " << new_part.size; in GenerateUpdatePayloadFile() 213 LOG(INFO) << "Block count: " << new_part.size / config.block_size; in GenerateUpdatePayloadFile() 220 << new_part.name; in GenerateUpdatePayloadFile() 224 << new_part.name; in GenerateUpdatePayloadFile() 231 new_part, in GenerateUpdatePayloadFile() 247 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile() local [all …]
|
D | full_update_generator.cc | 116 const PartitionConfig& new_part, in GenerateOperations() argument 119 TEST_AND_RETURN_FALSE(new_part.ValidateExists()); in GenerateOperations() 140 LOG(INFO) << "Compressing partition " << new_part.name << " from " in GenerateOperations() 141 << new_part.path << " splitting in chunks of " << chunk_blocks in GenerateOperations() 145 int in_fd = open(new_part.path.c_str(), O_RDONLY, 0); in GenerateOperations() 151 size_t partition_blocks = new_part.size / config.block_size; in GenerateOperations() 168 "<%s-operation-%" PRIuS ">", new_part.name.c_str(), i); in GenerateOperations()
|
D | payload_properties_unittest.cc | 74 PartitionConfig new_part(kPartitionNameRoot); in SetUp() local 76 SetupPartitionConfig(&new_part, new_part_file.path(), 10000); in SetUp() 78 WriteZerosToFile(new_part_file.path().c_str(), new_part.size); in SetUp() 89 config, old_part, new_part, &blob_file_writer, &aops)); in SetUp() 91 payload.AddPartition(old_part, new_part, aops, {}, {}); in SetUp()
|
D | delta_diff_utils.cc | 399 const string& new_part, in FileDeltaProcessor() argument 407 new_part_(new_part), in FileDeltaProcessor() 531 const PartitionConfig& new_part, in DeltaReadPartition() argument 543 !new_part.verity.IsEmpty()) { in DeltaReadPartition() 545 << ExtentsToString({new_part.verity.hash_tree_extent}); in DeltaReadPartition() 546 new_visited_blocks.AddExtent(new_part.verity.hash_tree_extent); in DeltaReadPartition() 548 << ExtentsToString({new_part.verity.fec_extent}); in DeltaReadPartition() 549 new_visited_blocks.AddExtent(new_part.verity.fec_extent); in DeltaReadPartition() 555 TEST_AND_RETURN_FALSE(new_part.fs_interface); in DeltaReadPartition() 558 new_part, &new_files, puffdiff_allowed)); in DeltaReadPartition() [all …]
|
D | delta_diff_utils.h | 52 const PartitionConfig& new_part, 70 const std::string& new_part, 90 const std::string& new_part, 108 const std::string& new_part,
|
D | ab_generator.cc | 39 const PartitionConfig& new_part, in GenerateOperations() argument 42 TEST_AND_RETURN_FALSE(old_part.name == new_part.name); in GenerateOperations() 53 new_part, in GenerateOperations() 58 LOG(INFO) << "done reading " << new_part.name; in GenerateOperations() 72 aops, config.version, merge_chunk_blocks, new_part.path, blob_file)); in GenerateOperations()
|
D | full_update_generator.h | 42 const PartitionConfig& new_part,
|
D | operations_generator.h | 45 const PartitionConfig& new_part,
|
D | block_mapping.cc | 141 const string& new_part, in MapPartitionBlocks() argument 151 int new_fd = HANDLE_EINTR(open(new_part.c_str(), O_RDONLY)); in MapPartitionBlocks()
|
D | ab_generator.h | 53 const PartitionConfig& new_part,
|
D | block_mapping.h | 105 const std::string& new_part,
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 227 PartitionConfig new_part(kPartitionNameRoot); in GeneratePayload() local 228 new_part.path = "/dev/zero"; in GeneratePayload() 229 new_part.size = 1234; in GeneratePayload() 231 payload.AddPartition(*old_part, new_part, aops, {}, {}); in GeneratePayload() 235 new_part.name = kPartitionNameKernel; in GeneratePayload() 236 new_part.size = 0; in GeneratePayload() 238 payload.AddPartition(*old_part, new_part, {}, {}, {}); in GeneratePayload() 299 ScopedTempFile new_part("Partition-XXXXXX"); in ApplyPayloadToData() local 300 EXPECT_TRUE(test_utils::WriteFileVector(new_part.path(), target_data)); in ApplyPayloadToData() 306 kPartitionNameRoot, install_plan_.target_slot, new_part.path()); in ApplyPayloadToData() [all …]
|