/bootable/recovery/recovery_ui/ |
D | device.cpp | 29 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 …]
|
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 | default_device.cpp | 20 Device* make_device() { in make_device() 21 return new Device(new ScreenRecoveryUI); in make_device()
|
D | default_ethernet_device.cpp | 21 Device* make_device() { in make_device()
|
D | ethernet_device.cpp | 36 : Device(ui), ctl_sock_(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)) { in EthernetDevice()
|
D | screen_ui.cpp | 1259 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/ |
D | recovery.cpp | 161 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 …]
|
D | recovery_main.cpp | 195 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 …]
|
D | recovery.h | 24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
|
/bootable/recovery/fastboot/ |
D | fastboot.cpp | 32 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()
|
D | fastboot.h | 24 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& args);
|
/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | device.h | 32 class Device { 68 explicit Device(RecoveryUI* ui); 69 virtual ~Device() {} in ~Device() 129 virtual void RemoveMenuItemForAction(Device::BuiltinAction action); 161 Device* make_device();
|
D | ethernet_device.h | 27 class EthernetDevice : public Device {
|
/bootable/recovery/install/ |
D | adb_install.cpp | 128 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()
|
D | fuse_install.cpp | 58 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()
|
D | snapshot_utils.cpp | 29 bool FinishPendingSnapshotMerges(Device* device) { in FinishPendingSnapshotMerges()
|
D | wipe_data.cpp | 105 bool WipeData(Device* device, bool convert_fbe) { in WipeData()
|
D | wipe_device.cpp | 175 bool WipeAbDevice(Device* device, size_t wipe_package_size) { in WipeAbDevice()
|
/bootable/recovery/install/include/install/ |
D | adb_install.h | 25 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
|
D | snapshot_utils.h | 21 bool FinishPendingSnapshotMerges(Device* device);
|
D | wipe_data.h | 30 bool WipeData(Device* device, bool convert_fbe);
|
D | fuse_install.h | 30 InstallResult ApplyFromSdcard(Device* device);
|
D | wipe_device.h | 26 bool WipeAbDevice(Device* device, size_t wipe_package_size);
|
/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()
|