Home
last modified time | relevance | path

Searched refs:boot_control_ (Results 1 – 25 of 27) sorted by relevance

12

/aosp12/system/update_engine/aosp/
H A Dcleanup_previous_update_action_unittest.cc59 ON_CALL(boot_control_, GetDynamicPartitionControl()) in SetUp()
61 ON_CALL(boot_control_, GetCurrentSlot()).WillByDefault(Return(0)); in SetUp()
72 MockBootControl boot_control_; member in chromeos_update_engine::CleanupPreviousUpdateActionTest
79 &mock_prefs_, &boot_control_, &mock_snapshot_, &mock_delegate_};
106 EXPECT_CALL(boot_control_, GetCurrentSlot()) in TEST_F()
109 EXPECT_CALL(boot_control_, IsSlotMarkedSuccessful(1)) in TEST_F()
143 EXPECT_CALL(boot_control_, IsSlotMarkedSuccessful(_)) in TEST_F()
H A Ddaemon_state_android.cc31 boot_control_ = boot_control::CreateBootControl(); in Initialize()
32 if (!boot_control_) { in Initialize()
35 boot_control_.reset(new BootControlStub()); in Initialize()
70 boot_control_.get(), in Initialize()
H A Dupdate_attempter_android.cc139 boot_control_(boot_control), in UpdateAttempterAndroid()
512 if (!boot_control_->GetPartitionDevice( in VerifyPayloadApplicable()
701 boot_control_->GetDynamicPartitionControl()->Cleanup(); in TerminateUpdateAndNotify()
753 boot_control_->GetDynamicPartitionControl() in BuildUpdateActions()
758 boot_control_, in BuildUpdateActions()
765 boot_control_->GetDynamicPartitionControl()); in BuildUpdateActions()
893 const auto current_slot = boot_control_->GetCurrentSlot(); in UpdatePrefsAndReportUpdateMetricsOnReboot()
901 boot_control_->GetCurrentSlot()); in UpdatePrefsAndReportUpdateMetricsOnReboot()
932 boot_control_->GetCurrentSlot()); in UpdatePrefsAndReportUpdateMetricsOnReboot()
975 return boot_control_->GetCurrentSlot(); in GetCurrentSlot()
[all …]
H A Dcleanup_previous_update_action.cc63 boot_control_(boot_control), in CleanupPreviousUpdateAction()
147 CHECK(boot_control_); in StartActionInternal()
152 if (!boot_control_->GetDynamicPartitionControl() in StartActionInternal()
208 !boot_control_->IsSlotMarkedSuccessful(boot_control_->GetCurrentSlot())) { in CheckSlotMarkedSuccessfulOrSchedule()
477 bool vab_retrofit = boot_control_->GetDynamicPartitionControl() in ReportMergeStats()
480 bool vab_compression_enabled = boot_control_->GetDynamicPartitionControl() in ReportMergeStats()
H A Dupdate_attempter_android_unittest.cc69 FakeBootControl boot_control_; member in chromeos_update_engine::UpdateAttempterAndroidTest
73 &daemon_state_, &prefs_, &boot_control_, &hardware_, nullptr};
86 boot_control_.SetCurrentSlot(1); in TEST_F()
H A Dupdate_attempter_android.h60 BootControlInterface* boot_control_,
207 BootControlInterface* boot_control_; variable
H A Ddaemon_state_android.h57 std::unique_ptr<BootControlInterface> boot_control_; variable
H A Dcleanup_previous_update_action.h71 BootControlInterface* boot_control_; variable
/aosp12/system/update_engine/payload_consumer/
H A Dpartition_update_generator_android_unittest.cc50 boot_control_ = std::make_unique<FakeBootControl>(); in SetUp()
51 ASSERT_TRUE(boot_control_); in SetUp()
52 boot_control_->SetNumSlots(2); in SetUp()
54 boot_control_.get(), 4096); in SetUp()
59 std::unique_ptr<FakeBootControl> boot_control_; member in chromeos_update_engine::PartitionUpdateGeneratorAndroidTest
73 boot_control_->SetPartitionDevice(prefix, 0, path); in SetUpBlockDevice()
77 boot_control_->SetPartitionDevice(prefix, 1, path); in SetUpBlockDevice()
H A Dpostinstall_runner_action.cc58 : boot_control_(boot_control), hardware_(hardware) { in PostinstallRunnerAction()
72 CHECK(boot_control_); in PerformAction()
75 auto dynamic_control = boot_control_->GetDynamicPartitionControl(); in PerformAction()
371 if (!boot_control_->GetDynamicPartitionControl()->FinishUpdate( in Cleanup()
373 !boot_control_->SetActiveBootSlot(install_plan_.target_slot)) { in Cleanup()
386 auto dynamic_control = boot_control_->GetDynamicPartitionControl(); in Cleanup()
H A Dpartition_update_generator_android.cc36 : boot_control_(boot_control), block_size_(block_size) {} in PartitionUpdateGeneratorAndroid()
66 boot_control_->GetPartitionDevice(partition_name, in GenerateOperationsForPartitionsNotInPayload()
73 TEST_AND_RETURN_FALSE(boot_control_->GetPartitionDevice( in GenerateOperationsForPartitionsNotInPayload()
H A Ddelta_performer.h76 boot_control_(boot_control), in DeltaPerformer()
334 BootControlInterface* boot_control_; variable
H A Ddelta_performer.cc242 auto dynamic_control = boot_control_->GetDynamicPartitionControl(); in OpenCurrentPartition()
659 auto generator = partition_update_generator::Create(boot_control_, in ParseManifestPartitions()
674 if (!boot_control_->GetDynamicPartitionControl() in ParseManifestPartitions()
676 boot_control_->GetCurrentSlot(), in ParseManifestPartitions()
766 if (!install_plan_->LoadPartitionsFromSlots(boot_control_)) { in ParseManifestPartitions()
783 boot_control_, in PreparePartitionsForUpdate()
1530 return boot_control_->GetDynamicPartitionControl()->IsDynamicPartition( in IsDynamicPartition()
H A Dpartition_update_generator_android.h62 BootControlInterface* boot_control_; variable
H A Dpostinstall_runner_action.h127 BootControlInterface* boot_control_; variable
/aosp12/system/core/fs_mgr/libsnapshot/
H A Ddevice_info.cpp65 if (!boot_control_) { in EnsureBootHal()
71 boot_control_ = android::hardware::boot::V1_1::IBootControl::castFrom(hal); in EnsureBootHal()
72 if (!boot_control_) { in EnsureBootHal()
86 if (!boot_control_->setSnapshotMergeStatus(status)) {
113 boot_control_->setSlotAsUnbootable(slot, cb);
H A Ddevice_info.h52 android::sp<android::hardware::boot::V1_1::IBootControl> boot_control_; variable
/aosp12/system/update_engine/
H A Dupdate_boot_flags_action_unittest.cc31 FakeBootControl boot_control_; member in chromeos_update_engine::UpdateBootFlagsActionTest
35 auto action = std::make_unique<UpdateBootFlagsAction>(&boot_control_); in TEST_F()
51 auto action1 = std::make_unique<UpdateBootFlagsAction>(&boot_control_); in TEST_F()
52 auto action2 = std::make_unique<UpdateBootFlagsAction>(&boot_control_); in TEST_F()
H A Dupdate_boot_flags_action.h29 : boot_control_(boot_control) {} in UpdateBootFlagsAction()
56 BootControlInterface* boot_control_; variable
H A Ddownload_action.cc46 boot_control_(boot_control), in DownloadAction()
85 if (!boot_control_->MarkSlotUnbootable(install_plan_.target_slot)) { in PerformAction()
130 boot_control_, in StartDownloading()
151 boot_control_, in StartDownloading()
H A Dupdate_boot_flags_action.cc46 if (!boot_control_->MarkBootSuccessfulAsync( in PerformAction()
/aosp12/system/update_engine/cros/
H A Dreal_system_state.cc45 boot_control_ = boot_control::CreateBootControl(); in Initialize()
46 if (!boot_control_) { in Initialize()
49 boot_control_ = std::make_unique<BootControlStub>(); in Initialize()
H A Dfake_system_state.h62 BootControlInterface* boot_control() override { return boot_control_; } in boot_control()
123 boot_control_ = boot_control ? boot_control : &fake_boot_control_; in set_boot_control()
191 CHECK(boot_control_ == &fake_boot_control_); in fake_boot_control()
284 BootControlInterface* boot_control_{&fake_boot_control_};
H A Ddownload_action_chromeos.cc50 boot_control_(boot_control), in DownloadActionChromeos()
197 if (!boot_control_->MarkSlotUnbootable(install_plan_.target_slot)) { in PerformAction()
242 boot_control_, in StartDownloading()
264 boot_control_, in StartDownloading()
H A Dreal_system_state.h71 BootControlInterface* boot_control() override { return boot_control_.get(); } in boot_control()
129 std::unique_ptr<BootControlInterface> boot_control_; variable

12