Home
last modified time | relevance | path

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

123

/aosp_15_r20/art/dexoptanalyzer/
H A Ddexoptanalyzer_test.cc117 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 …]
/aosp_15_r20/art/runtime/oat/
H A Doat_file_assistant_test.cc209 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 …]
H A Doat_file_test.cc32 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 …]
H A Doat_file_manager.cc196 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()
370 std::make_unique<OatFileAssistant>(dex_location, in OpenDexFilesFromOat()
380 LOG(WARNING) << "Failed to reload oat file non-executable " << dex_location; in OpenDexFilesFromOat()
385 dex_files = oat_file_assistant->LoadDexFiles(*oat_file.get(), dex_location); in OpenDexFilesFromOat()
[all …]
H A Doat_file_assistant.cc88 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument
94 : OatFileAssistant(dex_location, in OatFileAssistant()
104 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument
124 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location"; in OatFileAssistant()
137 dex_location_.assign(dex_location); in OatFileAssistant()
200 std::string dm_file_name = GetDmFilename(dex_location); in OatFileAssistant()
399 const OatFile& oat_file, const char* dex_location) { in LoadDexFiles() argument
401 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles()
409 const std::string& dex_location, in LoadDexFiles() argument
413 const OatDexFile* oat_dex_file = oat_file.GetOatDexFile(dex_location.c_str(), &error_msg); in LoadDexFiles()
[all …]
H A Doat_file_assistant.h165 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,
H A Doat_file.cc584 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()
1744 const std::string& dex_location, in Open() argument
1763 dex_location.c_str(), in Open()
1775 dex_location.c_str(), in Open()
1785 dex_location.c_str()); in Open()
1789 std::string location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in Open()
1826 ArtDexFileLoader dex_file_loader(&file, dex_location); in Open()
[all …]
/aosp_15_r20/art/dex2oat/
H A Ddex2oat_test.cc89 for (const std::string& dex_location : dex_locations) { local
90 args.push_back("--dex-file=" + dex_location);
123 AssertionResult GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument
130 return GenerateOdexForTest(dex_location,
143 AssertionResult GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument
153 std::string loc_arg = "--zip-location=" + dex_location; in GenerateOdexForTest()
161 dex_locations.push_back(dex_location); in GenerateOdexForTest()
183 dex_location, in GenerateOdexForTest()
211 dex_location, in GenerateOdexForTest()
246 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local
[all …]
/aosp_15_r20/art/runtime/
H A Ddexopt_test.cc98 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 …]
H A Ddexopt_test.h44 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);
H A Dhidden_api.cc102 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()
/aosp_15_r20/art/libartbase/base/
H A Dfile_utils.cc657 static std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename() argument
661 if (LocationIsOnApex(dex_location) && is_boot_classpath_location) { in GetApexDataDalvikCacheFilename()
671 GetDalvikCacheFilename(dex_location, in GetApexDataDalvikCacheFilename()
679 std::string basename = android::base::Basename(std::string{dex_location}); in GetApexDataDalvikCacheFilename()
694 std::string GetApexDataBootImage(std::string_view dex_location) { in GetApexDataBootImage() argument
696 dex_location, InstructionSet::kNone, /*is_boot_classpath_location=*/true, kArtExtension); in GetApexDataBootImage()
699 std::string GetApexDataImage(std::string_view dex_location) { in GetApexDataImage() argument
701 dex_location, InstructionSet::kNone, /*is_boot_classpath_location=*/false, kArtExtension); in GetApexDataImage()
704 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename() argument
708 dex_location, isa, /*is_boot_classpath_location=*/false, file_extension); in GetApexDataDalvikCacheFilename()
[all …]
H A Dfile_utils.h154 std::string GetApexDataBootImage(std::string_view dex_location);
158 std::string GetApexDataImage(std::string_view dex_location);
163 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location,
175 std::string GetDmFilename(const std::string& dex_location);
/aosp_15_r20/art/libdexfile/dex/
H A Ddex_file_loader.cc156 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()
240 std::string DexFileLoader::GetDexCanonicalLocation(const char* dex_location) { in GetDexCanonicalLocation() argument
241 CHECK_NE(dex_location, static_cast<const char*>(nullptr)); in GetDexCanonicalLocation()
242 std::string base_location = GetBaseLocation(dex_location); in GetDexCanonicalLocation()
243 const char* suffix = dex_location + base_location.size(); in GetDexCanonicalLocation()
259 return dex_location; in GetDexCanonicalLocation()
H A Dart_dex_file_loader_test.cc345 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()
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()
/aosp_15_r20/prebuilts/module_sdk/art/3/common_os/include/art/libartbase/base/
Dfile_utils.h114 std::string GetApexDataBootImage(std::string_view dex_location);
118 std::string GetApexDataImage(std::string_view dex_location);
123 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location,
135 std::string GetDmFilename(const std::string& dex_location);
/aosp_15_r20/prebuilts/module_sdk/art/7/common_os/include/art/libartbase/base/
Dfile_utils.h134 std::string GetApexDataBootImage(std::string_view dex_location);
138 std::string GetApexDataImage(std::string_view dex_location);
143 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location,
155 std::string GetDmFilename(const std::string& dex_location);
/aosp_15_r20/prebuilts/module_sdk/art/current/sdk/include/art/libartbase/base/
Dfile_utils.h149 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);
/aosp_15_r20/prebuilts/module_sdk/art/13/common_os/include/art/libartbase/base/
Dfile_utils.h147 std::string GetApexDataBootImage(std::string_view dex_location);
151 std::string GetApexDataImage(std::string_view dex_location);
156 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location,
168 std::string GetDmFilename(const std::string& dex_location);
/aosp_15_r20/prebuilts/module_sdk/art/current/sdk/common_os/include/art/libartbase/base/
Dfile_utils.h149 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);
/aosp_15_r20/prebuilts/module_sdk/art/current/host-exports/include/art/libartbase/base/
Dfile_utils.h147 std::string GetApexDataBootImage(std::string_view dex_location);
151 std::string GetApexDataImage(std::string_view dex_location);
156 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location,
168 std::string GetDmFilename(const std::string& dex_location);
/aosp_15_r20/prebuilts/module_sdk/art/13/include/art/libartbase/base/
Dfile_utils.h147 std::string GetApexDataBootImage(std::string_view dex_location);
151 std::string GetApexDataImage(std::string_view dex_location);
156 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location,
168 std::string GetDmFilename(const std::string& dex_location);
/aosp_15_r20/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()
/aosp_15_r20/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()

123