Home
last modified time | relevance | path

Searched refs:RecoveryUI (Results 1 – 19 of 19) sorted by relevance

/bootable/recovery/recovery_ui/
Dui.cpp61 RecoveryUI::RecoveryUI() in RecoveryUI() function in RecoveryUI
93 RecoveryUI::~RecoveryUI() { in ~RecoveryUI()
101 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected()
113 bool RecoveryUI::InitScreensaver() { in InitScreensaver()
161 bool RecoveryUI::Init(const std::string& /* locale */) { in Init()
162 ev_init(std::bind(&RecoveryUI::OnInputEvent, this, std::placeholders::_1, std::placeholders::_2), in Init()
165 ev_iterate_available_keys(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1)); in Init()
168 ev_iterate_touch_inputs(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1)); in Init()
215 void RecoveryUI::OnTouchDetected(int dx, int dy) { in OnTouchDetected()
262 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
[all …]
Ddevice.cpp53 Device::Device(RecoveryUI* ui) : ui_(ui) { in Device()
Dscreen_ui.cpp910 RecoveryUI::Init(locale); in Init()
/bootable/recovery/install/
Dwipe_data.cpp38 static bool EraseVolume(const char* volume, RecoveryUI* ui, std::string_view new_fstype) { in EraseVolume()
62 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm_func, in WipeCache()
75 ui->SetBackground(RecoveryUI::ERASING); in WipeCache()
76 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeCache()
84 RecoveryUI* ui = device->GetUI(); in WipeData()
86 ui->SetBackground(RecoveryUI::ERASING); in WipeData()
87 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeData()
Dadb_install.cpp117 std::bind(&RecoveryUI::SetProgress, ui, std::placeholders::_1)); in AdbInstallPackageHandler()
190 RecoveryUI* ui, pid_t minadbd_pid, android::base::unique_fd&& socket_fd, in ListenAndExecuteMinadbdCommands()
214 ui->SetProgressType(RecoveryUI::EMPTY); in ListenAndExecuteMinadbdCommands()
215 ui->SetBackground(RecoveryUI::NO_COMMAND); in ListenAndExecuteMinadbdCommands()
280 RecoveryUI* ui, const std::map<MinadbdCommand, CommandFunction>& command_map, in CreateMinadbdServiceAndExecuteCommands()
348 RecoveryUI* ui = device->GetUI(); in ApplyFromAdb()
Dwipe_device.cpp154 static bool CheckWipePackage(Package* wipe_package, RecoveryUI* ui) { in CheckWipePackage()
177 ui->SetBackground(RecoveryUI::ERASING); in WipeAbDevice()
178 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeAbDevice()
Dfuse_install.cpp58 static std::string BrowseDirectory(const std::string& path, Device* device, RecoveryUI* ui) { in BrowseDirectory()
99 if (chosen_item == static_cast<size_t>(RecoveryUI::KeyError::INTERRUPTED)) { in BrowseDirectory()
186 std::bind(&RecoveryUI::SetProgress, ui, std::placeholders::_1)); in InstallWithFuseFromPath()
Dsnapshot_utils.cpp34 RecoveryUI* ui = device->GetUI(); in FinishPendingSnapshotMerges()
Dinstall.cpp557 ui->SetBackground(RecoveryUI::NONE); in TryUpdateBinary()
610 ui->SetBackground(RecoveryUI::INSTALLING_UPDATE); in VerifyAndInstallPackage()
612 ui->SetProgressType(RecoveryUI::DETERMINATE); in VerifyAndInstallPackage()
724 bool verify_package(Package* package, RecoveryUI* ui) { in verify_package()
/bootable/recovery/
Drecovery.cpp125 static void FinishRecovery(RecoveryUI* ui) { in FinishRecovery()
202 if (chosen_item == static_cast<size_t>(RecoveryUI::KeyError::INTERRUPTED)) { in prompt_and_wipe_data()
261 if (chosen_item == static_cast<size_t>(RecoveryUI::KeyError::INTERRUPTED)) { in choose_recovery_file()
270 static void run_graphics_test(RecoveryUI* ui) { in run_graphics_test()
274 ui->SetProgressType(RecoveryUI::INDETERMINATE); in run_graphics_test()
275 ui->SetBackground(RecoveryUI::INSTALLING_UPDATE); in run_graphics_test()
278 ui->SetBackground(RecoveryUI::ERROR); in run_graphics_test()
281 ui->SetBackground(RecoveryUI::NO_COMMAND); in run_graphics_test()
284 ui->SetBackground(RecoveryUI::ERASING); in run_graphics_test()
289 ui->SetBackground(RecoveryUI::INSTALLING_UPDATE); in run_graphics_test()
[all …]
Drecovery_main.cpp66 static RecoveryUI* ui = nullptr;
199 static void ListenRecoverySocket(RecoveryUI* ui, std::atomic<Device::BuiltinAction>& action) { in ListenRecoverySocket()
455 ui->SetBackground(RecoveryUI::NONE); in main()
/bootable/recovery/recovery_ui/include/recovery_ui/
Ddevice.h28 class RecoveryUI; variable
68 explicit Device(RecoveryUI* ui);
72 virtual RecoveryUI* GetUI() { in GetUI()
78 virtual void ResetUI(RecoveryUI* ui) { in ResetUI()
152 std::unique_ptr<RecoveryUI> ui_;
Dui.h33 class RecoveryUI {
61 RecoveryUI();
63 virtual ~RecoveryUI();
Dstub_ui.h27 class StubRecoveryUI : public RecoveryUI {
Dscreen_ui.h194 class ScreenRecoveryUI : public RecoveryUI, public DrawInterface {
/bootable/recovery/fastboot/
Dfastboot.cpp67 RecoveryUI* ui = device->GetUI(); in StartFastboot()
100 if (chosen_item == static_cast<size_t>(RecoveryUI::KeyError::INTERRUPTED)) { in StartFastboot()
103 if (chosen_item == static_cast<size_t>(RecoveryUI::KeyError::TIMED_OUT)) { in StartFastboot()
/bootable/recovery/install/include/install/
Dwipe_data.h27 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm,
Dinstall.h58 bool verify_package(Package* package, RecoveryUI* ui);
/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp336 return static_cast<int>(RecoveryUI::KeyError::INTERRUPTED); in WaitKey()
466 ASSERT_EQ(static_cast<size_t>(RecoveryUI::KeyError::TIMED_OUT), in TEST_F()
501 ASSERT_EQ(static_cast<size_t>(RecoveryUI::KeyError::INTERRUPTED), in TEST_F()
514 ASSERT_EQ(static_cast<size_t>(RecoveryUI::KeyError::INTERRUPTED), in TEST_F()