Searched defs:error_msg (Results 1 - 25 of 74) sorted by relevance

123

/art/runtime/arch/arm/
H A Dinstruction_set_features_arm_test.cc25 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 Dinstruction_set_features_arm64_test.cc25 std::string error_msg; local
27 InstructionSetFeatures::FromVariant(kArm64, "default", &error_msg));
28 ASSERT_TRUE(arm64_features.get() != nullptr) << error_msg;
H A Dinstruction_set_features_arm64.cc28 const std::string& variant, std::string* error_msg) {
47 *error_msg = os.str();
134 const bool smp, const std::vector<std::string>& features, std::string* error_msg) const {
143 *error_msg = StringPrintf("Unknown instruction set feature: '%s'", feature.c_str());
27 FromVariant( const std::string& variant, std::string* error_msg) argument
/art/runtime/arch/mips/
H A Dinstruction_set_features_mips_test.cc24 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 Dinstruction_set_features_mips64_test.cc24 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/
H A Dinstruction_set_features_x86_test.cc24 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/arch/x86_64/
H A Dinstruction_set_features_x86_64_test.cc24 std::string error_msg; local
26 InstructionSetFeatures::FromVariant(kX86_64, "default", &error_msg));
27 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg;
H A Dinstruction_set_features_x86_64.h29 std::string* error_msg) {
30 return X86InstructionSetFeatures::FromVariant(variant, error_msg, true)
71 std::string* error_msg) const OVERRIDE {
72 return X86InstructionSetFeatures::AddFeaturesFromSplitString(smp, features, true, error_msg);
28 FromVariant(const std::string& variant, std::string* error_msg) argument
/art/runtime/base/
H A Dscoped_flock_test.cc27 std::string error_msg; local
35 &error_msg));
37 ASSERT_FALSE(file_lock.Init("/guaranteed/not/to/exist", &error_msg));
H A Dscoped_flock.cc28 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/arch/
H A Dinstruction_set_features_test.cc46 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/runtime/verifier/
H A Dmethod_verifier_test.cc39 std::string error_msg; local
40 ASSERT_TRUE(MethodVerifier::VerifyClass(self, klass, true, &error_msg) == MethodVerifier::kNoFailure)
41 << error_msg;
/art/compiler/
H A Delf_writer.cc44 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 Delf_writer_test.cc65 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/runtime/jit/
H A Djit_code_cache_test.cc33 std::string error_msg; local
36 JitCodeCache::Create(kSize, &error_msg));
37 ASSERT_TRUE(code_cache.get() != nullptr) << error_msg;
69 std::string error_msg; local
72 JitCodeCache::Create(kSize, &error_msg));
73 ASSERT_TRUE(code_cache.get() != nullptr) << error_msg;
H A Djit.cc64 Jit* Jit::Create(JitOptions* options, std::string* error_msg) { argument
67 if (!jit->LoadCompiler(error_msg)) {
70 jit->code_cache_.reset(JitCodeCache::Create(options->GetCodeCacheCapacity(), error_msg));
80 bool Jit::LoadCompiler(std::string* error_msg) { argument
86 *error_msg = oss.str();
93 *error_msg = "JIT couldn't find jit_load entry point";
100 *error_msg = "JIT couldn't find jit_unload entry point";
107 *error_msg = "JIT couldn't find jit_compile_method entry point";
116 *error_msg = "JIT couldn't load compiler";
121 *error_msg
[all...]
H A Djit_code_cache.cc28 JitCodeCache* JitCodeCache::Create(size_t capacity, std::string* error_msg) { argument
38 *error_msg = oss.str();
/art/runtime/
H A Doat_file_test.cc75 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 Dutils_test.cc360 std::string error_msg; local
363 EXPECT_TRUE(Exec(command, &error_msg));
365 EXPECT_EQ(0U, error_msg.size()) << error_msg;
374 std::string error_msg; local
377 EXPECT_FALSE(Exec(command, &error_msg));
378 EXPECT_NE(0U, error_msg.size());
H A Dzip_archive_test.cc34 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());
/art/oatdump/
H A Doatdump_test.cc61 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/gc/accounting/
H A Dbitmap.cc46 std::string error_msg; local
49 &error_msg));
51 LOG(ERROR) << "Failed to allocate bitmap " << name << ": " << error_msg; local
/art/runtime/native/
H A Djava_lang_Runtime.cc79 std::string error_msg; local
82 bool success = vm->LoadNativeLibrary(env, filename.c_str(), javaLoader, &error_msg);
90 return env->NewStringUTF(error_msg.c_str());
H A Djava_lang_VMClassLoader.cc92 std::string error_msg; local
93 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg));
95 LOG(WARNING) << "Failed to open zip archive '" << location << "': " << error_msg; local
98 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(name.c_str(), &error_msg));
/art/imgdiag/
H A Dimgdiag_test.cc78 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...]

Completed in 9242 milliseconds

123