Home | History | Annotate | Download | only in space

Lines Matching refs:error_msg

118                           std::string* error_msg) {
123 *error_msg = "Failed to generate image because no boot class path specified";
170 return Exec(arg_vector, error_msg);
203 std::string error_msg;
204 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) {
205 LOG(WARNING) << error_msg;
227 InstructionSet isa, std::string* error_msg) {
269 return Exec(argv, error_msg);
272 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) {
275 *error_msg = StringPrintf("Unable to read image header for %s", filename);
283 std::string error_msg;
284 ImageHeader* image_header = ReadImageHeader(image_location, image_isa, &error_msg);
286 LOG(FATAL) << error_msg;
293 std::string* error_msg) {
307 *error_msg = StringPrintf("Unable to read image header for %s at %s",
312 *error_msg = StringPrintf("Unable to read image header for %s at %s",
317 *error_msg = StringPrintf("Unable to find a relocated version of image file %s",
323 *error_msg = StringPrintf("Unable to find a relocated version of image file %s",
328 return ReadSpecificImageHeader(cache_filename.c_str(), error_msg);
335 error_msg));
337 error_msg));
345 return ReadSpecificImageHeader(system_filename.c_str(), error_msg);
347 return ReadSpecificImageHeader(cache_filename.c_str(), error_msg);
352 *error_msg = StringPrintf("Unable to find image file for %s", image_location);
363 static bool ImageCreationAllowed(bool is_global_cache, std::string* error_msg) {
374 *error_msg = "Only the zygote can create the global boot image.";
380 std::string* error_msg) {
400 *error_msg = StringPrintf("Requiring relocation for image '%s' at '%s' but we do not have "
432 *error_msg = StringPrintf("Unable to relocate image '%s' from '%s' to '%s': %s",
472 image_lock.Init(image_filename->c_str(), error_msg);
480 !(is_system || relocated_version_used), error_msg);
490 *error_msg = StringPrintf("Attempted to use relocated version of %s at %s generated from %s "
493 error_msg->c_str());
498 *error_msg = StringPrintf("Failed to load /system image '%s': %s",
499 image_filename->c_str(), error_msg->c_str());
503 LOG(WARNING) << *error_msg;
508 *error_msg = "Not attempting to compile image because -Xnoimage-dex2oat";
511 *error_msg = StringPrintf("No place to put generated image.");
513 } else if (!ImageCreationAllowed(is_global_cache, error_msg)) {
515 } else if (!GenerateImage(cache_filename, image_isa, error_msg)) {
516 *error_msg = StringPrintf("Failed to generate image '%s': %s",
517 cache_filename.c_str(), error_msg->c_str());
530 image_lock.Init(cache_filename.c_str(), error_msg);
531 space = ImageSpace::Init(cache_filename.c_str(), image_location, true, error_msg);
533 *error_msg = StringPrintf("Failed to load generated image '%s': %s",
534 cache_filename.c_str(), error_msg->c_str());
555 bool validate_oat_file, std::string* error_msg) {
567 *error_msg = StringPrintf("Failed to open '%s'", image_filename);
573 *error_msg = StringPrintf("Invalid image header in '%s'", image_filename);
586 error_msg));
588 DCHECK(!error_msg->empty());
600 error_msg));
602 *error_msg = StringPrintf("Failed to map image bitmap: %s", error_msg->c_str());
613 *error_msg = StringPrintf("Could not create bitmap '%s'", bitmap_name.c_str());
626 space->oat_file_.reset(space->OpenOatFile(image_filename, error_msg));
628 DCHECK(!error_msg->empty());
632 if (validate_oat_file && !space->ValidateOatFile(error_msg)) {
633 DCHECK(!error_msg->empty());
664 OatFile* ImageSpace::OpenOatFile(const char* image_path, std::string* error_msg) const {
669 !Runtime::Current()->IsCompiler(), error_msg);
671 *error_msg = StringPrintf("Failed to open oat file '%s' referenced from image %s: %s",
672 oat_filename.c_str(), GetName(), error_msg->c_str());
678 *error_msg = StringPrintf("Failed to match oat file checksum 0x%x to expected oat checksum 0x%x"
686 *error_msg = StringPrintf("Failed to match oat file patch delta %d to expected patch delta %d "
694 bool ImageSpace::ValidateOatFile(std::string* error_msg) const {
699 if (!DexFile::GetChecksum(dex_file_location.c_str(), &dex_file_location_checksum, error_msg)) {
700 *error_msg = StringPrintf("Failed to get checksum of dex file '%s' referenced by image %s: "
701 "%s", dex_file_location.c_str(), GetName(), error_msg->c_str());
705 *error_msg = StringPrintf("ValidateOatFile found checksum mismatch between oat file '%s' and "