/art/runtime/base/ |
H A D | scoped_flock_test.cc | 27 std::string error_msg; local 35 &error_msg)); 37 ASSERT_FALSE(file_lock.Init("/guaranteed/not/to/exist", &error_msg));
|
H A D | scoped_flock.h | 39 bool Init(const char* filename, std::string* error_msg); 43 bool Init(File* file, std::string* error_msg);
|
H A D | scoped_flock.cc | 28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { argument 35 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); 40 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); 46 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); 64 bool ScopedFlock::Init(File* file, std::string* error_msg) { argument 68 *error_msg = StringPrintf("Failed to duplicate open file '%s': %s", 74 *error_msg = StringPrintf("Failed to lock file '%s': %s", file->GetPath().c_str(), strerror(errno));
|
/art/runtime/ |
H A D | mem_map_test.cc | 35 std::string error_msg; local 44 &error_msg); 47 ASSERT_TRUE(base0 != nullptr) << error_msg; 57 &error_msg); 59 EXPECT_EQ(m0->Begin(), base0) << error_msg; 128 std::string error_msg; local 134 &error_msg)); 135 ASSERT_TRUE(map.get() != nullptr) << error_msg; 136 ASSERT_TRUE(error_msg.empty()); 142 &error_msg)); 150 std::string error_msg; local 165 std::string error_msg; local 209 std::string error_msg; local 224 std::string error_msg; local 240 std::string error_msg; local 253 std::string error_msg; local 267 std::string error_msg; local [all...] |
H A D | zip_archive_test.cc | 34 std::string error_msg; local 35 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(GetLibCoreDexFileName().c_str(), &error_msg)); 36 ASSERT_TRUE(zip_archive.get() != nullptr) << error_msg; 37 ASSERT_TRUE(error_msg.empty()); 38 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find("classes.dex", &error_msg)); 40 ASSERT_TRUE(error_msg.empty()); 46 bool success = zip_entry->ExtractToFile(*file, &error_msg); 47 ASSERT_TRUE(success) << error_msg; 48 ASSERT_TRUE(error_msg.empty());
|
H A D | zip_archive.cc | 43 bool ZipEntry::ExtractToFile(File& file, std::string* error_msg) { argument 46 *error_msg = std::string(ErrorCodeString(error)); 54 std::string* error_msg) { 60 PROT_READ | PROT_WRITE, false, error_msg)); 62 DCHECK(!error_msg->empty()); 69 *error_msg = std::string(ErrorCodeString(error)); 90 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { argument 96 *error_msg = std::string(ErrorCodeString(error)); 105 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument 112 *error_msg 53 ExtractToMemMap(const char* zip_filename, const char* entry_filename, std::string* error_msg) argument [all...] |
H A D | dex_file_verifier_test.cc | 105 std::string* error_msg) { 126 bool success = DexFile::Open(location, location, error_msg, &tmp); 127 CHECK(success) << error_msg; 153 std::string error_msg; local 155 &error_msg)); 156 ASSERT_TRUE(raw.get() != nullptr) << error_msg; 170 std::string* error_msg) { 191 if (!DexFile::Open(location, location, error_msg, &tmp)) { 202 std::string* error_msg) { 213 error_msg)); 104 OpenDexFileBase64(const char* base64, const char* location, std::string* error_msg) argument 169 FixChecksumAndOpen(byte* bytes, size_t length, const char* location, std::string* error_msg) argument 201 ModifyAndLoad(const char* location, size_t offset, uint8_t new_val, std::string* error_msg) argument 221 std::string error_msg; local 230 std::string error_msg; local 239 std::string error_msg; local [all...] |
H A D | zip_archive.h | 39 bool ExtractToFile(File& file, std::string* error_msg); 41 std::string* error_msg); 61 static ZipArchive* Open(const char* filename, std::string* error_msg); 62 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg); 64 ZipEntry* Find(const char* name, std::string* error_msg) const;
|
H A D | oat_file.cc | 47 std::string* error_msg) { 53 return oat_file->Setup(error_msg) ? oat_file.release() : nullptr; 58 std::string* error_msg) { 64 return oat_file->Setup(error_msg) ? oat_file.release() : nullptr; 72 std::string* error_msg) { 82 ret.reset(OpenDlopen(filename, location, requested_base, error_msg)); 92 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno)); 96 error_msg)); 105 OatFile* OatFile::OpenWritable(File* file, const std::string& location, std::string* error_msg) { argument 107 return OpenElfFile(file, location, nullptr, nullptr, true, false, error_msg); 45 OpenWithElfFile(ElfFile* elf_file, const std::string& location, std::string* error_msg) argument 56 OpenMemory(std::vector<uint8_t>& oat_contents, const std::string& location, std::string* error_msg) argument 67 Open(const std::string& filename, const std::string& location, byte* requested_base, uint8_t* oat_file_begin, bool executable, std::string* error_msg) argument 110 OpenReadable(File* file, const std::string& location, std::string* error_msg) argument 115 OpenDlopen(const std::string& elf_filename, const std::string& location, byte* requested_base, std::string* error_msg) argument 127 OpenElfFile(File* file, const std::string& location, byte* requested_base, uint8_t* oat_file_begin, bool writable, bool executable, std::string* error_msg) argument 158 Dlopen(const std::string& elf_filename, byte* requested_base, std::string* error_msg) argument 195 ElfFileOpen(File* file, byte* requested_base, uint8_t* oat_file_begin, bool writable, bool executable, std::string* error_msg) argument 232 Setup(std::string* error_msg) argument [all...] |
H A D | elf_file.cc | 133 std::string* error_msg, uint8_t* requested_base) { 145 if (!elf_file->Setup(prot, flags, error_msg)) { 151 ElfFile* ElfFile::Open(File* file, int prot, int flags, std::string* error_msg) { argument 154 if (!elf_file->Setup(prot, flags, error_msg)) { 160 bool ElfFile::Setup(int prot, int flags, std::string* error_msg) { argument 164 *error_msg = StringPrintf("Failed to get length of file: '%s' fd=%d: %s", 170 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of " 180 file_->GetPath().c_str(), error_msg), 181 error_msg)) { 187 *error_msg 132 Open(File* file, bool writable, bool program_header_only, std::string* error_msg, uint8_t* requested_base) argument 327 CheckAndSet(Elf32_Off offset, const char* label, byte** target, std::string* error_msg) argument 452 SetMap(MemMap* map, std::string* error_msg) argument 1042 Load(bool executable, std::string* error_msg) argument 1594 std::string error_msg; local 1598 MAP_PRIVATE, &error_msg)); local [all...] |
H A D | mem_map.h | 64 bool low_4gb, std::string* error_msg); 71 const char* filename, std::string* error_msg) { 72 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false, filename, error_msg); 85 std::string* error_msg); 132 std::string* error_msg); 70 MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, const char* filename, std::string* error_msg) argument
|
H A D | oat_file.h | 46 std::string* error_msg); 54 std::string* error_msg); 61 static OatFile* OpenWritable(File* file, const std::string& location, std::string* error_msg); 63 static OatFile* OpenReadable(File* file, const std::string& location, std::string* error_msg); 68 std::string* error_msg); 225 const DexFile* OpenDexFile(std::string* error_msg) const; 298 std::string* error_msg); 306 std::string* error_msg); 309 bool Dlopen(const std::string& elf_filename, byte* requested_base, std::string* error_msg); 313 std::string* error_msg); [all...] |
H A D | elf_file.h | 43 static ElfFile* Open(File* file, bool writable, bool program_header_only, std::string* error_msg, 44 uint8_t* requested_base = nullptr); // TODO: move arg to before error_msg. 47 static ElfFile* Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg); 112 bool Load(bool executable, std::string* error_msg); 117 bool Setup(int prot, int flags, std::string* error_msg); 119 bool SetMap(MemMap* map, std::string* error_msg); 143 bool CheckSectionsExist(std::string* error_msg) const; 149 bool CheckAndSet(Elf32_Off offset, const char* label, byte** target, std::string* error_msg);
|
H A D | dex_file.cc | 53 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument 57 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno)); 62 *error_msg = StringPrintf("Failed to find magic in '%s'", filename); 66 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename, 73 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { argument 89 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg)); 91 DCHECK(!error_msg->empty()); 95 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::OpenFromFd(fd.release(), filename, error_msg)); 97 *error_msg = StringPrintf("Failed to open zip archive '%s'", file_part); 100 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name, error_msg)); 121 Open(const char* filename, const char* location, std::string* error_msg, std::vector<const DexFile*>* dex_files) argument 176 OpenFile(int fd, const char* location, bool verify, std::string* error_msg) argument 225 OpenZip(int fd, const std::string& location, std::string* error_msg, std::vector<const DexFile*>* dex_files) argument 235 OpenMemory(const std::string& location, uint32_t location_checksum, MemMap* mem_map, std::string* error_msg) argument 248 Open(const ZipArchive& zip_archive, const char* entry_name, const std::string& location, std::string* error_msg, ZipOpenErrorCode* error_code) argument 287 OpenFromZip(const ZipArchive& zip_archive, const std::string& location, std::string* error_msg, std::vector<const DexFile*>* dex_files) argument 326 OpenMemory(const byte* base, size_t size, const std::string& location, uint32_t location_checksum, MemMap* mem_map, const OatFile* oat_file, std::string* error_msg) argument 377 Init(std::string* error_msg) argument [all...] |
H A D | mem_map.cc | 137 std::string* error_msg) { 140 *error_msg = StringPrintf("Failed to build process map"); 151 *error_msg = StringPrintf("Requested region 0x%08" PRIxPTR "-0x%08" PRIxPTR " does not overlap " 161 std::string* error_msg) { 164 *error_msg = StringPrintf("Failed to build process map"); 173 *error_msg = StringPrintf("Requested region 0x%08" PRIxPTR "-0x%08" PRIxPTR " overlaps with " 187 // reason in error_msg. 192 // and if not, report in error_msg what the conflict mapping was if 195 std::string* error_msg) { 235 *error_msg 135 ContainedWithinExistingMap(uintptr_t begin, uintptr_t end, std::string* error_msg) argument 159 CheckNonOverlapping(uintptr_t begin, uintptr_t end, std::string* error_msg) argument 194 CheckMapRequest(byte* expected_ptr, void* actual_ptr, size_t byte_count, std::string* error_msg) argument 239 MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot, bool low_4gb, std::string* error_msg) argument 386 MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse, const char* filename, std::string* error_msg) argument 496 RemapAtEnd(byte* new_end, const char* tail_name, int tail_prot, std::string* error_msg) argument [all...] |
/art/compiler/ |
H A D | elf_writer.cc | 44 std::string error_msg; local 45 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, false, false, &error_msg)); 46 CHECK(elf_file.get() != nullptr) << error_msg;
|
H A D | elf_stripper.h | 31 static bool Strip(File* file, std::string* error_msg);
|
H A D | elf_writer_test.cc | 90 std::string error_msg; local 91 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); 92 CHECK(ef.get() != nullptr) << error_msg; 98 std::string error_msg; local 99 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); 100 CHECK(ef.get() != nullptr) << error_msg; 106 std::string error_msg; local 107 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, true, &error_msg)); 108 CHECK(ef.get() != nullptr) << error_msg; 109 CHECK(ef->Load(false, &error_msg)) << error_ms [all...] |
H A D | elf_patcher.h | 39 std::string* error_msg) 45 std::string* error_msg) 50 std::string* error_msg) 53 DefaultImageAddressCallback, nullptr, error_msg); 58 std::string* error_msg) 61 DefaultImageAddressCallback, nullptr, error_msg); 67 ImageAddressCallback cb, void* cb_data, std::string* error_msg) 70 cb_data_(cb_data), error_msg_(error_msg), 65 ElfPatcher(const CompilerDriver* driver, ElfFile* elf_file, const OatFile* oat_file, OatHeader* oat_header, uintptr_t oat_data_begin, ImageAddressCallback cb, void* cb_data, std::string* error_msg) argument
|
H A D | elf_stripper.cc | 32 bool ElfStripper::Strip(File* file, std::string* error_msg) { argument 33 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, error_msg)); 131 *error_msg = StringPrintf("Failed to truncate while stripping ELF file: '%s': %s",
|
/art/runtime/verifier/ |
H A D | method_verifier_test.cc | 38 std::string error_msg; local 39 ASSERT_TRUE(MethodVerifier::VerifyClass(klass, true, &error_msg) == MethodVerifier::kNoFailure) 40 << error_msg;
|
/art/runtime/gc/space/ |
H A D | image_space.cc | 143 std::string* error_msg) { 148 *error_msg = "Failed to generate image because no boot class path specified"; 195 return Exec(arg_vector, error_msg); 228 std::string error_msg; local 229 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) { 230 LOG(WARNING) << error_msg; 252 InstructionSet isa, std::string* error_msg) { 294 return Exec(argv, error_msg); 297 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { argument 300 *error_msg 142 GenerateImage(const std::string& image_filename, InstructionSet image_isa, std::string* error_msg) argument 251 RelocateImage(const char* image_location, const char* dest_filename, InstructionSet isa, std::string* error_msg) argument 308 std::string error_msg; local 316 ReadImageHeader(const char* image_location, const InstructionSet image_isa, std::string* error_msg) argument 388 ImageCreationAllowed(bool is_global_cache, std::string* error_msg) argument 408 CheckSpace(const std::string& cache_filename, std::string* error_msg) argument 438 Create(const char* image_location, const InstructionSet image_isa, std::string* error_msg) argument 625 Init(const char* image_filename, const char* image_location, bool validate_oat_file, std::string* error_msg) argument [all...] |
H A D | image_space.h | 46 static ImageSpace* Create(const char* image, InstructionSet image_isa, std::string* error_msg) 56 // reason in error_msg. 59 std::string* error_msg); 132 bool validate_oat_file, std::string* error_msg) 135 OatFile* OpenOatFile(const char* image, std::string* error_msg) const 138 bool ValidateOatFile(std::string* error_msg) const
|
/art/runtime/native/ |
H A D | java_lang_VMClassLoader.cc | 87 std::string error_msg; local 88 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg)); 90 LOG(WARNING) << "Failed to open zip archive '" << location << "': " << error_msg; local 93 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(name.c_str(), &error_msg));
|
/art/compiler/utils/ |
H A D | assembler_test.h | 348 EXPECT_TRUE(res.ok) << res.error_msg; 384 std::string error_msg; member in struct:art::AssemblerTest::NativeAssemblerResult 391 bool Assemble(const char* from_file, const char* to_file, std::string* error_msg) { argument 405 return Exec(args, error_msg); 417 std::string error_msg; local 431 if (!Exec(args, &error_msg)) { 432 EXPECT_TRUE(false) << error_msg; 465 std::string error_msg; local 466 if (!DisassembleBinary(data_name, &error_msg)) { 467 LOG(INFO) << "Error disassembling: " << error_msg; 493 DisassembleBinary(std::string file, std::string* error_msg) argument 665 std::string error_msg; local [all...] |