Home
last modified time | relevance | path

Searched refs:BootControlInterface (Results 1 – 25 of 29) sorted by relevance

12

/system/update_engine/
Dboot_control_chromeos.h31 class BootControlChromeOS : public BootControlInterface {
45 BootControlInterface::Slot GetCurrentSlot() const override;
47 BootControlInterface::Slot slot,
49 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
50 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
51 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
71 BootControlInterface::Slot slot) const;
74 BootControlInterface::Slot num_slots_{1};
75 BootControlInterface::Slot current_slot_{BootControlInterface::kInvalidSlot};
Dboot_control_android.h31 class BootControlAndroid : public BootControlInterface {
42 BootControlInterface::Slot GetCurrentSlot() const override;
44 BootControlInterface::Slot slot,
46 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
47 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
48 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
Dsystem_state.h45 class BootControlInterface; variable
73 virtual BootControlInterface* boot_control() = 0;
Dboot_control_chromeos.cc78 std::unique_ptr<BootControlInterface> CreateBootControl() { in CreateBootControl()
124 current_slot_ = BootControlInterface::kInvalidSlot; in Init()
138 BootControlInterface::Slot BootControlChromeOS::GetCurrentSlot() const { in GetCurrentSlot()
280 BootControlInterface::Slot slot) const { in GetPartitionNumber()
Dupdate_attempter_android.h53 BootControlInterface* boot_control_,
129 BootControlInterface* boot_control_;
Dfake_system_state.h51 BootControlInterface* boot_control() override { return boot_control_; } in boot_control()
111 void set_boot_control(BootControlInterface* boot_control) { in set_boot_control()
252 BootControlInterface* boot_control_{&fake_boot_control_};
Dreal_system_state.h77 inline BootControlInterface* boot_control() override { in boot_control()
137 std::unique_ptr<BootControlInterface> boot_control_;
Dboot_control_android.cc58 std::unique_ptr<BootControlInterface> CreateBootControl() { in CreateBootControl()
93 BootControlInterface::Slot BootControlAndroid::GetCurrentSlot() const { in GetCurrentSlot()
Dupdate_attempter.cc757 GetRollbackSlot() != BootControlInterface::kInvalidSlot); in CanRollback()
760 BootControlInterface::Slot UpdateAttempter::GetRollbackSlot() const { in GetRollbackSlot()
763 const BootControlInterface::Slot current_slot = in GetRollbackSlot()
768 << BootControlInterface::SlotName(current_slot); in GetRollbackSlot()
770 if (current_slot == BootControlInterface::kInvalidSlot || num_slots < 2) { in GetRollbackSlot()
772 return BootControlInterface::kInvalidSlot; in GetRollbackSlot()
775 vector<BootControlInterface::Slot> bootable_slots; in GetRollbackSlot()
776 for (BootControlInterface::Slot slot = 0; slot < num_slots; slot++) { in GetRollbackSlot()
780 << BootControlInterface::SlotName(slot); in GetRollbackSlot()
785 return BootControlInterface::kInvalidSlot; in GetRollbackSlot()
[all …]
Ddaemon_state_android.h57 std::unique_ptr<BootControlInterface> boot_control_;
Dcommon_service.cc302 BootControlInterface::Slot rollback_slot = in GetRollbackPartition()
305 if (rollback_slot == BootControlInterface::kInvalidSlot) { in GetRollbackPartition()
/system/update_engine/common/
Dfake_boot_control.h31 class FakeBootControl : public BootControlInterface {
41 BootControlInterface::Slot GetCurrentSlot() const override { in GetCurrentSlot()
46 BootControlInterface::Slot slot, in GetPartitionDevice()
57 bool IsSlotBootable(BootControlInterface::Slot slot) const override { in IsSlotBootable()
61 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override { in MarkSlotUnbootable()
84 void SetCurrentSlot(BootControlInterface::Slot slot) { in SetCurrentSlot()
89 BootControlInterface::Slot slot, in SetPartitionDevice()
95 void SetSlotBootable(BootControlInterface::Slot slot, bool bootable) { in SetSlotBootable()
101 BootControlInterface::Slot num_slots_{2};
102 BootControlInterface::Slot current_slot_{0};
Dboot_control_stub.h33 class BootControlStub : public BootControlInterface {
40 BootControlInterface::Slot GetCurrentSlot() const override;
42 BootControlInterface::Slot slot,
44 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
45 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
46 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
Dboot_control_interface.h32 class BootControlInterface {
38 virtual ~BootControlInterface() = default;
90 BootControlInterface() = default;
93 DISALLOW_COPY_AND_ASSIGN(BootControlInterface);
Dboot_control.h30 std::unique_ptr<BootControlInterface> CreateBootControl();
Dboot_control_stub.cc29 BootControlInterface::Slot BootControlStub::GetCurrentSlot() const { in GetCurrentSlot()
/system/update_engine/payload_consumer/
Dinstall_plan.h52 bool LoadPartitionsFromSlots(BootControlInterface* boot_control);
65 BootControlInterface::Slot source_slot{BootControlInterface::kInvalidSlot};
66 BootControlInterface::Slot target_slot{BootControlInterface::kInvalidSlot};
Dinstall_plan.cc74 << ", source_slot: " << BootControlInterface::SlotName(source_slot) in Dump()
75 << ", target_slot: " << BootControlInterface::SlotName(target_slot) in Dump()
87 bool InstallPlan::LoadPartitionsFromSlots(BootControlInterface* boot_control) { in LoadPartitionsFromSlots()
90 if (source_slot != BootControlInterface::kInvalidSlot) { in LoadPartitionsFromSlots()
97 if (target_slot != BootControlInterface::kInvalidSlot) { in LoadPartitionsFromSlots()
Dpostinstall_runner_action.h34 class BootControlInterface; variable
38 explicit PostinstallRunnerAction(BootControlInterface* boot_control) in PostinstallRunnerAction()
67 PostinstallRunnerAction(BootControlInterface* boot_control, in PostinstallRunnerAction()
128 BootControlInterface* boot_control_;
Dfilesystem_verifier_action.h53 FilesystemVerifierAction(const BootControlInterface* boot_control,
99 const BootControlInterface* const boot_control_;
Ddownload_action.h79 BootControlInterface* boot_control,
141 BootControlInterface* boot_control_;
Ddelta_performer.h40 class BootControlInterface; variable
78 BootControlInterface* boot_control, in DeltaPerformer()
298 BootControlInterface* boot_control_;
Ddownload_action.cc42 BootControlInterface* boot_control, in DownloadAction()
181 << BootControlInterface::SlotName(install_plan_.target_slot) in PerformAction()
Dfilesystem_verifier_action.cc45 const BootControlInterface* boot_control, in FilesystemVerifierAction()
/system/update_engine/update_manager/
Dreal_system_provider.h34 chromeos_update_engine::BootControlInterface* boot_control) in RealSystemProvider()
63 chromeos_update_engine::BootControlInterface* boot_control_;

12