Home
last modified time | relevance | path

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

12

/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 …]
Dvr_device.cpp20 Device* make_device() { in make_device()
21 return new Device(new VrRecoveryUI); in make_device()
Dwear_device.cpp20 Device* make_device() { in make_device()
21 return new Device(new WearRecoveryUI); 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.cpp38 : Device(ui), ctl_sock_(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)), interface_(interface) { in EthernetDevice()
/bootable/recovery/
Drecovery.cpp157 static bool yes_no(Device* device, const char* question1, const char* question2) { in yes_no()
163 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in yes_no()
167 static bool ask_to_wipe_data(Device* device) { in ask_to_wipe_data()
173 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in ask_to_wipe_data()
178 static InstallResult prompt_and_wipe_data(Device* device) { in prompt_and_wipe_data()
200 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.cpp199 static void ListenRecoverySocket(RecoveryUI* ui, std::atomic<Device::BuiltinAction>& action) { in ListenRecoverySocket()
224 action = Device::BuiltinAction::ENTER_RECOVERY; in ListenRecoverySocket()
227 action = Device::BuiltinAction::ENTER_FASTBOOT; in ListenRecoverySocket()
420 Device* device; in main()
444 device->RemoveMenuItemForAction(Device::WIPE_CACHE); in main()
448 device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); in main()
452 device->RemoveMenuItemForAction(Device::ENTER_RESCUE); in main()
469 std::atomic<Device::BuiltinAction> action; in main()
494 if (ret == Device::KEY_INTERRUPTED) { in main()
496 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 },
66 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& /* args */) { in StartFastboot()
98 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in StartFastboot()
101 return Device::KEY_INTERRUPTED; in StartFastboot()
104 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.cpp93 static auto AdbInstallPackageHandler(Device* device, InstallResult* result) { in AdbInstallPackageHandler()
129 Device::BuiltinAction* reboot_action) { in AdbRebootHandler()
135 *reboot_action = Device::REBOOT_BOOTLOADER; in AdbRebootHandler()
138 *reboot_action = Device::REBOOT_FASTBOOT; in AdbRebootHandler()
141 *reboot_action = Device::REBOOT_RECOVERY; in AdbRebootHandler()
144 *reboot_action = Device::REBOOT_RESCUE; in AdbRebootHandler()
148 *reboot_action = Device::REBOOT; in AdbRebootHandler()
339 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()
149 InstallResult InstallWithFuseFromPath(std::string_view path, Device* device) { in InstallWithFuseFromPath()
208 InstallResult ApplyFromSdcard(Device* device) { in ApplyFromSdcard()
Dwipe_device.cpp175 bool WipeAbDevice(Device* device, size_t wipe_package_size) { in WipeAbDevice()
188 bool WipeAbDevice(Device* device, Package* wipe_package) { in WipeAbDevice()
Dsnapshot_utils.cpp29 bool FinishPendingSnapshotMerges(Device* device) { in FinishPendingSnapshotMerges()
Dwipe_data.cpp83 bool WipeData(Device* device, bool keep_memtag_mode, std::string_view data_fstype) { in WipeData()
/bootable/recovery/install/include/install/
Dadb_install.h25 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
Dfuse_install.h28 InstallResult InstallWithFuseFromPath(std::string_view path, Device* device);
30 InstallResult ApplyFromSdcard(Device* device);
Dwipe_device.h26 bool WipeAbDevice(Device* device, size_t wipe_package_size);
27 bool WipeAbDevice(Device* device, Package* wipe_package);
Dsnapshot_utils.h21 bool FinishPendingSnapshotMerges(Device* device);
Dwipe_data.h31 bool WipeData(Device* device, bool keep_memtag_mode = false, std::string_view new_fstype = "");
Dinstall.h54 Device* ui);
/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()

12