Home
last modified time | relevance | path

Searched refs:dex_location (Results 1 – 25 of 40) sorted by relevance

12

/aosp12/art/dexoptanalyzer/
H A Ddexoptanalyzer_test.cc118 Copy(GetDexSrc1(), dex_location); in TEST_F()
132 Copy(GetDexSrc1(), dex_location); in TEST_F()
147 Copy(GetDexSrc1(), dex_location); in TEST_F()
162 Copy(GetDexSrc1(), dex_location); in TEST_F()
190 Copy(GetDexSrc1(), dex_location); in TEST_F()
236 Copy(GetDexSrc1(), dex_location); in TEST_F()
238 Copy(GetDexSrc2(), dex_location); in TEST_F()
250 Copy(GetDexSrc1(), dex_location); in TEST_F()
269 Copy(GetDexSrc1(), dex_location); in TEST_F()
284 Copy(GetDexSrc1(), dex_location); in TEST_F()
[all …]
/aosp12/art/runtime/
H A Doat_file_assistant_test.cc274 dex_location, in TEST_F()
309 dex_location.c_str(), in TEST_F()
330 dex_location, in TEST_F()
349 dex_location.c_str(), in TEST_F()
370 dex_location, in TEST_F()
450 dex_location, in TEST_F()
616 dex_location, in TEST_F()
807 dex_location, in TEST_F()
890 dex_location, in TEST_F()
1511 dex_location.c_str(), in TEST_F()
[all …]
H A Doat_file_test.cc34 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()
59 Copy(GetTestDexFileName("MultiDexUncompressedAligned"), dex_location); in TEST_F()
60 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kVerify); in TEST_F()
65 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in TEST_F()
74 dex_location, in TEST_F()
81 Copy(GetTestDexFileName("MainUncompressedAligned"), dex_location); in TEST_F()
[all …]
H A Ddexopt_test.cc97 void DexoptTest::GenerateOatForTest(const std::string& dex_location, in GenerateOatForTest() argument
104 args.push_back("--dex-file=" + dex_location); in GenerateOatForTest()
122 dex_location.c_str(), dex_location.c_str(), /*verify=*/ false, /*verify_checksum=*/ false, in GenerateOatForTest()
160 dex_location, in GenerateOatForTest()
185 void DexoptTest::GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument
190 GenerateOatForTest(dex_location, in GenerateOdexForTest()
198 void DexoptTest::GenerateOatForTest(const char* dex_location, in GenerateOatForTest() argument
204 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in GenerateOatForTest()
205 GenerateOatForTest(dex_location, in GenerateOatForTest()
211 void DexoptTest::GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter) { in GenerateOatForTest() argument
[all …]
H A Doat_file_manager.cc169 const char* dex_location, in OpenDexFilesFromOat() argument
175 CHECK(dex_location != nullptr); in OpenDexFilesFromOat()
194 OatFileAssistant oat_file_assistant(dex_location, in OpenDexFilesFromOat()
215 dex_location, in OpenDexFilesFromOat()
392 if (!dex_file_loader.Open(dex_location, in OpenDexFilesFromOat()
393 dex_location, in OpenDexFilesFromOat()
470 std::string dex_location; in OpenDexFilesFromOat_Impl() local
500 DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()), in OpenDexFilesFromOat_Impl()
740 std::string dex_location = dex_files[0]->GetLocation(); in RunBackgroundVerification() local
742 if (!android::base::StartsWith(dex_location, data_dir)) { in RunBackgroundVerification()
[all …]
H A Ddexopt_test.h43 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);
H A Doat_file_assistant.h113 OatFileAssistant(const char* dex_location,
122 OatFileAssistant(const char* dex_location,
206 const OatFile& oat_file, const char* dex_location);
212 const std::string& dex_location,
267 /* out */ std::string* dex_location,
H A Doat_file_assistant.cc79 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument
84 : OatFileAssistant(dex_location, in OatFileAssistant()
94 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument
111 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location"; in OatFileAssistant()
124 dex_location_.assign(dex_location); in OatFileAssistant()
270 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument
272 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles()
281 const std::string& dex_location, in LoadDexFiles() argument
286 dex_location.c_str(), nullptr, &error_msg); in LoadDexFiles()
486 *dex_location = StringPrintf("%s%u", kAnonymousDexPrefix, checksum); in AnonymousDexVdexLocation()
[all …]
H A Dhidden_api.cc95 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation() argument
101 if (LocationIsOnArtModule(dex_location.c_str()) || in DetermineDomainFromLocation()
102 LocationIsOnConscryptModule(dex_location.c_str()) || in DetermineDomainFromLocation()
103 LocationIsOnI18nModule(dex_location.c_str())) { in DetermineDomainFromLocation()
107 if (LocationIsOnApex(dex_location.c_str())) { in DetermineDomainFromLocation()
112 if (LocationIsOnSystemFramework(dex_location.c_str())) { in DetermineDomainFromLocation()
116 if (LocationIsOnSystemExtFramework(dex_location.c_str())) { in DetermineDomainFromLocation()
123 LOG(WARNING) << "DexFile " << dex_location in DetermineDomainFromLocation()
H A Doat_file.cc533 std::string dex_location = dex_file->GetLocation(); in Setup() local
550 dex_location, in Setup()
558 if (canonical_location != dex_location) { in Setup()
1669 dex_location.c_str(), in Open()
1678 dex_location.c_str(), in Open()
1687 dex_location.c_str()); in Open()
1726 dex_location, in Open()
1732 loaded = dex_file_loader.Open(dex_location.c_str(), in Open()
1733 dex_location, in Open()
2022 std::string_view key(dex_location); in GetOatDexFile()
[all …]
/aosp12/art/dex2oat/
H A Ddex2oat_test.cc108 const std::string& dex_location, in GenerateOdexForTest() argument
129 const std::string& dex_location, in GenerateOdexForTest() argument
472 Copy(GetDexSrc1(), dex_location);
479 CheckResult(dex_location,
689 Copy(GetDexSrc2(), dex_location); in RunTest()
706 CompileProfileOdex(dex_location, in RunTest()
1314 { dex_location }, in TEST_F()
1651 Copy(GetDexSrc1(), dex_location); in TEST_F()
1668 Copy(GetDexSrc1(), dex_location); in TEST_F()
1692 Copy(GetDexSrc1(), dex_location); in TEST_F()
[all …]
/aosp12/art/libartbase/base/
H A Dfile_utils.cc431 static std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename() argument
435 if (LocationIsOnApex(dex_location)) { in GetApexDataDalvikCacheFilename()
444 GetDalvikCacheFilename(std::string{dex_location}.c_str(), in GetApexDataDalvikCacheFilename()
452 std::string basename = android::base::Basename(std::string{dex_location}); in GetApexDataDalvikCacheFilename()
465 std::string GetApexDataBootImage(std::string_view dex_location) { in GetApexDataBootImage() argument
466 return GetApexDataDalvikCacheFilename(dex_location, in GetApexDataBootImage()
472 std::string GetApexDataImage(std::string_view dex_location) { in GetApexDataImage() argument
473 return GetApexDataDalvikCacheFilename(dex_location, in GetApexDataImage()
479 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename() argument
483 dex_location, isa, /*encode_location=*/true, file_extension); in GetApexDataDalvikCacheFilename()
H A Dfile_utils.h102 std::string GetApexDataBootImage(std::string_view dex_location);
106 std::string GetApexDataImage(std::string_view dex_location);
111 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location,
/aosp12/art/test/164-resolution-trampoline-dex-cache/src/
H A DMain.java29 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()
/aosp12/art/libdexfile/dex/
H A Dtest_dex_file_builder_test.cc31 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()
H A Dart_dex_file_loader_test.cc305 std::string dex_location(dex_location_real.get()); in TEST_F() local
307 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F()
308 std::string multidex_location = DexFileLoader::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F()
311 std::string dex_location_sym = dex_location + "symlink"; in TEST_F()
312 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); in TEST_F()
314 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
H A Ddex_file_loader.cc179 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()
H A Ddex_file_loader_test.cc395 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()
H A Ddex_file_loader.h69 static std::string GetMultiDexLocation(size_t index, const char* dex_location);
84 static std::string GetDexCanonicalLocation(const char* dex_location);
/aosp12/art/test/155-java-set-resolved-type/src/
H A DMain.java33 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()
/aosp12/art/libprofile/profile/
H A Dprofile_boot_info.cc95 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()
H A Dprofile_compilation_info.cc603 const std::string& dex_location, in GetProfileDexFileAugmentedKey() argument
605 std::string base_key = GetProfileDexFileBaseKey(dex_location); in GetProfileDexFileAugmentedKey()
616 std::string_view dex_location) { in GetProfileDexFileBaseKeyView() argument
617 DCHECK(!dex_location.empty()); in GetProfileDexFileBaseKeyView()
618 size_t last_sep_index = dex_location.find_last_of('/'); in GetProfileDexFileBaseKeyView()
620 return dex_location; in GetProfileDexFileBaseKeyView()
622 DCHECK(last_sep_index < dex_location.size()); in GetProfileDexFileBaseKeyView()
623 return dex_location.substr(last_sep_index + 1); in GetProfileDexFileBaseKeyView()
1305 const std::string& dex_location = dex_file->GetLocation(); in VerifyProfileData() local
1317 << "dex location " << dex_location in VerifyProfileData()
[all …]
H A Dprofile_compilation_info.h441 static bool ProfileFilterFnAcceptAll(const std::string& dex_location, uint32_t checksum);
562 static std::string GetProfileDexFileBaseKey(const std::string& dex_location);
935 static std::string_view GetProfileDexFileBaseKeyView(std::string_view dex_location);
939 static std::string_view GetBaseKeyViewFromAugmentedKey(std::string_view dex_location);
945 static std::string GetProfileDexFileAugmentedKey(const std::string& dex_location,
/aosp12/art/test/692-vdex-inmem-loader/
H A Dvdex_inmem_loader.cc94 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()
/aosp12/art/oatdump/
H A Doatdump_test.cc92 const std::string dex_location = in TEST_F() local
101 ForkAndExecResult res = ForkAndExec({dexdump, "-d", dex_location}, post_fork_fn, &output); in TEST_F()

12