Home
last modified time | relevance | path

Searched refs:new_part (Results 1 – 13 of 13) sorted by relevance

/system/update_engine/payload_generator/
Dfull_update_generator_unittest.cc71 brillo::Blob new_part(9 * 1024 * 1024); in TEST_F() local
72 FillWithData(&new_part); in TEST_F()
73 new_part_conf.size = new_part.size(); in TEST_F()
75 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
103 brillo::Blob new_part(1536 * 1024); // 1.5 MiB in TEST_F() local
104 new_part_conf.size = new_part.size(); in TEST_F()
106 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
117 EXPECT_EQ((new_part.size() - config_.hard_chunk_size) / config_.block_size, in TEST_F()
124 brillo::Blob new_part(16 * 1024); in TEST_F() local
125 new_part_conf.size = new_part.size(); in TEST_F()
[all …]
Ddelta_diff_generator.cc59 const PartitionConfig& new_part, in PartitionProcessor() argument
65 new_part_(new_part), in PartitionProcessor()
134 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile() local
135 LOG(INFO) << "Partition name: " << new_part.name; in GenerateUpdatePayloadFile()
136 LOG(INFO) << "Partition size: " << new_part.size; in GenerateUpdatePayloadFile()
137 LOG(INFO) << "Block count: " << new_part.size / config.block_size; in GenerateUpdatePayloadFile()
153 new_part, in GenerateUpdatePayloadFile()
167 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile() local
169 payload.AddPartition(old_part, new_part, std::move(all_aops[i]))); in GenerateUpdatePayloadFile()
Dfull_update_generator.cc116 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()
Dpayload_properties_unittest.cc85 PartitionConfig new_part(kPartitionNameRoot); in SetUp() local
87 SetupPartitionConfig(&new_part, new_part_file.path(), 10000); in SetUp()
89 WriteZerosToFile(new_part_file.path().c_str(), new_part.size); in SetUp()
99 config, old_part, new_part, &blob_file_writer, &aops)); in SetUp()
101 payload.AddPartition(old_part, new_part, aops); in SetUp()
Ddelta_diff_utils.cc144 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 …]
Ddelta_diff_utils.h48 const PartitionConfig& new_part,
66 const std::string& new_part,
86 const std::string& new_part,
106 const std::string& new_part,
Dfull_update_generator.h42 const PartitionConfig& new_part,
Doperations_generator.h45 const PartitionConfig& new_part,
Dab_generator.cc40 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()
Dblock_mapping.cc141 const string& new_part, in MapPartitionBlocks() argument
151 int new_fd = HANDLE_EINTR(open(new_part.c_str(), O_RDONLY)); in MapPartitionBlocks()
Dblock_mapping.h105 const std::string& new_part,
Dab_generator.h53 const PartitionConfig& new_part,
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc225 PartitionConfig new_part(kPartitionNameRoot); in GeneratePayload() local
226 new_part.path = "/dev/zero"; in GeneratePayload()
227 new_part.size = 1234; in GeneratePayload()
229 payload.AddPartition(*old_part, new_part, aops); in GeneratePayload()
233 new_part.name = kPartitionNameKernel; in GeneratePayload()
234 new_part.size = 0; in GeneratePayload()
235 payload.AddPartition(*old_part, new_part, {}); in GeneratePayload()
288 test_utils::ScopedTempFile new_part("Partition-XXXXXX"); in ApplyPayloadToData() local
289 EXPECT_TRUE(test_utils::WriteFileVector(new_part.path(), target_data)); in ApplyPayloadToData()
295 kPartitionNameRoot, install_plan_.target_slot, new_part.path()); in ApplyPayloadToData()
[all …]