• Home
  • Raw
  • Download

Lines Matching refs:Device

161 static bool yes_no(Device* device, const char* question1, const char* question2) {  in yes_no()
167 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in yes_no()
171 static bool ask_to_wipe_data(Device* device) { in ask_to_wipe_data()
177 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in ask_to_wipe_data()
182 static InstallResult prompt_and_wipe_data(Device* device) { in prompt_and_wipe_data()
199 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in prompt_and_wipe_data()
220 static void choose_recovery_file(Device* device) { in choose_recovery_file()
258 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in choose_recovery_file()
320 static bool AskToReboot(Device* device, Device::BuiltinAction chosen_action) { in AskToReboot()
331 case Device::REBOOT: in AskToReboot()
335 case Device::SHUTDOWN: in AskToReboot()
352 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in AskToReboot()
360 static Device::BuiltinAction PromptAndWait(Device* device, InstallResult status) { in PromptAndWait()
395 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in PromptAndWait()
398 return Device::KEY_INTERRUPTED; in PromptAndWait()
402 Device::BuiltinAction chosen_action = in PromptAndWait()
404 ? Device::REBOOT in PromptAndWait()
408 case Device::REBOOT_FROM_FASTBOOT: // Can not happen in PromptAndWait()
409 case Device::SHUTDOWN_FROM_FASTBOOT: // Can not happen in PromptAndWait()
410 case Device::NO_ACTION: in PromptAndWait()
413 case Device::ENTER_FASTBOOT: in PromptAndWait()
414 case Device::ENTER_RECOVERY: in PromptAndWait()
415 case Device::REBOOT_BOOTLOADER: in PromptAndWait()
416 case Device::REBOOT_FASTBOOT: in PromptAndWait()
417 case Device::REBOOT_RECOVERY: in PromptAndWait()
418 case Device::REBOOT_RESCUE: in PromptAndWait()
421 case Device::REBOOT: in PromptAndWait()
422 case Device::SHUTDOWN: in PromptAndWait()
436 case Device::WIPE_DATA: in PromptAndWait()
444 return Device::NO_ACTION; in PromptAndWait()
448 case Device::WIPE_CACHE: { in PromptAndWait()
454 if (!ui->IsTextVisible()) return Device::NO_ACTION; in PromptAndWait()
458 case Device::APPLY_ADB_SIDELOAD: in PromptAndWait()
459 case Device::APPLY_SDCARD: in PromptAndWait()
460 case Device::ENTER_RESCUE: { in PromptAndWait()
467 Device::BuiltinAction reboot_action; in PromptAndWait()
468 if (chosen_action == Device::ENTER_RESCUE) { in PromptAndWait()
472 } else if (chosen_action == Device::APPLY_ADB_SIDELOAD) { in PromptAndWait()
487 return Device::NO_ACTION; // reboot if logs aren't visible in PromptAndWait()
497 case Device::VIEW_RECOVERY_LOGS: in PromptAndWait()
501 case Device::RUN_GRAPHICS_TEST: in PromptAndWait()
505 case Device::RUN_LOCALE_TEST: { in PromptAndWait()
511 case Device::MOUNT_SYSTEM: in PromptAndWait()
522 case Device::KEY_INTERRUPTED: in PromptAndWait()
523 return Device::KEY_INTERRUPTED; in PromptAndWait()
593 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args) { in start_recovery()
724 Device::BuiltinAction next_action = shutdown_after ? Device::SHUTDOWN : Device::REBOOT; in start_recovery()
869 if (temp != Device::NO_ACTION) { in start_recovery()