Lines Matching refs:error_msg

121 bool OatFileAssistant::Lock(std::string* error_msg) {  in Lock()  argument
122 CHECK(error_msg != nullptr); in Lock()
126 *error_msg = "Failed to determine lock file"; in Lock()
131 if (!flock_.Init(lock_file_name.c_str(), error_msg)) { in Lock()
157 bool OatFileAssistant::MakeUpToDate(std::string* error_msg) { in MakeUpToDate() argument
160 case kDex2OatNeeded: return GenerateOatFile(error_msg); in MakeUpToDate()
161 case kPatchOatNeeded: return RelocateOatFile(OdexFileName(), error_msg); in MakeUpToDate()
162 case kSelfPatchOatNeeded: return RelocateOatFile(OatFileName(), error_msg); in MakeUpToDate()
209 std::string error_msg; in LoadDexFiles() local
218 std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error_msg); in LoadDexFiles()
220 LOG(WARNING) << "Failed to open dex file from oat dex file: " << error_msg; in LoadDexFiles()
234 dex_file = oat_dex_file->OpenDexFile(&error_msg); in LoadDexFiles()
236 LOG(WARNING) << "Failed to open dex file from oat dex file: " << error_msg; in LoadDexFiles()
257 std::string error_msg; in OdexFileName() local
259 dex_location_, isa_, &cached_odex_file_name_, &error_msg); in OdexFileName()
263 LOG(WARNING) << "Failed to determine odex file name: " << error_msg; in OdexFileName()
325 std::string error_msg; in OatFileName() local
327 cache_dir.c_str(), &cached_oat_file_name_, &error_msg); in OatFileName()
332 << dex_location_ << ": " << error_msg; in OatFileName()
417 std::string error_msg; in GivenOatFileIsOutOfDate() local
420 &expected_secondary_checksum, &error_msg)) { in GivenOatFileIsOutOfDate()
597 std::string* error_msg) { in CopyProfileFile() argument
598 CHECK(error_msg != nullptr); in CopyProfileFile()
601 *error_msg = "Patching of oat file for dex location " in CopyProfileFile()
609 *error_msg = "Patching of oat file for dex location " in CopyProfileFile()
619 *error_msg = "Patching of oat file " + oat_file_name in CopyProfileFile()
625 *error_msg = "Patching of oat file " + oat_file_name in CopyProfileFile()
638 if (!Exec(argv, error_msg)) { in CopyProfileFile()
650 bool OatFileAssistant::GenerateOatFile(std::string* error_msg) { in CopyProfileFile() argument
651 CHECK(error_msg != nullptr); in CopyProfileFile()
654 *error_msg = "Generation of oat file for dex location " in CopyProfileFile()
663 *error_msg = "Generation of oat file " + oat_file_name in CopyProfileFile()
676 *error_msg = "Dex location " + std::string(dex_location_) + " does not exists."; in CopyProfileFile()
680 if (!Dex2Oat(args, error_msg)) { in CopyProfileFile()
693 std::string* error_msg) { in CopyProfileFile() argument
697 *error_msg = "No image location found for Dex2Oat."; in CopyProfileFile()
741 return Exec(argv, error_msg); in CopyProfileFile()
745 InstructionSet isa, std::string* odex_filename, std::string* error_msg) { in CopyProfileFile() argument
747 CHECK(error_msg != nullptr); in CopyProfileFile()
758 *error_msg = "Dex location " + location + " has no directory."; in CopyProfileFile()
775 *error_msg = "Dex location " + location + " has no extension."; in CopyProfileFile()
831 std::string error_msg; in CopyProfileFile() local
833 if (DexFile::GetChecksum(dex_location_, &cached_required_dex_checksum_, &error_msg)) { in CopyProfileFile()
839 VLOG(oat) << "OatFileAssistant: " << error_msg; in CopyProfileFile()
863 std::string error_msg; in CopyProfileFile() local
866 dex_location_, &error_msg)); in CopyProfileFile()
869 << odex_file_name << ": " << error_msg; in CopyProfileFile()
889 std::string error_msg; in CopyProfileFile() local
892 dex_location_, &error_msg)); in CopyProfileFile()
895 << oat_file_name << ": " << error_msg; in CopyProfileFile()