Home
last modified time | relevance | path

Searched refs:Device (Results 1 – 18 of 18) sorted by relevance

/bootable/recovery/recovery_ui/
Ddevice.cpp28 static std::vector<std::pair<std::string, Device::BuiltinAction>> g_menu_actions{
29 { "Reboot system now", Device::REBOOT },
30 { "Reboot to bootloader", Device::REBOOT_BOOTLOADER },
31 { "Enter fastboot", Device::ENTER_FASTBOOT },
32 { "Apply update from ADB", Device::APPLY_ADB_SIDELOAD },
33 { "Apply update from SD card", Device::APPLY_SDCARD },
34 { "Wipe data/factory reset", Device::WIPE_DATA },
35 { "Wipe cache partition", Device::WIPE_CACHE },
36 { "Mount /system", Device::MOUNT_SYSTEM },
37 { "View recovery logs", Device::VIEW_RECOVERY_LOGS },
[all …]
Ddefault_device.cpp20 Device* make_device() { in make_device()
21 return new Device(new ScreenRecoveryUI); in make_device()
Dwear_device.cpp20 Device* make_device() { in make_device()
21 return new Device(new WearRecoveryUI); in make_device()
Dvr_device.cpp20 Device* make_device() { in make_device()
21 return new Device(new VrRecoveryUI); in make_device()
Dscreen_ui.cpp1224 case Device::kHighlightUp: in ShowMenu()
1227 case Device::kHighlightDown: in ShowMenu()
1230 case Device::kInvokeItem: in ShowMenu()
1233 case Device::kNoAction: in ShowMenu()
/bootable/recovery/fastboot/
Dfastboot.cpp32 static const std::vector<std::pair<std::string, Device::BuiltinAction>> kFastbootMenuActions{
33 { "Reboot system now", Device::REBOOT },
34 { "Enter recovery", Device::ENTER_RECOVERY },
35 { "Reboot to bootloader", Device::REBOOT_BOOTLOADER },
36 { "Power off", Device::SHUTDOWN },
39 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& /* args */) { in StartFastboot()
72 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in StartFastboot()
75 return Device::KEY_INTERRUPTED; in StartFastboot()
78 return Device::BuiltinAction::NO_ACTION; in StartFastboot()
Dfastboot.h24 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& args);
/bootable/recovery/
Drecovery.cpp166 static bool yes_no(Device* device, const char* question1, const char* question2) { in yes_no()
172 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in yes_no()
176 static bool ask_to_wipe_data(Device* device) { in ask_to_wipe_data()
182 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in ask_to_wipe_data()
187 static InstallResult prompt_and_wipe_data(Device* device) { in prompt_and_wipe_data()
204 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in prompt_and_wipe_data()
383 static void choose_recovery_file(Device* device) { in choose_recovery_file()
421 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in choose_recovery_file()
478 static Device::BuiltinAction prompt_and_wait(Device* device, int status) { in prompt_and_wait()
496 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in prompt_and_wait()
[all …]
Drecovery_main.cpp189 static void ListenRecoverySocket(RecoveryUI* ui, std::atomic<Device::BuiltinAction>& action) { in ListenRecoverySocket()
214 action = Device::BuiltinAction::ENTER_RECOVERY; in ListenRecoverySocket()
217 action = Device::BuiltinAction::ENTER_FASTBOOT; in ListenRecoverySocket()
400 Device* device; in main()
421 device->RemoveMenuItemForAction(Device::WIPE_CACHE); in main()
425 device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); in main()
429 device->RemoveMenuItemForAction(Device::ENTER_RESCUE); in main()
446 std::atomic<Device::BuiltinAction> action; in main()
466 if (ret == Device::KEY_INTERRUPTED) { in main()
468 if (ret == Device::NO_ACTION) { in main()
[all …]
Drecovery.h24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
/bootable/recovery/recovery_ui/include/recovery_ui/
Ddevice.h29 class Device {
63 explicit Device(RecoveryUI* ui);
64 virtual ~Device() {} in ~Device()
112 virtual void RemoveMenuItemForAction(Device::BuiltinAction action);
137 Device* make_device();
/bootable/recovery/install/include/install/
Dadb_install.h24 int ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
Dfuse_sdcard_install.h22 int ApplyFromSdcard(Device* device, RecoveryUI* ui);
Dwipe_data.h30 bool WipeData(Device* device, bool convert_fbe);
/bootable/recovery/install/
Dadb_install.cpp124 Device::BuiltinAction* reboot_action) { in AdbRebootHandler()
130 *reboot_action = Device::REBOOT_BOOTLOADER; in AdbRebootHandler()
133 *reboot_action = Device::REBOOT_FASTBOOT; in AdbRebootHandler()
136 *reboot_action = Device::REBOOT_RECOVERY; in AdbRebootHandler()
139 *reboot_action = Device::REBOOT_RESCUE; in AdbRebootHandler()
143 *reboot_action = Device::REBOOT; in AdbRebootHandler()
334 int ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action) { in ApplyFromAdb()
Dfuse_sdcard_install.cpp57 static std::string BrowseDirectory(const std::string& path, Device* device, RecoveryUI* ui) { in BrowseDirectory()
94 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in BrowseDirectory()
136 int ApplyFromSdcard(Device* device, RecoveryUI* ui) { in ApplyFromSdcard()
Dwipe_data.cpp104 bool WipeData(Device* device, bool convert_fbe) { in WipeData()
/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp294 { KeyCode::NO_OP, Device::kNoAction },
295 { KeyCode::UP, Device::kHighlightUp },
296 { KeyCode::DOWN, Device::kHighlightDown },
297 { KeyCode::ENTER, Device::kInvokeItem },
331 return Device::kNoAction; in KeyHandler()