Home
last modified time | relevance | path

Searched refs:Slot (Results 1 – 25 of 32) sorted by relevance

12

/system/update_engine/common/
Dboot_control_interface.h39 using Slot = unsigned int;
41 static const Slot kInvalidSlot = UINT_MAX;
54 virtual Slot GetCurrentSlot() const = 0;
67 Slot slot,
75 Slot slot,
85 virtual bool IsSlotBootable(Slot slot) const = 0;
89 virtual bool MarkSlotUnbootable(Slot slot) = 0;
95 virtual bool SetActiveBootSlot(Slot slot) = 0;
104 virtual bool IsSlotMarkedSuccessful(Slot slot) const = 0;
110 static std::string SlotName(Slot slot) { in SlotName()
Dmock_boot_control.h33 (BootControlInterface::Slot),
36 MOCK_METHOD(BootControlInterface::Slot, GetCurrentSlot, (), (const override));
39 (const std::string&, Slot, bool, std::string*, bool*),
43 (const std::string&, BootControlInterface::Slot, std::string*),
52 (BootControlInterface::Slot),
56 (BootControlInterface::Slot),
60 (BootControlInterface::Slot),
Dfake_boot_control.h45 BootControlInterface::Slot GetCurrentSlot() const override { in GetCurrentSlot()
50 BootControlInterface::Slot slot, in GetPartitionDevice()
69 BootControlInterface::Slot slot, in GetPartitionDevice()
74 bool IsSlotBootable(BootControlInterface::Slot slot) const override { in IsSlotBootable()
78 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override { in MarkSlotUnbootable()
85 bool SetActiveBootSlot(Slot slot) override { return true; } in SetActiveBootSlot()
95 bool IsSlotMarkedSuccessful(Slot slot) const override { in IsSlotMarkedSuccessful()
107 void SetCurrentSlot(BootControlInterface::Slot slot) { current_slot_ = slot; } in SetCurrentSlot()
110 BootControlInterface::Slot slot, in SetPartitionDevice()
116 void SetSlotBootable(BootControlInterface::Slot slot, bool bootable) { in SetSlotBootable()
[all …]
Dboot_control_stub.h42 BootControlInterface::Slot GetCurrentSlot() const override;
44 Slot slot,
49 BootControlInterface::Slot slot,
56 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
57 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
58 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
60 bool IsSlotMarkedSuccessful(BootControlInterface::Slot slot) const override;
Dboot_control_stub.cc33 BootControlInterface::Slot BootControlStub::GetCurrentSlot() const { in GetCurrentSlot()
39 BootControlInterface::Slot slot, in GetPartitionDevice()
57 Slot slot, in GetPartitionDevice()
63 bool BootControlStub::IsSlotBootable(Slot slot) const { in IsSlotBootable()
68 bool BootControlStub::MarkSlotUnbootable(Slot slot) { in MarkSlotUnbootable()
73 bool BootControlStub::SetActiveBootSlot(Slot slot) { in SetActiveBootSlot()
84 bool BootControlStub::IsSlotMarkedSuccessful(Slot slot) const { in IsSlotMarkedSuccessful()
/system/update_engine/cros/
Dboot_control_chromeos.h47 BootControlInterface::Slot GetCurrentSlot() const override;
49 BootControlInterface::Slot slot,
54 BootControlInterface::Slot slot,
56 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
57 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
58 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
60 bool IsSlotMarkedSuccessful(BootControlInterface::Slot slot) const override;
81 BootControlInterface::Slot slot) const;
91 BootControlInterface::Slot num_slots_{1};
92 BootControlInterface::Slot current_slot_{BootControlInterface::kInvalidSlot};
Dboot_control_chromeos.cc151 BootControlInterface::Slot BootControlChromeOS::GetCurrentSlot() const { in GetCurrentSlot()
181 BootControlInterface::Slot slot, in GetPartitionDevice()
217 BootControlInterface::Slot slot, in GetPartitionDevice()
222 bool BootControlChromeOS::IsSlotBootable(Slot slot) const { in IsSlotBootable()
239 bool BootControlChromeOS::MarkSlotUnbootable(Slot slot) { in MarkSlotUnbootable()
272 bool BootControlChromeOS::SetActiveBootSlot(Slot slot) { in SetActiveBootSlot()
344 const string partition_name, BootControlInterface::Slot slot) const { in GetPartitionNumber()
368 bool BootControlChromeOS::IsSlotMarkedSuccessful(Slot slot) const { in IsSlotMarkedSuccessful()
/system/update_engine/aosp/
Dboot_control_android.h46 BootControlInterface::Slot GetCurrentSlot() const override;
53 BootControlInterface::Slot slot,
58 BootControlInterface::Slot slot,
60 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
61 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
62 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
64 bool IsSlotMarkedSuccessful(BootControlInterface::Slot slot) const override;
Dboot_control_android.cc37 using Slot = chromeos_update_engine::BootControlInterface::Slot; typedef
80 BootControlInterface::Slot BootControlAndroid::GetCurrentSlot() const { in GetCurrentSlot()
85 BootControlInterface::Slot slot, in GetPartitionDevice()
98 BootControlInterface::Slot slot, in GetPartitionDevice()
104 bool BootControlAndroid::IsSlotBootable(Slot slot) const { in IsSlotBootable()
118 bool BootControlAndroid::MarkSlotUnbootable(Slot slot) { in MarkSlotUnbootable()
133 bool BootControlAndroid::SetActiveBootSlot(Slot slot) { in SetActiveBootSlot()
165 BootControlInterface::Slot slot) const { in IsSlotMarkedSuccessful()
Dupdate_attempter_android.h184 BootControlInterface::Slot GetCurrentSlot() const;
185 BootControlInterface::Slot GetTargetSlot() const;
Dupdate_attempter_android.cc507 BootControlInterface::Slot current_slot = GetCurrentSlot(); in VerifyPayloadApplicable()
974 BootControlInterface::Slot UpdateAttempterAndroid::GetCurrentSlot() const { in GetCurrentSlot()
978 BootControlInterface::Slot UpdateAttempterAndroid::GetTargetSlot() const { in GetTargetSlot()
/system/update_engine/payload_consumer/
Dpartition_update_generator_stub.h32 BootControlInterface::Slot source_slot,
33 BootControlInterface::Slot target_slot,
Dpartition_update_generator_stub.cc24 chromeos_update_engine::BootControlInterface::Slot source_slot, in GenerateOperationsForPartitionsNotInPayload()
25 chromeos_update_engine::BootControlInterface::Slot target_slot, in GenerateOperationsForPartitionsNotInPayload()
Dpartition_update_generator_interface.h42 BootControlInterface::Slot source_slot,
43 BootControlInterface::Slot target_slot,
Dpartition_update_generator_android.h40 BootControlInterface::Slot source_slot,
41 BootControlInterface::Slot target_slot,
Dinstall_plan.h85 BootControlInterface::Slot source_slot{BootControlInterface::kInvalidSlot};
86 BootControlInterface::Slot target_slot{BootControlInterface::kInvalidSlot};
Dpartition_update_generator_android.cc40 BootControlInterface::Slot source_slot, in GenerateOperationsForPartitionsNotInPayload()
41 BootControlInterface::Slot target_slot, in GenerateOperationsForPartitionsNotInPayload()
Ddelta_performer.h200 BootControlInterface::Slot target_slot,
/system/extras/bootctl/
Dbootctl.cpp30 using android::hardware::boot::V1_0::Slot;
86 Slot curSlot = module->getCurrentSlot(); in do_get_current_slot()
118 static int do_set_active_boot_slot(sp<V1_0::IBootControl> module, Slot slot_number) { in do_set_active_boot_slot()
124 static int do_set_slot_as_unbootable(sp<V1_0::IBootControl> module, Slot slot_number) { in do_set_slot_as_unbootable()
143 static int do_is_slot_bootable(sp<V1_0::IBootControl> module, Slot slot_number) { in do_is_slot_bootable()
148 static int do_is_slot_marked_successful(sp<V1_0::IBootControl> module, Slot slot_number) { in do_is_slot_marked_successful()
208 static int do_get_suffix(sp<V1_0::IBootControl> module, Slot slot_number) { in do_get_suffix()
/system/core/fastboot/device/
Dutility.h83 bool GetSlotNumber(const std::string& slot, android::hardware::boot::V1_0::Slot* number);
Dutility.cpp39 using android::hardware::boot::V1_0::Slot;
148 bool GetSlotNumber(const std::string& slot, Slot* number) { in GetSlotNumber()
Dvariables.cpp43 using ::android::hardware::boot::V1_0::Slot;
229 Slot slot; in GetSlotSuccessful()
253 Slot slot; in GetSlotUnbootable()
Dfastboot_device.cpp39 using ::android::hardware::boot::V1_0::Slot;
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp201 if (slot != Slot::Target) { in TryCancelUpdate()
220 SnapshotManager::Slot SnapshotManager::GetCurrentSlot() { in GetCurrentSlot()
223 return Slot::Unknown; in GetCurrentSlot()
226 return Slot::Source; in GetCurrentSlot()
228 return Slot::Target; in GetCurrentSlot()
233 case Slot::Target: in GetSnapshotSlotSuffix()
642 if (slot != Slot::Target) { in InitiateMerge()
1423 if (slot == Slot::Unknown) { in HandleCancelledUpdate()
1437 if (current_slot != Slot::Source) { in HandleCancelledUpdate()
1693 bool should_unmap = current_slot != Slot::Target; in RemoveAllSnapshots()
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h715 enum class Slot { Unknown, Source, Target }; enum
716 friend std::ostream& operator<<(std::ostream& os, SnapshotManager::Slot slot);
717 Slot GetCurrentSlot();
726 bool ShouldDeleteSnapshot(const std::map<std::string, bool>& flashing_status, Slot current_slot,

12