Lines Matching refs:status
478 static Device::BuiltinAction prompt_and_wait(Device* device, int status) { in prompt_and_wait() argument
481 switch (status) { in prompt_and_wait()
554 status = ApplyFromAdb(device, true /* rescue_mode */, &reboot_action); in prompt_and_wait()
556 status = ApplyFromAdb(device, false /* rescue_mode */, &reboot_action); in prompt_and_wait()
559 status = ApplyFromSdcard(device, ui); in prompt_and_wait()
562 ui->Print("\nInstall from %s completed with status %d.\n", adb ? "ADB" : "SD card", status); in prompt_and_wait()
563 if (status == INSTALL_REBOOT) { in prompt_and_wait()
567 if (status != INSTALL_SUCCESS) { in prompt_and_wait()
854 int status = INSTALL_SUCCESS; in start_recovery() local
871 status = INSTALL_SKIPPED; in start_recovery()
876 status = INSTALL_SKIPPED; in start_recovery()
884 status = install_package(update_package, should_wipe_cache, true, retry_count, ui); in start_recovery()
885 if (status != INSTALL_SUCCESS) { in start_recovery()
891 if (status == INSTALL_RETRY && retry_count < RETRY_LIMIT) { in start_recovery()
919 status = INSTALL_ERROR; in start_recovery()
927 status = prompt_and_wipe_data(device); in start_recovery()
928 if (status != INSTALL_KEY_INTERRUPTED) { in start_recovery()
934 status = INSTALL_ERROR; in start_recovery()
938 status = INSTALL_ERROR; in start_recovery()
949 status = ApplyFromAdb(device, false /* rescue_mode */, &next_action); in start_recovery()
950 ui->Print("\nInstall from ADB complete (status: %d).\n", status); in start_recovery()
952 status = INSTALL_REBOOT; in start_recovery()
957 status = ApplyFromAdb(device, true /* rescue_mode */, &next_action); in start_recovery()
958 ui->Print("\nInstall from ADB complete (status: %d).\n", status); in start_recovery()
961 status = INSTALL_ERROR; in start_recovery()
970 status = INSTALL_NONE; // No command specified in start_recovery()
974 if (status == INSTALL_ERROR || status == INSTALL_CORRUPT) { in start_recovery()
990 if (status != INSTALL_REBOOT) { in start_recovery()
991 if (status == INSTALL_NONE || ui->IsTextVisible()) { in start_recovery()
992 Device::BuiltinAction temp = prompt_and_wait(device, status); in start_recovery()