Home
last modified time | relevance | path

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

12

/art/dexoptanalyzer/
Ddexoptanalyzer_test.cc97 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F() local
98 Copy(GetDexSrc1(), dex_location); in TEST_F()
100 Verify(dex_location, CompilerFilter::kSpeed); in TEST_F()
101 Verify(dex_location, CompilerFilter::kExtract); in TEST_F()
102 Verify(dex_location, CompilerFilter::kQuicken); in TEST_F()
103 Verify(dex_location, CompilerFilter::kSpeedProfile); in TEST_F()
108 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local
109 Copy(GetDexSrc1(), dex_location); in TEST_F()
110 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
112 Verify(dex_location, CompilerFilter::kSpeed); in TEST_F()
[all …]
/art/runtime/
Doat_file_test.cc34 std::string dex_location; in TEST_F() local
38 &dex_location, in TEST_F()
41 ASSERT_EQ("/data/app/foo/base.apk", dex_location); in TEST_F()
45 std::string dex_location; in TEST_F() local
49 &dex_location, in TEST_F()
52 ASSERT_EQ("/data/app/foo/base.apk!classes2.dex", dex_location); in TEST_F()
56 std::string dex_location; in TEST_F() local
60 &dex_location, in TEST_F()
63 ASSERT_EQ("/system/framework/base.apk", dex_location); in TEST_F()
67 std::string dex_location; in TEST_F() local
[all …]
Doat_file_assistant_test.cc76 explicit ScopedNonWritable(const std::string& dex_location) { in ScopedNonWritable() argument
78 size_t pos = dex_location.rfind('/'); in ScopedNonWritable()
81 dex_parent_ = dex_location.substr(0, pos); in ScopedNonWritable()
111 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; in TEST_F() local
115 Copy(GetMultiDexSrc1(), dex_location); in TEST_F()
119 "--dex-file=" + dex_location, in TEST_F()
129 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
135 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
140 std::string dex_location = GetScratchDir() + "/TestDex.jar"; in TEST_F() local
143 Copy(GetDexSrc1(), dex_location); in TEST_F()
[all …]
Ddexopt_test.cc71 void DexoptTest::GenerateOatForTest(const std::string& dex_location, in GenerateOatForTest() argument
81 args.push_back("--dex-file=" + dex_location); in GenerateOatForTest()
116 dex_location.c_str(), in GenerateOatForTest()
143 void DexoptTest::GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument
148 GenerateOatForTest(dex_location, in GenerateOdexForTest()
156 void DexoptTest::GenerateOatForTest(const char* dex_location, in GenerateOatForTest() argument
162 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in GenerateOatForTest()
163 GenerateOatForTest(dex_location, in GenerateOatForTest()
169 void DexoptTest::GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter) { in GenerateOatForTest() argument
170 GenerateOatForTest(dex_location, filter, /*with_alternate_image=*/ false); in GenerateOatForTest()
Ddexopt_test.h41 void GenerateOatForTest(const std::string& dex_location,
49 void GenerateOdexForTest(const std::string& dex_location,
57 void GenerateOatForTest(const char* dex_location,
62 void GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter);
Doat_file_assistant.h108 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,
Doat_file_manager.cc448 const char* dex_location, in OpenDexFilesFromOat() argument
454 CHECK(dex_location != nullptr); in OpenDexFilesFromOat()
474 OatFileAssistant oat_file_assistant(dex_location, in OpenDexFilesFromOat()
481 VLOG(oat) << "OatFileAssistant(" << dex_location << ").GetBestOatFile()=" in OpenDexFilesFromOat()
504 LOG(WARNING) << "Dex location " << dex_location << " does not seem to include dex file. " in OpenDexFilesFromOat()
510 << dex_location; in OpenDexFilesFromOat()
522 " load classes for " << dex_location; in OpenDexFilesFromOat()
571 ScopedTrace trace2(StringPrintf("Adding image space for location %s", dex_location)); in OpenDexFilesFromOat()
575 dex_location, in OpenDexFilesFromOat()
606 dex_files = oat_file_assistant.LoadDexFiles(*source_oat_file, dex_location); in OpenDexFilesFromOat()
[all …]
Doat_file_assistant.cc76 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument
80 : OatFileAssistant(dex_location, in OatFileAssistant()
89 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument
102 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location"; in OatFileAssistant()
111 dex_location_.assign(dex_location); in OatFileAssistant()
259 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument
261 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles()
270 const std::string& dex_location, in LoadDexFiles() argument
275 dex_location.c_str(), nullptr, &error_msg); in LoadDexFiles()
290 std::string multidex_dex_location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in LoadDexFiles()
[all …]
Dhidden_api.cc76 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation() argument
82 if (LocationIsOnRuntimeModule(dex_location.c_str()) || in DetermineDomainFromLocation()
83 LocationIsOnConscryptModule(dex_location.c_str())) { in DetermineDomainFromLocation()
87 if (LocationIsOnApex(dex_location.c_str())) { in DetermineDomainFromLocation()
92 if (LocationIsOnSystemFramework(dex_location.c_str())) { in DetermineDomainFromLocation()
97 LOG(WARNING) << "DexFile " << dex_location in DetermineDomainFromLocation()
/art/dex2oat/
Ddex2oat_test.cc81 for (const std::string& dex_location : dex_locations) { local
82 args.push_back("--dex-file=" + dex_location);
110 const std::string& dex_location, in GenerateOdexForTest() argument
116 return GenerateOdexForTest(dex_location,
129 const std::string& dex_location, in GenerateOdexForTest() argument
137 int status = GenerateOdexForTestWithStatus({dex_location}, in GenerateOdexForTest()
156 dex_location.c_str(), in GenerateOdexForTest()
179 dex_location.c_str(), in GenerateOdexForTest()
253 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local
256 Copy(GetTestDexFileName(), dex_location);
[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_cache_resolved_classes.h31 DexCacheResolvedClasses(const std::string& dex_location, in DexCacheResolvedClasses() argument
35 : dex_location_(dex_location), in DexCacheResolvedClasses()
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.cc405 const char* dex_location = dex_location_str.c_str(); in TEST_F() local
406 ASSERT_EQ("/system/app/framework.jar", DexFileLoader::GetMultiDexLocation(0, dex_location)); in TEST_F()
408 DexFileLoader::GetMultiDexLocation(1, dex_location)); in TEST_F()
410 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_compilation_info.cc156 std::string ProfileCompilationInfo::GetProfileDexFileKey(const std::string& dex_location) { in GetProfileDexFileKey() argument
157 DCHECK(!dex_location.empty()); in GetProfileDexFileKey()
158 size_t last_sep_index = dex_location.find_last_of('/'); in GetProfileDexFileKey()
160 return dex_location; in GetProfileDexFileKey()
162 DCHECK(last_sep_index < dex_location.size()); in GetProfileDexFileKey()
163 return dex_location.substr(last_sep_index + 1); in GetProfileDexFileKey()
176 const std::string& dex_location, in AddMethodIndex() argument
180 DexFileData* data = GetOrAddDexFileData(GetProfileDexFileKey(dex_location), in AddMethodIndex()
695 const std::string dex_location = GetProfileDexFileKey(classes.GetDexLocation()); in AddResolvedClasses() local
697 DexFileData* const data = GetOrAddDexFileData(dex_location, checksum, classes.NumMethodIds()); in AddResolvedClasses()
[all …]
Dprofile_compilation_info.h91 : dex_location(location), dex_checksum(checksum), num_method_ids(num_methods) {} in DexReference()
95 dex_location == other.dex_location &&
101 dex_location == GetProfileDexFileKey(dex_file->GetLocation()); in MatchesDex()
104 std::string dex_location; member
279 const std::string& dex_location,
321 static bool ProfileFilterFnAcceptAll(const std::string& dex_location, uint32_t checksum);
365 MethodHotness GetMethodHotness(const std::string& dex_location,
376 std::unique_ptr<OfflineProfileMethodInfo> GetMethod(const std::string& dex_location,
404 static std::string GetProfileDexFileKey(const std::string& dex_location);
614 bool AddMethod(const std::string& dex_location,
[all …]
Dprofile_compilation_info_test.cc44 bool AddMethod(const std::string& dex_location, in AddMethod() argument
49 dex_location, in AddMethod()
55 bool AddMethod(const std::string& dex_location, in AddMethod() argument
61 dex_location, checksum, method_idx, kMaxMethodIds, pmi, Hotness::kFlagPostStartup); in AddMethod()
64 bool AddClass(const std::string& dex_location, in AddClass() argument
68 DexCacheResolvedClasses classes(dex_location, dex_location, checksum, kMaxMethodIds); in AddClass()
614 std::string dex_location = std::to_string(i); in TEST_F() local
615 ASSERT_TRUE(AddMethod(dex_location, /* checksum= */ 1, /* method_idx= */ i, &info)); in TEST_F()
934 [](const std::string& dex_location, uint32_t checksum) -> bool { in TEST_F() argument
935 return (dex_location == "dex_location1" && checksum == 1) in TEST_F()
[all …]
/art/runtime/jit/
Dprofiling_info_test.cc66 bool AddMethod(const std::string& dex_location, in AddMethod() argument
71 dex_location, in AddMethod()
77 bool AddMethod(const std::string& dex_location, in AddMethod() argument
83 dex_location, checksum, method_index, kMaxMethodIds, pmi, Hotness::kFlagPostStartup); in AddMethod()
86 bool AddClass(const std::string& dex_location, in AddClass() argument
90 DexCacheResolvedClasses classes(dex_location, dex_location, checksum, kMaxMethodIds); in AddClass()
/art/oatdump/
Doatdump_test.cc97 const std::string dex_location = in TEST_F() local
105 ForkAndExecResult res = ForkAndExec({dexdump2, "-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()
/art/profman/
Dprofile_assistant_test.cc124 std::string dex_location = "location1" + id; in SetupBasicProfile() local
126 info->AddMethodIndex(Hotness::kFlagHot, dex_location, checksum, idx, number_of_methods); in SetupBasicProfile()
129 info->AddMethodIndex(Hotness::kFlagStartup, dex_location, checksum, idx, number_of_methods); in SetupBasicProfile()
133 dex_location, in SetupBasicProfile()
248 const std::string& dex_location) { in CreateProfile() argument
259 argv_str.push_back("--apk=" + dex_location); in CreateProfile()
260 argv_str.push_back("--dex-location=" + dex_location); in CreateProfile()
1225 [&d1, &d2](const std::string& dex_location, uint32_t checksum) -> bool { in TEST_F() argument
1226 return (dex_location == ProfileCompilationInfo::GetProfileDexFileKey(d1.GetLocation()) in TEST_F()
1228 || (dex_location == ProfileCompilationInfo::GetProfileDexFileKey(d2.GetLocation()) in TEST_F()

12