Lines Matching refs:part
100 Partition part; in AddPartition() local
101 part.cow_size = cow_size; in AddPartition()
102 part.name = new_conf.name; in AddPartition()
103 part.aops = std::move(aops); in AddPartition()
104 part.cow_merge_sequence = std::move(merge_sequence); in AddPartition()
105 part.postinstall = new_conf.postinstall; in AddPartition()
106 part.verity = new_conf.verity; in AddPartition()
107 part.version = new_conf.version; in AddPartition()
111 diff_utils::InitializePartitionInfo(old_conf, &part.old_info)); in AddPartition()
113 diff_utils::InitializePartitionInfo(new_conf, &part.new_info)); in AddPartition()
114 part_vec_.push_back(std::move(part)); in AddPartition()
129 for (const auto& part : part_vec_) { in WritePayload() local
130 for (const auto& aop : part.aops) { in WritePayload()
143 for (const auto& part : part_vec_) { in WritePayload() local
145 partition->set_partition_name(part.name); in WritePayload()
146 if (!part.version.empty()) { in WritePayload()
147 partition->set_version(part.version); in WritePayload()
149 if (part.cow_size > 0) { in WritePayload()
150 partition->set_estimate_cow_size(part.cow_size); in WritePayload()
152 if (part.postinstall.run) { in WritePayload()
154 if (!part.postinstall.path.empty()) in WritePayload()
155 partition->set_postinstall_path(part.postinstall.path); in WritePayload()
156 if (!part.postinstall.filesystem_type.empty()) in WritePayload()
157 partition->set_filesystem_type(part.postinstall.filesystem_type); in WritePayload()
158 partition->set_postinstall_optional(part.postinstall.optional); in WritePayload()
160 if (!part.verity.IsEmpty()) { in WritePayload()
161 if (part.verity.hash_tree_extent.num_blocks() != 0) { in WritePayload()
163 part.verity.hash_tree_data_extent; in WritePayload()
164 *partition->mutable_hash_tree_extent() = part.verity.hash_tree_extent; in WritePayload()
165 partition->set_hash_tree_algorithm(part.verity.hash_tree_algorithm); in WritePayload()
166 if (!part.verity.hash_tree_salt.empty()) in WritePayload()
167 partition->set_hash_tree_salt(part.verity.hash_tree_salt.data(), in WritePayload()
168 part.verity.hash_tree_salt.size()); in WritePayload()
170 if (part.verity.fec_extent.num_blocks() != 0) { in WritePayload()
171 *partition->mutable_fec_data_extent() = part.verity.fec_data_extent; in WritePayload()
172 *partition->mutable_fec_extent() = part.verity.fec_extent; in WritePayload()
173 partition->set_fec_roots(part.verity.fec_roots); in WritePayload()
176 for (const AnnotatedOperation& aop : part.aops) { in WritePayload()
179 for (const auto& merge_op : part.cow_merge_sequence) { in WritePayload()
183 if (part.old_info.has_size() || part.old_info.has_hash()) in WritePayload()
184 *(partition->mutable_old_partition_info()) = part.old_info; in WritePayload()
185 if (part.new_info.has_size() || part.new_info.has_hash()) in WritePayload()
186 *(partition->mutable_new_partition_info()) = part.new_info; in WritePayload()
302 for (auto& part : part_vec_) { in ReorderDataBlobs() local
303 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs()
335 for (const auto& part : part_vec_) { in ReportPayloadUsage() local
336 string part_prefix = "<" + part.name + ">:"; in ReportPayloadUsage()
337 for (const AnnotatedOperation& aop : part.aops) { in ReportPayloadUsage()
343 total_op += part.aops.size(); in ReportPayloadUsage()