Home
last modified time | relevance | path

Searched refs:error_msg (Results 1 – 25 of 191) sorted by relevance

12345678

/art/dexdump/
Ddexdump_test.cc41 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument
47 return ::art::Exec(exec_argv, error_msg); in Exec()
55 std::string error_msg; in TEST_F() local
56 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg; in TEST_F()
60 std::string error_msg; in TEST_F() local
61 ASSERT_FALSE(Exec({"-o", "/non/existent/path", dex_file_}, &error_msg)) << error_msg; in TEST_F()
65 std::string error_msg; in TEST_F() local
66 ASSERT_FALSE(Exec({"-c", "-i", dex_file_}, &error_msg)) << error_msg; in TEST_F()
70 std::string error_msg; in TEST_F() local
72 dex_file_}, &error_msg)) << error_msg; in TEST_F()
[all …]
/art/dexlist/
Ddexlist_test.cc43 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument
49 return ::art::Exec(exec_argv, error_msg); in Exec()
57 std::string error_msg; in TEST_F() local
58 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg; in TEST_F()
62 std::string error_msg; in TEST_F() local
63 ASSERT_FALSE(Exec({"-o", "/non/existent/path", dex_file_}, &error_msg)) << error_msg; in TEST_F()
67 std::string error_msg; in TEST_F() local
68 ASSERT_FALSE(Exec({"-m", "joho", dex_file_}, &error_msg)) << error_msg; in TEST_F()
72 std::string error_msg; in TEST_F() local
73 ASSERT_TRUE(Exec({"-o", "/dev/null", dex_file_}, &error_msg)) << error_msg; in TEST_F()
[all …]
/art/dexlayout/
Ddex_verify.cc35 std::string* error_msg) { in VerifyOutputDexFile() argument
37 if (!VerifyIds(orig_header->StringIds(), output_header->StringIds(), "string ids", error_msg) || in VerifyOutputDexFile()
38 !VerifyIds(orig_header->TypeIds(), output_header->TypeIds(), "type ids", error_msg) || in VerifyOutputDexFile()
39 !VerifyIds(orig_header->ProtoIds(), output_header->ProtoIds(), "proto ids", error_msg) || in VerifyOutputDexFile()
40 !VerifyIds(orig_header->FieldIds(), output_header->FieldIds(), "field ids", error_msg) || in VerifyOutputDexFile()
41 !VerifyIds(orig_header->MethodIds(), output_header->MethodIds(), "method ids", error_msg)) { in VerifyOutputDexFile()
45 if (!VerifyClassDefs(orig_header->ClassDefs(), output_header->ClassDefs(), error_msg)) { in VerifyOutputDexFile()
54 std::string* error_msg) { in VerifyIds() argument
58 if (!VerifyId(orig_iter->get(), output_iter->get(), error_msg)) { in VerifyIds()
69 *error_msg = StringPrintf("Mismatch for %s section: %s is longer.", section_name, longer); in VerifyIds()
[all …]
Ddex_verify.h31 std::string* error_msg);
36 std::string* error_msg);
37 bool VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg);
38 bool VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg);
39 bool VerifyId(dex_ir::ProtoId* orig, dex_ir::ProtoId* output, std::string* error_msg);
40 bool VerifyId(dex_ir::FieldId* orig, dex_ir::FieldId* output, std::string* error_msg);
41 bool VerifyId(dex_ir::MethodId* orig, dex_ir::MethodId* output, std::string* error_msg);
45 std::string* error_msg);
46 bool VerifyClassDef(dex_ir::ClassDef* orig, dex_ir::ClassDef* output, std::string* error_msg);
52 std::string* error_msg);
[all …]
Ddexdiag_test.cc70 std::string error_msg; in OpenOatAndVdexFiles() local
78 &error_msg)); in OpenOatAndVdexFiles()
79 EXPECT_TRUE(oat != nullptr) << error_msg; in OpenOatAndVdexFiles()
84 bool Exec(pid_t this_pid, const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument
100 return ::art::Exec(exec_argv, error_msg); in Exec()
111 std::string error_msg; in TEST_F() local
112 ASSERT_TRUE(Exec(getpid(), { kDexDiagHelp }, &error_msg)) << "Failed to execute -- because: " in TEST_F()
113 << error_msg; in TEST_F()
123 std::string error_msg; local
124 ASSERT_TRUE(Exec(getpid(), { kDexDiagContains }, &error_msg)) << "Failed to execute -- because: "
[all …]
Ddexlayout_test.cc260 bool FullPlainOutputExec(std::string* error_msg) { in FullPlainOutputExec() argument
275 if (!::art::Exec(dexdump_exec_argv, error_msg)) { in FullPlainOutputExec()
278 if (!DexLayoutExec(dexlayout_args, error_msg)) { in FullPlainOutputExec()
283 if (!::art::Exec(diff_exec_argv, error_msg)) { in FullPlainOutputExec()
291 bool DexFileOutputExec(std::string* error_msg) { in DexFileOutputExec() argument
301 if (!DexLayoutExec(dexlayout_args, error_msg, /*pass_default_cdex_option=*/ false)) { in DexFileOutputExec()
307 if (!::art::Exec(unzip_exec_argv, error_msg)) { in DexFileOutputExec()
312 if (!::art::Exec(diff_exec_argv, error_msg)) { in DexFileOutputExec()
332 std::string error_msg; in CreateProfile() local
338 &error_msg, in CreateProfile()
[all …]
/art/runtime/arch/mips/
Dinstruction_set_features_mips_test.cc24 std::string error_msg; in TEST() local
26 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "default", &error_msg)); in TEST()
27 ASSERT_TRUE(mips_features.get() != nullptr) << error_msg; in TEST()
35 std::string error_msg; in TEST() local
37 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "mips32r1", &error_msg)); in TEST()
38 ASSERT_TRUE(mips32r1_features.get() != nullptr) << error_msg; in TEST()
45 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "default", &error_msg)); in TEST()
46 ASSERT_TRUE(mips_default_features.get() != nullptr) << error_msg; in TEST()
51 std::string error_msg; in TEST() local
53 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "mips32r2", &error_msg)); in TEST()
[all …]
/art/libartbase/base/
Dmem_map_test.cc54 std::string error_msg; in GetValidMapAddress() local
59 &error_msg); in GetValidMapAddress()
65 std::string error_msg; in RemapAtEndTest() local
73 &error_msg); in RemapAtEndTest()
77 ASSERT_TRUE(base0 != nullptr) << error_msg; in RemapAtEndTest()
87 &error_msg); in RemapAtEndTest()
89 EXPECT_EQ(m0.Begin(), base0) << error_msg; in RemapAtEndTest()
118 &error_msg); in RemapAtEndTest()
119 ASSERT_TRUE(m2.IsValid()) << error_msg; in RemapAtEndTest()
164 std::string error_msg; in TEST_F() local
[all …]
Dfile_utils_test.cc62 std::string error_msg; in TEST_F() local
67 std::string android_root = GetAndroidRootSafe(&error_msg); in TEST_F()
69 EXPECT_EQ(android_root, android_root_env) << error_msg; in TEST_F()
75 std::string android_root2 = GetAndroidRootSafe(&error_msg); in TEST_F()
76 EXPECT_STREQ(dir, android_root2.c_str()) << error_msg; in TEST_F()
80 EXPECT_EQ(GetAndroidRootSafe(&error_msg), ""); in TEST_F()
84 std::string android_root3 = GetAndroidRootSafe(&error_msg); in TEST_F()
91 EXPECT_STREQ(real_root.get(), real_root3.get()) << error_msg; in TEST_F()
93 EXPECT_STRNE(real_root3.get(), "") << error_msg; in TEST_F()
101 std::string error_msg; in TEST_F() local
[all …]
Dzip_archive_test.cc35 std::string error_msg; in TEST_F() local
36 …que_ptr<ZipArchive> zip_archive(ZipArchive::Open(GetLibCoreDexFileNames()[0].c_str(), &error_msg)); in TEST_F()
37 ASSERT_TRUE(zip_archive.get() != nullptr) << error_msg; in TEST_F()
38 ASSERT_TRUE(error_msg.empty()); in TEST_F()
39 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find("classes.dex", &error_msg)); in TEST_F()
41 ASSERT_TRUE(error_msg.empty()); in TEST_F()
47 bool success = zip_entry->ExtractToFile(*file, &error_msg); in TEST_F()
48 ASSERT_TRUE(success) << error_msg; in TEST_F()
49 ASSERT_TRUE(error_msg.empty()); in TEST_F()
Dfile_magic.cc32 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic() argument
36 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno)); in OpenAndReadMagic()
39 if (!ReadMagicAndReset(fd.Fd(), magic, error_msg)) { in OpenAndReadMagic()
40 StringPrintf("Error in reading magic from file %s: %s", filename, error_msg->c_str()); in OpenAndReadMagic()
46 bool ReadMagicAndReset(int fd, uint32_t* magic, std::string* error_msg) { in ReadMagicAndReset() argument
49 *error_msg = StringPrintf("Failed to find magic"); in ReadMagicAndReset()
53 *error_msg = StringPrintf("Failed to seek to beginning of file : %s", strerror(errno)); in ReadMagicAndReset()
Dscoped_flock.cc32 /* static */ ScopedFlock LockedFile::Open(const char* filename, std::string* error_msg) { in Open() argument
33 return Open(filename, O_CREAT | O_RDWR, true, error_msg); in Open()
37 std::string* error_msg) { in Open() argument
43 *error_msg = "flock is unsupported on Windows"; in Open()
54 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); in Open()
65 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); in Open()
71 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); in Open()
104 const bool read_only_mode, std::string* error_msg) { in DupOf() argument
110 *error_msg = "flock is unsupported on Windows."; in DupOf()
121 *error_msg = StringPrintf("Failed to duplicate open file '%s': %s", in DupOf()
[all …]
/art/libdexfile/dex/
Dart_dex_file_loader.cc89 std::string* error_msg, in GetMultiDexChecksums() argument
97 if (ReadMagicAndReset(zip_fd, &magic, error_msg)) { in GetMultiDexChecksums()
101 fd = OpenAndReadMagic(filename, &magic, error_msg); in GetMultiDexChecksums()
104 DCHECK(!error_msg->empty()); in GetMultiDexChecksums()
109 ZipArchive::OpenFromFd(fd.Release(), filename, error_msg)); in GetMultiDexChecksums()
111 *error_msg = StringPrintf("Failed to open zip archive '%s' (error msg: %s)", filename, in GetMultiDexChecksums()
112 error_msg->c_str()); in GetMultiDexChecksums()
118 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums()
120 *error_msg = StringPrintf("Zip archive '%s' doesn't contain %s (error msg: %s)", filename, in GetMultiDexChecksums()
121 zip_entry_name.c_str(), error_msg->c_str()); in GetMultiDexChecksums()
[all …]
Ddex_file_loader.cc68 const std::vector<uint8_t> Extract(std::string* error_msg) { in Extract() argument
71 DCHECK(!error_msg->empty()); in Extract()
76 *error_msg = std::string(ErrorCodeString(error)); in Extract()
110 static DexZipArchive* Open(const uint8_t* base, size_t size, std::string* error_msg) { in Open() argument
115 *error_msg = std::string(ErrorCodeString(error)); in Open()
122 DexZipEntry* Find(const char* name, std::string* error_msg) const { in Find()
128 *error_msg = std::string(ErrorCodeString(error)); in Find()
214 std::string* error_msg, in GetMultiDexChecksums() argument
217 *error_msg = "UNIMPLEMENTED"; in GetMultiDexChecksums()
229 std::string* error_msg, in Open() argument
[all …]
/art/runtime/
Dexec_utils_test.cc38 std::string error_msg; in TEST_F() local
41 EXPECT_TRUE(Exec(command, &error_msg)); in TEST_F()
42 EXPECT_EQ(0U, error_msg.size()) << error_msg; in TEST_F()
51 std::string error_msg; in TEST_F() local
54 EXPECT_FALSE(Exec(command, &error_msg)); in TEST_F()
55 EXPECT_FALSE(error_msg.empty()); in TEST_F()
72 std::string error_msg; in TEST_F() local
75 EXPECT_FALSE(Exec(command, &error_msg)); in TEST_F()
76 EXPECT_NE(0U, error_msg.size()) << error_msg; in TEST_F()
96 std::string error_msg; in TEST_F() local
[all …]
Dindirect_reference_table_test.cc57 std::string error_msg; in TEST_F() local
61 &error_msg); in TEST_F()
62 ASSERT_TRUE(irt.IsValid()) << error_msg; in TEST_F()
85 iref0 = irt.Add(cookie, obj0.Get(), &error_msg); in TEST_F()
88 IndirectRef iref1 = irt.Add(cookie, obj1.Get(), &error_msg); in TEST_F()
91 IndirectRef iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
113 iref0 = irt.Add(cookie, obj0.Get(), &error_msg); in TEST_F()
115 iref1 = irt.Add(cookie, obj1.Get(), &error_msg); in TEST_F()
117 iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
133 iref0 = irt.Add(cookie, obj0.Get(), &error_msg); in TEST_F()
[all …]
/art/runtime/arch/
Dinstruction_set_features_test.cc52 std::string error_msg; local
54 InstructionSetFeatures::FromVariant(kRuntimeISA, dex2oat_isa_variant, &error_msg));
55 ASSERT_TRUE(property_features.get() != nullptr) << error_msg;
85 std::string error_msg; local
87 InstructionSetFeatures::FromVariant(kRuntimeISA, dex2oat_isa_variant, &error_msg));
88 ASSERT_TRUE(base_features.get() != nullptr) << error_msg;
91 base_features->AddFeaturesFromString(dex2oat_isa_features, &error_msg));
92 ASSERT_TRUE(property_features.get() != nullptr) << error_msg;
122 std::string error_msg; local
124 InstructionSetFeatures::FromVariant(kRuntimeISA, "default", &error_msg));
[all …]
/art/runtime/gc/space/
Dimage_space_test.cc39 std::string error_msg; in TEST_F() local
45 ASSERT_TRUE(Dex2Oat(args, &error_msg)) << error_msg; in TEST_F()
54 &error_msg)); in TEST_F()
55 ASSERT_TRUE(oat != nullptr) << error_msg; in TEST_F()
58 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg; in TEST_F()
62 EXPECT_FALSE(ImageSpace::ValidateOatFile(*oat, &error_msg)); in TEST_F()
66 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg; in TEST_F()
70 EXPECT_FALSE(ImageSpace::ValidateOatFile(*oat, &error_msg)); in TEST_F()
74 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg; in TEST_F()
78 EXPECT_FALSE(ImageSpace::ValidateOatFile(*oat, &error_msg)); in TEST_F()
[all …]
/art/runtime/arch/x86/
Dinstruction_set_features_x86_test.cc24 std::string error_msg; in TEST() local
26 InstructionSetFeatures::FromVariant(InstructionSet::kX86, "default", &error_msg)); in TEST()
27 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST()
37 std::string error_msg; in TEST() local
39 InstructionSetFeatures::FromVariant(InstructionSet::kX86, "atom", &error_msg)); in TEST()
40 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST()
49 InstructionSetFeatures::FromVariant(InstructionSet::kX86, "default", &error_msg)); in TEST()
50 ASSERT_TRUE(x86_default_features.get() != nullptr) << error_msg; in TEST()
59 InstructionSetFeatures::FromVariant(InstructionSet::kX86_64, "atom", &error_msg)); in TEST()
60 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg; in TEST()
[all …]
/art/dex2oat/linker/
Delf_writer_test.cc69 std::string error_msg; in TEST_F() local
74 &error_msg)); in TEST_F()
75 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
81 std::string error_msg; in TEST_F() local
86 &error_msg)); in TEST_F()
87 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
93 std::string error_msg; in TEST_F() local
98 &error_msg)); in TEST_F()
99 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
101 bool success = ef->GetLoadedSize(&size, &error_msg); in TEST_F()
[all …]
Delf_writer.cc36 std::string error_msg; in GetOatElfInformation() local
41 &error_msg)); in GetOatElfInformation()
42 CHECK(elf_file.get() != nullptr) << error_msg; in GetOatElfInformation()
44 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg); in GetOatElfInformation()
45 CHECK(success) << error_msg; in GetOatElfInformation()
52 std::string error_msg; in Fixup() local
53 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, &error_msg)); in Fixup()
54 CHECK(elf_file.get() != nullptr) << error_msg; in Fixup()
/art/runtime/arch/arm/
Dinstruction_set_features_arm_test.cc25 std::string error_msg; in TEST() local
27 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "krait", &error_msg)); in TEST()
28 ASSERT_TRUE(krait_features.get() != nullptr) << error_msg; in TEST()
39 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "kryo", &error_msg)); in TEST()
40 ASSERT_TRUE(kryo_features.get() != nullptr) << error_msg; in TEST()
51 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "generic", &error_msg)); in TEST()
52 ASSERT_TRUE(generic_features.get() != nullptr) << error_msg; in TEST()
64 InstructionSetFeatures::FromVariant(InstructionSet::kArm, "arm6", &error_msg)); in TEST()
66 EXPECT_NE(error_msg.size(), 0U); in TEST()
70 std::string error_msg; in TEST() local
[all …]
/art/runtime/arch/arm64/
Dinstruction_set_features_arm64_test.cc25 std::string error_msg; in TEST() local
27 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "default", &error_msg)); in TEST()
28 ASSERT_TRUE(arm64_features.get() != nullptr) << error_msg; in TEST()
35 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "cortex-a57", &error_msg)); in TEST()
36 ASSERT_TRUE(cortex_a57_features.get() != nullptr) << error_msg; in TEST()
44 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "cortex-a73", &error_msg)); in TEST()
45 ASSERT_TRUE(cortex_a73_features.get() != nullptr) << error_msg; in TEST()
56 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "cortex-a35", &error_msg)); in TEST()
57 ASSERT_TRUE(cortex_a35_features.get() != nullptr) << error_msg; in TEST()
64 InstructionSetFeatures::FromVariant(InstructionSet::kArm64, "kryo", &error_msg)); in TEST()
[all …]
/art/oatdump/
Doatdump_test.cc32 std::string error_msg; in TEST_F() local
38 std::string error_msg; in TEST_F() local
44 std::string error_msg; in TEST_F() local
50 std::string error_msg; in TEST_F() local
56 std::string error_msg; in TEST_F() local
62 std::string error_msg; in TEST_F() local
68 std::string error_msg; in TEST_F() local
74 std::string error_msg; in TEST_F() local
80 std::string error_msg; in TEST_F() local
86 std::string error_msg; in TEST_F() local
[all …]
/art/runtime/arch/mips64/
Dinstruction_set_features_mips64_test.cc24 std::string error_msg; in TEST() local
26 InstructionSetFeatures::FromVariant(InstructionSet::kMips64, "default", &error_msg)); in TEST()
27 ASSERT_TRUE(mips64_features.get() != nullptr) << error_msg; in TEST()
35 std::string error_msg; in TEST() local
37 InstructionSetFeatures::FromVariant(InstructionSet::kMips64, "mips64r6", &error_msg)); in TEST()
38 ASSERT_TRUE(mips64r6_features.get() != nullptr) << error_msg; in TEST()
45 InstructionSetFeatures::FromVariant(InstructionSet::kMips64, "default", &error_msg)); in TEST()
46 ASSERT_TRUE(mips64_default_features.get() != nullptr) << error_msg; in TEST()

12345678