/art/oatdump/ |
H A D | oatdump_test.cc | 61 bool Exec(Mode mode, const std::vector<std::string>& args, std::string* error_msg) { argument 79 return ::art::Exec(exec_argv, error_msg); 88 std::string error_msg; local 89 ASSERT_TRUE(Exec(kModeArt, {}, &error_msg)) << error_msg; 93 std::string error_msg; local 94 ASSERT_TRUE(Exec(kModeOat, {}, &error_msg)) << error_msg; 98 std::string error_msg; local 99 ASSERT_TRUE(Exec(kModeArt, {"--dump:raw_mapping_table"}, &error_msg)) << error_ms 103 std::string error_msg; local 108 std::string error_msg; local 113 std::string error_msg; local 118 std::string error_msg; local 123 std::string error_msg; local 128 std::string error_msg; local [all...] |
/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(
|
/art/runtime/ |
H A D | mem_map_test.cc | 37 std::string error_msg; local 47 &error_msg); 50 ASSERT_TRUE(base0 != nullptr) << error_msg; 60 &error_msg); 62 EXPECT_EQ(m0->Begin(), base0) << error_msg; 131 std::string error_msg; local 138 &error_msg)); 139 ASSERT_TRUE(map.get() != nullptr) << error_msg; 140 ASSERT_TRUE(error_msg.empty()); 147 &error_msg)); 155 std::string error_msg; local 171 std::string error_msg; local 221 std::string error_msg; local 237 std::string error_msg; local 254 std::string error_msg; local 269 std::string error_msg; local 284 std::string error_msg; local 307 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 | oat_file_test.cc | 75 std::string error_msg; local 78 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies(nullptr, &error_msg)) << error_msg; 79 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies("", &error_msg)) << error_msg; 82 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc", &error_msg)); 83 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc*123*def", &error_msg)); 84 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc*def*", &error_msg)); 87 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc*123*", &error_msg)); 95 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies(encoding1.c_str(), &error_msg)) [all...] |
H A D | dex_file_verifier_test.cc | 106 std::string* error_msg) { 127 bool success = DexFile::Open(location, location, error_msg, &tmp); 128 CHECK(success) << error_msg; 154 std::string error_msg; local 156 &error_msg)); 157 ASSERT_TRUE(raw.get() != nullptr) << error_msg; 172 std::string* error_msg) { 193 if (!DexFile::Open(location, location, error_msg, &tmp)) { 204 uint8_t new_val, std::string* error_msg) { 215 error_msg)); 104 OpenDexFileBase64(const char* base64, const char* location, std::string* error_msg) argument 170 FixChecksumAndOpen(uint8_t* bytes, size_t length, const char* location, std::string* error_msg) argument 203 ModifyAndLoad(const char* dex_file_content, const char* location, size_t offset, uint8_t new_val, std::string* error_msg) argument 223 std::string error_msg; local 232 std::string error_msg; local 241 std::string error_msg; local 301 std::string error_msg; local 311 std::string error_msg; local [all...] |
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) { 61 error_msg)); 63 DCHECK(!error_msg->empty()); 70 *error_msg = std::string(ErrorCodeString(error)); 91 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { argument 97 *error_msg = std::string(ErrorCodeString(error)); 106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument 113 *error_msg 53 ExtractToMemMap(const char* zip_filename, const char* entry_filename, std::string* error_msg) argument [all...] |
H A D | elf_file.h | 41 static ElfFile* Open(File* file, bool writable, bool program_header_only, std::string* error_msg, 42 uint8_t* requested_base = nullptr); // TODO: move arg to before error_msg. 45 static ElfFile* Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg); 49 bool Load(bool executable, std::string* error_msg); 69 bool GetLoadedSize(size_t* size, std::string* error_msg) const; 73 static bool Strip(File* file, std::string* error_msg);
|
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 | elf_file.cc | 142 std::string* error_msg, uint8_t* requested_base) { 154 if (!elf_file->Setup(prot, flags, error_msg)) { 162 File* file, int prot, int flags, std::string* error_msg) { 166 if (!elf_file->Setup(prot, flags, error_msg)) { 173 bool ElfFileImpl<ElfTypes>::Setup(int prot, int flags, std::string* error_msg) { argument 177 *error_msg = StringPrintf("Failed to get length of file: '%s' fd=%d: %s", 183 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of " 193 file_->GetPath().c_str(), error_msg), 194 error_msg)) { 200 *error_msg 140 Open( File* file, bool writable, bool program_header_only, std::string* error_msg, uint8_t* requested_base) argument 161 Open( File* file, int prot, int flags, std::string* error_msg) argument 342 CheckAndSet(Elf32_Off offset, const char* label, uint8_t** target, std::string* error_msg) argument 471 SetMap(MemMap* map, std::string* error_msg) argument 1127 Load(bool executable, std::string* error_msg) argument 1459 std::string error_msg; local 1463 Open(const_cast<File*>(file_), PROT_READ | PROT_WRITE, MAP_PRIVATE, &error_msg)); local 1498 Strip(std::string* error_msg) argument 1771 Open(File* file, bool writable, bool program_header_only, std::string* error_msg, uint8_t* requested_base) argument 1806 Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg) argument 1847 Load(bool executable, std::string* error_msg) argument 1911 Strip(File* file, std::string* error_msg) argument [all...] |
/art/runtime/arch/mips/ |
H A D | instruction_set_features_mips_test.cc | 24 std::string error_msg; local 26 InstructionSetFeatures::FromVariant(kMips, "default", &error_msg)); 27 ASSERT_TRUE(mips_features.get() != nullptr) << error_msg;
|
/art/runtime/arch/mips64/ |
H A D | instruction_set_features_mips64_test.cc | 24 std::string error_msg; local 26 InstructionSetFeatures::FromVariant(kMips64, "default", &error_msg)); 27 ASSERT_TRUE(mips64_features.get() != nullptr) << error_msg;
|
/art/runtime/arch/x86_64/ |
H A D | instruction_set_features_x86_64_test.cc | 24 std::string error_msg; local 26 InstructionSetFeatures::FromVariant(kX86_64, "default", &error_msg)); 27 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg;
|
/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; 48 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg); 49 CHECK(success) << error_msg; 56 std::string error_msg; local 57 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, &error_msg)); 58 CHECK(elf_file.get() != nullptr) << error_msg;
|
H A D | elf_writer_test.cc | 65 std::string error_msg; local 66 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); 67 CHECK(ef.get() != nullptr) << error_msg; 73 std::string error_msg; local 74 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); 75 CHECK(ef.get() != nullptr) << error_msg; 81 std::string error_msg; local 82 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, true, &error_msg)); 83 CHECK(ef.get() != nullptr) << error_msg; 84 CHECK(ef->Load(false, &error_msg)) << error_ms [all...] |
/art/imgdiag/ |
H A D | imgdiag_test.cc | 78 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { argument 99 return ::art::Exec(exec_argv, error_msg); 103 bool ExecDefaultBootImage(pid_t image_diff_pid, std::string* error_msg) { argument 104 return Exec(image_diff_pid, boot_image_location_, error_msg); 124 std::string error_msg; local 125 ASSERT_TRUE(ExecDefaultBootImage(getpid(), &error_msg)) << "Failed to execute -- because: " 126 << error_msg; local 133 std::string error_msg; local 134 ASSERT_FALSE(ExecDefaultBootImage(-12345, &error_msg)) << "Incorrectly executed"; 135 UNUSED(error_msg); [all...] |
/art/runtime/arch/arm/ |
H A D | instruction_set_features_arm_test.cc | 25 std::string error_msg; local 27 InstructionSetFeatures::FromVariant(kArm, "krait", &error_msg)); 28 ASSERT_TRUE(krait_features.get() != nullptr) << error_msg; 39 InstructionSetFeatures::FromVariant(kArm, "denver", &error_msg)); 40 ASSERT_TRUE(denver_features.get() != nullptr) << error_msg; 52 InstructionSetFeatures::FromVariant(kArm, "arm7", &error_msg)); 53 ASSERT_TRUE(arm7_features.get() != nullptr) << error_msg; 65 InstructionSetFeatures::FromVariant(kArm, "arm6", &error_msg)); 67 EXPECT_NE(error_msg.size(), 0U); 71 std::string error_msg; local [all...] |
/art/runtime/arch/arm64/ |
H A D | instruction_set_features_arm64_test.cc | 25 std::string error_msg; local 27 InstructionSetFeatures::FromVariant(kArm64, "default", &error_msg)); 28 ASSERT_TRUE(arm64_features.get() != nullptr) << error_msg;
|
/art/runtime/arch/x86/ |
H A D | instruction_set_features_x86_test.cc | 24 std::string error_msg; local 26 InstructionSetFeatures::FromVariant(kX86, "default", &error_msg)); 27 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; 36 std::string error_msg; local 38 InstructionSetFeatures::FromVariant(kX86, "atom", &error_msg)); 39 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; 47 InstructionSetFeatures::FromVariant(kX86, "default", &error_msg)); 48 ASSERT_TRUE(x86_default_features.get() != nullptr) << error_msg; 57 InstructionSetFeatures::FromVariant(kX86_64, "atom", &error_msg)); 58 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg; 72 std::string error_msg; local [all...] |
/art/runtime/gc/space/ |
H A D | image_space.cc | 176 std::string* error_msg) { 181 *error_msg = "Failed to generate image because no boot class path specified"; 231 return Exec(arg_vector, error_msg); 264 std::string error_msg; local 265 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) { 266 LOG(WARNING) << error_msg; 288 InstructionSet isa, std::string* error_msg) { 330 return Exec(argv, error_msg); 333 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { argument 336 *error_msg 175 GenerateImage(const std::string& image_filename, InstructionSet image_isa, std::string* error_msg) argument 287 RelocateImage(const char* image_location, const char* dest_filename, InstructionSet isa, std::string* error_msg) argument 344 std::string error_msg; local 352 ReadImageHeader(const char* image_location, const InstructionSet image_isa, std::string* error_msg) argument 424 ImageCreationAllowed(bool is_global_cache, std::string* error_msg) argument 444 CheckSpace(const std::string& cache_filename, std::string* error_msg) argument 474 Create(const char* image_location, const InstructionSet image_isa, std::string* error_msg) argument 661 Init(const char* image_filename, const char* image_location, bool validate_oat_file, std::string* error_msg) argument [all...] |
/art/runtime/verifier/ |
H A D | method_verifier_test.cc | 39 std::string error_msg; local 40 ASSERT_TRUE(MethodVerifier::VerifyClass(self, klass, true, &error_msg) == MethodVerifier::kNoFailure) 41 << error_msg;
|
/art/runtime/arch/ |
H A D | instruction_set_features_test.cc | 46 std::string error_msg; local 48 InstructionSetFeatures::FromVariant(kRuntimeISA, dex2oat_isa_variant, &error_msg)); 49 ASSERT_TRUE(property_features.get() != nullptr) << error_msg; 79 std::string error_msg; local 81 InstructionSetFeatures::FromVariant(kRuntimeISA, dex2oat_isa_variant, &error_msg)); 82 ASSERT_TRUE(base_features.get() != nullptr) << error_msg; 85 base_features->AddFeaturesFromString(dex2oat_isa_features, &error_msg)); 86 ASSERT_TRUE(property_features.get() != nullptr) << error_msg; 116 std::string error_msg; local 118 InstructionSetFeatures::FromVariant(kRuntimeISA, "default", &error_msg)); [all...] |
/art/cmdline/ |
H A D | cmdline.h | 66 std::string error_msg; local 68 &cache_filename, &error_msg)) { 138 std::string error_msg; local 162 ParseStatus parse_status = ParseCustom(option, &error_msg); 169 fprintf(stderr, "%s\n", error_msg.c_str()); 179 ParseStatus checks_status = ParseChecks(&error_msg); 181 fprintf(stderr, "%s\n", error_msg.c_str()); 224 bool ParseCheckBootImage(std::string* error_msg) { argument 226 *error_msg = "--boot-image must be specified"; 237 *error_msg 309 std::string error_msg; local [all...] |