/art/runtime/ |
D | vdex_file_test.cc | 33 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()
|
D | elf_file.h | 47 /*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);
|
D | elf_file_impl.h | 50 /*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);
|
D | indirect_reference_table.cc | 69 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 …]
|
D | dex2oat_environment_test.h | 71 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()
|
D | exec_utils.h | 29 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);
|
D | module_exclusion_test.cc | 160 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()
|
D | oat_file_manager.cc | 176 /*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/ |
D | art_verifier.cc | 46 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/ |
D | method_verifier_test.cc | 44 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/ |
D | instruction_set_features.cc | 37 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/ |
D | jni_env_ext-inl.h | 28 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/ |
D | instruction_set_features_x86_64_test.cc | 25 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()
|
D | instruction_set_features_x86_64.h | 31 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/ |
D | dex2oat_test.cc | 76 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/ |
D | dex_file_loader.h | 119 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;
|
D | dex_file_loader_test.cc | 214 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 …]
|
D | dex_file_verifier_test.cc | 78 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/ |
D | dexanalyze_test.cc | 34 std::string error_msg; in DexAnalyzeExec() local 35 ASSERT_EQ(::art::Exec(argv, &error_msg), expect_success) << error_msg; in DexAnalyzeExec()
|
/art/libartbase/base/ |
D | file_magic.h | 28 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg); 31 bool ReadMagicAndReset(int fd, uint32_t* magic, std::string* error_msg);
|
D | mem_map.cc | 153 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/ |
D | native_loader.h | 45 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/ |
D | instruction_set_features_x86.h | 52 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/ |
D | dex_file_support.h | 40 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/ |
D | jit_memory_region_test.cc | 60 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 …]
|