/system/update_engine/common/ |
D | boot_control_interface.h | 39 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()
|
D | mock_boot_control.h | 33 (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),
|
D | fake_boot_control.h | 45 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 …]
|
D | boot_control_stub.h | 42 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;
|
D | boot_control_stub.cc | 33 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/ |
D | boot_control_chromeos.h | 47 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};
|
D | boot_control_chromeos.cc | 151 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/ |
D | boot_control_android.h | 46 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;
|
D | boot_control_android.cc | 37 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()
|
D | update_attempter_android.h | 184 BootControlInterface::Slot GetCurrentSlot() const; 185 BootControlInterface::Slot GetTargetSlot() const;
|
D | update_attempter_android.cc | 507 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/ |
D | partition_update_generator_stub.h | 32 BootControlInterface::Slot source_slot, 33 BootControlInterface::Slot target_slot,
|
D | partition_update_generator_stub.cc | 24 chromeos_update_engine::BootControlInterface::Slot source_slot, in GenerateOperationsForPartitionsNotInPayload() 25 chromeos_update_engine::BootControlInterface::Slot target_slot, in GenerateOperationsForPartitionsNotInPayload()
|
D | partition_update_generator_interface.h | 42 BootControlInterface::Slot source_slot, 43 BootControlInterface::Slot target_slot,
|
D | partition_update_generator_android.h | 40 BootControlInterface::Slot source_slot, 41 BootControlInterface::Slot target_slot,
|
D | install_plan.h | 85 BootControlInterface::Slot source_slot{BootControlInterface::kInvalidSlot}; 86 BootControlInterface::Slot target_slot{BootControlInterface::kInvalidSlot};
|
D | partition_update_generator_android.cc | 40 BootControlInterface::Slot source_slot, in GenerateOperationsForPartitionsNotInPayload() 41 BootControlInterface::Slot target_slot, in GenerateOperationsForPartitionsNotInPayload()
|
D | delta_performer.h | 200 BootControlInterface::Slot target_slot,
|
/system/extras/bootctl/ |
D | bootctl.cpp | 30 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/ |
D | utility.h | 83 bool GetSlotNumber(const std::string& slot, android::hardware::boot::V1_0::Slot* number);
|
D | utility.cpp | 39 using android::hardware::boot::V1_0::Slot; 148 bool GetSlotNumber(const std::string& slot, Slot* number) { in GetSlotNumber()
|
D | variables.cpp | 43 using ::android::hardware::boot::V1_0::Slot; 229 Slot slot; in GetSlotSuccessful() 253 Slot slot; in GetSlotUnbootable()
|
D | fastboot_device.cpp | 39 using ::android::hardware::boot::V1_0::Slot;
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 201 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/ |
D | snapshot.h | 715 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,
|