Searched refs:dex_location (Results 1 - 24 of 24) sorted by relevance

/art/runtime/
H A Doat_file_assistant_test.cc83 void GenerateOdexForTest(const std::string& dex_location, argument
95 args.push_back("--dex-file=" + dex_location);
121 dex_location.c_str(),
142 void GeneratePicOdexForTest(const std::string& dex_location, argument
145 GenerateOdexForTest(dex_location, odex_location, filter, true, false);
150 void GenerateNoPatchOdexForTest(const std::string& dex_location, argument
153 GenerateOdexForTest(dex_location, odex_location, filter, false, false);
216 static void GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter) { argument
218 OatFileAssistant ofa(dex_location, kRuntimeISA, false, false);
223 args.push_back("--dex-file=" + std::string(dex_location));
247 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; local
248 Copy(GetDexSrc1(), dex_location); local
278 std::string dex_location = GetScratchDir() + "/NoDexNoOat.jar"; local
299 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; local
300 Copy(GetDexSrc1(), dex_location); local
329 std::string dex_location = GetScratchDir() + "/ProfileOatUpToDate.jar"; local
330 Copy(GetDexSrc1(), dex_location); local
355 std::string dex_location = GetScratchDir() + "/ProfileOatOutOfDate.jar"; local
356 Copy(GetDexSrc1(), dex_location); local
381 std::string dex_location = GetScratchDir() + "/MultiDexOatUpToDate.jar"; local
382 Copy(GetMultiDexSrc1(), dex_location); local
402 std::string dex_location = GetScratchDir() + "/MultiDexSecondaryOutOfDate.jar"; local
405 Copy(GetMultiDexSrc1(), dex_location); local
410 Copy(GetMultiDexSrc2(), dex_location); local
422 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; local
426 Copy(GetMultiDexSrc1(), dex_location); local
453 std::string dex_location = GetScratchDir() + "/OatOutOfDate.jar"; local
457 Copy(GetDexSrc1(), dex_location); local
459 Copy(GetDexSrc2(), dex_location); local
480 std::string dex_location = GetScratchDir() + "/DexOdexNoOat.jar"; local
484 Copy(GetDexSrc1(), dex_location); local
513 std::string dex_location = GetScratchDir() + "/StrippedDexOdexNoOat.jar"; local
517 Copy(GetDexSrc1(), dex_location); local
521 Copy(GetStrippedDexSrc1(), dex_location); local
567 std::string dex_location = GetScratchDir() + "/StrippedDexOdexOat.jar"; local
571 Copy(GetDexSrc2(), dex_location); local
575 Copy(GetDexSrc1(), dex_location); local
579 Copy(GetStrippedDexSrc1(), dex_location); local
634 std::string dex_location = GetScratchDir() + "/ResourceOnlyDex.jar"; local
636 Copy(GetStrippedDexSrc1(), dex_location); local
681 std::string dex_location = GetScratchDir() + "/SelfRelocation.jar"; local
685 Copy(GetDexSrc1(), dex_location); local
740 std::string dex_location = GetScratchDir() + "/NoSelfRelocation.jar"; local
744 Copy(GetDexSrc1(), dex_location); local
772 std::string dex_location = GetScratchDir() + "/OdexOatOverlap.jar"; local
777 Copy(GetDexSrc1(), dex_location); local
813 std::string dex_location = GetScratchDir() + "/DexPicOdexNoOat.jar"; local
817 Copy(GetDexSrc1(), dex_location); local
841 std::string dex_location = GetScratchDir() + "/DexVerifyAtRuntimeOdexNoOat.jar"; local
845 Copy(GetDexSrc1(), dex_location); local
869 std::string dex_location = GetScratchDir() + "/LoadOatUpToDate.jar"; local
871 Copy(GetDexSrc1(), dex_location); local
888 std::string dex_location = GetScratchDir() + "/LoadExecInterpretOnlyOatUpToDate.jar"; local
890 Copy(GetDexSrc1(), dex_location); local
907 std::string dex_location = GetScratchDir() + "/LoadNoExecOatUpToDate.jar"; local
909 Copy(GetDexSrc1(), dex_location); local
927 std::string dex_location = GetScratchDir() + "/LoadDexNoAlternateOat.jar"; local
930 Copy(GetDexSrc1(), dex_location); local
955 std::string dex_location = GetScratchDir() + "/LoadDexUnwriteableAlternateOat.jar"; local
961 Copy(GetDexSrc1(), dex_location); local
976 std::string dex_location = GetScratchDir() + "/GenNoDex.jar"; local
1028 std::string dex_location = MakePathRelative(abs_dex_location); local
1045 std::string dex_location = "/xx"; local
1070 std::string dex_location = GetScratchDir() + "/LongDexExtension.jarx"; local
1071 Copy(GetDexSrc1(), dex_location); local
1090 RaceGenerateTask(const std::string& dex_location, const std::string& oat_location) argument
1130 std::string dex_location = GetScratchDir() + "/RaceToGenerate.jar"; local
1162 std::string dex_location = GetScratchDir() + "/LoadDexOdexNoOat.jar"; local
1166 Copy(GetDexSrc1(), dex_location); local
1184 std::string dex_location = GetScratchDir() + "/LoadMultiDexOdexNoOat.jar"; local
1188 Copy(GetMultiDexSrc1(), dex_location); local
[all...]
H A Ddex_cache_resolved_classes.h29 DexCacheResolvedClasses(const std::string& dex_location, argument
32 : dex_location_(dex_location),
H A Ddex_file_test.cc362 const char* dex_location = dex_location_str.c_str(); local
363 ASSERT_EQ("/system/app/framework.jar", DexFile::GetMultiDexLocation(0, dex_location));
365 DexFile::GetMultiDexLocation(1, dex_location));
367 DexFile::GetMultiDexLocation(100, dex_location));
373 std::string dex_location(dex_location_real.get());
375 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location.c_str()));
376 std::string multidex_location = DexFile::GetMultiDexLocation(1, dex_location.c_str());
379 std::string dex_location_sym = dex_location + "symlink";
380 ASSERT_EQ(0, symlink(dex_location
[all...]
H A Doat_file_manager.cc542 const char* dex_location,
549 CHECK(dex_location != nullptr);
558 OatFileAssistant oat_file_assistant(dex_location,
606 << dex_location;
609 " load classes for " << dex_location;
617 LOG(WARNING) << "Dex location " << dex_location << " does not seem to include dex file. "
656 ScopedTrace trace2(StringPrintf("Adding image space for location %s", dex_location));
660 dex_location,
686 dex_files = oat_file_assistant.LoadDexFiles(*source_oat_file, dex_location);
698 if (!DexFile::Open(dex_location, dex_locatio
541 OpenDexFilesFromOat( const char* dex_location, const char* oat_location, jobject class_loader, jobjectArray dex_elements, const OatFile** out_oat_file, std::vector<std::string>* error_msgs) argument
[all...]
H A Doat_file_assistant.h93 // The dex_location must not be null and should remain available and
95 // Typically the dex_location is the absolute path to the original,
98 // Note: Currently the dex_location must have an extension.
110 OatFileAssistant(const char* dex_location,
117 OatFileAssistant(const char* dex_location,
197 const OatFile& oat_file, const char* dex_location);
H A Doat_file_manager.h84 // Finds or creates the oat file holding dex_location. Then loads and returns
99 const char* dex_location,
H A Doat_file_assistant.cc65 OatFileAssistant::OatFileAssistant(const char* dex_location, argument
69 : OatFileAssistant(dex_location, nullptr, isa, profile_changed, load_executable)
72 OatFileAssistant::OatFileAssistant(const char* dex_location, argument
78 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location";
79 dex_location_.assign(dex_location);
269 const OatFile& oat_file, const char* dex_location) {
275 dex_location, nullptr, false);
278 << oat_file.GetLocation() << " for dex location " << dex_location;
291 std::string secondary_dex_location = DexFile::GetMultiDexLocation(i, dex_location);
794 // The odex file name is formed by replacing the dex_location extensio
268 LoadDexFiles( const OatFile& oat_file, const char* dex_location) argument
[all...]
H A Doat_file.cc1073 const OatFile::OatDexFile* OatFile::GetOatDexFile(const char* dex_location, argument
1076 // NOTE: We assume here that the canonical location for a given dex_location never
1085 StringPiece key(dex_location);
1093 // This dex_location is not one of the dex locations directly mentioned in the
1101 // We haven't seen this dex_location before, we must check the canonical location.
1102 std::string dex_canonical_location = DexFile::GetDexCanonicalLocation(dex_location);
1103 if (dex_canonical_location != dex_location) {
1124 std::string dex_canonical_location = DexFile::GetDexCanonicalLocation(dex_location);
1129 LOG(WARNING) << "Failed to find OatDexFile for DexFile " << dex_location
H A Doat_file.h216 const OatDexFile* GetOatDexFile(const char* dex_location,
H A Druntime.cc911 const char* dex_location = dex_locations[i].c_str(); local
917 if (!DexFile::Open(dex_filename, dex_location, &error_msg, dex_files)) {
1803 void Runtime::NotifyDexLoaded(const std::string& dex_location) { argument
1804 VLOG(profiler) << "Notify dex loaded: " << dex_location;
1807 ProfileSaver::NotifyDexUse(dex_location);
H A Ddex_file.cc1097 std::string DexFile::GetMultiDexLocation(size_t index, const char* dex_location) { argument
1099 return dex_location;
1101 return StringPrintf("%s" kMultiDexSeparatorString "classes%zu.dex", dex_location, index + 1);
1105 std::string DexFile::GetDexCanonicalLocation(const char* dex_location) { argument
1106 CHECK_NE(dex_location, static_cast<const char*>(nullptr));
1107 std::string base_location = GetBaseLocation(dex_location);
1108 const char* suffix = dex_location + base_location.size();
1116 return dex_location;
H A Druntime.h478 void NotifyDexLoaded(const std::string& dex_location);
H A Ddex_file.h1149 // Return the (possibly synthetic) dex location for a multidex entry. This is dex_location for
1150 // index == 0, and dex_location + multi-dex-separator + GetMultiDexClassesDexName(index) else.
1151 static std::string GetMultiDexLocation(size_t index, const char* dex_location);
1158 // dex_location:
1165 // the dex_location where it's file name part has been made canonical.
1166 static std::string GetDexCanonicalLocation(const char* dex_location);
H A Dclass_linker.h147 const char* dex_location,
H A Dclass_linker.cc1053 /*dex_location*/nullptr,
1563 const char* dex_location,
1619 std::string dex_location_path = dex_location;
1559 AddImageSpace( gc::space::ImageSpace* space, Handle<mirror::ClassLoader> class_loader, jobjectArray dex_elements, const char* dex_location, std::vector<std::unique_ptr<const DexFile>>* out_dex_files, std::string* error_msg) argument
/art/compiler/utils/
H A Dtest_dex_file_builder_test.cc32 const char* dex_location = "TestDexFileBuilder/SimpleTest"; local
33 std::unique_ptr<const DexFile> dex_file(builder.Build(dex_location));
35 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str());
H A Dtest_dex_file_builder.h82 std::unique_ptr<const DexFile> Build(const std::string& dex_location) { argument
232 &dex_file_data_[0], dex_file_data_.size(), dex_location, 0u, nullptr, false, &error_msg));
/art/runtime/jit/
H A Doffline_profiling_info.cc47 std::string ProfileCompilationInfo::GetProfileDexFileKey(const std::string& dex_location) { argument
48 DCHECK(!dex_location.empty());
49 size_t last_sep_index = dex_location.find_last_of('/');
51 return dex_location;
53 DCHECK(last_sep_index < dex_location.size());
54 return dex_location.substr(last_sep_index + 1);
167 3 * sizeof(uint16_t) + // method_set.size + class_set.size + dex_location.size
198 const std::string& dex_location = it.first; local
204 if (dex_location.size() >= kMaxDexFileKeyLength) {
213 dex_location
241 GetOrAddDexFileData( const std::string& dex_location, uint32_t checksum) argument
256 const std::string dex_location = GetProfileDexFileKey(classes.GetDexLocation()); local
266 AddMethodIndex(const std::string& dex_location, uint32_t checksum, uint16_t method_idx) argument
277 AddClassIndex(const std::string& dex_location, uint32_t checksum, uint16_t class_idx) argument
288 ProcessLine(SafeBuffer& line_buffer, uint16_t method_set_size, uint16_t class_set_size, uint32_t checksum, const std::string& dex_location) argument
[all...]
H A Doffline_profiling_info.h80 static std::string GetProfileDexFileKey(const std::string& dex_location);
111 DexFileData* GetOrAddDexFileData(const std::string& dex_location, uint32_t checksum);
112 bool AddMethodIndex(const std::string& dex_location, uint32_t checksum, uint16_t method_idx);
113 bool AddClassIndex(const std::string& dex_location, uint32_t checksum, uint16_t class_idx);
119 std::string dex_location; member in struct:art::ProfileCompilationInfo::ProfileLineHeader
172 const std::string& dex_location);
H A Dprofile_saver.cc505 void ProfileSaver::NotifyDexUse(const std::string& dex_location) { argument
506 if (!ShouldProfileLocation(dex_location)) {
525 bool mark_created = MaybeRecordDexUseInternal(dex_location,
585 const std::string& dex_location,
589 if (dex_location.empty()) {
598 if (app_code_paths.find(dex_location) != app_code_paths.end()) {
603 if (app_data_dirs.find(dex_location) != app_data_dirs.end()) {
617 UniqueCPtr<const char[]> dex_location_real_path(realpath(dex_location.c_str(), nullptr));
619 PLOG(WARNING) << "Could not get realpath for " << dex_location;
584 MaybeRecordDexUseInternal( const std::string& dex_location, const std::set<std::string>& app_code_paths, const std::string& foreign_dex_profile_path, const std::set<std::string>& app_data_dirs) argument
H A Dprofile_saver.h47 static void NotifyDexUse(const std::string& dex_location);
103 const std::string& dex_location,
H A Dprofile_compilation_info_test.cc53 bool AddMethod(const std::string& dex_location, argument
57 return info->AddMethodIndex(dex_location, checksum, method_index);
60 bool AddClass(const std::string& dex_location, argument
64 return info->AddMethodIndex(dex_location, checksum, class_index);
179 ASSERT_TRUE(AddMethod("dex_location", /* checksum */ 1, /* method_idx */ 1, &info));
181 ASSERT_FALSE(AddMethod("dex_location", /* checksum */ 2, /* method_idx */ 2, &info));
188 ASSERT_TRUE(AddMethod("dex_location", /* checksum */ 1, /* method_idx */ 1, &info1));
191 ASSERT_TRUE(AddMethod("dex_location", /* checksum */ 2, /* method_idx */ 2, &info2));
/art/dex2oat/
H A Ddex2oat_test.cc47 void GenerateOdexForTest(const std::string& dex_location, argument
53 args.push_back("--dex-file=" + dex_location);
74 dex_location.c_str(),
91 dex_location.c_str(),
196 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local
199 Copy(GetDexSrc1(), dex_location); local
211 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed, copy);
299 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; local
302 Copy(GetDexSrc1(), dex_location); local
306 GenerateOdexForTest(dex_location, odex_locatio
313 CheckResult(const std::string& dex_location, const std::string& odex_location, CompilerFilter::Filter filter, bool expect_large) argument
[all...]
H A Ddex2oat.cc1543 std::string dex_location = dex_file->GetLocation(); local
1545 // The filter does not contain the path. Remove the path from dex_location as well.
1548 dex_location = dex_location.substr(last_slash + 1);
1552 if (StartsWith(dex_location, filter.c_str())) {

Completed in 2080 milliseconds