Lines Matching refs:Device

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