Lines Matching refs:Device
166 static bool yes_no(Device* device, const char* question1, const char* question2) {
172 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2));
176 static bool ask_to_wipe_data(Device* device) {
182 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2));
187 static InstallResult prompt_and_wipe_data(Device* device) {
204 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2));
383 static void choose_recovery_file(Device* device) {
421 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2));
478 static Device::BuiltinAction prompt_and_wait(Device* device, int status) {
496 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2));
499 return Device::KEY_INTERRUPTED;
501 // Device-specific code may take some action here. It may return one of the core actions
503 Device::BuiltinAction chosen_action =
505 ? Device::REBOOT
509 case Device::NO_ACTION:
512 case Device::ENTER_FASTBOOT:
513 case Device::ENTER_RECOVERY:
514 case Device::REBOOT:
515 case Device::REBOOT_BOOTLOADER:
516 case Device::REBOOT_FASTBOOT:
517 case Device::REBOOT_RECOVERY:
518 case Device::REBOOT_RESCUE:
519 case Device::SHUTDOWN:
522 case Device::WIPE_DATA:
530 return Device::NO_ACTION;
534 case Device::WIPE_CACHE: {
540 if (!ui->IsTextVisible()) return Device::NO_ACTION;
544 case Device::APPLY_ADB_SIDELOAD:
545 case Device::APPLY_SDCARD:
546 case Device::ENTER_RESCUE: {
550 Device::BuiltinAction reboot_action;
551 if (chosen_action == Device::ENTER_RESCUE) {
555 } else if (chosen_action == Device::APPLY_ADB_SIDELOAD) {
572 return Device::NO_ACTION; // reboot if logs aren't visible
577 case Device::VIEW_RECOVERY_LOGS:
581 case Device::RUN_GRAPHICS_TEST:
585 case Device::RUN_LOCALE_TEST: {
590 case Device::MOUNT_SYSTEM:
597 case Device::KEY_INTERRUPTED:
598 return Device::KEY_INTERRUPTED;
725 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args) {
857 Device::BuiltinAction next_action = shutdown_after ? Device::SHUTDOWN : Device::REBOOT;
992 Device::BuiltinAction temp = prompt_and_wait(device, status);
993 if (temp != Device::NO_ACTION) {