Lines Matching refs:filename
816 std::unique_ptr<GRSurface> ScreenRecoveryUI::LoadBitmap(const std::string& filename) { in LoadBitmap() argument
818 if (auto result = res_create_display_surface(filename.c_str(), &surface); result < 0) { in LoadBitmap()
819 LOG(ERROR) << "Failed to load bitmap " << filename << " (error " << result << ")"; in LoadBitmap()
825 std::unique_ptr<GRSurface> ScreenRecoveryUI::LoadLocalizedBitmap(const std::string& filename) { in LoadLocalizedBitmap() argument
827 auto result = res_create_localized_alpha_surface(filename.c_str(), locale_.c_str(), &surface); in LoadLocalizedBitmap()
832 LOG(WARNING) << "Failed to load bitmap " << filename << " for locale " << locale_ << " (error " in LoadLocalizedBitmap()
835 result = res_create_localized_alpha_surface(filename.c_str(), DEFAULT_LOCALE, &surface); in LoadLocalizedBitmap()
840 LOG(ERROR) << "Failed to load bitmap " << filename << " for locale " << DEFAULT_LOCALE in LoadLocalizedBitmap()
1156 void ScreenRecoveryUI::ShowFile(const std::string& filename) { in ShowFile() argument
1157 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(filename.c_str(), "re"), fclose); in ShowFile()
1159 Print(" Unable to open %s: %s\n", filename.c_str(), strerror(errno)); in ShowFile()