/art/oatdump/ |
D | oatdump_test.cc | 61 bool Exec(Mode mode, const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument 80 return ::art::Exec(exec_argv, error_msg); in Exec() 91 std::string error_msg; in TEST_F() local 92 ASSERT_TRUE(Exec(kModeArt, {}, &error_msg)) << error_msg; in TEST_F() 96 std::string error_msg; in TEST_F() local 97 ASSERT_TRUE(Exec(kModeOat, {}, &error_msg)) << error_msg; in TEST_F() 101 std::string error_msg; in TEST_F() local 102 ASSERT_TRUE(Exec(kModeArt, {"--no-dump:vmap"}, &error_msg)) << error_msg; in TEST_F() 106 std::string error_msg; in TEST_F() local 107 ASSERT_TRUE(Exec(kModeArt, {"--no-disassemble"}, &error_msg)) << error_msg; in TEST_F() [all …]
|
/art/dexdump/ |
D | dexdump_test.cc | 44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument 50 return ::art::Exec(exec_argv, error_msg); in Exec() 58 std::string error_msg; in TEST_F() local 59 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg; in TEST_F() 63 std::string error_msg; in TEST_F() local 64 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 68 std::string error_msg; in TEST_F() local 69 ASSERT_FALSE(Exec({"-c", "-i", dex_file_}, &error_msg)) << error_msg; in TEST_F() 73 std::string error_msg; in TEST_F() local 75 dex_file_}, &error_msg)) << error_msg; in TEST_F() [all …]
|
/art/dexlist/ |
D | dexlist_test.cc | 44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument 54 return ::art::Exec(exec_argv, error_msg); in Exec() 62 std::string error_msg; in TEST_F() local 63 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg; in TEST_F() 67 std::string error_msg; in TEST_F() local 68 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 72 std::string error_msg; in TEST_F() local 73 ASSERT_FALSE(Exec({"-m", "joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 77 std::string error_msg; in TEST_F() local 78 ASSERT_TRUE(Exec({"-o", "/dev/null", dex_file_}, &error_msg)) << error_msg; in TEST_F() [all …]
|
/art/runtime/ |
D | mem_map_test.cc | 39 std::string error_msg; in GetValidMapAddress() local 46 &error_msg)); in GetValidMapAddress() 52 std::string error_msg; in RemapAtEndTest() local 62 &error_msg); in RemapAtEndTest() 65 ASSERT_TRUE(base0 != nullptr) << error_msg; in RemapAtEndTest() 75 &error_msg); in RemapAtEndTest() 77 EXPECT_EQ(m0->Begin(), base0) << error_msg; in RemapAtEndTest() 146 std::string error_msg; in TEST_F() local 153 &error_msg)); in TEST_F() 154 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() [all …]
|
D | oat_file_test.cc | 75 std::string error_msg; in TEST_F() local 78 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies(nullptr, &error_msg)) << error_msg; in TEST_F() 79 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies("", &error_msg)) << error_msg; in TEST_F() 82 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc", &error_msg)); in TEST_F() 83 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc*123*def", &error_msg)); in TEST_F() 84 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc*def*", &error_msg)); in TEST_F() 87 EXPECT_FALSE(OatFile::CheckStaticDexFileDependencies("abc*123*", &error_msg)); in TEST_F() 95 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies(encoding1.c_str(), &error_msg)) in TEST_F() 96 << error_msg << " " << encoding1; in TEST_F() 106 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies(encoding2.c_str(), &error_msg)) in TEST_F() [all …]
|
D | oat_file.cc | 93 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) { in OpenOatFile() argument 151 error_msg)) { in OpenOatFile() 155 if (!ret->ComputeFields(requested_base, elf_filename, error_msg)) { in OpenOatFile() 161 if (!ret->Setup(abs_dex_location, error_msg)) { in OpenOatFile() 170 std::string* error_msg) { in ComputeFields() argument [all …]
|
D | zip_archive_test.cc | 34 std::string error_msg; in TEST_F() local 35 …que_ptr<ZipArchive> zip_archive(ZipArchive::Open(GetLibCoreDexFileNames()[0].c_str(), &error_msg)); in TEST_F() 36 ASSERT_TRUE(zip_archive.get() != nullptr) << error_msg; in TEST_F() 37 ASSERT_TRUE(error_msg.empty()); in TEST_F() 38 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find("classes.dex", &error_msg)); in TEST_F() 40 ASSERT_TRUE(error_msg.empty()); in TEST_F() 46 bool success = zip_entry->ExtractToFile(*file, &error_msg); in TEST_F() 47 ASSERT_TRUE(success) << error_msg; in TEST_F() 48 ASSERT_TRUE(error_msg.empty()); in TEST_F()
|
D | zip_archive.cc | 43 bool ZipEntry::ExtractToFile(File& file, std::string* error_msg) { in ExtractToFile() argument 46 *error_msg = std::string(ErrorCodeString(error)); in ExtractToFile() 54 std::string* error_msg) { in ExtractToMemMap() argument 61 error_msg)); in ExtractToMemMap() 63 DCHECK(!error_msg->empty()); in ExtractToMemMap() 70 *error_msg = std::string(ErrorCodeString(error)); in ExtractToMemMap() 91 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { in Open() argument 97 *error_msg = std::string(ErrorCodeString(error)); in Open() 106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() argument 113 *error_msg = std::string(ErrorCodeString(error)); in OpenFromFd() [all …]
|
D | oat_file_assistant.cc | 120 bool OatFileAssistant::Lock(std::string* error_msg) { in Lock() argument 121 CHECK(error_msg != nullptr); in Lock() 125 *error_msg = "Failed to determine lock file"; in Lock() 130 if (!flock_.Init(lock_file_name.c_str(), error_msg)) { in Lock() 206 OatFileAssistant::MakeUpToDate(CompilerFilter::Filter target, std::string* error_msg) { in MakeUpToDate() argument 209 case kDex2OatNeeded: return GenerateOatFile(target, error_msg); in MakeUpToDate() 210 case kPatchOatNeeded: return RelocateOatFile(OdexFileName(), error_msg); in MakeUpToDate() 211 case kSelfPatchOatNeeded: return RelocateOatFile(OatFileName(), error_msg); in MakeUpToDate() 273 std::string error_msg; in LoadDexFiles() local 282 std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error_msg); in LoadDexFiles() [all …]
|
D | elf_file.cc | 63 std::string* error_msg, in Open() argument 76 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open() 87 std::string* error_msg) { in Open() argument 91 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open() 102 std::string* error_msg) { in Setup() argument 106 *error_msg = StringPrintf("Failed to get length of file: '%s' fd=%d: %s", in Setup() 112 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of " in Setup() 129 error_msg), in Setup() 130 error_msg)) { in Setup() 136 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF program " in Setup() [all …]
|
D | zip_archive.h | 39 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;
|
D | dex2oat_environment_test.h | 56 std::string error_msg; in SetUp() local 63 ASSERT_FALSE(DexFile::GetChecksum(GetStrippedDexSrc1().c_str(), &checksum, &error_msg)) in SetUp() 72 GetMultiDexSrc1().c_str(), &error_msg, &multi1)) << error_msg; in SetUp() 77 GetMultiDexSrc2().c_str(), &error_msg, &multi2)) << error_msg; in SetUp() 138 bool GetCachedImageFile(/*out*/std::string* image, std::string* error_msg) const { in GetCachedImageFile() argument 140 return GetDalvikCacheFilename(GetImageLocation().c_str(), cache.c_str(), image, error_msg); in GetCachedImageFile()
|
/art/runtime/arch/x86/ |
D | instruction_set_features_x86_test.cc | 24 std::string error_msg; in TEST() local 26 InstructionSetFeatures::FromVariant(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(kX86, "atom", &error_msg)); in TEST() 40 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST() 49 InstructionSetFeatures::FromVariant(kX86, "default", &error_msg)); in TEST() 50 ASSERT_TRUE(x86_default_features.get() != nullptr) << error_msg; in TEST() 59 InstructionSetFeatures::FromVariant(kX86_64, "atom", &error_msg)); in TEST() 60 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg; in TEST() [all …]
|
/art/runtime/arch/arm/ |
D | instruction_set_features_arm_test.cc | 25 std::string error_msg; in TEST() local 27 InstructionSetFeatures::FromVariant(kArm, "krait", &error_msg)); in TEST() 28 ASSERT_TRUE(krait_features.get() != nullptr) << error_msg; in TEST() 39 InstructionSetFeatures::FromVariant(kArm, "denver", &error_msg)); in TEST() 40 ASSERT_TRUE(denver_features.get() != nullptr) << error_msg; in TEST() 52 InstructionSetFeatures::FromVariant(kArm, "arm7", &error_msg)); in TEST() 53 ASSERT_TRUE(arm7_features.get() != nullptr) << error_msg; in TEST() 65 InstructionSetFeatures::FromVariant(kArm, "arm6", &error_msg)); in TEST() 67 EXPECT_NE(error_msg.size(), 0U); in TEST() 71 std::string error_msg; in TEST() local [all …]
|
/art/compiler/ |
D | elf_writer.cc | 44 std::string error_msg; in GetOatElfInformation() local 49 &error_msg)); in GetOatElfInformation() 50 CHECK(elf_file.get() != nullptr) << error_msg; in GetOatElfInformation() 52 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg); in GetOatElfInformation() 53 CHECK(success) << error_msg; in GetOatElfInformation() 60 std::string error_msg; in Fixup() local 61 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, &error_msg)); in Fixup() 62 CHECK(elf_file.get() != nullptr) << error_msg; in Fixup()
|
D | elf_writer_test.cc | 66 std::string error_msg; in TEST_F() local 71 &error_msg)); in TEST_F() 72 CHECK(ef.get() != nullptr) << error_msg; in TEST_F() 78 std::string error_msg; in TEST_F() local 83 &error_msg)); in TEST_F() 84 CHECK(ef.get() != nullptr) << error_msg; in TEST_F() 90 std::string error_msg; in TEST_F() local 95 &error_msg)); in TEST_F() 96 CHECK(ef.get() != nullptr) << error_msg; in TEST_F() 97 CHECK(ef->Load(file.get(), false, /*low_4gb*/false, &error_msg)) << error_msg; in TEST_F()
|
/art/imgdiag/ |
D | imgdiag_test.cc | 86 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { in Exec() argument 115 return ::art::Exec(exec_argv, error_msg); in Exec() 119 bool ExecDefaultBootImage(pid_t image_diff_pid, std::string* error_msg) { in ExecDefaultBootImage() argument 120 return Exec(image_diff_pid, boot_image_location_, error_msg); in ExecDefaultBootImage() 141 std::string error_msg; in TEST_F() local 142 ASSERT_TRUE(ExecDefaultBootImage(getpid(), &error_msg)) << "Failed to execute -- because: " in TEST_F() 143 << error_msg; in TEST_F() 150 std::string error_msg; in TEST_F() local 152 &error_msg)) << "Incorrectly executed"; in TEST_F() 153 UNUSED(error_msg); in TEST_F()
|
/art/runtime/base/ |
D | scoped_flock.cc | 28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { in Init() argument 29 return Init(filename, O_CREAT | O_RDWR, true, error_msg); in Init() 32 bool ScopedFlock::Init(const char* filename, int flags, bool block, std::string* error_msg) { in Init() argument 39 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); in Init() 49 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); in Init() 55 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); in Init() 85 bool ScopedFlock::Init(File* file, std::string* error_msg) { in Init() argument 89 *error_msg = StringPrintf("Failed to duplicate open file '%s': %s", in Init() 95 *error_msg = StringPrintf( in Init()
|
D | file_magic.cc | 29 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic() argument 33 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno)); in OpenAndReadMagic() 38 *error_msg = StringPrintf("Failed to find magic in '%s'", filename); in OpenAndReadMagic() 42 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename, in OpenAndReadMagic()
|
D | scoped_flock_test.cc | 27 std::string error_msg; in TEST_F() local 35 &error_msg)); in TEST_F() 37 ASSERT_FALSE(file_lock.Init("/guaranteed/not/to/exist", &error_msg)); in TEST_F()
|
/art/cmdline/ |
D | cmdline.h | 66 std::string error_msg; in LocationToFilename() local 68 &cache_filename, &error_msg)) { in LocationToFilename() 139 std::string error_msg; in Parse() local 163 ParseStatus parse_status = ParseCustom(option, &error_msg); in Parse() 170 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse() 180 ParseStatus checks_status = ParseChecks(&error_msg); in Parse() 182 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse() 226 bool ParseCheckBootImage(std::string* error_msg) { in ParseCheckBootImage() 228 *error_msg = "--boot-image must be specified"; in ParseCheckBootImage() 239 *error_msg = "Boot image location must have a / in it"; in ParseCheckBootImage() [all …]
|
/art/runtime/gc/space/ |
D | image_space.cc | 82 std::string* error_msg) { in GenerateImage() argument 87 *error_msg = "Failed to generate image because no boot class path specified"; in GenerateImage() 137 return Exec(arg_vector, error_msg); in GenerateImage() 170 std::string error_msg; in FindImageFilename() local 171 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) { in FindImageFilename() 172 LOG(WARNING) << error_msg; in FindImageFilename() 194 InstructionSet isa, std::string* error_msg) { in RelocateImage() argument 227 return Exec(argv, error_msg); in RelocateImage() 230 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { in ReadSpecificImageHeader() argument 233 *error_msg = StringPrintf("Unable to read image header for %s", filename); in ReadSpecificImageHeader() [all …]
|
/art/runtime/arch/ |
D | instruction_set_features_test.cc | 46 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 …]
|
D | instruction_set_features.cc | 34 std::string* error_msg) { in FromVariant() argument 39 result = ArmInstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant() 42 result = Arm64InstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant() 45 result = MipsInstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant() 48 result = Mips64InstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant() 51 result = X86InstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant() 54 result = X86_64InstructionSetFeatures::FromVariant(variant, error_msg); in FromVariant() 60 CHECK_EQ(result == nullptr, error_msg->size() != 0); in FromVariant() 213 const std::string& feature_list, std::string* error_msg) const { in AddFeaturesFromString() 215 *error_msg = "No instruction set features specified"; in AddFeaturesFromString() [all …]
|
/art/compiler/utils/ |
D | assembler_test_base.h | 115 EXPECT_TRUE(res.ok) << res.error_msg; in Driver() 199 std::string error_msg; member 206 bool Assemble(const char* from_file, const char* to_file, std::string* error_msg) { in Assemble() argument 229 bool success = Exec(args, error_msg); in Assemble() 248 std::string error_msg; in Objdump() local 265 if (!Exec(args, &error_msg)) { in Objdump() 266 EXPECT_TRUE(false) << error_msg; in Objdump() 299 std::string error_msg; in DisassembleBinaries() local 300 if (!DisassembleBinary(data_name, &error_msg)) { in DisassembleBinaries() 301 LOG(INFO) << "Error disassembling: " << error_msg; in DisassembleBinaries() [all …]
|