Lines Matching refs:part
96 Partition part; in AddPartition() local
97 part.name = new_conf.name; in AddPartition()
98 part.aops = aops; in AddPartition()
99 part.postinstall = new_conf.postinstall; in AddPartition()
100 part.verity = new_conf.verity; in AddPartition()
104 diff_utils::InitializePartitionInfo(old_conf, &part.old_info)); in AddPartition()
106 diff_utils::InitializePartitionInfo(new_conf, &part.new_info)); in AddPartition()
107 part_vec_.push_back(std::move(part)); in AddPartition()
124 for (const auto& part : part_vec_) { in WritePayload() local
125 for (const auto& aop : part.aops) { in WritePayload()
140 for (const auto& part : part_vec_) { in WritePayload() local
143 partition->set_partition_name(part.name); in WritePayload()
144 if (part.postinstall.run) { in WritePayload()
146 if (!part.postinstall.path.empty()) in WritePayload()
147 partition->set_postinstall_path(part.postinstall.path); in WritePayload()
148 if (!part.postinstall.filesystem_type.empty()) in WritePayload()
149 partition->set_filesystem_type(part.postinstall.filesystem_type); in WritePayload()
150 partition->set_postinstall_optional(part.postinstall.optional); in WritePayload()
152 if (!part.verity.IsEmpty()) { in WritePayload()
153 if (part.verity.hash_tree_extent.num_blocks() != 0) { in WritePayload()
155 part.verity.hash_tree_data_extent; in WritePayload()
156 *partition->mutable_hash_tree_extent() = part.verity.hash_tree_extent; in WritePayload()
157 partition->set_hash_tree_algorithm(part.verity.hash_tree_algorithm); in WritePayload()
158 if (!part.verity.hash_tree_salt.empty()) in WritePayload()
159 partition->set_hash_tree_salt(part.verity.hash_tree_salt.data(), in WritePayload()
160 part.verity.hash_tree_salt.size()); in WritePayload()
162 if (part.verity.fec_extent.num_blocks() != 0) { in WritePayload()
163 *partition->mutable_fec_data_extent() = part.verity.fec_data_extent; in WritePayload()
164 *partition->mutable_fec_extent() = part.verity.fec_extent; in WritePayload()
165 partition->set_fec_roots(part.verity.fec_roots); in WritePayload()
168 for (const AnnotatedOperation& aop : part.aops) { in WritePayload()
171 if (part.old_info.has_size() || part.old_info.has_hash()) in WritePayload()
172 *(partition->mutable_old_partition_info()) = part.old_info; in WritePayload()
173 if (part.new_info.has_size() || part.new_info.has_hash()) in WritePayload()
174 *(partition->mutable_new_partition_info()) = part.new_info; in WritePayload()
177 if (part.name == kPartitionNameKernel) { in WritePayload()
178 for (const AnnotatedOperation& aop : part.aops) in WritePayload()
180 if (part.old_info.has_size() || part.old_info.has_hash()) in WritePayload()
181 *manifest_.mutable_old_kernel_info() = part.old_info; in WritePayload()
182 if (part.new_info.has_size() || part.new_info.has_hash()) in WritePayload()
183 *manifest_.mutable_new_kernel_info() = part.new_info; in WritePayload()
185 for (const AnnotatedOperation& aop : part.aops) in WritePayload()
187 if (part.old_info.has_size() || part.old_info.has_hash()) in WritePayload()
188 *manifest_.mutable_old_rootfs_info() = part.old_info; in WritePayload()
189 if (part.new_info.has_size() || part.new_info.has_hash()) in WritePayload()
190 *manifest_.mutable_new_rootfs_info() = part.new_info; in WritePayload()
316 for (auto& part : part_vec_) { in ReorderDataBlobs() local
317 for (AnnotatedOperation& aop : part.aops) { in ReorderDataBlobs()
349 for (const auto& part : part_vec_) { in ReportPayloadUsage() local
350 string part_prefix = "<" + part.name + ">:"; in ReportPayloadUsage()
351 for (const AnnotatedOperation& aop : part.aops) { in ReportPayloadUsage()
357 total_op += part.aops.size(); in ReportPayloadUsage()