/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 | 75 const PartitionConfig& new_part, in PartitionProcessor() argument 83 new_part_(new_part), in PartitionProcessor() 201 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile() local 202 LOG(INFO) << "Partition name: " << new_part.name; in GenerateUpdatePayloadFile() 203 LOG(INFO) << "Partition size: " << new_part.size; in GenerateUpdatePayloadFile() 204 LOG(INFO) << "Block count: " << new_part.size / config.block_size; in GenerateUpdatePayloadFile() 211 << new_part.name; in GenerateUpdatePayloadFile() 215 << new_part.name; in GenerateUpdatePayloadFile() 222 new_part, in GenerateUpdatePayloadFile() 238 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, {}, 0); in SetUp()
|
D | delta_diff_utils.h | 48 const PartitionConfig& new_part, 66 const std::string& new_part, 86 const std::string& new_part, 106 const std::string& new_part,
|
D | delta_diff_utils.cc | 144 const string& new_part, in FileDeltaProcessor() argument 154 new_part_(new_part), in FileDeltaProcessor() 273 const PartitionConfig& new_part, in DeltaReadPartition() argument 284 !new_part.verity.IsEmpty()) { in DeltaReadPartition() 286 << ExtentsToString({new_part.verity.hash_tree_extent}); in DeltaReadPartition() 287 new_visited_blocks.AddExtent(new_part.verity.hash_tree_extent); in DeltaReadPartition() 289 << ExtentsToString({new_part.verity.fec_extent}); in DeltaReadPartition() 290 new_visited_blocks.AddExtent(new_part.verity.fec_extent); in DeltaReadPartition() 296 new_part.path, in DeltaReadPartition() 298 new_part.size / kBlockSize, in DeltaReadPartition() [all …]
|
D | full_update_generator.h | 42 const PartitionConfig& new_part,
|
D | operations_generator.h | 45 const PartitionConfig& new_part,
|
D | ab_generator.cc | 40 const PartitionConfig& new_part, in GenerateOperations() argument 43 TEST_AND_RETURN_FALSE(old_part.name == new_part.name); in GenerateOperations() 54 new_part, in GenerateOperations() 59 LOG(INFO) << "done reading " << new_part.name; in GenerateOperations() 73 aops, config.version, merge_chunk_blocks, new_part.path, blob_file)); in GenerateOperations()
|
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 | 233 PartitionConfig new_part(kPartitionNameRoot); in GeneratePayload() local 234 new_part.path = "/dev/zero"; in GeneratePayload() 235 new_part.size = 1234; in GeneratePayload() 237 payload.AddPartition(*old_part, new_part, aops, {}, 0); in GeneratePayload() 241 new_part.name = kPartitionNameKernel; in GeneratePayload() 242 new_part.size = 0; in GeneratePayload() 243 payload.AddPartition(*old_part, new_part, {}, {}, 0); in GeneratePayload() 304 ScopedTempFile new_part("Partition-XXXXXX"); in ApplyPayloadToData() local 305 EXPECT_TRUE(test_utils::WriteFileVector(new_part.path(), target_data)); in ApplyPayloadToData() 311 kPartitionNameRoot, install_plan_.target_slot, new_part.path()); in ApplyPayloadToData() [all …]
|