Searched refs:partitions (Results 1 - 19 of 19) sorted by relevance

/system/update_engine/payload_generator/
H A Dpayload_generation_config_unittest.cc27 image_config.partitions.emplace_back("root");
35 EXPECT_FALSE(image_config.partitions[0].postinstall.IsEmpty());
36 EXPECT_EQ(true, image_config.partitions[0].postinstall.run);
37 EXPECT_EQ("postinstall", image_config.partitions[0].postinstall.path);
38 EXPECT_EQ("ext4", image_config.partitions[0].postinstall.filesystem_type);
39 EXPECT_TRUE(image_config.partitions[0].postinstall.optional);
44 image_config.partitions.emplace_back("system");
51 EXPECT_TRUE(image_config.partitions[0].postinstall.IsEmpty());
H A Ddelta_diff_generator.cc81 TEST_AND_RETURN_FALSE(config.source.partitions.size() ==
82 config.target.partitions.size());
85 for (size_t i = 0; i < config.target.partitions.size(); i++) {
87 config.is_delta ? config.source.partitions[i] : empty_part;
88 const PartitionConfig& new_part = config.target.partitions[i];
H A Dpayload_generation_config.cc76 return partitions.empty();
80 for (PartitionConfig& part : partitions) {
90 for (PartitionConfig& part : partitions) {
186 for (const PartitionConfig& part : source.partitions) {
204 for (const PartitionConfig& part : target.partitions) {
H A Dgenerate_delta_main.cc197 old_image.partitions.emplace_back(kLegacyPartitionNameRoot);
198 old_image.partitions.back().path = old_rootfs;
199 old_image.partitions.emplace_back(kLegacyPartitionNameKernel);
200 old_image.partitions.back().path = old_kernel;
202 for (const auto& old_part : old_image.partitions) {
212 install_plan.partitions.push_back(part);
256 "Path to the old partitions. To pass multiple partitions, use "
261 "Path to the new partitions. To pass multiple partitions, us
[all...]
H A Dpayload_generation_config.h114 // The updated partitions.
115 std::vector<PartitionConfig> partitions; member in struct:chromeos_update_engine::ImageConfig
/system/update_engine/payload_consumer/
H A Dinstall_plan.cc47 (target_slot == that.target_slot) && (partitions == that.partitions));
56 for (const auto& partition : partitions) {
88 for (Partition& partition : partitions) {
H A Dpostinstall_runner_action.cc69 partition_weight_.resize(install_plan_.partitions.size());
71 for (size_t i = 0; i < install_plan_.partitions.size(); ++i) {
75 partition_weight_[i] = install_plan_.partitions[i].run_postinstall;
90 // Skip all the partitions that don't have a post-install step.
91 while (current_partition_ < install_plan_.partitions.size() &&
92 !install_plan_.partitions[current_partition_].run_postinstall) {
94 << install_plan_.partitions[current_partition_].name;
97 if (current_partition_ == install_plan_.partitions.size())
101 install_plan_.partitions[current_partition_];
318 if (install_plan_.partitions[current_partition
[all...]
H A Dfilesystem_verifier_action.cc56 if (install_plan_.partitions.empty()) {
57 LOG(INFO) << "No partitions to verify.";
90 if (partition_index_ == install_plan_.partitions.size()) {
95 install_plan_.partitions[partition_index_];
177 << install_plan_.partitions[partition_index_].name;
198 install_plan_.partitions[partition_index_];
243 LOG(INFO) << "To get the checksum of partitions in a bin file, "
252 // not match, the rest of the partitions don't matter.
H A Ddelta_performer_integration_test.cc513 payload_config.source.partitions.emplace_back(kLegacyPartitionNameRoot);
514 payload_config.source.partitions.emplace_back(kLegacyPartitionNameKernel);
515 payload_config.source.partitions.front().path = state->a_img;
517 payload_config.source.partitions.back().path = state->old_kernel;
520 for (PartitionConfig& part : payload_config.source.partitions)
527 payload_config.target.partitions.emplace_back(kLegacyPartitionNameRoot);
528 payload_config.target.partitions.back().path = state->b_img;
529 payload_config.target.partitions.emplace_back(kLegacyPartitionNameKernel);
530 payload_config.target.partitions.back().path = state->new_kernel;
533 for (PartitionConfig& part : payload_config.target.partitions)
889 const auto& partitions = state->install_plan.partitions; local
[all...]
H A Dinstall_plan.h49 // Load the |source_path| and |target_path| of all |partitions| based on the
51 // to load all the partitions for the valid slots.
64 // Only download manifest and fill in partitions in install plan without
110 std::vector<Partition> partitions; member in struct:chromeos_update_engine::InstallPlan
H A Dfilesystem_verifier_action_unittest.cc166 install_plan.partitions = {part};
268 install_plan.partitions = {part};
H A Ddelta_performer.cc339 install_plan_->partitions.size() - partitions_.size();
341 install_plan_->partitions[num_previous_partitions + current_partition_];
386 void LogPartitionInfo(const vector<PartitionUpdate>& partitions) { argument
387 for (const PartitionUpdate& partition : partitions) {
624 // This populates |partitions_| and the |install_plan.partitions| with the
625 // list of partitions from the manifest.
629 // |install_plan.partitions| was filled in, nothing need to be done here if
797 for (const PartitionUpdate& partition : manifest_.partitions()) {
841 // Fill in the InstallPlan::partitions based on the partitions fro
[all...]
H A Dpostinstall_runner_action_unittest.cc181 install_plan.partitions = {part};
/system/core/libcutils/
H A Dfs_config.cpp261 static const char* partitions[] = {"vendor/", "oem/", "odm/"}; local
262 for (size_t i = 0; i < (sizeof(partitions) / sizeof(partitions[0])); ++i) {
263 size_t plen = strlen(partitions[i]);
265 if (!strncmp(path, partitions[i], plen)) return true;
/system/core/init/
H A Dinit_first_stage.cpp155 // required_devices_partition_names_. Found partitions will then be removed from it
189 // UeventCallback() will remove found partitions from required_devices_partition_names_.
190 // So if it isn't empty here, it means some partitions are not found.
197 LOG(INFO) << "Wait for partitions returned after " << t;
290 // Checks for verified partitions.
342 // Gets the vbmeta partitions from device tree.
371 // libavb verifies AVB metadata on all verified partitions at once.
380 std::vector<std::string> partitions = android::base::Split(device_tree_vbmeta_parts_, ","); local
382 for (const auto& partition : partitions) {
394 // Check if this uevent corresponds to one of the required partitions an
[all...]
/system/update_engine/scripts/
H A Dbrillo_update_payload288 # Detect the format of the |image| file and extract its updatable partitions
305 # bundled here and we will use it to extract the partitions, so the GPT
364 # Extract the A/B updated partitions from a Brillo target_files zip file into
371 local partitions=( "boot" "system" )
379 partitions=($(cat "${ab_partitions_list}"))
380 if [[ ${#partitions[@]} -eq 0 ]]; then
381 die "The list of partitions is empty. Can't generate a payload."
386 echo "List of A/B partitions: ${partitions[@]}"
389 eval "${partitions_order}=(${partitions[
[all...]
/system/update_engine/scripts/update_payload/
H A Dpayload.py256 for partition in self.manifest.partitions))
274 rootfs_part_size: the size of (physical) rootfs partitions in bytes
275 kernel_part_size: the size of (physical) kernel partitions in bytes
306 truncate_to_expected_size: whether to truncate the resulting partitions
/system/update_engine/
H A Domaha_response_handler_action_unittest.cc226 EXPECT_TRUE(install_plan.partitions.empty());
H A Dupdate_attempter_unittest.cc498 EXPECT_EQ(0U, install_plan->partitions.size());

Completed in 369 milliseconds