Lines Matching refs:ui
45 #include "ui.h"
85 RecoveryUI* ui = NULL;
423 ui->SetBackground(RecoveryUI::ERASING);
424 ui->SetProgressType(RecoveryUI::INDETERMINATE);
473 ui->Print("Formatting %s...\n", volume);
509 ui->FlushKeys();
511 ui->StartMenu(headers, items, initial_selection);
516 int key = ui->WaitKey();
517 int visible = ui->IsTextVisible();
520 if (ui->WasTextEverVisible()) {
524 ui->EndMenu();
534 selected = ui->SelectMenu(--selected);
537 selected = ui->SelectMenu(++selected);
550 ui->EndMenu();
674 ui->Print("\n-- Wiping data...\n");
680 ui->Print("Data wipe %s.\n", success ? "complete" : "failed");
692 ui->Print("\n-- Wiping cache...\n");
694 ui->Print("Cache wipe %s.\n", success ? "complete" : "failed");
741 ui->ShowFile(entries[chosen_item]);
754 ui->Print("\n-- Couldn't mount %s.\n", SDCARD_ROOT);
760 ui->Print("\n-- No package file selected.\n");
764 ui->Print("\n-- Install %s ...\n", path);
786 ui->SetBackground(RecoveryUI::NO_COMMAND);
791 ui->SetBackground(RecoveryUI::ERROR);
794 ui->SetProgressType(RecoveryUI::EMPTY);
814 wipe_data(ui->IsTextVisible(), device);
815 if (!ui->IsTextVisible()) return Device::NO_ACTION;
819 wipe_cache(ui->IsTextVisible(), device);
820 if (!ui->IsTextVisible()) return Device::NO_ACTION;
828 status = apply_from_adb(ui, &should_wipe_cache, TEMPORARY_INSTALL_FILE);
840 ui->SetBackground(RecoveryUI::ERROR);
841 ui->Print("Installation aborted.\n");
843 } else if (!ui->IsTextVisible()) {
846 ui->Print("\nInstall from %s complete.\n", adb ? "ADB" : "SD card");
857 ui->Print("Mounted /system.\n");
975 ui = device->GetUI();
976 gCurrentUI = ui;
978 ui->SetLocale(locale);
979 ui->Init();
983 ui->SetStage(st_cur, st_max);
986 ui->SetBackground(RecoveryUI::NONE);
987 if (show_text) ui->ShowText(true);
996 ui->Print("Warning: No file_contexts\n");
1026 ui->Print("Supported API: %d\n", RECOVERY_API_VERSION);
1036 ui->Print("Installation aborted.\n");
1042 ui->ShowText(true);
1061 ui->ShowText(true);
1063 status = apply_from_adb(ui, &should_wipe_cache, TEMPORARY_INSTALL_FILE);
1069 ui->Print("\nInstall from ADB complete (status: %d).\n", status);
1071 ui->Print("Rebooting automatically.\n");
1075 ui->SetBackground(RecoveryUI::NO_COMMAND);
1081 ui->ShowText(true);
1087 ui->SetBackground(RecoveryUI::ERROR);
1091 if ((status != INSTALL_SUCCESS && !sideload_auto_reboot) || ui->IsTextVisible()) {
1103 ui->Print("Shutting down...\n");
1108 ui->Print("Rebooting to bootloader...\n");
1113 ui->Print("Rebooting...\n");