/bootable/recovery/recovery_ui/ |
D | ui.cpp | 55 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 …]
|
D | device.cpp | 53 Device::Device(RecoveryUI* ui) : ui_(ui) { in Device()
|
D | screen_ui.cpp | 883 RecoveryUI::Init(locale); in Init()
|
/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | device.h | 28 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_;
|
D | ui.h | 33 class RecoveryUI { 61 RecoveryUI(); 63 virtual ~RecoveryUI();
|
D | stub_ui.h | 27 class StubRecoveryUI : public RecoveryUI {
|
D | screen_ui.h | 194 class ScreenRecoveryUI : public RecoveryUI, public DrawInterface {
|
/bootable/recovery/install/ |
D | wipe_data.cpp | 40 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()
|
D | adb_install.cpp | 93 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()
|
D | fuse_install.cpp | 58 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()
|
D | wipe_device.cpp | 149 static bool CheckWipePackage(Package* wipe_package, RecoveryUI* ui) { in CheckWipePackage() 172 ui->SetBackground(RecoveryUI::ERASING); in WipeAbDevice() 173 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeAbDevice()
|
D | snapshot_utils.cpp | 34 RecoveryUI* ui = device->GetUI(); in FinishPendingSnapshotMerges()
|
D | install.cpp | 326 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/ |
D | recovery.cpp | 129 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 …]
|
D | recovery_main.cpp | 66 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/ |
D | fastboot.cpp | 40 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/ |
D | install.h | 52 bool should_wipe_cache, int retry_count, RecoveryUI* ui); 56 bool verify_package(Package* package, RecoveryUI* ui);
|
D | wipe_data.h | 27 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm);
|
D | fuse_install.h | 28 InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui);
|
/bootable/recovery/tests/unit/ |
D | screen_ui_test.cpp | 336 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()
|