Home
last modified time | relevance | path

Searched refs:in_slot (Results 1 – 2 of 2) sorted by relevance

/device/google/gs-common/bootctrl/aidl/
DBootControl.cpp67 static std::string getDevPath(int32_t in_slot) { in getDevPath() argument
70 const char *path = in_slot == 0 ? BOOT_A_PATH : BOOT_B_PATH; in getDevPath()
83 static bool isSlotFlagSet(int32_t in_slot, uint64_t flag) { in isSlotFlagSet() argument
84 std::string dev_path = getDevPath(in_slot); in isSlotFlagSet()
86 ALOGI("Could not get device path for slot %d\n", in_slot); in isSlotFlagSet()
96 gpt_entry *e = gpt.GetPartitionEntry(in_slot ? "boot_b" : "boot_a"); in isSlotFlagSet()
105 static bool setSlotFlag(int32_t in_slot, uint64_t flag) { in setSlotFlag() argument
106 std::string dev_path = getDevPath(in_slot); in setSlotFlag()
108 ALOGI("Could not get device path for slot %d\n", in_slot); in setSlotFlag()
118 gpt_entry *e = gpt.GetPartitionEntry(in_slot ? "boot_b" : "boot_a"); in setSlotFlag()
[all …]
DBootControl.h32 ::ndk::ScopedAStatus getSuffix(int32_t in_slot, std::string* _aidl_return) override;
33 ::ndk::ScopedAStatus isSlotBootable(int32_t in_slot, bool* _aidl_return) override;
34 ::ndk::ScopedAStatus isSlotMarkedSuccessful(int32_t in_slot, bool* _aidl_return) override;
36 ::ndk::ScopedAStatus setActiveBootSlot(int32_t in_slot) override;
37 ::ndk::ScopedAStatus setSlotAsUnbootable(int32_t in_slot) override;