Searched refs:error_msg (Results 1 - 25 of 177) sorted by relevance

12345678

/art/oatdump/
H A Doatdump_app_test.cc22 std::string error_msg; local
23 ASSERT_TRUE(GenerateAppOdexFile(kDynamic, {"--runtime-arg", "-Xmx64M"}, &error_msg)) << error_msg;
24 ASSERT_TRUE(Exec(kDynamic, kModeOatWithBootImage, {}, kListAndCode, &error_msg)) << error_msg;
28 std::string error_msg; local
29 ASSERT_TRUE(GenerateAppOdexFile(kStatic, {"--runtime-arg", "-Xmx64M"}, &error_msg)) << error_msg;
30 ASSERT_TRUE(Exec(kStatic, kModeOatWithBootImage, {}, kListAndCode, &error_msg)) << error_msg;
34 std::string error_msg; local
42 std::string error_msg; local
[all...]
H A Doatdump_test.cc24 std::string error_msg; local
25 ASSERT_TRUE(Exec(kDynamic, kModeArt, {"--no-dump:vmap"}, kListAndCode, &error_msg)) << error_msg;
29 std::string error_msg; local
30 ASSERT_TRUE(Exec(kStatic, kModeArt, {"--no-dump:vmap"}, kListAndCode, &error_msg)) << error_msg;
34 std::string error_msg; local
35 ASSERT_TRUE(Exec(kDynamic, kModeArt, {"--no-disassemble"}, kListAndCode, &error_msg))
36 << error_msg;
40 std::string error_msg; local
45 std::string error_msg; local
50 std::string error_msg; local
55 std::string error_msg; local
60 std::string error_msg; local
65 std::string error_msg; local
70 std::string error_msg; local
77 std::string error_msg; local
88 std::string error_msg; local
[all...]
H A Doatdump_image_test.cc24 std::string error_msg; local
25 ASSERT_TRUE(Exec(kDynamic, kModeArt, {}, kListAndCode, &error_msg)) << error_msg;
29 std::string error_msg; local
30 ASSERT_TRUE(Exec(kStatic, kModeArt, {}, kListAndCode, &error_msg)) << error_msg;
34 std::string error_msg; local
35 ASSERT_TRUE(Exec(kDynamic, kModeOat, {}, kListAndCode, &error_msg)) << error_msg;
39 std::string error_msg; local
[all...]
/art/dexdump/
H A Ddexdump_test.cc41 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { argument
47 return ::art::Exec(exec_argv, error_msg);
55 std::string error_msg; local
56 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg;
60 std::string error_msg; local
61 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg;
65 std::string error_msg; local
66 ASSERT_FALSE(Exec({"-c", "-i", dex_file_}, &error_msg)) << error_ms
70 std::string error_msg; local
76 std::string error_msg; local
[all...]
/art/dexlist/
H A Ddexlist_test.cc43 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { argument
49 return ::art::Exec(exec_argv, error_msg);
57 std::string error_msg; local
58 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg;
62 std::string error_msg; local
63 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg;
67 std::string error_msg; local
68 ASSERT_FALSE(Exec({"-m", "joho", dex_file_}, &error_msg)) << error_ms
72 std::string error_msg; local
77 std::string error_msg; local
[all...]
/art/runtime/
H A Dexec_utils_test.cc38 std::string error_msg; local
41 EXPECT_TRUE(Exec(command, &error_msg));
43 EXPECT_EQ(0U, error_msg.size()) << error_msg;
52 std::string error_msg; local
55 EXPECT_FALSE(Exec(command, &error_msg));
56 EXPECT_FALSE(error_msg.empty());
74 std::string error_msg; local
77 EXPECT_FALSE(Exec(command, &error_msg));
78 EXPECT_NE(0U, error_msg
99 std::string error_msg; local
[all...]
H A Dvdex_file_test.cc33 std::string error_msg; local
40 &error_msg);
44 tmp.GetFilename(), /*writable*/false, /*low_4gb*/false, /*quicken*/ false, &error_msg);
H A Dzip_archive_test.cc34 std::string error_msg; local
35 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(GetLibCoreDexFileNames()[0].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 Dexec_utils.h29 bool Exec(std::vector<std::string>& arg_vector, std::string* error_msg);
30 int ExecAndReturnCode(std::vector<std::string>& arg_vector, std::string* error_msg);
H A Dzip_archive.h43 bool ExtractToFile(File& file, std::string* error_msg);
45 // Returns null on failure and sets error_msg.
47 std::string* error_msg);
54 // Returns null on failure and sets error_msg.
55 MemMap* MapDirectlyFromFile(const char* zip_filename, /*out*/std::string* error_msg);
60 std::string* error_msg);
86 static ZipArchive* Open(const char* filename, std::string* error_msg);
87 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
89 ZipEntry* Find(const char* name, std::string* error_msg) const;
H A Djni_env_ext-inl.h28 std::string error_msg; local
29 IndirectRef ref = locals_.Add(local_ref_cookie_, obj, &error_msg);
32 LOG(FATAL) << error_msg;
H A Dindirect_reference_table_test.cc56 std::string error_msg; local
60 &error_msg);
61 ASSERT_TRUE(irt.IsValid()) << error_msg;
83 iref0 = irt.Add(cookie, obj0.Get(), &error_msg);
86 IndirectRef iref1 = irt.Add(cookie, obj1.Get(), &error_msg);
89 IndirectRef iref2 = irt.Add(cookie, obj2.Get(), &error_msg);
111 iref0 = irt.Add(cookie, obj0.Get(), &error_msg);
113 iref1 = irt.Add(cookie, obj1.Get(), &error_msg);
115 iref2 = irt.Add(cookie, obj2.Get(), &error_msg);
131 iref0 = irt.Add(cookie, obj0.Get(), &error_msg);
295 std::string error_msg; local
496 std::string error_msg; local
[all...]
H A Doat_file_test.cc74 std::string error_msg; local
76 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg;
85 &error_msg));
99 std::string error_msg; local
101 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg;
113 &error_msg));
130 &error_msg));
132 EXPECT_NE(std::string::npos, error_msg
[all...]
/art/runtime/gc/space/
H A Dimage_space_test.cc38 std::string error_msg; local
44 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg;
54 &error_msg));
55 ASSERT_TRUE(oat != nullptr) << error_msg;
58 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg;
62 EXPECT_FALSE(ImageSpace::ValidateOatFile(*oat, &error_msg));
66 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg;
[all...]
/art/dexlayout/
H A Ddexdiag_test.cc70 std::string error_msg; local
79 &error_msg));
80 EXPECT_TRUE(oat != nullptr) << error_msg;
85 bool Exec(pid_t this_pid, const std::vector<std::string>& args, std::string* error_msg) { argument
101 return ::art::Exec(exec_argv, error_msg);
112 std::string error_msg; local
113 ASSERT_TRUE(Exec(getpid(), { kDexDiagHelp }, &error_msg)) << "Failed to execute -- because: "
114 << error_msg; local
124 std::string error_msg; local
125 ASSERT_TRUE(Exec(getpid(), { kDexDiagContains }, &error_msg)) << "Faile
126 << error_msg; local
136 std::string error_msg; local
139 << error_msg; local
149 std::string error_msg; local
151 << error_msg; local
[all...]
H A Ddex_verify.cc33 std::string* error_msg) {
38 if (!VerifyIds(orig.StringIds(), output.StringIds(), "string ids", error_msg) ||
39 !VerifyIds(orig.TypeIds(), output.TypeIds(), "type ids", error_msg) ||
40 !VerifyIds(orig.ProtoIds(), output.ProtoIds(), "proto ids", error_msg) ||
41 !VerifyIds(orig.FieldIds(), output.FieldIds(), "field ids", error_msg) ||
42 !VerifyIds(orig.MethodIds(), output.MethodIds(), "method ids", error_msg)) {
46 if (!VerifyClassDefs(orig.ClassDefs(), output.ClassDefs(), error_msg)) {
55 std::string* error_msg) {
57 *error_msg = StringPrintf(
62 if (!VerifyId(orig[i].get(), output[i].get(), error_msg)) {
31 VerifyOutputDexFile(dex_ir::Header* orig_header, dex_ir::Header* output_header, std::string* error_msg) argument
52 VerifyIds(std::vector<std::unique_ptr<T>>& orig, std::vector<std::unique_ptr<T>>& output, const char* section_name, std::string* error_msg) argument
69 VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg) argument
81 VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg) argument
93 VerifyId(dex_ir::ProtoId* orig, dex_ir::ProtoId* output, std::string* error_msg) argument
118 VerifyId(dex_ir::FieldId* orig, dex_ir::FieldId* output, std::string* error_msg) argument
147 VerifyId(dex_ir::MethodId* orig, dex_ir::MethodId* output, std::string* error_msg) argument
184 VerifyClassDefs(std::vector<std::unique_ptr<dex_ir::ClassDef>>& orig, std::vector<std::unique_ptr<dex_ir::ClassDef>>& output, std::string* error_msg) argument
211 VerifyClassDef(dex_ir::ClassDef* orig, dex_ir::ClassDef* output, std::string* error_msg) argument
283 VerifyAnnotationsDirectory(dex_ir::AnnotationsDirectoryItem* orig, dex_ir::AnnotationsDirectoryItem* output, std::string* error_msg) argument
314 VerifyFieldAnnotations(dex_ir::FieldAnnotationVector* orig, dex_ir::FieldAnnotationVector* output, uint32_t orig_offset, std::string* error_msg) argument
355 VerifyMethodAnnotations(dex_ir::MethodAnnotationVector* orig, dex_ir::MethodAnnotationVector* output, uint32_t orig_offset, std::string* error_msg) argument
396 VerifyParameterAnnotations(dex_ir::ParameterAnnotationVector* orig, dex_ir::ParameterAnnotationVector* output, uint32_t orig_offset, std::string* error_msg) argument
437 VerifyAnnotationSetRefList(dex_ir::AnnotationSetRefList* orig, dex_ir::AnnotationSetRefList* output, std::string* error_msg) argument
458 VerifyAnnotationSet(dex_ir::AnnotationSetItem* orig, dex_ir::AnnotationSetItem* output, std::string* error_msg) argument
485 VerifyAnnotation(dex_ir::AnnotationItem* orig, dex_ir::AnnotationItem* output, std::string* error_msg) argument
501 VerifyEncodedAnnotation(dex_ir::EncodedAnnotation* orig, dex_ir::EncodedAnnotation* output, uint32_t orig_offset, std::string* error_msg) argument
534 VerifyAnnotationElement(dex_ir::AnnotationElement* orig, dex_ir::AnnotationElement* output, uint32_t orig_offset, std::string* error_msg) argument
549 VerifyEncodedValue(dex_ir::EncodedValue* orig, dex_ir::EncodedValue* output, uint32_t orig_offset, std::string* error_msg) argument
701 VerifyEncodedArray(dex_ir::EncodedArrayItem* orig, dex_ir::EncodedArrayItem* output, std::string* error_msg) argument
731 VerifyClassData(dex_ir::ClassData* orig, dex_ir::ClassData* output, std::string* error_msg) argument
760 VerifyFields(dex_ir::FieldItemVector* orig, dex_ir::FieldItemVector* output, uint32_t orig_offset, std::string* error_msg) argument
793 VerifyMethods(dex_ir::MethodItemVector* orig, dex_ir::MethodItemVector* output, uint32_t orig_offset, std::string* error_msg) argument
829 VerifyCode(dex_ir::CodeItem* orig, dex_ir::CodeItem* output, std::string* error_msg) argument
886 VerifyDebugInfo(dex_ir::DebugInfoItem* orig, dex_ir::DebugInfoItem* output, std::string* error_msg) argument
917 VerifyTries(dex_ir::TryItemVector* orig, dex_ir::TryItemVector* output, uint32_t orig_offset, std::string* error_msg) argument
964 VerifyHandlers(dex_ir::CatchHandlerVector* orig, dex_ir::CatchHandlerVector* output, uint32_t orig_offset, std::string* error_msg) argument
991 VerifyHandler(const dex_ir::CatchHandler* orig, const dex_ir::CatchHandler* output, uint32_t orig_offset, std::string* error_msg) argument
[all...]
H A 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...]
/art/libartbase/base/
H A Dscoped_flock_test.cc27 std::string error_msg; local
35 &error_msg);
42 &error_msg);
44 ASSERT_TRUE(!error_msg.empty());
51 &error_msg);
57 &error_msg);
H A Dfile_magic.h28 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg);
31 bool ReadMagicAndReset(int fd, uint32_t* magic, std::string* error_msg);
H A Dfile_magic.cc32 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument
36 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno));
39 if (!ReadMagicAndReset(fd.Fd(), magic, error_msg)) {
40 StringPrintf("Error in reading magic from file %s: %s", filename, error_msg->c_str());
46 bool ReadMagicAndReset(int fd, uint32_t* magic, std::string* error_msg) { argument
49 *error_msg = StringPrintf("Failed to find magic");
53 *error_msg = StringPrintf("Failed to seek to beginning of file : %s", strerror(errno));
/art/runtime/arch/mips/
H A Dinstruction_set_features_mips_test.cc24 std::string error_msg; local
26 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "default", &error_msg));
27 ASSERT_TRUE(mips_features.get() != nullptr) << error_msg;
35 std::string error_msg; local
37 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "mips32r1", &error_msg));
38 ASSERT_TRUE(mips32r1_features.get() != nullptr) << error_msg;
45 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "default", &error_msg));
46 ASSERT_TRUE(mips_default_features.get() != nullptr) << error_msg;
51 std::string error_msg; local
53 InstructionSetFeatures::FromVariant(InstructionSet::kMips, "mips32r2", &error_msg));
72 std::string error_msg; local
98 std::string error_msg; local
[all...]
/art/dex2oat/linker/
H A Delf_writer.cc36 std::string error_msg; local
41 &error_msg));
42 CHECK(elf_file.get() != nullptr) << error_msg;
44 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg);
45 CHECK(success) << error_msg;
52 std::string error_msg; local
53 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, &error_msg));
54 CHECK(elf_file.get() != nullptr) << error_msg;
/art/runtime/arch/mips64/
H A Dinstruction_set_features_mips64_test.cc24 std::string error_msg; local
26 InstructionSetFeatures::FromVariant(InstructionSet::kMips64, "default", &error_msg));
27 ASSERT_TRUE(mips64_features.get() != nullptr) << error_msg;
35 std::string error_msg; local
37 InstructionSetFeatures::FromVariant(InstructionSet::kMips64, "mips64r6", &error_msg));
38 ASSERT_TRUE(mips64r6_features.get() != nullptr) << error_msg;
45 InstructionSetFeatures::FromVariant(InstructionSet::kMips64, "default", &error_msg));
46 ASSERT_TRUE(mips64_default_features.get() != nullptr) << error_msg;
/art/runtime/arch/x86_64/
H A Dinstruction_set_features_x86_64_test.cc24 std::string error_msg; local
26 InstructionSetFeatures::FromVariant(InstructionSet::kX86_64, "default", &error_msg));
27 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg;
/art/patchoat/
H A Dpatchoat_test.cc43 std::string* error_msg) {
46 *error_msg = "Failed to open directory";
64 *error_msg =
85 std::string* error_msg) {
124 return RunDex2OatOrPatchoat(argv, error_msg);
142 std::string* error_msg) {
146 return RunDex2OatOrPatchoat(argv, error_msg);
152 std::string* error_msg) {
157 return RunDex2OatOrPatchoat(argv, error_msg);
163 std::string* error_msg) {
39 ListDirFilesEndingWith( const std::string& dir, const std::string& suffix, std::vector<std::string>* filenames, std::string* error_msg) argument
82 CompileBootImage(const std::vector<std::string>& extra_args, const std::string& image_file_name_prefix, uint32_t base_addr, std::string* error_msg) argument
139 RelocateBootImage(const std::string& input_image_location, const std::string& output_image_directory, off_t base_offset_delta, std::string* error_msg) argument
149 VerifyBootImage(const std::string& input_image_location, const std::string& output_image_directory, off_t base_offset_delta, std::string* error_msg) argument
160 GenerateBootImageRelFile(const std::string& input_image_location, const std::string& output_rel_directory, off_t base_offset_delta, std::string* error_msg) argument
170 RunDex2OatOrPatchoat(const std::vector<std::string>& args, std::string* error_msg) argument
214 CompileBootImageToDir( const std::string& output_dir, const std::vector<std::string>& dex2oat_extra_args, uint32_t base_addr, std::string* error_msg) argument
222 CopyImageChecksumAndSetPatchDelta( const std::string& src_image_filename, const std::string& dest_image_filename, off_t dest_patch_delta, std::string* error_msg) argument
274 ReadFully( const std::string& filename, std::vector<uint8_t>* contents, std::string* error_msg) argument
295 BinaryDiff( const std::string& filename1, const std::string& filename2, std::string* error_msg) argument
349 std::string error_msg; local
388 FAIL() << "Failed to list *.art files in " << dex2oat_reloc_dir << ": " << error_msg; local
391 FAIL() << "Failed to list *.art files in " << patchoat_dir << ": " << error_msg; local
413 FAIL() << "Unable to patch up " << image_basename << ": " << error_msg; local
424 << " differ: " << error_msg; local
457 std::string error_msg; local
496 FAIL() << "Failed to list *.art.rel files in " << dex2oat_orig_dir_ << ": " << error_msg; local
499 FAIL() << "Failed to list *.art files in " << relocated_dir_ << ": " << error_msg; local
547 std::string error_msg; local
562 std::string error_msg; local
587 std::string error_msg; local
[all...]

Completed in 404 milliseconds

12345678