/art/dexoptanalyzer/ |
D | dexoptanalyzer_test.cc | 102 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F() local 103 Copy(GetDexSrc1(), dex_location); in TEST_F() 105 Verify(dex_location, CompilerFilter::kSpeed); in TEST_F() 106 Verify(dex_location, CompilerFilter::kExtract); in TEST_F() 107 Verify(dex_location, CompilerFilter::kQuicken); in TEST_F() 108 Verify(dex_location, CompilerFilter::kSpeedProfile); in TEST_F() 109 Verify(dex_location, CompilerFilter::kSpeed, false, false, nullptr); in TEST_F() 114 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local 115 Copy(GetDexSrc1(), dex_location); in TEST_F() 116 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() [all …]
|
/art/runtime/ |
D | oat_file_assistant_test.cc | 105 explicit ScopedNonWritable(const std::string& dex_location) { in ScopedNonWritable() argument 107 size_t pos = dex_location.rfind('/'); in ScopedNonWritable() 110 dex_parent_ = dex_location.substr(0, pos); in ScopedNonWritable() 140 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; in TEST_F() local 144 Copy(GetMultiDexSrc1(), dex_location); in TEST_F() 148 "--dex-file=" + dex_location, in TEST_F() 158 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F() 164 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F() 169 std::string dex_location = GetScratchDir() + "/TestDex.jar"; in TEST_F() local 172 Copy(GetDexSrc1(), dex_location); in TEST_F() [all …]
|
D | oat_file_test.cc | 34 std::string dex_location = GetScratchDir() + "/LoadOat.jar"; in TEST_F() local 36 Copy(GetDexSrc1(), dex_location); in TEST_F() 37 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 42 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in TEST_F() 48 dex_location, in TEST_F() 57 std::string dex_location = GetScratchDir() + "/MultiDexUncompressedAligned.jar"; in TEST_F() local 59 Copy(GetTestDexFileName("MultiDexUncompressedAligned"), dex_location); in TEST_F() 60 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); in TEST_F() 65 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in TEST_F() 74 dex_location, in TEST_F() [all …]
|
D | dexopt_test.h | 43 void GenerateOatForTest(const std::string& dex_location, 51 void GenerateOdexForTest(const std::string& dex_location, 59 void GenerateOatForTest(const char* dex_location, 64 void GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter);
|
D | dexopt_test.cc | 94 void DexoptTest::GenerateOatForTest(const std::string& dex_location, in GenerateOatForTest() argument 101 args.push_back("--dex-file=" + dex_location); in GenerateOatForTest() 139 dex_location, in GenerateOatForTest() 165 void DexoptTest::GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument 170 GenerateOatForTest(dex_location, in GenerateOdexForTest() 178 void DexoptTest::GenerateOatForTest(const char* dex_location, in GenerateOatForTest() argument 184 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in GenerateOatForTest() 185 GenerateOatForTest(dex_location, in GenerateOatForTest() 191 void DexoptTest::GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter) { in GenerateOatForTest() argument 192 GenerateOatForTest(dex_location, filter, /*with_alternate_image=*/ false); in GenerateOatForTest()
|
D | oat_file_assistant.h | 108 OatFileAssistant(const char* dex_location, 116 OatFileAssistant(const char* dex_location, 194 const OatFile& oat_file, const char* dex_location); 200 const std::string& dex_location, 256 /* out */ std::string* dex_location,
|
D | oat_file_manager.cc | 455 const char* dex_location, in OpenDexFilesFromOat() argument 461 CHECK(dex_location != nullptr); in OpenDexFilesFromOat() 481 OatFileAssistant oat_file_assistant(dex_location, in OpenDexFilesFromOat() 488 VLOG(oat) << "OatFileAssistant(" << dex_location << ").GetBestOatFile()=" in OpenDexFilesFromOat() 511 LOG(WARNING) << "Dex location " << dex_location << " does not seem to include dex file. " in OpenDexFilesFromOat() 517 << dex_location; in OpenDexFilesFromOat() 529 " load classes for " << dex_location; in OpenDexFilesFromOat() 578 ScopedTrace trace2(StringPrintf("Adding image space for location %s", dex_location)); in OpenDexFilesFromOat() 611 dex_files = oat_file_assistant.LoadDexFiles(*source_oat_file, dex_location); in OpenDexFilesFromOat() 635 if (!dex_file_loader.Open(dex_location, in OpenDexFilesFromOat() [all …]
|
D | oat_file_assistant.cc | 77 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument 81 : OatFileAssistant(dex_location, in OatFileAssistant() 90 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument 103 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location"; in OatFileAssistant() 112 dex_location_.assign(dex_location); in OatFileAssistant() 260 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument 262 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles() 271 const std::string& dex_location, in LoadDexFiles() argument 276 dex_location.c_str(), nullptr, &error_msg); in LoadDexFiles() 291 std::string multidex_dex_location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in LoadDexFiles() [all …]
|
D | hidden_api.cc | 90 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation() argument 96 if (LocationIsOnArtModule(dex_location.c_str()) || in DetermineDomainFromLocation() 97 LocationIsOnConscryptModule(dex_location.c_str())) { in DetermineDomainFromLocation() 101 if (LocationIsOnApex(dex_location.c_str())) { in DetermineDomainFromLocation() 106 if (LocationIsOnSystemFramework(dex_location.c_str())) { in DetermineDomainFromLocation() 111 LOG(WARNING) << "DexFile " << dex_location in DetermineDomainFromLocation()
|
D | oat_file.cc | 479 std::string dex_location = dex_file->GetLocation(); in Setup() local 480 std::string canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location.c_str()); in Setup() 483 OatDexFile* oat_dex_file = new OatDexFile(this, dex_file, dex_location, canonical_location); in Setup() 489 if (canonical_location != dex_location) { in Setup() 1792 const OatDexFile* OatFile::GetOatDexFile(const char* dex_location, in GetOatDexFile() argument 1804 std::string_view key(dex_location); in GetOatDexFile() 1821 std::string dex_canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location); in GetOatDexFile() 1822 if (dex_canonical_location != dex_location) { in GetOatDexFile() 1839 std::string dex_canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location); in GetOatDexFile() 1840 *error_msg = "Failed to find OatDexFile for DexFile " + std::string(dex_location) in GetOatDexFile() [all …]
|
D | oat_file_manager.h | 97 const char* dex_location,
|
/art/dex2oat/ |
D | dex2oat_test.cc | 82 for (const std::string& dex_location : dex_locations) { local 83 args.push_back("--dex-file=" + dex_location); 111 const std::string& dex_location, in GenerateOdexForTest() argument 118 return GenerateOdexForTest(dex_location, 132 const std::string& dex_location, in GenerateOdexForTest() argument 142 std::string loc_arg = "--zip-location=" + dex_location; in GenerateOdexForTest() 150 dex_locations.push_back(dex_location); in GenerateOdexForTest() 172 dex_location, in GenerateOdexForTest() 194 dex_location, in GenerateOdexForTest() 217 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local [all …]
|
D | dex2oat_vdex_test.cc | 42 bool RunDex2oat(const std::string& dex_location, in RunDex2oat() argument 47 args.push_back("--dex-file=" + dex_location);
|
/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 | 296 std::string dex_location(dex_location_real.get()); in TEST_F() local 298 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F() 299 std::string multidex_location = DexFileLoader::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F() 302 std::string dex_location_sym = dex_location + "symlink"; in TEST_F() 303 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); in TEST_F() 305 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
|
D | dex_file_loader.cc | 179 std::string DexFileLoader::GetMultiDexLocation(size_t index, const char* dex_location) { in GetMultiDexLocation() argument 181 ? dex_location in GetMultiDexLocation() 182 : StringPrintf("%s%cclasses%zu.dex", dex_location, kMultiDexSeparator, index + 1); in GetMultiDexLocation() 185 std::string DexFileLoader::GetDexCanonicalLocation(const char* dex_location) { in GetDexCanonicalLocation() argument 186 CHECK_NE(dex_location, static_cast<const char*>(nullptr)); in GetDexCanonicalLocation() 187 std::string base_location = GetBaseLocation(dex_location); in GetDexCanonicalLocation() 188 const char* suffix = dex_location + base_location.size(); in GetDexCanonicalLocation() 204 return dex_location; in GetDexCanonicalLocation()
|
D | dex_file_loader.h | 69 static std::string GetMultiDexLocation(size_t index, const char* dex_location); 84 static std::string GetDexCanonicalLocation(const char* dex_location);
|
D | dex_file_loader_test.cc | 395 const char* dex_location = dex_location_str.c_str(); in TEST_F() local 396 ASSERT_EQ("/system/app/framework.jar", DexFileLoader::GetMultiDexLocation(0, dex_location)); in TEST_F() 398 DexFileLoader::GetMultiDexLocation(1, dex_location)); in TEST_F() 400 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/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 | 162 const std::string& dex_location, in GetProfileDexFileAugmentedKey() argument 164 std::string base_key = GetProfileDexFileBaseKey(dex_location); in GetProfileDexFileAugmentedKey() 174 std::string ProfileCompilationInfo::GetProfileDexFileBaseKey(const std::string& dex_location) { in GetProfileDexFileBaseKey() argument 175 DCHECK(!dex_location.empty()); in GetProfileDexFileBaseKey() 176 size_t last_sep_index = dex_location.find_last_of('/'); in GetProfileDexFileBaseKey() 178 return dex_location; in GetProfileDexFileBaseKey() 180 DCHECK(last_sep_index < dex_location.size()); in GetProfileDexFileBaseKey() 181 return dex_location.substr(last_sep_index + 1); in GetProfileDexFileBaseKey() 1120 const std::string& dex_location = dex_file->GetLocation(); in VerifyProfileData() local 1123 << "dex location " << dex_location << " (checksum=" in VerifyProfileData() [all …]
|
D | profile_compilation_info.h | 400 static bool ProfileFilterFnAcceptAll(const std::string& dex_location, uint32_t checksum); 503 static std::string GetProfileDexFileBaseKey(const std::string& dex_location); 936 static std::string GetProfileDexFileAugmentedKey(const std::string& dex_location,
|
/art/oatdump/ |
D | oatdump_test.cc | 95 const std::string dex_location = in TEST_F() local 104 ForkAndExecResult res = ForkAndExec({dexdump, "-d", dex_location}, post_fork_fn, &output); in TEST_F()
|
/art/test/692-vdex-inmem-loader/ |
D | vdex_inmem_loader.cc | 94 std::string dex_location; in Java_Main_hasVdexFile() local 100 &dex_location, in Java_Main_hasVdexFile()
|