Home
last modified time | relevance | path

Searched refs:partitions (Results 1 – 22 of 22) sorted by relevance

/system/update_engine/payload_generator/
Dpayload_generation_config_unittest.cc27 image_config.partitions.emplace_back("root"); in TEST_F()
34 EXPECT_FALSE(image_config.partitions[0].postinstall.IsEmpty()); in TEST_F()
35 EXPECT_EQ(true, image_config.partitions[0].postinstall.run); in TEST_F()
36 EXPECT_EQ("postinstall", image_config.partitions[0].postinstall.path); in TEST_F()
37 EXPECT_EQ("ext4", image_config.partitions[0].postinstall.filesystem_type); in TEST_F()
42 image_config.partitions.emplace_back("system"); in TEST_F()
49 EXPECT_TRUE(image_config.partitions[0].postinstall.IsEmpty()); in TEST_F()
Ddelta_diff_generator.cc81 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile()
82 config.target.partitions.size()); in GenerateUpdatePayloadFile()
85 for (size_t i = 0; i < config.target.partitions.size(); i++) { in GenerateUpdatePayloadFile()
87 config.is_delta ? config.source.partitions[i] : empty_part; in GenerateUpdatePayloadFile()
88 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile()
Dgenerate_delta_main.cc199 old_image.partitions.emplace_back(kLegacyPartitionNameRoot); in ApplyDelta()
200 old_image.partitions.back().path = old_rootfs; in ApplyDelta()
201 old_image.partitions.emplace_back(kLegacyPartitionNameKernel); in ApplyDelta()
202 old_image.partitions.back().path = old_kernel; in ApplyDelta()
204 for (const auto& old_part : old_image.partitions) { in ApplyDelta()
214 install_plan.partitions.push_back(part); in ApplyDelta()
449 payload_config.target.partitions.emplace_back(partition_names[i]); in Main()
450 payload_config.target.partitions.back().path = new_partitions[i]; in Main()
465 payload_config.source.partitions.emplace_back(partition_names[i]); in Main()
466 payload_config.source.partitions.back().path = old_partitions[i]; in Main()
[all …]
Dpayload_generation_config.cc74 return partitions.empty(); in ValidateIsEmpty()
78 for (PartitionConfig& part : partitions) { in LoadImageSize()
88 for (PartitionConfig& part : partitions) { in LoadPostInstallConfig()
182 for (const PartitionConfig& part : source.partitions) { in Validate()
200 for (const PartitionConfig& part : target.partitions) { in Validate()
Dpayload_generation_config.h107 std::vector<PartitionConfig> partitions; member
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.cc63 install_plan_.partitions.empty() && in PerformAction()
81 install_plan_.partitions.push_back(part); in PerformAction()
93 install_plan_.partitions.push_back(part); in PerformAction()
96 if (install_plan_.partitions.empty()) { in PerformAction()
130 if (partition_index_ == install_plan_.partitions.size()) { in StartPartitionHashing()
141 install_plan_.partitions[partition_index_]; in StartPartitionHashing()
226 << install_plan_.partitions[partition_index_].name; in OnReadDoneCallback()
247 install_plan_.partitions[partition_index_]; in FinishPartitionHashing()
Dpostinstall_runner_action.cc67 partition_weight_.resize(install_plan_.partitions.size()); in PerformAction()
69 for (size_t i = 0; i < install_plan_.partitions.size(); ++i) { in PerformAction()
73 partition_weight_[i] = install_plan_.partitions[i].run_postinstall; in PerformAction()
89 while (current_partition_ < install_plan_.partitions.size() && in PerformPartitionPostinstall()
90 !install_plan_.partitions[current_partition_].run_postinstall) { in PerformPartitionPostinstall()
92 << install_plan_.partitions[current_partition_].name; in PerformPartitionPostinstall()
95 if (current_partition_ == install_plan_.partitions.size()) in PerformPartitionPostinstall()
99 install_plan_.partitions[current_partition_]; in PerformPartitionPostinstall()
Dinstall_plan.cc52 (partitions == that.partitions)); in operator ==()
61 for (const auto& partition : partitions) { in Dump()
89 for (Partition& partition : partitions) { in LoadPartitionsFromSlots()
Ddelta_performer_integration_test.cc512 payload_config.source.partitions.emplace_back(kLegacyPartitionNameRoot); in GenerateDeltaFile()
513 payload_config.source.partitions.emplace_back(kLegacyPartitionNameKernel); in GenerateDeltaFile()
514 payload_config.source.partitions.front().path = state->a_img; in GenerateDeltaFile()
516 payload_config.source.partitions.back().path = state->old_kernel; in GenerateDeltaFile()
519 for (PartitionConfig& part : payload_config.source.partitions) in GenerateDeltaFile()
526 payload_config.target.partitions.emplace_back(kLegacyPartitionNameRoot); in GenerateDeltaFile()
527 payload_config.target.partitions.back().path = state->b_img; in GenerateDeltaFile()
528 payload_config.target.partitions.emplace_back(kLegacyPartitionNameKernel); in GenerateDeltaFile()
529 payload_config.target.partitions.back().path = state->new_kernel; in GenerateDeltaFile()
532 for (PartitionConfig& part : payload_config.target.partitions) in GenerateDeltaFile()
[all …]
Dfilesystem_verifier_action_unittest.cc191 install_plan.partitions = {part}; in DoTest()
294 install_plan.partitions = {part}; in TEST_F()
370 ASSERT_EQ(2U, install_plan.partitions.size()); in TEST_F()
374 EXPECT_EQ(10U << 20, install_plan.partitions[0].source_size); in TEST_F()
375 EXPECT_EQ(kLegacyPartitionNameRoot, install_plan.partitions[0].name); in TEST_F()
376 EXPECT_EQ(20U << 20, install_plan.partitions[1].source_size); in TEST_F()
377 EXPECT_EQ(kLegacyPartitionNameKernel, install_plan.partitions[1].name); in TEST_F()
Ddelta_performer.cc300 source_path_ = install_plan_->partitions[current_partition_].source_path; in OpenCurrentPartition()
312 target_path_ = install_plan_->partitions[current_partition_].target_path; in OpenCurrentPartition()
333 void LogPartitionInfo(const vector<PartitionUpdate>& partitions) { in LogPartitionInfo() argument
334 for (const PartitionUpdate& partition : partitions) { in LogPartitionInfo()
734 for (const PartitionUpdate& partition : manifest_.partitions()) { in ParseManifestPartitions()
782 if (!install_plan_->partitions.empty()) { in ParseManifestPartitions()
791 install_plan_->partitions.clear(); in ParseManifestPartitions()
820 install_plan_->partitions.push_back(install_part); in ParseManifestPartitions()
1385 for (const PartitionUpdate& partition : manifest_.partitions()) { in ValidateManifest()
1616 if (install_plan_->partitions.size() != partitions_.size()) { in VerifySourcePartitions()
[all …]
Dinstall_plan.h99 std::vector<Partition> partitions; member
Dpostinstall_runner_action_unittest.cc194 install_plan.partitions = {part}; in RunPosinstallAction()
/system/update_engine/
Dupdate_metadata.proto67 // the extents are in different partitions.
242 // kernel and rootfs partitions. For major version = 2 see the |partitions|
259 // update. For major version = 2 see the |partitions| field.
273 // Only present in major version >= 2. List of partitions that will be
277 // array can have more than two partitions if needed, and they are identified
279 repeated PartitionUpdate partitions = 13; field
Domaha_response_handler_action_unittest.cc217 EXPECT_TRUE(install_plan.partitions.empty()); in TEST_F()
Dupdate_attempter_unittest.cc511 EXPECT_EQ(0U, install_plan->partitions.size()); in RollbackTestVerify()
/system/sepolicy/
Dtoolbox.te17 # Read/write block devices used for swap partitions.
Dupdate_engine.te27 # Allow read/write on system and boot partitions.
Ddomain.te597 # vendor, and boot partitions.
/system/update_engine/scripts/
Dbrillo_update_payload345 die "The list of partitions is empty. Can't generate a payload."
/system/core/init/
Dreadme.txt58 partitions should have their service entries placed into a
296 at the specified paths (e.g., on the partitions just mounted). Refer to the
/system/core/fastboot/
Dfastboot_protocol.txt143 the bootloader and then upgrading other partitions