Home
last modified time | relevance | path

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

/system/core/fastboot/
Dfastboot.cpp871 std::string current_slot; in get_current_slot() local
872 if (fb_getvar(transport, "current-slot", &current_slot)) { in get_current_slot()
873 if (current_slot == "_a") return "a"; // Legacy support in get_current_slot()
874 if (current_slot == "_b") return "b"; // Legacy support in get_current_slot()
875 return current_slot; in get_current_slot()
917 static std::string get_other_slot(const std::string& current_slot, int count) { in get_other_slot() argument
920 char next = (current_slot[0] - 'a' + 1)%count + 'a'; in get_other_slot()
924 static std::string get_other_slot(Transport* transport, const std::string& current_slot) { in get_other_slot() argument
925 return get_other_slot(current_slot, get_slot_count(transport)); in get_other_slot()
981 std::string current_slot; in do_for_partition() local
[all …]
/system/update_engine/
Dupdate_attempter.cc754 const BootControlInterface::Slot current_slot = in UpdateAttempter() local
759 << BootControlInterface::SlotName(current_slot); in UpdateAttempter()
761 if (current_slot == BootControlInterface::kInvalidSlot || num_slots < 2) { in UpdateAttempter()
768 if (slot != current_slot && in UpdateAttempter()