Lines Matching refs:partition
1009 static void copy_boot_avb_footer(const std::string& partition, struct fastboot_buffer* buf) { in copy_boot_avb_footer() argument
1015 if (fb->GetVar("partition-size:" + partition, &partition_size_str) != fastboot::SUCCESS) { in copy_boot_avb_footer()
1055 static void flash_buf(const std::string& partition, struct fastboot_buffer *buf) in flash_buf() argument
1059 if (partition == "boot" || partition == "boot_a" || partition == "boot_b") { in flash_buf()
1060 copy_boot_avb_footer(partition, buf); in flash_buf()
1065 if (partition == "vbmeta" || partition == "vbmeta_a" || partition == "vbmeta_b") { in flash_buf()
1068 (partition == "boot" || partition == "boot_a" || partition == "boot_b")) { in flash_buf()
1085 fb->FlashPartition(partition, pair.first, pair.second, i + 1, sparse_files.size()); in flash_buf()
1090 fb->FlashPartition(partition, buf->fd, buf->sz); in flash_buf()
1230 static bool is_logical(const std::string& partition) { in is_logical() argument
1232 return fb->GetVar("is-logical:" + partition, &value) == fastboot::SUCCESS && value == "yes"; in is_logical()
1367 auto resize_partition = [](const std::string& partition) -> void { in Flash() argument
1368 if (is_logical(partition)) { in Flash()
1369 fb->ResizePartition(partition, "0"); in Flash()
1579 const std::string& partition, int skip_if_not_supported, in fb_perform_format() argument
1598 if (fb->GetVar("partition-type:" + partition, &partition_type) != fastboot::SUCCESS) { in fb_perform_format()
1605 partition.c_str(), partition_type.c_str(), type_override.c_str()); in fb_perform_format()
1610 if (fb->GetVar("partition-size:" + partition, &partition_size) != fastboot::SUCCESS) { in fb_perform_format()
1617 partition.c_str(), partition_size.c_str(), size_override.c_str()); in fb_perform_format()
1645 die("Cannot generate image for %s", partition.c_str()); in fb_perform_format()
1655 flash_buf(partition, &buf); in fb_perform_format()
1681 for (const auto& partition : metadata->partitions) { in should_flash_in_userspace() local
1682 auto candidate = android::fs_mgr::GetPartitionName(partition); in should_flash_in_userspace()
1683 if (partition.attributes & LP_PARTITION_ATTR_SLOT_SUFFIXED) { in should_flash_in_userspace()
1726 auto partition = android::fs_mgr::GetBlockDevicePartitionName(block_device); in wipe_super() local
1731 image_name = "super_" + partition + ".img"; in wipe_super()
1733 image_name = partition + ".img"; in wipe_super()
1740 do_for_partitions(partition, slot, flash, force_slot); in wipe_super()
1961 std::string partition = next_arg(&args); in Main() local
1962 auto erase = [&](const std::string& partition) { in Main() argument
1964 … if (fb->GetVar("partition-type:" + partition, &partition_type) == fastboot::SUCCESS && in Main()
1970 fb->Erase(partition); in Main()
1972 do_for_partitions(partition, slot_override, erase, true); in Main()
1987 std::string partition = next_arg(&args); in Main() local
1989 auto format = [&](const std::string& partition) { in Main() argument
1990 fb_perform_format(partition, 0, type_override, size_override, ""); in Main()
1992 do_for_partitions(partition, slot_override, format, true); in Main()
2050 auto flash = [&](const std::string &partition) { in Main() argument
2051 if (should_flash_in_userspace(partition) && !is_userspace_fastboot() && in Main()
2061 do_flash(partition.c_str(), fname.c_str()); in Main()
2065 std::string partition = next_arg(&args); in Main() local
2073 auto flashraw = [&data](const std::string& partition) { in Main() argument
2074 fb->FlashPartition(partition, data); in Main()
2076 do_for_partitions(partition, slot_override, flashraw, true); in Main()
2124 std::string partition = next_arg(&args); in Main() local
2126 fb->CreatePartition(partition, size); in Main()
2128 std::string partition = next_arg(&args); in Main() local
2129 fb->DeletePartition(partition); in Main()
2131 std::string partition = next_arg(&args); in Main() local
2133 fb->ResizePartition(partition, size); in Main()
2170 for (const auto& partition : partitions) { in Main() local
2172 if (fb->GetVar("partition-type:" + partition, &partition_type) != fastboot::SUCCESS) { in Main()
2176 fb->Erase(partition); in Main()
2177 if (partition == "userdata" && set_fbe_marker) { in Main()
2180 fb_perform_format(partition, 1, partition_type, "", initial_userdata_dir); in Main()
2183 fb_perform_format(partition, 1, partition_type, "", ""); in Main()