/art/dexoptanalyzer/ |
D | dexoptanalyzer_test.cc | 117 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F() local 118 Copy(GetDexSrc1(), dex_location); in TEST_F() 120 Verify(dex_location, CompilerFilter::kSpeed); in TEST_F() 121 Verify(dex_location, CompilerFilter::kVerify); in TEST_F() 122 Verify(dex_location, CompilerFilter::kSpeedProfile); in TEST_F() 123 Verify(dex_location, CompilerFilter::kSpeed, in TEST_F() 129 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local 131 Copy(GetDexSrc1(), dex_location); in TEST_F() 132 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed); in TEST_F() 134 Verify(dex_location, CompilerFilter::kSpeed); in TEST_F() [all …]
|
/art/runtime/oat/ |
D | oat_file_assistant_test.cc | 209 OatFileAssistant CreateOatFileAssistant(const char* dex_location, in CreateOatFileAssistant() argument 215 return OatFileAssistant(dex_location, in CreateOatFileAssistant() 243 explicit ScopedNonWritable(const std::string& dex_location) { in ScopedNonWritable() argument 245 size_t pos = dex_location.rfind('/'); in ScopedNonWritable() 248 dex_parent_ = dex_location.substr(0, pos); in ScopedNonWritable() 278 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; in TEST_P() local 282 Copy(GetMultiDexSrc1(), dex_location); in TEST_P() 286 "--dex-file=" + dex_location, in TEST_P() 298 OatFileAssistant oat_file_assistant = CreateOatFileAssistant(dex_location.c_str(), in TEST_P() 308 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_P() [all …]
|
D | oat_file_test.cc | 32 std::string dex_location = GetScratchDir() + "/LoadOat.jar"; in TEST_F() local 34 Copy(GetDexSrc1(), dex_location); in TEST_F() 35 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 40 dex_location, kRuntimeISA, &oat_location, &error_msg)) in TEST_F() 47 dex_location, in TEST_F() 56 std::string dex_location = GetScratchDir() + "/MultiDexUncompressedAligned.jar"; in TEST_F() local 58 Copy(GetTestDexFileName("MultiDexUncompressedAligned"), dex_location); in TEST_F() 59 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kVerify); in TEST_F() 64 dex_location, kRuntimeISA, &oat_location, &error_msg)) in TEST_F() 74 dex_location, in TEST_F() [all …]
|
D | oat_file_manager.cc | 196 const char* dex_location, in OpenDexFilesFromOat() argument 201 ScopedTrace trace(StringPrintf("%s(%s)", __FUNCTION__, dex_location)); in OpenDexFilesFromOat() 202 CHECK(dex_location != nullptr); in OpenDexFilesFromOat() 221 auto oat_file_assistant = std::make_unique<OatFileAssistant>(dex_location, in OpenDexFilesFromOat() 248 Runtime::Current()->GetAppInfo()->GetRegisteredCodeType(dex_location); in OpenDexFilesFromOat() 258 VLOG(oat) << "OatFileAssistant(" << dex_location << ").GetBestOatFile()=" in OpenDexFilesFromOat() 297 std::string art_file = RuntimeImage::GetRuntimeImagePath(dex_location); in OpenDexFilesFromOat() 371 std::make_unique<OatFileAssistant>(dex_location, in OpenDexFilesFromOat() 381 LOG(WARNING) << "Failed to reload oat file non-executable " << dex_location; in OpenDexFilesFromOat() 386 dex_files = oat_file_assistant->LoadDexFiles(*oat_file.get(), dex_location); in OpenDexFilesFromOat() [all …]
|
D | oat_file_assistant.h | 165 EXPORT OatFileAssistant(const char* dex_location, 175 EXPORT OatFileAssistant(const char* dex_location, 282 const OatFile& oat_file, const char* dex_location); 288 const std::string& dex_location, 356 /* out */ std::string* dex_location,
|
D | oat_file_assistant.cc | 89 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument 95 : OatFileAssistant(dex_location, in OatFileAssistant() 105 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument 125 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location"; in OatFileAssistant() 138 dex_location_.assign(dex_location); in OatFileAssistant() 201 std::string dm_file_name = GetDmFilename(dex_location); in OatFileAssistant() 400 const OatFile& oat_file, const char* dex_location) { in LoadDexFiles() argument 402 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles() 410 const std::string& dex_location, in LoadDexFiles() argument 414 const OatDexFile* oat_dex_file = oat_file.GetOatDexFile(dex_location.c_str(), &error_msg); in LoadDexFiles() [all …]
|
D | oat_file.cc | 584 std::string dex_location = dex_file->GetLocation(); in Setup() local 585 std::string canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location.c_str()); in Setup() 603 dex_location, in Setup() 611 if (canonical_location != dex_location) { in Setup() 1730 const std::string& dex_location, in Open() argument 1749 dex_location.c_str(), in Open() 1761 dex_location.c_str(), in Open() 1771 dex_location.c_str()); in Open() 1775 std::string location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in Open() 1812 ArtDexFileLoader dex_file_loader(&file, dex_location); in Open() [all …]
|
/art/dex2oat/ |
D | dex2oat_test.cc | 79 for (const std::string& dex_location : dex_locations) { local 80 args.push_back("--dex-file=" + dex_location); 107 ::testing::AssertionResult GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument 114 return GenerateOdexForTest(dex_location, 127 ::testing::AssertionResult GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument 137 std::string loc_arg = "--zip-location=" + dex_location; in GenerateOdexForTest() 145 dex_locations.push_back(dex_location); in GenerateOdexForTest() 163 dex_location, in GenerateOdexForTest() 185 dex_location, in GenerateOdexForTest() 221 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local [all …]
|
D | dex2oat_cts_test.cc | 69 const std::string dex_location = GetTestDexFileName("Main"); in TEST_F() local 74 args.emplace_back("--dex-file=" + dex_location); in TEST_F()
|
/art/runtime/ |
D | dexopt_test.cc | 98 void DexoptTest::GenerateOatForTest(const std::string& dex_location, in GenerateOatForTest() argument 105 args.push_back("--dex-file=" + dex_location); in GenerateOatForTest() 121 ArtDexFileLoader dex_file_loader(dex_location); in GenerateOatForTest() 160 dex_location, in GenerateOatForTest() 167 OatFileAssistant oat_file_assistant(dex_location.c_str(), in GenerateOatForTest() 177 void DexoptTest::GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument 182 GenerateOatForTest(dex_location, in GenerateOdexForTest() 190 void DexoptTest::GenerateOatForTest(const char* dex_location, in GenerateOatForTest() argument 196 dex_location, kRuntimeISA, &oat_location, &error_msg)) in GenerateOatForTest() 198 GenerateOatForTest(dex_location, oat_location, filter, with_alternate_image); in GenerateOatForTest() [all …]
|
D | dexopt_test.h | 44 void GenerateOatForTest(const std::string& dex_location, 52 void GenerateOdexForTest(const std::string& dex_location, 60 void GenerateOatForTest(const char* dex_location, 65 void GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter);
|
D | runtime_image.h | 36 const std::string& dex_location, 40 static std::string GetRuntimeImagePath(const std::string& dex_location);
|
D | hidden_api.cc | 102 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation() argument 108 if (LocationIsOnArtModule(dex_location) || LocationIsOnConscryptModule(dex_location) || in DetermineDomainFromLocation() 109 LocationIsOnI18nModule(dex_location)) { in DetermineDomainFromLocation() 113 if (LocationIsOnApex(dex_location)) { in DetermineDomainFromLocation() 118 if (LocationIsOnSystemFramework(dex_location)) { in DetermineDomainFromLocation() 122 if (LocationIsOnSystemExtFramework(dex_location)) { in DetermineDomainFromLocation() 129 LOG(WARNING) << "DexFile " << dex_location in DetermineDomainFromLocation()
|
/art/test/164-resolution-trampoline-dex-cache/src/ |
D | Main.java | 29 String dex_location = System.getenv("DEX_LOCATION"); in main() local 31 ClassLoader baseLoader = getClassLoaderFor(dex_location, systemLoader, /* ex */ false); in main() 32 ClassLoader mainLoader = getClassLoaderFor(dex_location, baseLoader, /* ex */ true); in main()
|
/art/libdexfile/dex/ |
D | test_dex_file_builder_test.cc | 31 const char* dex_location = "TestDexFileBuilder/SimpleTest"; in TEST() local 32 std::unique_ptr<const DexFile> dex_file(builder.Build(dex_location)); in TEST() 34 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str()); in TEST()
|
D | art_dex_file_loader_test.cc | 345 std::string dex_location(dex_location_real.get()); in TEST_F() local 347 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F() 348 std::string multidex_location = DexFileLoader::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F() 351 std::string dex_location_sym = dex_location + "symlink"; in TEST_F() 352 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); in TEST_F() 354 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
|
D | dex_file_loader.cc | 156 std::string DexFileLoader::GetMultiDexLocation(size_t index, const char* dex_location) { in GetMultiDexLocation() argument 157 DCHECK(!IsMultiDexLocation(dex_location)); in GetMultiDexLocation() 159 return dex_location; in GetMultiDexLocation() 161 return StringPrintf("%s%cclasses%zu.dex", dex_location, kMultiDexSeparator, index + 1); in GetMultiDexLocation() 225 std::string DexFileLoader::GetDexCanonicalLocation(const char* dex_location) { in GetDexCanonicalLocation() argument 226 CHECK_NE(dex_location, static_cast<const char*>(nullptr)); in GetDexCanonicalLocation() 227 std::string base_location = GetBaseLocation(dex_location); in GetDexCanonicalLocation() 228 const char* suffix = dex_location + base_location.size(); in GetDexCanonicalLocation() 244 return dex_location; in GetDexCanonicalLocation()
|
D | dex_file_loader_test.cc | 540 const char* dex_location = dex_location_str.c_str(); in TEST_F() local 541 ASSERT_EQ("/system/app/framework.jar", DexFileLoader::GetMultiDexLocation(0, dex_location)); in TEST_F() 543 DexFileLoader::GetMultiDexLocation(1, dex_location)); in TEST_F() 545 DexFileLoader::GetMultiDexLocation(100, dex_location)); in TEST_F()
|
/art/test/155-java-set-resolved-type/src/ |
D | Main.java | 33 String dex_location = System.getenv("DEX_LOCATION"); in main() local 35 ClassLoader exLoader = getClassLoaderFor(dex_location, systemLoader, /* ex */ true); in main() 36 ClassLoader mainLoader = getClassLoaderFor(dex_location, exLoader, /* ex */ false); in main()
|
/art/libartbase/base/ |
D | file_utils.h | 149 std::string GetApexDataBootImage(std::string_view dex_location); 153 std::string GetApexDataImage(std::string_view dex_location); 158 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, 170 std::string GetDmFilename(const std::string& dex_location);
|
D | file_utils.cc | 658 static std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename() argument 662 if (LocationIsOnApex(dex_location) && is_boot_classpath_location) { in GetApexDataDalvikCacheFilename() 672 GetDalvikCacheFilename(dex_location, in GetApexDataDalvikCacheFilename() 680 std::string basename = android::base::Basename(std::string{dex_location}); in GetApexDataDalvikCacheFilename() 694 std::string GetApexDataBootImage(std::string_view dex_location) { in GetApexDataBootImage() argument 695 return GetApexDataDalvikCacheFilename(dex_location, in GetApexDataBootImage() 701 std::string GetApexDataImage(std::string_view dex_location) { in GetApexDataImage() argument 702 return GetApexDataDalvikCacheFilename(dex_location, in GetApexDataImage() 708 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename() argument 712 dex_location, isa, /*is_boot_classpath_location=*/false, file_extension); in GetApexDataDalvikCacheFilename() [all …]
|
/art/libprofile/profile/ |
D | profile_boot_info.cc | 95 std::string dex_location = file->GetLocation(); in Load() local 96 return dex_location.size() == string_length && in Load() 97 (strncmp(data.get(), dex_location.data(), string_length) == 0); in Load()
|
D | profile_compilation_info.cc | 620 const std::string& dex_location, in GetProfileDexFileAugmentedKey() argument 622 std::string base_key = GetProfileDexFileBaseKey(dex_location); in GetProfileDexFileAugmentedKey() 633 std::string_view dex_location) { in GetProfileDexFileBaseKeyView() argument 634 DCHECK(!dex_location.empty()); in GetProfileDexFileBaseKeyView() 635 size_t last_sep_index = dex_location.find_last_of('/'); in GetProfileDexFileBaseKeyView() 637 return dex_location; in GetProfileDexFileBaseKeyView() 639 DCHECK(last_sep_index < dex_location.size()); in GetProfileDexFileBaseKeyView() 640 return dex_location.substr(last_sep_index + 1); in GetProfileDexFileBaseKeyView() 644 std::string ProfileCompilationInfo::GetProfileDexFileBaseKey(const std::string& dex_location) { in GetProfileDexFileBaseKey() argument 646 return std::string(GetProfileDexFileBaseKeyView(dex_location)); in GetProfileDexFileBaseKey() [all …]
|
/art/oatdump/ |
D | oatdump_test.cc | 92 const std::string dex_location = in TEST_P() local 101 ForkAndExecResult res = ForkAndExec({dexdump, "-d", dex_location}, post_fork_fn, &output); in TEST_P()
|
/art/test/692-vdex-inmem-loader/ |
D | vdex_inmem_loader.cc | 94 std::string dex_location = dex_files[0]->GetLocation(); in Java_Main_hasVdexFile() local 97 if (!OatFileAssistant::DexLocationToOdexFilename(dex_location, in Java_Main_hasVdexFile() 101 LOG(WARNING) << "Could not get odex filename for " << dex_location << ": " << error_msg; in Java_Main_hasVdexFile()
|