Home
last modified time | relevance | path

Searched refs:error_msg (Results 51 – 75 of 189) sorted by relevance

12345678

/art/runtime/
Dvdex_file_test.cc33 std::string error_msg; in TEST_F() local
40 &error_msg); in TEST_F()
44 tmp.GetFilename(), /*writable=*/false, /*low_4gb=*/false, /*unquicken=*/ false, &error_msg); in TEST_F()
Delf_file.h47 /*out*/std::string* error_msg);
53 /*out*/std::string* error_msg);
61 /*out*/std::string* error_msg);
83 bool GetLoadedSize(size_t* size, std::string* error_msg) const;
87 static bool Strip(File* file, std::string* error_msg);
Delf_file_impl.h50 /*out*/std::string* error_msg);
55 /*out*/std::string* error_msg);
112 bool GetLoadedSize(size_t* size, std::string* error_msg) const;
120 /*out*/std::string* error_msg);
133 bool Strip(File* file, std::string* error_msg);
140 /*out*/std::string* error_msg) const;
142 bool Setup(File* file, int prot, int flags, bool low_4gb, std::string* error_msg);
144 bool SetMap(File* file, MemMap&& map, std::string* error_msg);
168 bool CheckSectionsExist(File* file, std::string* error_msg) const;
174 bool CheckAndSet(Elf32_Off offset, const char* label, uint8_t** target, std::string* error_msg);
Dindirect_reference_table.cc69 std::string* error_msg) in IndirectReferenceTable() argument
75 CHECK(error_msg != nullptr); in IndirectReferenceTable()
86 error_msg); in IndirectReferenceTable()
87 if (!table_mem_map_.IsValid() && error_msg->empty()) { in IndirectReferenceTable()
88 *error_msg = "Unable to map memory for indirect ref table"; in IndirectReferenceTable()
213 bool IndirectReferenceTable::Resize(size_t new_size, std::string* error_msg) { in Resize() argument
218 *error_msg = android::base::StringPrintf("Requested size exceeds maximum: %zu", new_size); in Resize()
228 error_msg); in Resize()
243 std::string* error_msg) { in Add() argument
263 *error_msg = oss.str(); in Add()
[all …]
Ddex2oat_environment_test.h71 std::string error_msg; in SetUp() local
79 dex_file_loader.GetMultiDexChecksums(GetStrippedDexSrc1().c_str(), &checksums, &error_msg)) in SetUp()
92 &error_msg, in SetUp()
93 &multi1)) << error_msg; in SetUp()
101 &error_msg, in SetUp()
102 &multi2)) << error_msg; in SetUp()
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);
Dmodule_exclusion_test.cc160 std::string error_msg; in TEST_F() local
161 bool success = StartDex2OatCommandLine(&argv, &error_msg); in TEST_F()
162 ASSERT_TRUE(success) << error_msg; in TEST_F()
170 success = RunDex2Oat(argv, &error_msg); in TEST_F()
171 ASSERT_TRUE(success) << error_msg; in TEST_F()
179 &error_msg)); in TEST_F()
180 ASSERT_TRUE(odex_file != nullptr) << error_msg; in TEST_F()
183 std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error_msg); in TEST_F()
Doat_file_manager.cc176 /*out*/ std::string* error_msg) { in ClassLoaderContextMatches() argument
178 DCHECK(error_msg != nullptr); in ClassLoaderContextMatches()
251 std::string error_msg; in OpenDexFilesFromOat() local
259 /*out*/ &error_msg)) { in OpenDexFilesFromOat()
357 } else if (!error_msg.empty()) { in OpenDexFilesFromOat()
358 LOG(WARNING) << error_msg; in OpenDexFilesFromOat()
401 std::string error_msg; in OpenDexFilesFromOat() local
408 /*out*/ &error_msg, in OpenDexFilesFromOat()
410 LOG(WARNING) << error_msg; in OpenDexFilesFromOat()
412 + " because: " + error_msg); in OpenDexFilesFromOat()
[all …]
/art/tools/art_verifier/
Dart_verifier.cc46 std::string error_msg; in LoadDexFile() local
51 &error_msg, in LoadDexFile()
53 LOG(ERROR) << error_msg; in LoadDexFile()
97 std::string* error_msg) override { in ParseCustom()
100 ParseStatus base_parse = Base::ParseCustom(raw_option, raw_option_length, error_msg); in ParseCustom()
128 ParseStatus ParseChecks(std::string* error_msg) override { in ParseChecks()
130 ParseStatus parent_checks = Base::ParseChecks(error_msg); in ParseChecks()
137 *error_msg = "--dex-filename not set"; in ParseChecks()
247 std::string error_msg; in ExecuteWithRuntime() local
255 &error_msg); in ExecuteWithRuntime()
[all …]
/art/runtime/verifier/
Dmethod_verifier_test.cc44 std::string error_msg; in VerifyClass() local
46 self, klass, nullptr, true, HardFailLogMode::kLogWarning, /* api_level= */ 0u, &error_msg); in VerifyClass()
50 failure == FailureKind::kNoFailure) << error_msg; in VerifyClass()
53 ASSERT_TRUE(failure == FailureKind::kNoFailure) << error_msg; in VerifyClass()
/art/runtime/arch/
Dinstruction_set_features.cc37 InstructionSet isa, const std::string& variant, std::string* error_msg) { in FromVariant() argument
41 return ArmInstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant()
43 return Arm64InstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant()
45 return X86InstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant()
47 return X86_64InstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant()
170 const std::string& feature_list, /* out */ std::string* error_msg) const { in AddFeaturesFromString()
180 *error_msg = "No instruction set features specified"; in AddFeaturesFromString()
189 *error_msg = "Specific instruction set feature(s) cannot be used when 'default' is used."; in AddFeaturesFromString()
197 *error_msg = "Specific instruction set feature(s) cannot be used when 'runtime' is used."; in AddFeaturesFromString()
219 return AddFeaturesFromSplitString(features, error_msg); in AddFeaturesFromString()
/art/runtime/jni/
Djni_env_ext-inl.h28 std::string error_msg; in AddLocalReference() local
29 IndirectRef ref = locals_.Add(local_ref_cookie_, obj, &error_msg); in AddLocalReference()
32 LOG(FATAL) << error_msg; in AddLocalReference()
/art/runtime/arch/x86_64/
Dinstruction_set_features_x86_64_test.cc25 std::string error_msg; in TEST() local
27 InstructionSetFeatures::FromVariant(InstructionSet::kX86_64, "default", &error_msg)); in TEST()
28 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg; in TEST()
Dinstruction_set_features_x86_64.h31 static X86_64FeaturesUniquePtr FromVariant(const std::string& variant, std::string* error_msg) { in FromVariant() argument
32 return Convert(X86InstructionSetFeatures::FromVariant(variant, error_msg, true)); in FromVariant()
72 std::string* error_msg) const override { in AddFeaturesFromSplitString() argument
73 return X86InstructionSetFeatures::AddFeaturesFromSplitString(features, true, error_msg); in AddFeaturesFromSplitString()
/art/dex2oat/
Ddex2oat_test.cc76 std::string* error_msg, in GenerateOdexForTestWithStatus() argument
103 int status = Dex2Oat(args, error_msg);
152 std::string error_msg; in GenerateOdexForTest() local
156 &error_msg, in GenerateOdexForTest()
163 << "Failed to compile odex: " << error_msg << std::endl << output_; in GenerateOdexForTest()
173 &error_msg)); in GenerateOdexForTest()
175 return ::testing::AssertionFailure() << "Could not open odex file: " << error_msg; in GenerateOdexForTest()
185 error_msg_ = error_msg; in GenerateOdexForTest()
195 &error_msg)); in GenerateOdexForTest()
197 return ::testing::AssertionFailure() << "Could open odex file: " << error_msg; in GenerateOdexForTest()
[all …]
/art/libdexfile/dex/
Ddex_file_loader.h119 std::string* error_msg,
132 std::string* error_msg,
146 std::string* error_msg) const;
157 std::string* error_msg,
176 std::string* error_msg,
187 std::string* error_msg,
198 std::string* error_msg) const;
Ddex_file_loader_test.cc214 std::string* error_msg) { in OpenDexFilesBase64() argument
227 error_msg, in OpenDexFilesBase64()
237 std::string error_msg; in OpenDexFileBase64() local
240 &error_msg); in OpenDexFileBase64()
241 CHECK(success) << error_msg; in OpenDexFileBase64()
354 std::string error_msg; in TEST_F() local
363 &error_msg, in TEST_F()
373 std::string error_msg; in TEST_F() local
382 &error_msg, in TEST_F()
416 std::string error_msg; in TEST_F() local
[all …]
Ddex_file_verifier_test.cc78 std::string error_msg; in VerifyModification() local
84 &error_msg); in VerifyModification()
86 EXPECT_TRUE(success) << error_msg; in VerifyModification()
90 EXPECT_NE(error_msg.find(expected_error), std::string::npos) << error_msg; in VerifyModification()
98 std::string* error_msg) { in OpenDexFileBase64() argument
115 error_msg, in OpenDexFileBase64()
117 CHECK(success) << *error_msg; in OpenDexFileBase64()
145 std::string error_msg; in TEST_F() local
148 &error_msg)); in TEST_F()
149 ASSERT_TRUE(raw.get() != nullptr) << error_msg; in TEST_F()
[all …]
/art/tools/dexanalyze/
Ddexanalyze_test.cc34 std::string error_msg; in DexAnalyzeExec() local
35 ASSERT_EQ(::art::Exec(argv, &error_msg), expect_success) << error_msg; in DexAnalyzeExec()
/art/libartbase/base/
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);
Dmem_map.cc153 bool MemMap::ContainedWithinExistingMap(uint8_t* ptr, size_t size, std::string* error_msg) { in ContainedWithinExistingMap() argument
168 if (error_msg != nullptr) { in ContainedWithinExistingMap()
170 *error_msg = StringPrintf("Requested region 0x%08" PRIxPTR "-0x%08" PRIxPTR " does not overlap " in ContainedWithinExistingMap()
186 std::string* error_msg) { in CheckMapRequest() argument
207 if (error_msg != nullptr) { in CheckMapRequest()
225 *error_msg = os.str(); in CheckMapRequest()
234 /*out*/std::string* error_msg) { in CheckReservation() argument
236 *error_msg = StringPrintf("Invalid reservation for %s", name); in CheckReservation()
241 *error_msg = StringPrintf("Bad image reservation start for %s: %p instead of %p", in CheckReservation()
248 *error_msg = StringPrintf("Insufficient reservation, required %zu, available %zu", in CheckReservation()
[all …]
/art/libnativeloader/include/nativeloader/
Dnative_loader.h45 const char* caller_location, jstring library_path, bool* needs_native_bridge, char** error_msg);
49 char** error_msg);
67 char** error_msg);
/art/runtime/arch/x86/
Dinstruction_set_features_x86.h52 std::string* error_msg,
98 std::string* error_msg) const override { in AddFeaturesFromSplitString() argument
99 return AddFeaturesFromSplitString(features, false, error_msg); in AddFeaturesFromSplitString()
105 std::string* error_msg) const;
/art/libdexfile/external/include/art_api/
Ddex_file_support.h40 bool TryLoadLibdexfileExternal(std::string* error_msg);
84 friend bool TryLoadLibdexfileExternal(std::string* error_msg);
152 /*out*/ std::string* error_msg) { in OpenFromMemory() argument
163 *error_msg = (ext_error_msg == nullptr) ? "" : std::string(DexString(ext_error_msg)); in OpenFromMemory()
175 /*out*/ std::string* error_msg) { in OpenFromFd() argument
186 *error_msg = std::string(DexString(ext_error_msg)); in OpenFromFd()
219 friend bool TryLoadLibdexfileExternal(std::string* error_msg);
/art/runtime/jit/
Djit_memory_region_test.cc60 std::string error_msg; in BasicTest() local
62 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in BasicTest()
76 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in BasicTest()
113 std::string error_msg; in TestUnmapWritableAfterFork() local
118 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in TestUnmapWritableAfterFork()
137 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in TestUnmapWritableAfterFork()
144 android::base::unique_fd fd2(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in TestUnmapWritableAfterFork()
210 std::string error_msg; in TestMadviseDontFork() local
215 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in TestMadviseDontFork()
235 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in TestMadviseDontFork()
[all …]

12345678