/art/oatdump/ |
D | oatdump_test.cc | 24 std::string error_msg; in TEST_F() local 25 ASSERT_TRUE(Exec(kDynamic, kModeArt, {"--no-dump:vmap"}, kListAndCode, &error_msg)) << error_msg; in TEST_F() 29 std::string error_msg; in TEST_F() local 30 ASSERT_TRUE(Exec(kStatic, kModeArt, {"--no-dump:vmap"}, kListAndCode, &error_msg)) << error_msg; in TEST_F() 34 std::string error_msg; in TEST_F() local 35 ASSERT_TRUE(Exec(kDynamic, kModeArt, {"--no-disassemble"}, kListAndCode, &error_msg)) in TEST_F() 36 << error_msg; in TEST_F() 40 std::string error_msg; in TEST_F() local 41 ASSERT_TRUE(Exec(kStatic, kModeArt, {"--no-disassemble"}, kListAndCode, &error_msg)) << error_msg; in TEST_F() 45 std::string error_msg; in TEST_F() local [all …]
|
D | oatdump_image_test.cc | 24 std::string error_msg; in TEST_F() local 25 ASSERT_TRUE(Exec(kDynamic, kModeArt, {}, kListAndCode, &error_msg)) << error_msg; in TEST_F() 29 std::string error_msg; in TEST_F() local 30 ASSERT_TRUE(Exec(kStatic, kModeArt, {}, kListAndCode, &error_msg)) << error_msg; in TEST_F() 34 std::string error_msg; in TEST_F() local 35 ASSERT_TRUE(Exec(kDynamic, kModeOat, {}, kListAndCode, &error_msg)) << error_msg; in TEST_F() 39 std::string error_msg; in TEST_F() local 40 ASSERT_TRUE(Exec(kStatic, kModeOat, {}, kListAndCode, &error_msg)) << error_msg; in TEST_F()
|
/art/runtime/gc/space/ |
D | image_space_test.cc | 35 std::string error_msg; in TEST_F() local 41 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg; in TEST_F() 50 &error_msg)); in TEST_F() 51 ASSERT_TRUE(oat != nullptr) << error_msg; in TEST_F() 54 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg; in TEST_F() 58 EXPECT_FALSE(ImageSpace::ValidateOatFile(*oat, &error_msg)); in TEST_F() 62 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg; in TEST_F() 66 EXPECT_FALSE(ImageSpace::ValidateOatFile(*oat, &error_msg)); in TEST_F() 70 EXPECT_TRUE(ImageSpace::ValidateOatFile(*oat, &error_msg)) << error_msg; in TEST_F() 74 EXPECT_FALSE(ImageSpace::ValidateOatFile(*oat, &error_msg)); in TEST_F() [all …]
|
/art/dexdump/ |
D | dexdump_test.cc | 42 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument 48 return ::art::Exec(exec_argv, error_msg); in Exec() 56 std::string error_msg; in TEST_F() local 57 ASSERT_FALSE(Exec({}, &error_msg)) << error_msg; in TEST_F() 61 std::string error_msg; in TEST_F() local 62 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 66 std::string error_msg; in TEST_F() local 67 ASSERT_FALSE(Exec({"-c", "-i", dex_file_}, &error_msg)) << error_msg; in TEST_F() 71 std::string error_msg; in TEST_F() local 73 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 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({"-m", "joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 73 std::string error_msg; in TEST_F() local 74 ASSERT_TRUE(Exec({"-o", "/dev/null", dex_file_}, &error_msg)) << error_msg; in TEST_F() [all …]
|
/art/runtime/arch/mips/ |
D | instruction_set_features_mips_test.cc | 24 std::string error_msg; in TEST() local 26 InstructionSetFeatures::FromVariant(kMips, "default", &error_msg)); in TEST() 27 ASSERT_TRUE(mips_features.get() != nullptr) << error_msg; in TEST() 35 std::string error_msg; in TEST() local 37 InstructionSetFeatures::FromVariant(kMips, "mips32r1", &error_msg)); in TEST() 38 ASSERT_TRUE(mips32r1_features.get() != nullptr) << error_msg; in TEST() 45 InstructionSetFeatures::FromVariant(kMips, "default", &error_msg)); in TEST() 46 ASSERT_TRUE(mips_default_features.get() != nullptr) << error_msg; in TEST() 51 std::string error_msg; in TEST() local 53 InstructionSetFeatures::FromVariant(kMips, "mips32r2", &error_msg)); in TEST() [all …]
|
/art/dexlayout/ |
D | dex_verify.cc | 33 std::string* error_msg) { in VerifyOutputDexFile() argument 38 if (!VerifyIds(orig.StringIds(), output.StringIds(), "string ids", error_msg) || in VerifyOutputDexFile() 39 !VerifyIds(orig.TypeIds(), output.TypeIds(), "type ids", error_msg) || in VerifyOutputDexFile() 40 !VerifyIds(orig.ProtoIds(), output.ProtoIds(), "proto ids", error_msg) || in VerifyOutputDexFile() 41 !VerifyIds(orig.FieldIds(), output.FieldIds(), "field ids", error_msg) || in VerifyOutputDexFile() 42 !VerifyIds(orig.MethodIds(), output.MethodIds(), "method ids", error_msg)) { in VerifyOutputDexFile() 46 if (!VerifyClassDefs(orig.ClassDefs(), output.ClassDefs(), error_msg)) { in VerifyOutputDexFile() 55 std::string* error_msg) { in VerifyIds() argument 57 *error_msg = StringPrintf( in VerifyIds() 62 if (!VerifyId(orig[i].get(), output[i].get(), error_msg)) { in VerifyIds() [all …]
|
D | dex_verify.h | 31 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 …]
|
D | dexdiag_test.cc | 69 std::string error_msg; in OpenOatAndVdexFiles() local 77 &error_msg)); in OpenOatAndVdexFiles() 78 EXPECT_TRUE(oat != nullptr) << error_msg; in OpenOatAndVdexFiles() 83 bool Exec(pid_t this_pid, const std::vector<std::string>& args, std::string* error_msg) { in Exec() argument 99 return ::art::Exec(exec_argv, error_msg); in Exec() 110 std::string error_msg; in TEST_F() local 111 ASSERT_TRUE(Exec(getpid(), { kDexDiagHelp }, &error_msg)) << "Failed to execute -- because: " in TEST_F() 112 << error_msg; in TEST_F() 122 std::string error_msg; local 123 ASSERT_TRUE(Exec(getpid(), { kDexDiagContains }, &error_msg)) << "Failed to execute -- because: " [all …]
|
D | dexlayout_test.cc | 248 bool FullPlainOutputExec(std::string* error_msg) { in FullPlainOutputExec() argument 265 if (!::art::Exec(dexdump_exec_argv, error_msg)) { in FullPlainOutputExec() 268 if (!::art::Exec(dexlayout_exec_argv, error_msg)) { in FullPlainOutputExec() 273 if (!::art::Exec(diff_exec_argv, error_msg)) { in FullPlainOutputExec() 281 bool DexFileOutputExec(std::string* error_msg) { in DexFileOutputExec() argument 292 if (!::art::Exec(dexlayout_exec_argv, error_msg)) { in DexFileOutputExec() 299 if (!::art::Exec(unzip_exec_argv, error_msg)) { in DexFileOutputExec() 304 if (!::art::Exec(diff_exec_argv, error_msg)) { in DexFileOutputExec() 308 if (!::art::Exec(rm_zip_exec_argv, error_msg)) { in DexFileOutputExec() 312 if (!::art::Exec(rm_out_exec_argv, error_msg)) { in DexFileOutputExec() [all …]
|
/art/runtime/ |
D | mem_map_test.cc | 41 std::string error_msg; in GetValidMapAddress() local 48 &error_msg)); in GetValidMapAddress() 54 std::string error_msg; in RemapAtEndTest() local 64 &error_msg); in RemapAtEndTest() 67 ASSERT_TRUE(base0 != nullptr) << error_msg; in RemapAtEndTest() 77 &error_msg); in RemapAtEndTest() 79 EXPECT_EQ(m0->Begin(), base0) << error_msg; in RemapAtEndTest() 148 std::string error_msg; in TEST_F() local 155 &error_msg)); in TEST_F() 156 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() [all …]
|
D | oat_file_assistant.cc | 109 std::string error_msg; in OatFileAssistant() local 111 if (DexLocationToOdexFilename(dex_location_, isa_, &odex_file_name, &error_msg)) { in OatFileAssistant() 114 LOG(WARNING) << "Failed to determine odex file name: " << error_msg; in OatFileAssistant() 119 if (DexLocationToOatFilename(dex_location_, isa_, &oat_file_name, &error_msg)) { in OatFileAssistant() 123 << dex_location_ << ": " << error_msg; in OatFileAssistant() 167 bool OatFileAssistant::Lock(std::string* error_msg) { in Lock() argument 168 CHECK(error_msg != nullptr); in Lock() 183 flock_ = LockedFile::Open(lock_file_name.c_str(), error_msg); in Lock() 210 std::string* error_msg) { in GetRuntimeCompilerFilterOption() argument 212 CHECK(error_msg != nullptr); in GetRuntimeCompilerFilterOption() [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 | dexopt_test.cc | 37 std::string error_msg; in PreRuntimeCreate() local 38 ASSERT_TRUE(PreRelocateImage(GetImageLocation(), &error_msg)) << error_msg; in PreRuntimeCreate() 39 ASSERT_TRUE(PreRelocateImage(GetImageLocation2(), &error_msg)) << error_msg; in PreRuntimeCreate() 92 std::string error_msg; in GenerateOatForTest() local 93 ASSERT_TRUE(OatFileAssistant::Dex2Oat(args, &error_msg)) << error_msg; in GenerateOatForTest() 109 &error_msg)); in GenerateOatForTest() 110 ASSERT_TRUE(odex_file.get() != nullptr) << error_msg; in GenerateOatForTest() 117 &error_msg)); in GenerateOatForTest() 118 ASSERT_TRUE(image_header != nullptr) << error_msg; in GenerateOatForTest() 173 std::string error_msg; in GenerateOatForTest() local [all …]
|
D | oat_file.cc | 103 std::string* error_msg); 109 std::string* error_msg) const = 0; 116 std::string* error_msg); 123 std::string* error_msg) = 0; 127 std::string* error_msg); 131 bool Setup(const char* abs_dex_location, std::string* error_msg); 161 std::string* error_msg) { in OpenOatFile() argument 166 if (kIsVdexEnabled && !ret->LoadVdex(vdex_filename, writable, low_4gb, error_msg)) { in OpenOatFile() 175 error_msg)) { in OpenOatFile() 179 if (!ret->ComputeFields(requested_base, elf_filename, error_msg)) { in OpenOatFile() [all …]
|
D | zip_archive.cc | 61 bool ZipEntry::ExtractToFile(File& file, std::string* error_msg) { in ExtractToFile() argument 64 *error_msg = std::string(ErrorCodeString(error)); in ExtractToFile() 72 std::string* error_msg) { in ExtractToMemMap() argument 79 error_msg)); in ExtractToMemMap() 81 DCHECK(!error_msg->empty()); in ExtractToMemMap() 88 *error_msg = std::string(ErrorCodeString(error)); in ExtractToMemMap() 95 MemMap* ZipEntry::MapDirectlyFromFile(const char* zip_filename, std::string* error_msg) { in MapDirectlyFromFile() argument 109 *error_msg = StringPrintf("Cannot map '%s' (in zip '%s') directly because it is compressed.", in MapDirectlyFromFile() 114 *error_msg = StringPrintf("Cannot map '%s' (in zip '%s') directly because " in MapDirectlyFromFile() 143 /*out*/error_msg)); in MapDirectlyFromFile() [all …]
|
D | elf_file.cc | 68 std::string* error_msg, in Open() argument 81 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open() 92 std::string* error_msg) { in Open() argument 96 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open() 107 std::string* error_msg) { in Setup() argument 111 *error_msg = StringPrintf("Failed to get length of file: '%s' fd=%d: %s", in Setup() 117 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of " in Setup() 134 error_msg), in Setup() 135 error_msg)) { in Setup() 141 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF program " in Setup() [all …]
|
/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, "kryo", &error_msg)); in TEST() 40 ASSERT_TRUE(kryo_features.get() != nullptr) << error_msg; in TEST() 51 InstructionSetFeatures::FromVariant(kArm, "denver", &error_msg)); in TEST() 52 ASSERT_TRUE(denver_features.get() != nullptr) << error_msg; in TEST() 65 InstructionSetFeatures::FromVariant(kArm, "generic", &error_msg)); in TEST() 66 ASSERT_TRUE(generic_features.get() != nullptr) << error_msg; in TEST() 78 InstructionSetFeatures::FromVariant(kArm, "arm6", &error_msg)); in TEST() [all …]
|
/art/runtime/arch/arm64/ |
D | instruction_set_features_arm64_test.cc | 25 std::string error_msg; in TEST() local 27 InstructionSetFeatures::FromVariant(kArm64, "default", &error_msg)); in TEST() 28 ASSERT_TRUE(arm64_features.get() != nullptr) << error_msg; in TEST() 35 InstructionSetFeatures::FromVariant(kArm64, "cortex-a57", &error_msg)); in TEST() 36 ASSERT_TRUE(cortex_a57_features.get() != nullptr) << error_msg; in TEST() 43 InstructionSetFeatures::FromVariant(kArm64, "cortex-a73", &error_msg)); in TEST() 44 ASSERT_TRUE(cortex_a73_features.get() != nullptr) << error_msg; in TEST() 51 InstructionSetFeatures::FromVariant(kArm64, "cortex-a35", &error_msg)); in TEST() 52 ASSERT_TRUE(cortex_a35_features.get() != nullptr) << error_msg; in TEST() 59 InstructionSetFeatures::FromVariant(kArm64, "kryo", &error_msg)); in TEST() [all …]
|
/art/compiler/ |
D | elf_writer.cc | 35 std::string error_msg; in GetOatElfInformation() local 40 &error_msg)); in GetOatElfInformation() 41 CHECK(elf_file.get() != nullptr) << error_msg; in GetOatElfInformation() 43 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg); in GetOatElfInformation() 44 CHECK(success) << error_msg; in GetOatElfInformation() 51 std::string error_msg; in Fixup() local 52 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, &error_msg)); in Fixup() 53 CHECK(elf_file.get() != nullptr) << error_msg; in Fixup()
|
D | elf_writer_test.cc | 64 std::string error_msg; in TEST_F() local 69 &error_msg)); in TEST_F() 70 CHECK(ef.get() != nullptr) << error_msg; in TEST_F() 76 std::string error_msg; in TEST_F() local 81 &error_msg)); in TEST_F() 82 CHECK(ef.get() != nullptr) << error_msg; in TEST_F() 89 std::string error_msg; in TEST_F() local 94 &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() [all …]
|
/art/runtime/arch/mips64/ |
D | instruction_set_features_mips64_test.cc | 24 std::string error_msg; in TEST() local 26 InstructionSetFeatures::FromVariant(kMips64, "default", &error_msg)); in TEST() 27 ASSERT_TRUE(mips64_features.get() != nullptr) << error_msg; in TEST() 35 std::string error_msg; in TEST() local 37 InstructionSetFeatures::FromVariant(kMips64, "mips64r6", &error_msg)); in TEST() 38 ASSERT_TRUE(mips64r6_features.get() != nullptr) << error_msg; in TEST() 45 InstructionSetFeatures::FromVariant(kMips64, "default", &error_msg)); in TEST() 46 ASSERT_TRUE(mips64_default_features.get() != nullptr) << error_msg; in TEST()
|
/art/imgdiag/ |
D | imgdiag_test.cc | 89 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { in Exec() argument 118 return ::art::Exec(exec_argv, error_msg); in Exec() 122 bool ExecDefaultBootImage(pid_t image_diff_pid, std::string* error_msg) { in ExecDefaultBootImage() argument 123 return Exec(image_diff_pid, boot_image_location_, error_msg); in ExecDefaultBootImage() 144 std::string error_msg; in TEST_F() local 145 ASSERT_TRUE(ExecDefaultBootImage(getpid(), &error_msg)) << "Failed to execute -- because: " in TEST_F() 146 << error_msg; in TEST_F() 153 std::string error_msg; in TEST_F() local 155 &error_msg)) << "Incorrectly executed"; in TEST_F() 156 UNUSED(error_msg); in TEST_F()
|
/art/runtime/base/ |
D | scoped_flock_test.cc | 27 std::string error_msg; in TEST_F() local 35 &error_msg); in TEST_F() 42 &error_msg); in TEST_F() 44 ASSERT_TRUE(!error_msg.empty()); in TEST_F() 51 &error_msg); in TEST_F() 57 &error_msg); in TEST_F()
|