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()
758 status = INSTALL_ERROR; in start_recovery()
761 status = InstallWithFuseFromPath(update_package, ui); in start_recovery()
766 status = InstallPackage(memory_package.get(), update_package, should_wipe_cache, in start_recovery()
774 status = InstallWithFuseFromPath(update_package, ui); in start_recovery()
776 if (status != INSTALL_SUCCESS) { in start_recovery()
782 if (status == INSTALL_RETRY && retry_count < RETRY_LIMIT) { in start_recovery()
805 status = INSTALL_ERROR; in start_recovery()
813 status = prompt_and_wipe_data(device); in start_recovery()
814 if (status != INSTALL_KEY_INTERRUPTED) { in start_recovery()
820 status = INSTALL_ERROR; in start_recovery()
824 status = INSTALL_ERROR; in start_recovery()
835 status = ApplyFromAdb(device, false /* rescue_mode */, &next_action); in start_recovery()
836 ui->Print("\nInstall from ADB complete (status: %d).\n", status); in start_recovery()
838 status = INSTALL_REBOOT; in start_recovery()
843 status = ApplyFromAdb(device, true /* rescue_mode */, &next_action); in start_recovery()
844 ui->Print("\nInstall from ADB complete (status: %d).\n", status); in start_recovery()
852 status = INSTALL_NONE; // No command specified in start_recovery()
856 if (status == INSTALL_ERROR || status == INSTALL_CORRUPT) { in start_recovery()
872 if (status != INSTALL_REBOOT) { in start_recovery()
873 if (status == INSTALL_NONE || ui->IsTextVisible()) { in start_recovery()
874 auto temp = PromptAndWait(device, status); in start_recovery()