Lines Matching refs:error_msg
176 std::string* error_msg) { in GenerateImage() argument
181 *error_msg = "Failed to generate image because no boot class path specified"; in GenerateImage()
231 return Exec(arg_vector, error_msg); in GenerateImage()
264 std::string error_msg; in FindImageFilename() local
265 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) { in FindImageFilename()
266 LOG(WARNING) << error_msg; in FindImageFilename()
288 InstructionSet isa, std::string* error_msg) { in RelocateImage() argument
330 return Exec(argv, error_msg); in RelocateImage()
333 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { in ReadSpecificImageHeader() argument
336 *error_msg = StringPrintf("Unable to read image header for %s", filename); in ReadSpecificImageHeader()
344 std::string error_msg; in ReadImageHeaderOrDie() local
345 ImageHeader* image_header = ReadImageHeader(image_location, image_isa, &error_msg); in ReadImageHeaderOrDie()
347 LOG(FATAL) << error_msg; in ReadImageHeaderOrDie()
354 std::string* error_msg) { in ReadImageHeader() argument
368 *error_msg = StringPrintf("Unable to read image header for %s at %s", in ReadImageHeader()
373 *error_msg = StringPrintf("Unable to read image header for %s at %s", in ReadImageHeader()
378 *error_msg = StringPrintf("Unable to find a relocated version of image file %s", in ReadImageHeader()
384 *error_msg = StringPrintf("Unable to find a relocated version of image file %s", in ReadImageHeader()
389 return ReadSpecificImageHeader(cache_filename.c_str(), error_msg); in ReadImageHeader()
396 error_msg)); in ReadImageHeader()
398 error_msg)); in ReadImageHeader()
406 return ReadSpecificImageHeader(system_filename.c_str(), error_msg); in ReadImageHeader()
408 return ReadSpecificImageHeader(cache_filename.c_str(), error_msg); in ReadImageHeader()
413 *error_msg = StringPrintf("Unable to find image file for %s", image_location); in ReadImageHeader()
424 static bool ImageCreationAllowed(bool is_global_cache, std::string* error_msg) { in ImageCreationAllowed() argument
435 *error_msg = "Only the zygote can create the global boot image."; in ImageCreationAllowed()
444 static bool CheckSpace(const std::string& cache_filename, std::string* error_msg) { in CheckSpace() argument
451 *error_msg = "Could not stat the filesystem, assuming low-memory situation."; in CheckSpace()
464 *error_msg = StringPrintf("Low-memory situation: only %4.2f megabytes available after image" in CheckSpace()
476 std::string* error_msg) { in Create() argument
500 *error_msg = StringPrintf("Requiring relocation for image '%s' at '%s' but we do not have " in Create()
532 *error_msg = StringPrintf("Unable to relocate image '%s' from '%s' to '%s': %s", in Create()
572 image_lock.Init(image_filename->c_str(), error_msg); in Create()
580 !(is_system || relocated_version_used), error_msg); in Create()
590 *error_msg = StringPrintf("Attempted to use relocated version of %s at %s generated from %s " in Create()
593 error_msg->c_str()); in Create()
598 *error_msg = StringPrintf("Failed to load /system image '%s': %s", in Create()
599 image_filename->c_str(), error_msg->c_str()); in Create()
603 LOG(WARNING) << *error_msg; in Create()
608 *error_msg = "Not attempting to compile image because -Xnoimage-dex2oat"; in Create()
611 *error_msg = StringPrintf("No place to put generated image."); in Create()
613 } else if (!ImageCreationAllowed(is_global_cache, error_msg)) { in Create()
615 } else if (!GenerateImage(cache_filename, image_isa, error_msg)) { in Create()
616 *error_msg = StringPrintf("Failed to generate image '%s': %s", in Create()
617 cache_filename.c_str(), error_msg->c_str()); in Create()
626 if (!CheckSpace(cache_filename, error_msg)) { in Create()
637 image_lock.Init(cache_filename.c_str(), error_msg); in Create()
638 space = ImageSpace::Init(cache_filename.c_str(), image_location, true, error_msg); in Create()
640 *error_msg = StringPrintf("Failed to load generated image '%s': %s", in Create()
641 cache_filename.c_str(), error_msg->c_str()); in Create()
662 bool validate_oat_file, std::string* error_msg) { in Init() argument
674 *error_msg = StringPrintf("Failed to open '%s'", image_filename); in Init()
680 *error_msg = StringPrintf("Invalid image header in '%s'", image_filename); in Init()
686 *error_msg = StringPrintf("Image file too small for image heap: %" PRIu64 " vs. %zu.", in Init()
705 *error_msg = StringPrintf( in Init()
714 PROT_READ | PROT_WRITE, MAP_PRIVATE, file->Fd(), 0, false, image_filename, error_msg)); in Init()
716 DCHECK(!error_msg->empty()); in Init()
724 bitmap_section.Offset(), false, image_filename, error_msg)); in Init()
726 *error_msg = StringPrintf("Failed to map image bitmap: %s", error_msg->c_str()); in Init()
737 *error_msg = StringPrintf("Could not create bitmap '%s'", bitmap_name.c_str()); in Init()
753 space->oat_file_.reset(space->OpenOatFile(image_filename, error_msg)); in Init()
755 DCHECK(!error_msg->empty()); in Init()
760 if (validate_oat_file && !space->ValidateOatFile(error_msg)) { in Init()
761 DCHECK(!error_msg->empty()); in Init()
786 OatFile* ImageSpace::OpenOatFile(const char* image_path, std::string* error_msg) const { in OpenOatFile()
795 nullptr, error_msg); in OpenOatFile()
797 *error_msg = StringPrintf("Failed to open oat file '%s' referenced from image %s: %s", in OpenOatFile()
798 oat_filename.c_str(), GetName(), error_msg->c_str()); in OpenOatFile()
804 *error_msg = StringPrintf("Failed to match oat file checksum 0x%x to expected oat checksum 0x%x" in OpenOatFile()
812 *error_msg = StringPrintf("Failed to match oat file patch delta %d to expected patch delta %d " in OpenOatFile()
820 bool ImageSpace::ValidateOatFile(std::string* error_msg) const { in ValidateOatFile()
825 if (!DexFile::GetChecksum(dex_file_location.c_str(), &dex_file_location_checksum, error_msg)) { in ValidateOatFile()
826 *error_msg = StringPrintf("Failed to get checksum of dex file '%s' referenced by image %s: " in ValidateOatFile()
827 "%s", dex_file_location.c_str(), GetName(), error_msg->c_str()); in ValidateOatFile()
831 *error_msg = StringPrintf("ValidateOatFile found checksum mismatch between oat file '%s' and " in ValidateOatFile()