Home
last modified time | relevance | path

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

/system/update_engine/
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()
Dupdate_boot_flags_action.h29 : boot_control_(boot_control) {} in UpdateBootFlagsAction()
56 BootControlInterface* boot_control_; variable
Ddownload_action.cc47 boot_control_(boot_control), in DownloadAction()
87 if (!boot_control_->MarkSlotUnbootable(install_plan_.target_slot)) { in PerformAction()
132 boot_control_, in StartDownloading()
155 boot_control_, in StartDownloading()
Dupdate_boot_flags_action.cc46 if (!boot_control_->MarkBootSuccessfulAsync( in PerformAction()
/system/update_engine/aosp/
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()
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()
Dupdate_attempter_android_integration_test.cc61 dynamic_control_ = boot_control_.dynamic_control_.get(); in AddFakePartitionGroup()
66 super_device->value(), boot_control_.GetCurrentSlot()); in AddFakePartitionGroup()
100 ASSERT_TRUE(boot_control_.Init()); in SetUp()
131 auto dynamic_control = boot_control_.GetDynamicPartitionControl(); in TearDown()
143 boot_control_.GetCurrentSlot() == 0 ? "fake_a" : "fake_b", in CreateFakePartition()
152 boot_control_.GetCurrentSlot(), in CreateFakePartition()
153 boot_control_.GetCurrentSlot(), in CreateFakePartition()
176 super_device_, *metadata, boot_control_.GetCurrentSlot()); in ExportPartitionTable()
181 auto dynamic_control = boot_control_.GetDynamicPartitionControl(); in DynamicPartitionEnabled()
326 1 - boot_control_.GetCurrentSlot(), in DumpTargetPartitionDiff()
[all …]
Dupdate_attempter_android.cc140 boot_control_(boot_control), in UpdateAttempterAndroid()
146 boot_control_->GetDynamicPartitionControl(), &install_plan_); in UpdateAttempterAndroid()
266 boot_control_->GetDynamicPartitionControl()->Cleanup(); in ApplyPayload()
424 if (!boot_control_->GetDynamicPartitionControl()->ResetUpdate(prefs_)) { in ResetStatus()
531 if (!boot_control_->GetPartitionDevice( in VerifyPayloadApplicable()
724 boot_control_->GetDynamicPartitionControl()->Cleanup(); in TerminateUpdateAndNotify()
773 std::make_unique<UpdateBootFlagsAction>(boot_control_); in BuildUpdateActions()
775 boot_control_->GetDynamicPartitionControl() in BuildUpdateActions()
776 ->GetCleanupPreviousUpdateAction(boot_control_, prefs_, this); in BuildUpdateActions()
780 boot_control_, in BuildUpdateActions()
[all …]
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()
487 bool vab_retrofit = boot_control_->GetDynamicPartitionControl() in ReportMergeStats()
490 bool vab_compression_enabled = boot_control_->GetDynamicPartitionControl() in ReportMergeStats()
Dupdate_attempter_android_unittest.cc95 FakeBootControl boot_control_; member in chromeos_update_engine::UpdateAttempterAndroidTest
99 &daemon_state_, &prefs_, &boot_control_, &hardware_, nullptr};
114 boot_control_.SetCurrentSlot(1); in TEST_F()
Ddaemon_state_android.h57 std::unique_ptr<BootControlInterface> boot_control_; variable
Dupdate_attempter_android.h67 BootControlInterface* boot_control_,
241 BootControlInterface* boot_control_; variable
Dcleanup_previous_update_action.h71 BootControlInterface* boot_control_; variable
/system/update_engine/payload_consumer/
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()
Dpostinstall_runner_action.cc85 : boot_control_(boot_control), hardware_(hardware) { in PostinstallRunnerAction()
107 CHECK(boot_control_); in PerformAction()
110 auto dynamic_control = boot_control_->GetDynamicPartitionControl(); in PerformAction()
436 if (!boot_control_->GetDynamicPartitionControl()->FinishUpdate( in Cleanup()
438 !boot_control_->SetActiveBootSlot(install_plan_.target_slot)) { in Cleanup()
451 auto dynamic_control = boot_control_->GetDynamicPartitionControl(); in Cleanup()
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()
Dpartition_update_generator_android.h62 BootControlInterface* boot_control_; variable
Ddelta_performer.h78 boot_control_(boot_control), in prefs_()
322 BootControlInterface* boot_control_; variable
Dpostinstall_runner_action.h130 BootControlInterface* boot_control_; variable
Ddelta_performer.cc240 auto dynamic_control = boot_control_->GetDynamicPartitionControl(); in OpenCurrentPartition()
660 auto generator = partition_update_generator::Create(boot_control_, in ParseManifestPartitions()
675 if (!boot_control_->GetDynamicPartitionControl() in ParseManifestPartitions()
677 boot_control_->GetCurrentSlot(), in ParseManifestPartitions()
692 partitions_, boot_control_, block_size_, error)) { in ParseManifestPartitions()
708 boot_control_, in PreparePartitionsForUpdate()
1409 return boot_control_->GetDynamicPartitionControl()->IsDynamicPartition( in IsDynamicPartition()
/system/core/fs_mgr/libsnapshot/
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)) { in SetBootControlMergeStatus()
113 boot_control_->setSlotAsUnbootable(slot, cb); in SetSlotAsUnbootable()
Ddevice_info.h53 android::sp<android::hardware::boot::V1_1::IBootControl> boot_control_; variable
/system/update_engine/common/
Ddownload_action.h127 BootControlInterface* boot_control_; variable