Lines Matching refs:status
360 static Device::BuiltinAction PromptAndWait(Device* device, InstallResult status) { in PromptAndWait() argument
365 switch (status) { in PromptAndWait()
471 status = ApplyFromAdb(device, true /* rescue_mode */, &reboot_action); in PromptAndWait()
473 status = ApplyFromAdb(device, false /* rescue_mode */, &reboot_action); in PromptAndWait()
476 status = ApplyFromSdcard(device); in PromptAndWait()
479 ui->Print("\nInstall from %s completed with status %d.\n", adb ? "ADB" : "SD card", status); in PromptAndWait()
480 if (status == INSTALL_REBOOT) { in PromptAndWait()
484 if (status == INSTALL_SUCCESS) { in PromptAndWait()
721 InstallResult status = INSTALL_SUCCESS; in start_recovery() local
736 status = INSTALL_SKIPPED; in start_recovery()
741 status = INSTALL_SKIPPED; in start_recovery()
752 status = INSTALL_ERROR; in start_recovery()
755 status = InstallWithFuseFromPath(update_package, ui); in start_recovery()
760 status = InstallPackage(memory_package.get(), update_package, should_wipe_cache, in start_recovery()
768 status = InstallWithFuseFromPath(update_package, ui); in start_recovery()
770 if (status != INSTALL_SUCCESS) { in start_recovery()
776 if (status == INSTALL_RETRY && retry_count < RETRY_LIMIT) { in start_recovery()
799 status = INSTALL_ERROR; in start_recovery()
807 status = prompt_and_wipe_data(device); in start_recovery()
808 if (status != INSTALL_KEY_INTERRUPTED) { in start_recovery()
814 status = INSTALL_ERROR; in start_recovery()
818 status = INSTALL_ERROR; in start_recovery()
829 status = ApplyFromAdb(device, false /* rescue_mode */, &next_action); in start_recovery()
830 ui->Print("\nInstall from ADB complete (status: %d).\n", status); in start_recovery()
832 status = INSTALL_REBOOT; in start_recovery()
837 status = ApplyFromAdb(device, true /* rescue_mode */, &next_action); in start_recovery()
838 ui->Print("\nInstall from ADB complete (status: %d).\n", status); in start_recovery()
846 status = INSTALL_NONE; // No command specified in start_recovery()
850 if (status == INSTALL_ERROR || status == INSTALL_CORRUPT) { in start_recovery()
866 if (status != INSTALL_REBOOT) { in start_recovery()
867 if (status == INSTALL_NONE || ui->IsTextVisible()) { in start_recovery()
868 auto temp = PromptAndWait(device, status); in start_recovery()