Home
last modified time | relevance | path

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

/bootable/recovery/recovery_ui/
Ddevice.cpp29 static std::vector<std::pair<std::string, Device::BuiltinAction>> g_menu_actions{
30 { "Reboot system now", Device::REBOOT },
31 { "Reboot to bootloader", Device::REBOOT_BOOTLOADER },
32 { "Enter fastboot", Device::ENTER_FASTBOOT },
33 { "Apply update from ADB", Device::APPLY_ADB_SIDELOAD },
34 { "Apply update from SD card", Device::APPLY_SDCARD },
35 { "Wipe data/factory reset", Device::WIPE_DATA },
36 { "Wipe cache partition", Device::WIPE_CACHE },
37 { "Mount /system", Device::MOUNT_SYSTEM },
38 { "View recovery logs", Device::VIEW_RECOVERY_LOGS },
[all …]
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()
Ddefault_device.cpp20 Device* make_device() { in make_device()
21 return new Device(new ScreenRecoveryUI); in make_device()
Ddefault_ethernet_device.cpp21 Device* make_device() { in make_device()
Dethernet_device.cpp36 : Device(ui), ctl_sock_(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)) { in EthernetDevice()
Dscreen_ui.cpp1259 case Device::kHighlightUp: in ShowMenu()
1262 case Device::kHighlightDown: in ShowMenu()
1265 case Device::kInvokeItem: in ShowMenu()
1268 case Device::kNoAction: in ShowMenu()
/bootable/recovery/
Drecovery.cpp161 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()
[all …]
Drecovery_main.cpp195 static void ListenRecoverySocket(RecoveryUI* ui, std::atomic<Device::BuiltinAction>& action) { in ListenRecoverySocket()
220 action = Device::BuiltinAction::ENTER_RECOVERY; in ListenRecoverySocket()
223 action = Device::BuiltinAction::ENTER_FASTBOOT; in ListenRecoverySocket()
416 Device* device; in main()
440 device->RemoveMenuItemForAction(Device::WIPE_CACHE); in main()
444 device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); in main()
448 device->RemoveMenuItemForAction(Device::ENTER_RESCUE); in main()
465 std::atomic<Device::BuiltinAction> action; in main()
492 if (ret == Device::KEY_INTERRUPTED) { in main()
494 if (ret == Device::NO_ACTION) { in main()
[all …]
Drecovery.h24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
/bootable/recovery/fastboot/
Dfastboot.cpp32 static const std::vector<std::pair<std::string, Device::BuiltinAction>> kFastbootMenuActions{
33 { "Reboot system now", Device::REBOOT_FROM_FASTBOOT },
34 { "Enter recovery", Device::ENTER_RECOVERY },
35 { "Reboot to bootloader", Device::REBOOT_BOOTLOADER },
36 { "Power off", Device::SHUTDOWN_FROM_FASTBOOT },
39 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& /* args */) { in StartFastboot()
73 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in StartFastboot()
76 return Device::KEY_INTERRUPTED; in StartFastboot()
79 return Device::BuiltinAction::NO_ACTION; in StartFastboot()
Dfastboot.h24 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& args);
/bootable/recovery/recovery_ui/include/recovery_ui/
Ddevice.h32 class Device {
68 explicit Device(RecoveryUI* ui);
69 virtual ~Device() {} in ~Device()
129 virtual void RemoveMenuItemForAction(Device::BuiltinAction action);
161 Device* make_device();
Dethernet_device.h27 class EthernetDevice : public Device {
/bootable/recovery/install/
Dadb_install.cpp128 Device::BuiltinAction* reboot_action) { in AdbRebootHandler()
134 *reboot_action = Device::REBOOT_BOOTLOADER; in AdbRebootHandler()
137 *reboot_action = Device::REBOOT_FASTBOOT; in AdbRebootHandler()
140 *reboot_action = Device::REBOOT_RECOVERY; in AdbRebootHandler()
143 *reboot_action = Device::REBOOT_RESCUE; in AdbRebootHandler()
147 *reboot_action = Device::REBOOT; in AdbRebootHandler()
338 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action) { in ApplyFromAdb()
Dfuse_install.cpp58 static std::string BrowseDirectory(const std::string& path, Device* device, RecoveryUI* ui) { in BrowseDirectory()
96 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in BrowseDirectory()
207 InstallResult ApplyFromSdcard(Device* device) { in ApplyFromSdcard()
Dsnapshot_utils.cpp29 bool FinishPendingSnapshotMerges(Device* device) { in FinishPendingSnapshotMerges()
Dwipe_data.cpp105 bool WipeData(Device* device, bool convert_fbe) { in WipeData()
Dwipe_device.cpp175 bool WipeAbDevice(Device* device, size_t wipe_package_size) { in WipeAbDevice()
/bootable/recovery/install/include/install/
Dadb_install.h25 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
Dsnapshot_utils.h21 bool FinishPendingSnapshotMerges(Device* device);
Dwipe_data.h30 bool WipeData(Device* device, bool convert_fbe);
Dfuse_install.h30 InstallResult ApplyFromSdcard(Device* device);
Dwipe_device.h26 bool WipeAbDevice(Device* device, size_t wipe_package_size);
/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()