Home
last modified time | relevance | path

Searched refs:install_plan_ (Results 1 – 21 of 21) sorted by relevance

/system/update_engine/cros/
Domaha_response_handler_action.cc75 install_plan_.download_url = current_url; in PerformAction()
76 install_plan_.version = response.version; in PerformAction()
85 LOG(INFO) << "Replacing URL " << install_plan_.download_url in PerformAction()
88 install_plan_.download_url = payload_state->GetP2PUrl(); in PerformAction()
102 install_plan_.payloads.push_back( in PerformAction()
114 install_plan_.public_key_rsa = response.public_key_rsa; in PerformAction()
115 install_plan_.hash_checks_mandatory = AreHashChecksMandatory(response); in PerformAction()
116 install_plan_.is_resume = DeltaPerformer::CanResumeUpdate( in PerformAction()
118 if (install_plan_.is_resume) { in PerformAction()
133 install_plan_.target_slot = in PerformAction()
[all …]
Ddownload_action_chromeos.cc172 install_plan_ = GetInputObject(); in PerformAction()
173 install_plan_.Dump(); in PerformAction()
178 for (const auto& payload : install_plan_.payloads) in PerformAction()
181 if (install_plan_.is_resume) { in PerformAction()
184 static_cast<size_t>(payload_index) < install_plan_.payloads.size()) { in PerformAction()
189 install_plan_.payloads[i].already_applied = true; in PerformAction()
194 payload_ = &install_plan_.payloads[0]; in PerformAction()
197 if (!boot_control_->MarkSlotUnbootable(install_plan_.target_slot)) { in PerformAction()
199 << BootControlInterface::SlotName(install_plan_.target_slot) in PerformAction()
245 &install_plan_, in StartDownloading()
[all …]
Domaha_response_handler_action.h56 const InstallPlan& install_plan() const { return install_plan_; } in install_plan()
68 InstallPlan install_plan_; variable
Dupdate_attempter.cc845 install_plan_.reset(new InstallPlan()); in Rollback()
846 install_plan_->target_slot = GetRollbackSlot(); in Rollback()
847 install_plan_->source_slot = in Rollback()
850 TEST_AND_RETURN_FALSE(install_plan_->LoadPartitionsFromSlots( in Rollback()
852 install_plan_->powerwash_required = powerwash; in Rollback()
854 install_plan_->Dump(); in Rollback()
857 std::make_unique<InstallPlanAction>(*install_plan_); in Rollback()
1187 if (install_plan_) { in ProcessingDoneUpdate()
1190 for (const auto& payload : install_plan_->payloads) { in ProcessingDoneUpdate()
1200 if (install_plan_->is_rollback) { in ProcessingDoneUpdate()
[all …]
Dupdate_attempter_unittest.cc834 EXPECT_EQ(0U, attempter_.install_plan_->partitions.size()); in RollbackTestVerify()
835 EXPECT_EQ(attempter_.install_plan_->powerwash_required, true); in RollbackTestVerify()
908 attempter_.install_plan_.reset(new InstallPlan); in TEST_F()
909 attempter_.install_plan_->is_resume = true; in TEST_F()
1687 response_action.install_plan_.version = "a.b.c.d"; in TEST_F()
1688 response_action.install_plan_.payloads.push_back( in TEST_F()
1698 EXPECT_TRUE(attempter_.install_plan_); in TEST_F()
1699 EXPECT_EQ(attempter_.install_plan_->version, status.new_version); in TEST_F()
1700 EXPECT_EQ(attempter_.install_plan_->payloads[0].size, in TEST_F()
1719 EXPECT_EQ(response_action.install_plan_.version, status.new_version); in TEST_F()
[all …]
Dupdate_attempter.h478 std::unique_ptr<InstallPlan> install_plan_; variable
Domaha_response_handler_action_unittest.cc65 new InstallPlan(response_handler_action->install_plan_)); in ActionCompleted()
/system/update_engine/
Ddownload_action.cc60 install_plan_ = GetInputObject(); in PerformAction()
61 install_plan_.Dump(); in PerformAction()
66 for (const auto& payload : install_plan_.payloads) in PerformAction()
69 if (install_plan_.is_resume) { in PerformAction()
72 static_cast<size_t>(payload_index) < install_plan_.payloads.size()) { in PerformAction()
77 install_plan_.payloads[i].already_applied = true; in PerformAction()
80 CHECK_GE(install_plan_.payloads.size(), 1UL); in PerformAction()
82 payload_ = &install_plan_.payloads[0]; in PerformAction()
85 if (!boot_control_->MarkSlotUnbootable(install_plan_.target_slot)) { in PerformAction()
87 << BootControlInterface::SlotName(install_plan_.target_slot) in PerformAction()
[all …]
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc73 install_plan_ = GetInputObject(); in PerformAction()
92 if (install_plan_.powerwash_required || install_plan_.is_rollback) { in PerformAction()
94 install_plan_.rollback_data_save_requested)) { in PerformAction()
102 partition_weight_.resize(install_plan_.partitions.size()); in PerformAction()
104 for (size_t i = 0; i < install_plan_.partitions.size(); ++i) { in PerformAction()
105 auto& partition = install_plan_.partitions[i]; in PerformAction()
106 if (!install_plan_.run_post_install && partition.postinstall_optional) { in PerformAction()
125 if (install_plan_.download_url.empty()) { in PerformPartitionPostinstall()
131 while (current_partition_ < install_plan_.partitions.size() && in PerformPartitionPostinstall()
132 !install_plan_.partitions[current_partition_].run_postinstall) { in PerformPartitionPostinstall()
[all …]
Dfilesystem_verifier_action.cc92 install_plan_ = GetInputObject(); in PerformAction()
94 if (install_plan_.partitions.empty()) { in PerformAction()
97 SetOutputObject(install_plan_); in PerformAction()
101 install_plan_.Dump(); in PerformAction()
117 if (!install_plan_.write_verity && in Cleanup()
127 SetOutputObject(install_plan_); in Cleanup()
143 install_plan_.partitions.size()); in UpdatePartitionProgress()
148 install_plan_.partitions[partition_index_]; in InitializeFdVABC()
307 if (partition_index_ == install_plan_.partitions.size()) { in StartPartitionHashing()
308 if (!install_plan_.untouched_dynamic_partitions.empty()) { in StartPartitionHashing()
[all …]
Dfilesystem_verifier_action_unittest.cc200 InstallPlan install_plan_; member in chromeos_update_engine::FilesystemVerifierActionTest
241 install_plan_.reset(new InstallPlan(collector_action->object())); in ActionCompleted()
247 std::unique_ptr<InstallPlan> install_plan_; member in chromeos_update_engine::FilesystemVerifierActionTestDelegate
283 install_plan_.source_slot = 0; in DoTest()
284 install_plan_.target_slot = 1; in DoTest()
299 install_plan_.partitions = {part}; in DoTest()
301 BuildActions(install_plan_); in DoTest()
340 bool is_install_plan_eq = (*delegate.install_plan_ == install_plan_); in DoTest()
409 install_plan_.partitions = {part}; in TEST_F()
411 BuildActions(install_plan_); in TEST_F()
[all …]
Dinstall_plan.h195 : install_plan_(install_plan) {} in InstallPlanAction()
199 SetOutputObject(install_plan_); in PerformAction()
204 InstallPlan* install_plan() { return &install_plan_; } in install_plan()
213 InstallPlan install_plan_;
Ddelta_performer.cc239 install_plan_->partitions.size() - partitions_.size(); in OpenCurrentPartition()
241 install_plan_->partitions[num_previous_partitions + current_partition_]; in OpenCurrentPartition()
249 IsDynamicPartition(install_part.name, install_plan_->target_slot)); in OpenCurrentPartition()
257 install_plan_, source_may_exist, partition_operation_num)); in OpenCurrentPartition()
310 if (install_plan_->hash_checks_mandatory) { in ParsePayloadMetadata()
371 if (install_plan_->hash_checks_mandatory) { in ParsePayloadMetadata()
438 if (!install_plan_->is_resume) { in Write()
534 if (install_plan_->hash_checks_mandatory) { in Write()
637 if (install_plan_->target_slot != BootControlInterface::kInvalidSlot) { in ParseManifestPartitions()
664 install_plan_->source_slot, in ParseManifestPartitions()
[all …]
Ddelta_performer_unittest.cc168 install_plan_.source_slot = 0; in SetUp()
169 install_plan_.target_slot = 1; in SetUp()
311 kPartitionNameRoot, install_plan_.target_slot, new_part.path()); in ApplyPayloadToData()
313 kPartitionNameRoot, install_plan_.source_slot, source_path); in ApplyPayloadToData()
315 kPartitionNameKernel, install_plan_.target_slot, "/dev/null"); in ApplyPayloadToData()
317 kPartitionNameKernel, install_plan_.source_slot, "/dev/null"); in ApplyPayloadToData()
336 install_plan_.hash_checks_mandatory = hash_checks_mandatory; in DoMetadataSizeTest()
378 install_plan_.hash_checks_mandatory = hash_checks_mandatory; in DoMetadataSignatureTest()
436 InstallPlan install_plan_; member in chromeos_update_engine::DeltaPerformerTest
446 &install_plan_,
[all …]
Ddelta_performer.h79 install_plan_(install_plan), in DeltaPerformer()
82 CHECK(install_plan_); in DeltaPerformer()
342 InstallPlan* install_plan_; variable
Dpartition_writer_unittest.cc99 EXPECT_TRUE(writer_.Init(&install_plan_, true, 0)); in PerformSourceCopyOp()
109 InstallPlan install_plan_{}; member in chromeos_update_engine::PartitionWriterTest
/system/update_engine/aosp/
Dupdate_attempter_android.cc145 boot_control_->GetDynamicPartitionControl(), &install_plan_); in UpdateAttempterAndroid()
196 install_plan_ = InstallPlan(); in ApplyPayload()
198 install_plan_.download_url = payload_url; in ApplyPayload()
199 install_plan_.version = ""; in ApplyPayload()
220 install_plan_.payloads.push_back(payload); in ApplyPayload()
223 install_plan_.public_key_rsa = ""; in ApplyPayload()
225 install_plan_.hash_checks_mandatory = hardware_->IsOfficialBuild(); in ApplyPayload()
226 install_plan_.is_resume = !payload_id.empty() && in ApplyPayload()
228 if (!install_plan_.is_resume) { in ApplyPayload()
243 install_plan_.source_slot = GetCurrentSlot(); in ApplyPayload()
[all …]
Dmetrics_reporter_android.h35 install_plan_(install_plan) {} in MetricsReporterAndroid()
100 const InstallPlan* install_plan_{};
Dmetrics_reporter_android.cc189 IsHashTreeEnabled(install_plan_), in ReportSuccessfulUpdateMetrics()
190 IsFECEnabled(install_plan_)); in ReportSuccessfulUpdateMetrics()
Dupdate_attempter_android.h224 InstallPlan install_plan_; variable
Dupdate_attempter_android_unittest.cc63 update_attempter_android_.install_plan_.payloads.push_back( in AddPayload()