Home
last modified time | relevance | path

Searched refs:ui (Results 1 – 17 of 17) sorted by relevance

/bootable/recovery/install/
Dwipe_data.cpp39 static bool EraseVolume(const char* volume, RecoveryUI* ui, bool convert_fbe) { in EraseVolume() argument
43 ui->SetBackground(RecoveryUI::ERASING); in EraseVolume()
44 ui->SetProgressType(RecoveryUI::INDETERMINATE); in EraseVolume()
53 ui->Print("Formatting %s...\n", volume); in EraseVolume()
87 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm_func) { in WipeCache() argument
90 ui->Print("No /cache partition found.\n"); in WipeCache()
98 ui->Print("\n-- Wiping cache...\n"); in WipeCache()
99 bool success = EraseVolume("/cache", ui, false); in WipeCache()
100 ui->Print("Cache wipe %s.\n", success ? "complete" : "failed"); in WipeCache()
105 RecoveryUI* ui = device->GetUI(); in WipeData() local
[all …]
Dadb_install.cpp93 static auto AdbInstallPackageHandler(RecoveryUI* ui, int* result) { in AdbInstallPackageHandler() argument
109 ui->Print("\nTimed out waiting for fuse to be ready.\n\n"); in AdbInstallPackageHandler()
113 *result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, false, false, 0, ui); in AdbInstallPackageHandler()
185 RecoveryUI* ui, pid_t minadbd_pid, android::base::unique_fd&& socket_fd, in ListenAndExecuteMinadbdCommands() argument
209 ui->SetProgressType(RecoveryUI::EMPTY); in ListenAndExecuteMinadbdCommands()
210 ui->SetBackground(RecoveryUI::NO_COMMAND); in ListenAndExecuteMinadbdCommands()
275 RecoveryUI* ui, const std::map<MinadbdCommand, CommandFunction>& command_map, in CreateMinadbdServiceAndExecuteCommands() argument
315 std::thread listener_thread(ListenAndExecuteMinadbdCommands, ui, child, in CreateMinadbdServiceAndExecuteCommands()
343 RecoveryUI* ui = device->GetUI(); in ApplyFromAdb() local
347 { MinadbdCommand::kInstall, std::bind(&AdbInstallPackageHandler, ui, &install_result) }, in ApplyFromAdb()
[all …]
Dinstall.cpp330 int* max_temperature, RecoveryUI* ui) { in try_update_binary() argument
442 ui->ShowProgress(fraction * (1 - VERIFICATION_PROGRESS_FRACTION), seconds); in try_update_binary()
450 ui->SetProgress(fraction); in try_update_binary()
455 ui->PrintOnScreenOnly("%s\n", args.c_str()); in try_update_binary()
460 ui->SetBackground(RecoveryUI::NONE); in try_update_binary()
465 ui->SetEnableReboot(true); in try_update_binary()
576 int* max_temperature, RecoveryUI* ui) { in really_install_package() argument
577 ui->SetBackground(RecoveryUI::INSTALLING_UPDATE); in really_install_package()
578 ui->Print("Finding update package...\n"); in really_install_package()
580 ui->SetProgressType(RecoveryUI::DETERMINATE); in really_install_package()
[all …]
Dfuse_sdcard_install.cpp57 static std::string BrowseDirectory(const std::string& path, Device* device, RecoveryUI* ui) { in BrowseDirectory() argument
92 chosen_item = ui->ShowMenu( in BrowseDirectory()
111 std::string result = BrowseDirectory(new_path, device, ui); in BrowseDirectory()
136 int ApplyFromSdcard(Device* device, RecoveryUI* ui) { in ApplyFromSdcard() argument
142 std::string path = BrowseDirectory(SDCARD_ROOT, device, ui); in ApplyFromSdcard()
149 ui->Print("\n-- Install %s ...\n", path.c_str()); in ApplyFromSdcard()
187 result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, false, false, 0 /*retry_count*/, ui); in ApplyFromSdcard()
/bootable/recovery/
Drecovery.cpp135 std::string locale = ui->GetLocale(); in finish_recovery()
170 size_t chosen_item = ui->ShowMenu( in yes_no()
180 size_t chosen_item = ui->ShowPromptWipeDataConfirmationMenu( in ask_to_wipe_data()
202 size_t chosen_item = ui->ShowPromptWipeDataMenu( in prompt_and_wipe_data()
287 if (!verify_package(wipe_package, ui)) { in CheckWipePackage()
356 ui->SetBackground(RecoveryUI::ERASING); in wipe_ab_device()
357 ui->SetProgressType(RecoveryUI::INDETERMINATE); in wipe_ab_device()
419 chosen_item = ui->ShowMenu( in choose_recovery_file()
429 ui->ShowFile(entries[chosen_item]); in choose_recovery_file()
435 ui->ShowText(false); in run_graphics_test()
[all …]
Drecovery_main.cpp70 RecoveryUI* ui = nullptr; variable
77 if (severity >= android::base::ERROR && ui != nullptr) { in UiLogger()
78 ui->Print("E:%s\n", message); in UiLogger()
189 static void ListenRecoverySocket(RecoveryUI* ui, std::atomic<Device::BuiltinAction>& action) { in ListenRecoverySocket() argument
223 ui->InterruptKey(); in ListenRecoverySocket()
418 ui = device->GetUI(); in main()
432 ui->SetBackground(RecoveryUI::NONE); in main()
433 if (show_text) ui->ShowText(true); in main()
441 ui->Print("Warning: No file_contexts\n"); in main()
447 std::thread listener_thread(ListenRecoverySocket, ui, std::ref(action)); in main()
[all …]
Dcommon.h29 extern RecoveryUI* ui;
/bootable/recovery/fastboot/
Dfastboot.cpp40 RecoveryUI* ui = device->GetUI(); in StartFastboot() local
52 ui->ResetKeyInterruptStatus(); in StartFastboot()
53 ui->SetTitle(title_lines); in StartFastboot()
54 ui->ShowText(true); in StartFastboot()
70 auto chosen_item = ui->ShowMenu( in StartFastboot()
/bootable/recovery/recovery_ui/include/recovery_ui/
Ddevice.h63 explicit Device(RecoveryUI* ui);
73 virtual void ResetUI(RecoveryUI* ui) { in ResetUI() argument
74 ui_.reset(ui); in ResetUI()
/bootable/recovery/install/include/install/
Dinstall.h51 int retry_count, RecoveryUI* ui);
55 bool verify_package(Package* package, RecoveryUI* ui);
Dfuse_sdcard_install.h22 int ApplyFromSdcard(Device* device, RecoveryUI* ui);
Dwipe_data.h27 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm);
/bootable/recovery/recovery_ui/
Ddevice.cpp52 Device::Device(RecoveryUI* ui) : ui_(ui) { in Device() argument
DAndroid.bp26 "ui.cpp",
/bootable/recovery/updater/
Dinstall.cpp69 UpdaterInfo* ui = static_cast<UpdaterInfo*>(state->cookie); in uiPrint() local
76 fprintf(ui->cmd_pipe, "ui_print %s\n", line.c_str()); in uiPrint()
534 UpdaterInfo* ui = static_cast<UpdaterInfo*>(state->cookie); in ShowProgressFn() local
535 fprintf(ui->cmd_pipe, "progress %f %d\n", frac, sec); in ShowProgressFn()
558 UpdaterInfo* ui = static_cast<UpdaterInfo*>(state->cookie); in SetProgressFn() local
559 fprintf(ui->cmd_pipe, "set_progress %f\n", frac); in SetProgressFn()
886 UpdaterInfo* ui = static_cast<UpdaterInfo*>(state->cookie); in EnableRebootFn() local
887 fprintf(ui->cmd_pipe, "enable_reboot\n"); in EnableRebootFn()
Dblockimg.cpp1671 UpdaterInfo* ui = static_cast<UpdaterInfo*>(state->cookie); in PerformBlockImageUpdate() local
1672 if (ui == nullptr) { in PerformBlockImageUpdate()
1676 FILE* cmd_pipe = ui->cmd_pipe; in PerformBlockImageUpdate()
1677 ZipArchiveHandle za = ui->package_zip; in PerformBlockImageUpdate()
1690 params.patch_start = ui->package_zip_addr + patch_entry.offset; in PerformBlockImageUpdate()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/
DMainActivity.java17 package com.example.android.systemupdatersample.ui;