Lines Matching refs:error_msg

143                           std::string* error_msg) {  in GenerateImage()  argument
148 *error_msg = "Failed to generate image because no boot class path specified"; in GenerateImage()
195 return Exec(arg_vector, error_msg); in GenerateImage()
228 std::string error_msg; in FindImageFilename() local
229 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) { in FindImageFilename()
230 LOG(WARNING) << error_msg; in FindImageFilename()
252 InstructionSet isa, std::string* error_msg) { in RelocateImage() argument
294 return Exec(argv, error_msg); in RelocateImage()
297 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { in ReadSpecificImageHeader() argument
300 *error_msg = StringPrintf("Unable to read image header for %s", filename); in ReadSpecificImageHeader()
308 std::string error_msg; in ReadImageHeaderOrDie() local
309 ImageHeader* image_header = ReadImageHeader(image_location, image_isa, &error_msg); in ReadImageHeaderOrDie()
311 LOG(FATAL) << error_msg; in ReadImageHeaderOrDie()
318 std::string* error_msg) { in ReadImageHeader() argument
332 *error_msg = StringPrintf("Unable to read image header for %s at %s", in ReadImageHeader()
337 *error_msg = StringPrintf("Unable to read image header for %s at %s", in ReadImageHeader()
342 *error_msg = StringPrintf("Unable to find a relocated version of image file %s", in ReadImageHeader()
348 *error_msg = StringPrintf("Unable to find a relocated version of image file %s", in ReadImageHeader()
353 return ReadSpecificImageHeader(cache_filename.c_str(), error_msg); in ReadImageHeader()
360 error_msg)); in ReadImageHeader()
362 error_msg)); in ReadImageHeader()
370 return ReadSpecificImageHeader(system_filename.c_str(), error_msg); in ReadImageHeader()
372 return ReadSpecificImageHeader(cache_filename.c_str(), error_msg); in ReadImageHeader()
377 *error_msg = StringPrintf("Unable to find image file for %s", image_location); in ReadImageHeader()
388 static bool ImageCreationAllowed(bool is_global_cache, std::string* error_msg) { in ImageCreationAllowed() argument
399 *error_msg = "Only the zygote can create the global boot image."; in ImageCreationAllowed()
408 static bool CheckSpace(const std::string& cache_filename, std::string* error_msg) { in CheckSpace() argument
415 *error_msg = "Could not stat the filesystem, assuming low-memory situation."; in CheckSpace()
428 *error_msg = StringPrintf("Low-memory situation: only %4.2f megabytes available after image" in CheckSpace()
440 std::string* error_msg) { in Create() argument
464 *error_msg = StringPrintf("Requiring relocation for image '%s' at '%s' but we do not have " in Create()
496 *error_msg = StringPrintf("Unable to relocate image '%s' from '%s' to '%s': %s", in Create()
536 image_lock.Init(image_filename->c_str(), error_msg); in Create()
544 !(is_system || relocated_version_used), error_msg); in Create()
554 *error_msg = StringPrintf("Attempted to use relocated version of %s at %s generated from %s " in Create()
557 error_msg->c_str()); in Create()
562 *error_msg = StringPrintf("Failed to load /system image '%s': %s", in Create()
563 image_filename->c_str(), error_msg->c_str()); in Create()
567 LOG(WARNING) << *error_msg; in Create()
572 *error_msg = "Not attempting to compile image because -Xnoimage-dex2oat"; in Create()
575 *error_msg = StringPrintf("No place to put generated image."); in Create()
577 } else if (!ImageCreationAllowed(is_global_cache, error_msg)) { in Create()
579 } else if (!GenerateImage(cache_filename, image_isa, error_msg)) { in Create()
580 *error_msg = StringPrintf("Failed to generate image '%s': %s", in Create()
581 cache_filename.c_str(), error_msg->c_str()); in Create()
590 if (!CheckSpace(cache_filename, error_msg)) { in Create()
601 image_lock.Init(cache_filename.c_str(), error_msg); in Create()
602 space = ImageSpace::Init(cache_filename.c_str(), image_location, true, error_msg); in Create()
604 *error_msg = StringPrintf("Failed to load generated image '%s': %s", in Create()
605 cache_filename.c_str(), error_msg->c_str()); in Create()
626 bool validate_oat_file, std::string* error_msg) { in Init() argument
638 *error_msg = StringPrintf("Failed to open '%s'", image_filename); in Init()
644 *error_msg = StringPrintf("Invalid image header in '%s'", image_filename); in Init()
657 error_msg)); in Init()
659 DCHECK(!error_msg->empty()); in Init()
671 error_msg)); in Init()
673 *error_msg = StringPrintf("Failed to map image bitmap: %s", error_msg->c_str()); in Init()
684 *error_msg = StringPrintf("Could not create bitmap '%s'", bitmap_name.c_str()); in Init()
697 space->oat_file_.reset(space->OpenOatFile(image_filename, error_msg)); in Init()
699 DCHECK(!error_msg->empty()); in Init()
703 if (validate_oat_file && !space->ValidateOatFile(error_msg)) { in Init()
704 DCHECK(!error_msg->empty()); in Init()
738 OatFile* ImageSpace::OpenOatFile(const char* image_path, std::string* error_msg) const { in OpenOatFile()
746 !Runtime::Current()->IsCompiler(), error_msg); in OpenOatFile()
748 *error_msg = StringPrintf("Failed to open oat file '%s' referenced from image %s: %s", in OpenOatFile()
749 oat_filename.c_str(), GetName(), error_msg->c_str()); in OpenOatFile()
755 *error_msg = StringPrintf("Failed to match oat file checksum 0x%x to expected oat checksum 0x%x" in OpenOatFile()
763 *error_msg = StringPrintf("Failed to match oat file patch delta %d to expected patch delta %d " in OpenOatFile()
771 bool ImageSpace::ValidateOatFile(std::string* error_msg) const { in ValidateOatFile()
776 if (!DexFile::GetChecksum(dex_file_location.c_str(), &dex_file_location_checksum, error_msg)) { in ValidateOatFile()
777 *error_msg = StringPrintf("Failed to get checksum of dex file '%s' referenced by image %s: " in ValidateOatFile()
778 "%s", dex_file_location.c_str(), GetName(), error_msg->c_str()); in ValidateOatFile()
782 *error_msg = StringPrintf("ValidateOatFile found checksum mismatch between oat file '%s' and " in ValidateOatFile()