Lines Matching refs:slot

1316     std::string slot = slot_name;  in verify_slot()  local
1317 if (slot == "all") { in verify_slot()
1333 if (slot == "other") { in verify_slot()
1341 if (slot.size() == 1 && (slot[0] - 'a' >= 0 && slot[0] - 'a' < count)) return slot; in verify_slot()
1343 fprintf(stderr, "Slot %s does not exist. supported slots are:\n", slot.c_str()); in verify_slot()
1351 static std::string verify_slot(const std::string& slot) { in verify_slot() argument
1352 return verify_slot(slot, true); in verify_slot()
1355 static void do_for_partition(const std::string& part, const std::string& slot, in do_for_partition() argument
1367 if (slot == "") { in do_for_partition()
1374 part_tokens[0] += "_" + slot; in do_for_partition()
1378 if (force_slot && slot != "") { in do_for_partition()
1380 part_tokens[0].c_str(), slot.c_str()); in do_for_partition()
1391 void do_for_partitions(const std::string& part, const std::string& slot, in do_for_partitions() argument
1397 if (slot == "all") { in do_for_partitions()
1400 slot.c_str()); in do_for_partitions()
1410 do_for_partition(part, slot, func, force_slot); in do_for_partitions()
1551 auto slot = entry.second; in GetPartitionName() local
1552 if (slot.empty()) { in GetPartitionName()
1553 slot = current_slot; in GetPartitionName()
1555 if (slot.empty()) { in GetPartitionName()
1558 if (slot == "all") { in GetPartitionName()
1561 return entry.first->part_name + "_" + slot; in GetPartitionName()
1567 std::string slot = fp->slot_override; in ParseFlashCommand() local
1574 slot = fp->secondary_slot; in ParseFlashCommand()
1593 return std::make_unique<FlashTask>(slot, partition, img_name, apply_vbmeta); in ParseFlashCommand()
1845 std::string slot = fp_->slot_override; in CollectImages() local
1850 slot = fp_->secondary_slot; in CollectImages()
1853 boot_images_.emplace_back(&images[i], slot); in CollectImages()
1855 os_images_.emplace_back(&images[i], slot); in CollectImages()
1875 for (const auto& [image, slot] : os_images_) { in HardcodedFlash()
1881 std::string partition_name = image->part_name + "_"s + slot; in HardcodedFlash()
1887 tasks.emplace_back(std::make_unique<ResizeTask>(fp_, image->part_name, "0", slot)); in HardcodedFlash()
1897 for (const auto& [image, slot] : images) { in FlashImages()
1906 FlashImage(*image, slot, &buf); in FlashImages()
1910 void FlashAllTool::FlashImage(const Image& image, const std::string& slot, fastboot_buffer* buf) { in FlashImage() argument
1924 do_for_partitions(image.part_name, slot, flash, false); in FlashImage()
2126 static bool wipe_super(const android::fs_mgr::LpMetadata& metadata, const std::string& slot, in wipe_super() argument
2169 do_for_partitions(partition, slot, flash, force_slot); in wipe_super()
2185 auto slot = slot_override; in do_wipe_super() local
2186 if (slot.empty()) { in do_wipe_super()
2187 slot = get_current_slot(); in do_wipe_super()
2191 if (!wipe_super(*metadata.get(), slot, &message)) { in do_wipe_super()
2529 std::string slot = verify_slot(next_arg(&args), false); in Main() local
2530 fb->SetActive(slot); in Main()