• Home
  • Raw
  • Download

Lines Matching refs:fb

106 fastboot::FastBootDriver* fb = nullptr;  variable
210 fprintf(stderr, "FAILED (%s)\n", fb->Error().c_str()); in Epilog()
670 if (fb->GetVar(var, &var_value) != fastboot::SUCCESS) { in CheckRequirement()
673 fb->Error().c_str()); in CheckRequirement()
751 if (fb->GetVar("has-slot:" + partition_name, &has_slot) != fastboot::SUCCESS || in HandlePartitionExists()
770 if (fb->GetVar("product", &cur_product) != fastboot::SUCCESS) { in CheckRequirements()
771 fprintf(stderr, "getvar:product FAILED (%s)\n", fb->Error().c_str()); in CheckRequirements()
800 if (fb->GetVar(var, &value) != fastboot::SUCCESS) { in DisplayVarOrError()
802 fprintf(stderr, "FAILED (%s)\n", fb->Error().c_str()); in DisplayVarOrError()
839 if (fb->GetVar("max-download-size", &max_download_size) != fastboot::SUCCESS || in get_target_sparse_limit()
984 return fb->GetVar("partition-type:vbmeta", &partition_type) == fastboot::SUCCESS || in has_vbmeta_partition()
985 fb->GetVar("partition-type:vbmeta_a", &partition_type) == fastboot::SUCCESS || in has_vbmeta_partition()
986 fb->GetVar("partition-type:vbmeta_b", &partition_type) == fastboot::SUCCESS; in has_vbmeta_partition()
1004 if (fb->GetVar("partition-size:" + partition, &partition_size_str) != fastboot::SUCCESS) { in copy_boot_avb_footer()
1074 fb->FlashPartition(partition, pair.first, pair.second, i + 1, sparse_files.size()); in flash_buf()
1079 fb->FlashPartition(partition, buf->fd, buf->sz); in flash_buf()
1088 if (fb->GetVar("current-slot", &current_slot) != fastboot::SUCCESS) return ""; in get_current_slot()
1095 if (fb->GetVar("slot-count", &var) != fastboot::SUCCESS || in get_slot_count()
1171 if (fb->GetVar("has-slot:" + part, &has_slot) != fastboot::SUCCESS) { in do_for_partition()
1204 if (fb->GetVar("has-slot:" + part, &has_slot) != fastboot::SUCCESS) { in do_for_partitions()
1221 return fb->GetVar("is-logical:" + partition, &value) == fastboot::SUCCESS && value == "yes"; in is_logical()
1226 if (fb->GetVar("super-partition-name", &value) != fastboot::SUCCESS) { in is_retrofit_device()
1239 fb->ResizePartition(pname, std::to_string(buf.image_size)); in do_flash()
1250 fb->SetActive(slot_override); in set_active()
1254 fb->SetActive(current_slot); in set_active()
1261 return fb->GetVar("is-userspace", &value) == fastboot::SUCCESS && value == "yes"; in is_userspace_fastboot()
1265 fb->RebootTo("fastboot"); in reboot_to_userspace_fastboot()
1267 auto* old_transport = fb->set_transport(nullptr); in reboot_to_userspace_fastboot()
1273 fb->set_transport(open_device()); in reboot_to_userspace_fastboot()
1286 if (fb->GetVar(FB_VAR_SNAPSHOT_UPDATE_STATUS, &merge_status) == fastboot::SUCCESS && in CancelSnapshotIfNeeded()
1288 fb->SnapshotUpdateCommand("cancel"); in CancelSnapshotIfNeeded()
1358 fb->ResizePartition(partition, "0"); in Flash()
1428 fb->Download("signature", signature_data); in FlashImage()
1429 fb->RawCommand("signature", "installing signature"); in FlashImage()
1433 fb->ResizePartition(partition_name, std::to_string(buf->image_size)); in FlashImage()
1450 if (fb->GetVar("super-partition-name", &super_name) != fastboot::RetCode::SUCCESS) { in UpdateSuperPartition()
1453 fb->Download(super_name, fd, get_file_size(fd)); in UpdateSuperPartition()
1459 fb->RawCommand(command, "Updating super partition"); in UpdateSuperPartition()
1469 fb->DeletePartition(partition_name); in UpdateSuperPartition()
1544 fb->RawCommand(command, ""); in do_oem_command()
1549 if (fb->GetVar(name, &sizeString) != fastboot::SUCCESS || sizeString.empty()) { in fb_get_flash_block_size()
1587 if (fb->GetVar("partition-type:" + partition, &partition_type) != fastboot::SUCCESS) { in fb_perform_format()
1599 if (fb->GetVar("partition-size:" + partition, &partition_size) != fastboot::SUCCESS) { in fb_perform_format()
1652 fprintf(stderr, "FAILED (%s)\n", fb->Error().c_str()); in fb_perform_format()
1695 fb->RawCommand("oem allow-flash-super"); in wipe_super()
1920 fb = &fastboot_driver; in Main()
1931 if (fb->GetVar("current-slot", &current_slot) == fastboot::SUCCESS) { in Main()
1953 … if (fb->GetVar("partition-type:" + partition, &partition_type) == fastboot::SUCCESS && in Main()
1959 fb->Erase(partition); in Main()
1989 fb->Download("signature", data); in Main()
1990 fb->RawCommand("signature", "installing signature"); in Main()
2018 fb->Continue(); in Main()
2026 fb->Download("boot.img", data); in Main()
2027 fb->Boot(); in Main()
2063 fb->FlashPartition(partition, data); in Main()
2087 fb->SetActive(slot); in Main()
2095 fb->Download(filename, buf.fd, buf.sz); in Main()
2098 fb->Upload(filename); in Main()
2115 fb->CreatePartition(partition, size); in Main()
2118 fb->DeletePartition(partition); in Main()
2122 fb->ResizePartition(partition, size); in Main()
2126 fb->RawCommand("gsi:wipe", "wiping GSI"); in Main()
2128 fb->RawCommand("gsi:disable", "disabling GSI"); in Main()
2148 fb->SnapshotUpdateCommand(arg); in Main()
2161 if (fb->GetVar("partition-type:" + partition, &partition_type) != fastboot::SUCCESS) { in Main()
2165 fb->Erase(partition); in Main()
2177 fb->SetActive(next_active); in Main()
2180 fb->Reboot(); in Main()
2181 fb->WaitForDisconnect(); in Main()
2183 fb->RebootTo("bootloader"); in Main()
2184 fb->WaitForDisconnect(); in Main()
2186 fb->RebootTo("recovery"); in Main()
2187 fb->WaitForDisconnect(); in Main()
2194 auto* old_transport = fb->set_transport(nullptr); in Main()