Home
last modified time | relevance | path

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

/bootable/recovery/recovery_ui/
Dui.cpp59 RecoveryUI::RecoveryUI() in RecoveryUI() function in RecoveryUI
87 RecoveryUI::~RecoveryUI() { in ~RecoveryUI()
95 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected()
107 bool RecoveryUI::InitScreensaver() { in InitScreensaver()
155 bool RecoveryUI::Init(const std::string& /* locale */) { in Init()
156 ev_init(std::bind(&RecoveryUI::OnInputEvent, this, std::placeholders::_1, std::placeholders::_2), in Init()
159 ev_iterate_available_keys(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1)); in Init()
162 ev_iterate_touch_inputs(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1)); in Init()
194 void RecoveryUI::OnTouchDetected(int dx, int dy) { in OnTouchDetected()
236 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
[all …]
Ddevice.cpp53 Device::Device(RecoveryUI* ui) : ui_(ui) { in Device()
Dscreen_ui.cpp904 RecoveryUI::Init(locale); in Init()
/bootable/recovery/install/
Dwipe_data.cpp40 static bool EraseVolume(const char* volume, RecoveryUI* ui, bool convert_fbe) { in EraseVolume()
85 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm_func) { in WipeCache()
97 ui->SetBackground(RecoveryUI::ERASING); in WipeCache()
98 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeCache()
106 RecoveryUI* ui = device->GetUI(); in WipeData()
108 ui->SetBackground(RecoveryUI::ERASING); in WipeData()
109 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeData()
Dadb_install.cpp93 static auto AdbInstallPackageHandler(RecoveryUI* ui, InstallResult* result) { in AdbInstallPackageHandler()
116 std::bind(&RecoveryUI::SetProgress, ui, std::placeholders::_1)); in AdbInstallPackageHandler()
189 RecoveryUI* ui, pid_t minadbd_pid, android::base::unique_fd&& socket_fd, in ListenAndExecuteMinadbdCommands()
213 ui->SetProgressType(RecoveryUI::EMPTY); in ListenAndExecuteMinadbdCommands()
214 ui->SetBackground(RecoveryUI::NO_COMMAND); in ListenAndExecuteMinadbdCommands()
279 RecoveryUI* ui, const std::map<MinadbdCommand, CommandFunction>& command_map, in CreateMinadbdServiceAndExecuteCommands()
347 RecoveryUI* ui = device->GetUI(); in ApplyFromAdb()
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()
149 InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui) { in InstallWithFuseFromPath()
185 std::bind(&RecoveryUI::SetProgress, ui, std::placeholders::_1)); in InstallWithFuseFromPath()
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()
Dinstall.cpp338 int* max_temperature, RecoveryUI* ui) { in TryUpdateBinary()
491 ui->SetBackground(RecoveryUI::NONE); in TryUpdateBinary()
539 int* max_temperature, RecoveryUI* ui) { in VerifyAndInstallPackage()
540 ui->SetBackground(RecoveryUI::INSTALLING_UPDATE); in VerifyAndInstallPackage()
542 ui->SetProgressType(RecoveryUI::DETERMINATE); in VerifyAndInstallPackage()
565 bool should_wipe_cache, int retry_count, RecoveryUI* ui) { in InstallPackage()
652 bool verify_package(Package* package, RecoveryUI* ui) { in verify_package()
Dsnapshot_utils.cpp34 RecoveryUI* ui = device->GetUI(); in FinishPendingSnapshotMerges()
/bootable/recovery/
Drecovery.cpp129 static void FinishRecovery(RecoveryUI* ui) { in FinishRecovery()
201 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;
195 static void ListenRecoverySocket(RecoveryUI* ui, std::atomic<Device::BuiltinAction>& action) { in ListenRecoverySocket()
451 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.cpp40 RecoveryUI* ui = device->GetUI(); in StartFastboot()
75 if (chosen_item == static_cast<size_t>(RecoveryUI::KeyError::INTERRUPTED)) { in StartFastboot()
78 if (chosen_item == static_cast<size_t>(RecoveryUI::KeyError::TIMED_OUT)) { in StartFastboot()
/bootable/recovery/install/include/install/
Dinstall.h52 bool should_wipe_cache, int retry_count, RecoveryUI* ui);
56 bool verify_package(Package* package, RecoveryUI* ui);
Dwipe_data.h27 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm);
Dfuse_install.h28 InstallResult InstallWithFuseFromPath(std::string_view path, 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()