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

12345

/art/dexdump/
H A Ddexdump_test.cc44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { argument
50 return ::art::Exec(exec_argv, error_msg);
58 std::string error_msg; local
59 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg;
63 std::string error_msg; local
64 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg;
68 std::string error_msg; local
69 ASSERT_FALSE(Exec({"-c", "-i", dex_file_}, &error_msg)) << error_ms
73 std::string error_msg; local
79 std::string error_msg; local
[all...]
/art/dexlist/
H A Ddexlist_test.cc44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { argument
54 return ::art::Exec(exec_argv, error_msg);
62 std::string error_msg; local
63 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg;
67 std::string error_msg; local
68 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg;
72 std::string error_msg; local
73 ASSERT_FALSE(Exec({"-m", "joho", dex_file_}, &error_msg)) << error_ms
77 std::string error_msg; local
82 std::string error_msg; local
[all...]
/art/oatdump/
H A Doatdump_test.cc61 bool Exec(Mode mode, const std::vector<std::string>& args, std::string* error_msg) { argument
80 return ::art::Exec(exec_argv, error_msg);
91 std::string error_msg; local
92 ASSERT_TRUE(Exec(kModeArt, {}, &error_msg)) << error_msg;
96 std::string error_msg; local
97 ASSERT_TRUE(Exec(kModeOat, {}, &error_msg)) << error_msg;
101 std::string error_msg; local
102 ASSERT_TRUE(Exec(kModeArt, {"--no-dump:vmap"}, &error_msg)) << error_ms
106 std::string error_msg; local
111 std::string error_msg; local
116 std::string error_msg; local
121 std::string error_msg; local
[all...]
/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.h42 bool Init(const char* filename, int flags, bool block, std::string* error_msg);
44 bool Init(const char* filename, std::string* error_msg);
48 bool Init(File* file, std::string* error_msg);
H A Dfile_magic.cc29 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument
33 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno));
38 *error_msg = StringPrintf("Failed to find magic in '%s'", filename);
42 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename,
H A Dscoped_flock.cc28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { argument
29 return Init(filename, O_CREAT | O_RDWR, true, error_msg);
32 bool ScopedFlock::Init(const char* filename, int flags, bool block, std::string* error_msg) { argument
39 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno));
49 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno));
55 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno));
85 bool ScopedFlock::Init(File* file, std::string* error_msg) { argument
89 *error_msg = StringPrintf("Failed to duplicate open file '%s': %s",
95 *error_msg = StringPrintf(
/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;
/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_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;
/art/runtime/
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 Dmem_map_test.cc39 std::string error_msg; local
46 &error_msg));
52 std::string error_msg; local
62 &error_msg);
65 ASSERT_TRUE(base0 != nullptr) << error_msg;
75 &error_msg);
77 EXPECT_EQ(m0->Begin(), base0) << error_msg;
146 std::string error_msg; local
153 &error_msg));
154 ASSERT_TRUE(map.get() != nullptr) << error_msg;
183 std::string error_msg; local
197 std::string error_msg; local
219 std::string error_msg; local
277 std::string error_msg; local
300 std::string error_msg; local
317 std::string error_msg; local
332 std::string error_msg; local
347 std::string error_msg; local
370 std::string error_msg; local
[all...]
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 Dzip_archive.cc43 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 Dzip_archive.h39 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 Doat_file.cc93 std::string* error_msg);
99 std::string* error_msg) const = 0;
108 std::string* error_msg) = 0;
112 std::string* error_msg);
116 bool Setup(const char* abs_dex_location, std::string* error_msg);
141 std::string* error_msg) {
151 error_msg)) {
155 if (!ret->ComputeFields(requested_base, elf_filename, error_msg)) {
161 if (!ret->Setup(abs_dex_location, error_msg)) {
170 std::string* error_msg) {
133 OpenOatFile(const std::string& elf_filename, const std::string& location, uint8_t* requested_base, uint8_t* oat_file_begin, bool writable, bool executable, bool low_4gb, const char* abs_dex_location, std::string* error_msg) argument
168 ComputeFields(uint8_t* requested_base, const std::string& file_path, std::string* error_msg) argument
236 Setup(const char* abs_dex_location, std::string* error_msg) argument
589 Load(const std::string& elf_filename, uint8_t* oat_file_begin, bool writable, bool executable, bool low_4gb, std::string* error_msg) argument
633 Dlopen(const std::string& elf_filename, uint8_t* oat_file_begin, std::string* error_msg) argument
811 OpenElfFile(File* file, const std::string& location, uint8_t* requested_base, uint8_t* oat_file_begin, bool writable, bool executable, bool low_4gb, const char* abs_dex_location, std::string* error_msg) argument
845 InitializeFromElfFile(ElfFile* elf_file, const char* abs_dex_location, std::string* error_msg) argument
863 Load(const std::string& elf_filename, uint8_t* oat_file_begin, bool writable, bool executable, bool low_4gb, std::string* error_msg) argument
883 ElfFileOpen(File* file, uint8_t* oat_file_begin, bool writable, bool executable, bool low_4gb, std::string* error_msg) argument
934 OpenWithElfFile(ElfFile* elf_file, const std::string& location, const char* abs_dex_location, std::string* error_msg) argument
944 Open(const std::string& filename, const std::string& location, uint8_t* requested_base, uint8_t* oat_file_begin, bool executable, bool low_4gb, const char* abs_dex_location, std::string* error_msg) argument
977 LOG(ERROR) << "Failed to dlopen: " << filename << " with error " << *error_msg; local
1004 OpenWritable(File* file, const std::string& location, const char* abs_dex_location, std::string* error_msg) argument
1020 OpenReadable(File* file, const std::string& location, const char* abs_dex_location, std::string* error_msg) argument
1369 std::string error_msg; local
[all...]
H A Delf_file.cc63 std::string* error_msg,
76 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) {
87 std::string* error_msg) {
91 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) {
102 std::string* error_msg) {
106 *error_msg = StringPrintf("Failed to get length of file: '%s' fd=%d: %s",
112 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of "
129 error_msg),
130 error_msg)) {
136 *error_msg
59 Open(File* file, bool writable, bool program_header_only, bool low_4gb, std::string* error_msg, uint8_t* requested_base) argument
83 Open(File* file, int prot, int flags, bool low_4gb, std::string* error_msg) argument
98 Setup(File* file, int prot, int flags, bool low_4gb, std::string* error_msg) argument
288 CheckAndSet(Elf32_Off offset, const char* label, uint8_t** target, std::string* error_msg) argument
417 SetMap(File* file, MemMap* map, std::string* error_msg) argument
1073 Load(File* file, bool executable, bool low_4gb, std::string* error_msg) argument
1404 Strip(File* file, std::string* error_msg) argument
1677 Open(File* file, bool writable, bool program_header_only, bool low_4gb, std::string* error_msg, uint8_t* requested_base) argument
1730 Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg) argument
1787 Load(File* file, bool executable, bool low_4gb, std::string* error_msg) argument
1860 Strip(File* file, std::string* error_msg) argument
[all...]
/art/compiler/
H A Delf_writer.cc44 std::string error_msg; local
49 &error_msg));
50 CHECK(elf_file.get() != nullptr) << error_msg;
52 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg);
53 CHECK(success) << error_msg;
60 std::string error_msg; local
61 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, &error_msg));
62 CHECK(elf_file.get() != nullptr) << error_msg;
H A Delf_writer_test.cc66 std::string error_msg; local
71 &error_msg));
72 CHECK(ef.get() != nullptr) << error_msg;
78 std::string error_msg; local
83 &error_msg));
84 CHECK(ef.get() != nullptr) << error_msg;
90 std::string error_msg; local
95 &error_msg));
96 CHECK(ef.get() != nullptr) << error_msg;
97 CHECK(ef->Load(file.get(), false, /*low_4gb*/false, &error_msg)) << error_ms
[all...]
/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/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;
37 std::string error_msg; local
39 InstructionSetFeatures::FromVariant(kX86, "atom", &error_msg));
40 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg;
49 InstructionSetFeatures::FromVariant(kX86, "default", &error_msg));
50 ASSERT_TRUE(x86_default_features.get() != nullptr) << error_msg;
59 InstructionSetFeatures::FromVariant(kX86_64, "atom", &error_msg));
60 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg;
74 std::string error_msg; local
[all...]
/art/imgdiag/
H A Dimgdiag_test.cc86 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { argument
115 return ::art::Exec(exec_argv, error_msg);
119 bool ExecDefaultBootImage(pid_t image_diff_pid, std::string* error_msg) { argument
120 return Exec(image_diff_pid, boot_image_location_, error_msg);
141 std::string error_msg; local
142 ASSERT_TRUE(ExecDefaultBootImage(getpid(), &error_msg)) << "Failed to execute -- because: "
143 << error_msg; local
150 std::string error_msg; local
152 &error_msg)) << "Incorrectly executed";
153 UNUSED(error_msg);
[all...]
/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/cmdline/
H A Dcmdline.h66 std::string error_msg; local
68 &cache_filename, &error_msg)) {
139 std::string error_msg; local
163 ParseStatus parse_status = ParseCustom(option, &error_msg);
170 fprintf(stderr, "%s\n", error_msg.c_str());
180 ParseStatus checks_status = ParseChecks(&error_msg);
182 fprintf(stderr, "%s\n", error_msg.c_str());
226 bool ParseCheckBootImage(std::string* error_msg) { argument
228 *error_msg = "--boot-image must be specified";
239 *error_msg
311 std::string error_msg; local
[all...]

Completed in 285 milliseconds

12345