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.cc66 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 …]
Ddelta_diff_generator.cc75 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 …]
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.cc74 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()
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,
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 …]
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()
Dab_generator.h53 const PartitionConfig& new_part,
Dblock_mapping.h105 const std::string& new_part,
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc233 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 …]