Lines Matching refs:fb
104 fastboot::FastBootDriver* fb = nullptr; variable
205 fprintf(stderr, "FAILED (%s)\n", fb->Error().c_str()); in Epilog()
659 if (fb->GetVar(var, &var_value) != fastboot::SUCCESS) { in CheckRequirement()
662 fb->Error().c_str()); in CheckRequirement()
740 if (fb->GetVar("has-slot:" + partition_name, &has_slot) != fastboot::SUCCESS || in HandlePartitionExists()
759 if (fb->GetVar("product", &cur_product) != fastboot::SUCCESS) { in CheckRequirements()
760 fprintf(stderr, "getvar:product FAILED (%s)\n", fb->Error().c_str()); in CheckRequirements()
789 if (fb->GetVar(var, &value) != fastboot::SUCCESS) { in DisplayVarOrError()
791 fprintf(stderr, "FAILED (%s)\n", fb->Error().c_str()); in DisplayVarOrError()
828 if (fb->GetVar("max-download-size", &max_download_size) != fastboot::SUCCESS || in get_target_sparse_limit()
976 fb->FlashPartition(partition, pair.first, pair.second, i + 1, sparse_files.size()); in flash_buf()
981 fb->FlashPartition(partition, buf->fd, buf->sz); in flash_buf()
990 if (fb->GetVar("current-slot", ¤t_slot) != fastboot::SUCCESS) return ""; in get_current_slot()
997 if (fb->GetVar("slot-count", &var) != fastboot::SUCCESS || in get_slot_count()
1073 if (fb->GetVar("has-slot:" + part, &has_slot) != fastboot::SUCCESS) { in do_for_partition()
1106 if (fb->GetVar("has-slot:" + part, &has_slot) != fastboot::SUCCESS) { in do_for_partitions()
1123 return fb->GetVar("is-logical:" + partition, &value) == fastboot::SUCCESS && value == "yes"; in is_logical()
1128 if (fb->GetVar("super-partition-name", &value) != fastboot::SUCCESS) { in is_retrofit_device()
1141 fb->ResizePartition(pname, std::to_string(buf.image_size)); in do_flash()
1152 fb->SetActive(slot_override); in set_active()
1156 fb->SetActive(current_slot); in set_active()
1163 return fb->GetVar("is-userspace", &value) == fastboot::SUCCESS && value == "yes"; in is_userspace_fastboot()
1167 fb->RebootTo("fastboot"); in reboot_to_userspace_fastboot()
1169 auto* old_transport = fb->set_transport(nullptr); in reboot_to_userspace_fastboot()
1175 fb->set_transport(open_device()); in reboot_to_userspace_fastboot()
1250 fb->ResizePartition(partition, "0"); in Flash()
1320 fb->Download("signature", signature_data); in FlashImage()
1321 fb->RawCommand("signature", "installing signature"); in FlashImage()
1325 fb->ResizePartition(partition_name, std::to_string(buf->image_size)); in FlashImage()
1342 if (fb->GetVar("super-partition-name", &super_name) != fastboot::RetCode::SUCCESS) { in UpdateSuperPartition()
1345 fb->Download(super_name, fd, get_file_size(fd)); in UpdateSuperPartition()
1351 fb->RawCommand(command, "Updating super partition"); in UpdateSuperPartition()
1361 fb->DeletePartition(partition_name); in UpdateSuperPartition()
1436 fb->RawCommand(command, ""); in do_oem_command()
1450 if (fb->GetVar(name, &sizeString) != fastboot::SUCCESS || sizeString.empty()) { in fb_get_flash_block_size()
1488 if (fb->GetVar("partition-type:" + partition, &partition_type) != fastboot::SUCCESS) { in fb_perform_format()
1500 if (fb->GetVar("partition-size:" + partition, &partition_size) != fastboot::SUCCESS) { in fb_perform_format()
1553 fprintf(stderr, "FAILED (%s)\n", fb->Error().c_str()); in fb_perform_format()
1751 fb = &fastboot_driver; in Main()
1762 if (fb->GetVar("current-slot", ¤t_slot) == fastboot::SUCCESS) { in Main()
1784 … if (fb->GetVar("partition-type:" + partition, &partition_type) == fastboot::SUCCESS && in Main()
1790 fb->Erase(partition); in Main()
1820 fb->Download("signature", data); in Main()
1821 fb->RawCommand("signature", "installing signature"); in Main()
1849 fb->Continue(); in Main()
1857 fb->Download("boot.img", data); in Main()
1858 fb->Boot(); in Main()
1894 fb->FlashPartition(partition, data); in Main()
1918 fb->SetActive(slot); in Main()
1926 fb->Download(filename, buf.fd, buf.sz); in Main()
1929 fb->Upload(filename); in Main()
1946 fb->CreatePartition(partition, size); in Main()
1949 fb->DeletePartition(partition); in Main()
1953 fb->ResizePartition(partition, size); in Main()
1957 fb->RawCommand("gsi:wipe", "wiping GSI"); in Main()
1959 fb->RawCommand("gsi:disable", "disabling GSI"); in Main()
1972 if (fb->GetVar("partition-type:" + partition, &partition_type) != fastboot::SUCCESS) { in Main()
1976 fb->Erase(partition); in Main()
1988 fb->SetActive(next_active); in Main()
1991 fb->Reboot(); in Main()
1992 fb->WaitForDisconnect(); in Main()
1994 fb->RebootTo("bootloader"); in Main()
1995 fb->WaitForDisconnect(); in Main()
1997 fb->RebootTo("recovery"); in Main()
1998 fb->WaitForDisconnect(); in Main()
2005 auto* old_transport = fb->set_transport(nullptr); in Main()