Lines Matching refs:ui
39 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
106 ui->Print("\n-- Wiping data...\n"); in WipeData()
109 success &= EraseVolume(DATA_ROOT, ui, convert_fbe); in WipeData()
112 success &= EraseVolume(CACHE_ROOT, ui, false); in WipeData()
115 success &= EraseVolume(METADATA_ROOT, ui, false); in WipeData()
121 ui->Print("Data wipe %s.\n", success ? "complete" : "failed"); in WipeData()