Home
last modified time | relevance | path

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

/bootable/recovery/recovery_ui/
Dui.cpp55 RecoveryUI::RecoveryUI() in RecoveryUI() function in RecoveryUI
83 RecoveryUI::~RecoveryUI() { in ~RecoveryUI()
91 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected()
103 bool RecoveryUI::InitScreensaver() { in InitScreensaver()
142 bool RecoveryUI::Init(const std::string& /* locale */) { in Init()
143 ev_init(std::bind(&RecoveryUI::OnInputEvent, this, std::placeholders::_1, std::placeholders::_2), in Init()
146 ev_iterate_available_keys(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1)); in Init()
149 ev_iterate_touch_inputs(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1)); in Init()
181 void RecoveryUI::OnTouchDetected(int dx, int dy) { in OnTouchDetected()
223 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
[all …]
Ddevice.cpp53 Device::Device(RecoveryUI* ui) : ui_(ui) { in Device()
Dscreen_ui.cpp883 RecoveryUI::Init(locale); in Init()
/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/install/
Dwipe_data.cpp40 static bool EraseVolume(const char* volume, RecoveryUI* ui, bool convert_fbe) { in EraseVolume()
44 ui->SetBackground(RecoveryUI::ERASING); in EraseVolume()
45 ui->SetProgressType(RecoveryUI::INDETERMINATE); in EraseVolume()
88 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm_func) { in WipeCache()
106 RecoveryUI* ui = device->GetUI(); 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.cpp149 static bool CheckWipePackage(Package* wipe_package, RecoveryUI* ui) { in CheckWipePackage()
172 ui->SetBackground(RecoveryUI::ERASING); in WipeAbDevice()
173 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeAbDevice()
Dsnapshot_utils.cpp34 RecoveryUI* ui = device->GetUI(); in FinishPendingSnapshotMerges()
Dinstall.cpp326 int* max_temperature, RecoveryUI* ui) { in TryUpdateBinary()
473 ui->SetBackground(RecoveryUI::NONE); in TryUpdateBinary()
521 int* max_temperature, RecoveryUI* ui) { in VerifyAndInstallPackage()
522 ui->SetBackground(RecoveryUI::INSTALLING_UPDATE); in VerifyAndInstallPackage()
524 ui->SetProgressType(RecoveryUI::DETERMINATE); in VerifyAndInstallPackage()
547 bool should_wipe_cache, int retry_count, RecoveryUI* ui) { in InstallPackage()
634 bool verify_package(Package* package, RecoveryUI* ui) { in verify_package()
/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/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()