Lines Matching refs:error_msg

133   std::string error_msg;  in OatFileAssistant()  local
135 if (DexLocationToOdexFilename(dex_location_, isa_, &odex_file_name, &error_msg)) { in OatFileAssistant()
145 LOG(WARNING) << "Failed to determine odex file name: " << error_msg; in OatFileAssistant()
151 if (DexLocationToOatFilename(dex_location_, isa_, &oat_file_name, &error_msg)) { in OatFileAssistant()
157 << dex_location_ << ": " << error_msg; in OatFileAssistant()
284 std::string error_msg; in LoadDexFiles() local
286 dex_location.c_str(), nullptr, &error_msg); in LoadDexFiles()
288 LOG(WARNING) << error_msg; in LoadDexFiles()
292 std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error_msg); in LoadDexFiles()
294 LOG(WARNING) << "Failed to open dex file from oat dex file: " << error_msg; in LoadDexFiles()
308 dex_file = oat_dex_file->OpenDexFile(&error_msg); in LoadDexFiles()
310 LOG(WARNING) << "Failed to open dex file from oat dex file: " << error_msg; in LoadDexFiles()
335 bool OatFileAssistant::DexChecksumUpToDate(const VdexFile& file, std::string* error_msg) { in DexChecksumUpToDate() argument
345 *error_msg = StringPrintf("expected %zu dex files but found %u", in DexChecksumUpToDate()
356 *error_msg = StringPrintf("Dex checksum does not match for dex: %s." in DexChecksumUpToDate()
368 bool OatFileAssistant::DexChecksumUpToDate(const OatFile& file, std::string* error_msg) { in DexChecksumUpToDate() argument
378 *error_msg = StringPrintf("expected %zu dex files but found %u", in DexChecksumUpToDate()
389 *error_msg = StringPrintf("failed to find %s in %s", dex.c_str(), file.GetLocation().c_str()); in DexChecksumUpToDate()
429 std::string error_msg; in GivenOatFileStatus() local
431 if (!DexChecksumUpToDate(*vdex, &error_msg)) { in GivenOatFileStatus()
432 LOG(ERROR) << error_msg; in GivenOatFileStatus()
492 std::string error_msg; in AnonymousDexVdexLocation() local
493 if (!DexLocationToOdexFilename(*dex_location, isa, &odex_filename, &error_msg)) { in AnonymousDexVdexLocation()
494 LOG(WARNING) << "Could not get odex filename for " << *dex_location << ": " << error_msg; in AnonymousDexVdexLocation()
522 std::string* error_msg) { in DexLocationToOdexFilename() argument
524 CHECK(error_msg != nullptr); in DexLocationToOdexFilename()
535 *error_msg = "Dex location " + location + " has no directory."; in DexLocationToOdexFilename()
549 *error_msg = "Dex location " + location + " has no extension."; in DexLocationToOdexFilename()
561 std::string* error_msg) { in DexLocationToOatFilename() argument
563 CHECK(error_msg != nullptr); in DexLocationToOatFilename()
579 if (GetAndroidDataSafe(error_msg).empty()) { in DexLocationToOatFilename()
580 *error_msg = "GetAndroidDataSafe failed: " + *error_msg; in DexLocationToOatFilename()
595 *error_msg = "Dalvik cache directory does not exist"; in DexLocationToOatFilename()
602 return GetDalvikCacheFilename(location.c_str(), dalvik_cache.c_str(), oat_filename, error_msg); in DexLocationToOatFilename()
610 std::string error_msg; in GetRequiredDexChecksums() local
616 &error_msg, in GetRequiredDexChecksums()
625 VLOG(oat) << "Could not get required checksum: " << error_msg; in GetRequiredDexChecksums()
648 std::string error_msg; in ValidateBootClassPathChecksums() local
664 &error_msg); in ValidateBootClassPathChecksums()
668 << " error: " << error_msg; in ValidateBootClassPathChecksums()
735 std::string error_msg; in OpenImageSpace() local
738 gc::space::ImageSpace::CreateFromAppImage(art_file.c_str(), oat_file, &error_msg); in OpenImageSpace()
740 LOG(INFO) << "Failed to open app image " << art_file.c_str() << " " << error_msg; in OpenImageSpace()
826 std::string error_msg; in GetFile() local
837 error_msg = StringPrintf("Failed getting length of the vdex file %s.", strerror(errno)); in GetFile()
845 &error_msg); in GetFile()
853 &error_msg); in GetFile()
856 VLOG(oat) << "unable to open vdex file " << filename_ << ": " << error_msg; in GetFile()
861 &error_msg)); in GetFile()
880 &error_msg)); in GetFile()
889 &error_msg)); in GetFile()
895 << ": " << error_msg; in GetFile()