Lines Matching refs:current_slot

1290     std::string current_slot;  in get_current_slot()  local
1291 if (fb->GetVar("current-slot", &current_slot) != fastboot::SUCCESS) return ""; in get_current_slot()
1292 if (current_slot[0] == '_') current_slot.erase(0, 1); in get_current_slot()
1293 return current_slot; in get_current_slot()
1311 static std::string get_other_slot(const std::string& current_slot, int count) { in get_other_slot() argument
1314 char next = (current_slot[0] - 'a' + 1) % count + 'a'; in get_other_slot()
1318 static std::string get_other_slot(const std::string& current_slot) { in get_other_slot() argument
1319 return get_other_slot(current_slot, get_slot_count(fb)); in get_other_slot()
1373 std::string current_slot; in do_for_partition() local
1383 current_slot = get_current_slot(); in do_for_partition()
1384 if (current_slot == "") { in do_for_partition()
1387 part_tokens[0] += "_" + current_slot; in do_for_partition()
1536 std::string current_slot = get_current_slot(); in set_active() local
1537 if (current_slot != "") { in set_active()
1538 fb->SetActive(current_slot); in set_active()
1579 std::string GetPartitionName(const ImageEntry& entry, const std::string& current_slot) { in GetPartitionName() argument
1582 slot = current_slot; in GetPartitionName()
1838 fp_->current_slot = get_current_slot(); in DetermineSlot()
1840 fp_->current_slot = fp_->slot_override; in DetermineSlot()
2396 std::string current_slot; in Main() local
2397 if (fb->GetVar("current-slot", &current_slot) == fastboot::SUCCESS) { in Main()
2398 if (current_slot[0] == '_') current_slot.erase(0, 1); in Main()
2399 next_active = verify_slot(current_slot, false); in Main()