Home
last modified time | relevance | path

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

12

/art/dexoptanalyzer/
Ddexoptanalyzer_test.cc102 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/
Doat_file_assistant_test.cc105 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 …]
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()
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 …]
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);
Ddexopt_test.cc94 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()
Doat_file_assistant.h108 OatFileAssistant(const char* dex_location,
116 OatFileAssistant(const char* dex_location,
192 const OatFile& oat_file, const char* dex_location);
198 const std::string& dex_location,
251 /* out */ std::string* dex_location,
Doat_file_manager.cc213 const char* dex_location, in OpenDexFilesFromOat() argument
219 CHECK(dex_location != nullptr); in OpenDexFilesFromOat()
239 OatFileAssistant oat_file_assistant(dex_location, in OpenDexFilesFromOat()
246 VLOG(oat) << "OatFileAssistant(" << dex_location << ").GetBestOatFile()=" in OpenDexFilesFromOat()
292 StringPrintf("Adding image space for location %s", dex_location)); in OpenDexFilesFromOat()
331 OatFileAssistant nonexecutable_oat_file_assistant(dex_location, in OpenDexFilesFromOat()
338 dex_files = oat_file_assistant.LoadDexFiles(*oat_file.get(), dex_location); in OpenDexFilesFromOat()
404 if (!dex_file_loader.Open(dex_location, in OpenDexFilesFromOat()
405 dex_location, in OpenDexFilesFromOat()
411 error_msgs->push_back("Failed to open dex files from " + std::string(dex_location) in OpenDexFilesFromOat()
[all …]
Doat_file_assistant.cc77 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()
253 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument
255 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles()
264 const std::string& dex_location, in LoadDexFiles() argument
269 dex_location.c_str(), nullptr, &error_msg); in LoadDexFiles()
284 std::string multidex_dex_location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in LoadDexFiles()
[all …]
Dhidden_api.cc89 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation() argument
95 if (LocationIsOnArtModule(dex_location.c_str()) || in DetermineDomainFromLocation()
96 LocationIsOnConscryptModule(dex_location.c_str()) || in DetermineDomainFromLocation()
97 LocationIsOnI18nModule(dex_location.c_str())) { in DetermineDomainFromLocation()
101 if (LocationIsOnApex(dex_location.c_str())) { in DetermineDomainFromLocation()
106 if (LocationIsOnSystemFramework(dex_location.c_str())) { in DetermineDomainFromLocation()
110 if (LocationIsOnSystemExtFramework(dex_location.c_str())) { in DetermineDomainFromLocation()
117 LOG(WARNING) << "DexFile " << dex_location in DetermineDomainFromLocation()
Doat_file_manager.h97 const char* dex_location,
Doat_file.cc470 std::string dex_location = dex_file->GetLocation(); in Setup() local
471 std::string canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location.c_str()); in Setup()
474 OatDexFile* oat_dex_file = new OatDexFile(this, dex_file, dex_location, canonical_location); in Setup()
480 if (canonical_location != dex_location) { in Setup()
1795 const OatDexFile* OatFile::GetOatDexFile(const char* dex_location, in GetOatDexFile() argument
1807 std::string_view key(dex_location); in GetOatDexFile()
1824 std::string dex_canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location); in GetOatDexFile()
1825 if (dex_canonical_location != dex_location) { in GetOatDexFile()
1842 std::string dex_canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location); in GetOatDexFile()
1843 *error_msg = "Failed to find OatDexFile for DexFile " + std::string(dex_location) in GetOatDexFile()
[all …]
Dclass_loader_context_test.cc1560 std::string dex_location = GetTestDexFileName("ForClassLoaderA"); in TEST_F() local
1561 size_t pos = dex_location.rfind('/'); in TEST_F()
1563 std::string parent = dex_location.substr(0, pos); in TEST_F()
1583 std::string dex_location = GetTestDexFileName("ForClassLoaderA"); in TEST_F() local
1584 size_t pos = dex_location.rfind('/'); in TEST_F()
1586 std::string parent = dex_location.substr(0, pos); in TEST_F()
1603 std::string dex_location = GetTestDexFileName("MultiDex"); in TEST_F() local
1604 size_t pos = dex_location.rfind('/'); in TEST_F()
1606 std::string parent = dex_location.substr(0, pos); in TEST_F()
/art/dex2oat/
Ddex2oat_test.cc82 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()
267 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local
[all …]
/art/test/164-resolution-trampoline-dex-cache/src/
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()
/art/libdexfile/dex/
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()
Dart_dex_file_loader_test.cc296 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()
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()
Ddex_file_loader.h69 static std::string GetMultiDexLocation(size_t index, const char* dex_location);
84 static std::string GetDexCanonicalLocation(const char* dex_location);
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()
/art/test/155-java-set-resolved-type/src/
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()
/art/libprofile/profile/
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()
Dprofile_compilation_info.cc162 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 …]
Dprofile_compilation_info.h400 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/
Doatdump_test.cc95 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/
Dvdex_inmem_loader.cc94 std::string dex_location; in Java_Main_hasVdexFile() local
100 &dex_location, in Java_Main_hasVdexFile()

12