Lines Matching refs:ui

38 static bool EraseVolume(const char* volume, RecoveryUI* ui, std::string_view new_fstype) {  in EraseVolume()  argument
49 ui->Print("Formatting %s...\n", volume); in EraseVolume()
62 bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm_func, in WipeCache() argument
66 ui->Print("No /cache partition found.\n"); in WipeCache()
74 ui->Print("\n-- Wiping cache...\n"); in WipeCache()
75 ui->SetBackground(RecoveryUI::ERASING); in WipeCache()
76 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeCache()
78 bool success = EraseVolume("/cache", ui, new_fstype); in WipeCache()
79 ui->Print("Cache wipe %s.\n", success ? "complete" : "failed"); in WipeCache()
84 RecoveryUI* ui = device->GetUI(); in WipeData() local
85 ui->Print("\n-- Wiping data %.*s...\n", static_cast<int>(data_fstype.size()), data_fstype.data()); in WipeData()
86 ui->SetBackground(RecoveryUI::ERASING); in WipeData()
87 ui->SetProgressType(RecoveryUI::INDETERMINATE); in WipeData()
90 ui->Print("Unable to check update status or complete merge, cannot wipe partitions.\n"); in WipeData()
96 success &= EraseVolume(DATA_ROOT, ui, data_fstype); in WipeData()
99 success &= EraseVolume(CACHE_ROOT, ui, data_fstype); in WipeData()
102 success &= EraseVolume(METADATA_ROOT, ui, data_fstype); in WipeData()
106 ui->Print("NOT resetting memtag message as per request...\n"); in WipeData()
108 ui->Print("Resetting memtag message...\n"); in WipeData()
111 ui->Print("Failed to reset memtag message: %s\n", err.c_str()); in WipeData()
118 ui->Print("Data wipe %s.\n", success ? "complete" : "failed"); in WipeData()