/bootable/recovery/recovery_ui/ |
D | device.cpp | 28 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 …]
|
D | default_device.cpp | 20 Device* make_device() { in make_device() 21 return new Device(new ScreenRecoveryUI); in make_device()
|
D | wear_device.cpp | 20 Device* make_device() { in make_device() 21 return new Device(new WearRecoveryUI); in make_device()
|
D | vr_device.cpp | 20 Device* make_device() { in make_device() 21 return new Device(new VrRecoveryUI); in make_device()
|
D | screen_ui.cpp | 1224 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/ |
D | fastboot.cpp | 32 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()
|
D | fastboot.h | 24 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& args);
|
/bootable/recovery/ |
D | recovery.cpp | 166 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 …]
|
D | recovery_main.cpp | 189 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 …]
|
D | recovery.h | 24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
|
/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | device.h | 29 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/ |
D | adb_install.h | 24 int ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
|
D | fuse_sdcard_install.h | 22 int ApplyFromSdcard(Device* device, RecoveryUI* ui);
|
D | wipe_data.h | 30 bool WipeData(Device* device, bool convert_fbe);
|
/bootable/recovery/install/ |
D | adb_install.cpp | 124 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()
|
D | fuse_sdcard_install.cpp | 57 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()
|
D | wipe_data.cpp | 104 bool WipeData(Device* device, bool convert_fbe) { in WipeData()
|
/bootable/recovery/tests/unit/ |
D | screen_ui_test.cpp | 294 { 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()
|