Home
last modified time | relevance | path

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

/art/runtime/
Ddex_file_test.cc350 const char* dex_location = dex_location_str.c_str(); in TEST_F() local
351 ASSERT_EQ("/system/app/framework.jar", DexFile::GetMultiDexClassesDexName(0, dex_location)); in TEST_F()
352 …_EQ("/system/app/framework.jar:classes2.dex", DexFile::GetMultiDexClassesDexName(1, dex_location)); in TEST_F()
353 …"/system/app/framework.jar:classes101.dex", DexFile::GetMultiDexClassesDexName(100, dex_location)); in TEST_F()
359 std::string dex_location(dex_location_real.get()); in TEST_F() local
361 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F()
362 std::string multidex_location = DexFile::GetMultiDexClassesDexName(1, dex_location.c_str()); in TEST_F()
365 std::string dex_location_sym = dex_location + "symlink"; in TEST_F()
366 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); in TEST_F()
368 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
Doat_file.cc361 const OatFile::OatDexFile* OatFile::GetOatDexFile(const char* dex_location, in GetOatDexFile() argument
373 StringPiece key(dex_location); in GetOatDexFile()
390 std::string dex_canonical_location = DexFile::GetDexCanonicalLocation(dex_location); in GetOatDexFile()
391 if (dex_canonical_location != dex_location) { in GetOatDexFile()
412 std::string dex_canonical_location = DexFile::GetDexCanonicalLocation(dex_location); in GetOatDexFile()
417 LOG(WARNING) << "Failed to find OatDexFile for DexFile " << dex_location in GetOatDexFile()
Dclass_linker.h279 bool OpenDexFilesFromOat(const char* dex_location, const char* oat_location,
292 const char* dex_location,
561 const char* dex_location,
573 const OatFile* OpenOatFileFromDexLocation(const std::string& dex_location,
594 const OatFile* FindOatFileInOatLocationForDexFile(const char* dex_location,
602 const OatFile* CreateOatFileForDexLocation(const char* dex_location,
612 const OatFile* FindOatFileContainingDexFileFromDexLocation(const char* dex_location,
629 bool VerifyOatWithDexFile(const OatFile* oat_file, const char* dex_location,
Dclass_linker.cc681 const char* dex_location = dex_file.GetLocation().c_str(); in FindOpenedOatDexFileForDexFile() local
683 return FindOpenedOatDexFile(nullptr, dex_location, &dex_location_checksum); in FindOpenedOatDexFileForDexFile()
687 const char* dex_location, in FindOpenedOatDexFile() argument
699 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_location, in FindOpenedOatDexFile()
720 const char* dex_location, in LoadMultiDexFilesFromOatFile() argument
733 std::string next_name_str = DexFile::GetMultiDexClassesDexName(i, dex_location); in LoadMultiDexFilesFromOatFile()
739 if ((i == 0) && (strcmp(next_name, dex_location) == 0)) { in LoadMultiDexFilesFromOatFile()
758 " file'%s'", dex_location, next_location_checksum, in LoadMultiDexFilesFromOatFile()
811 bool ClassLinker::OpenDexFilesFromOat(const char* dex_location, const char* oat_location, in OpenDexFilesFromOat() argument
820 if (!DexFile::GetChecksum(dex_location, dex_location_checksum_pointer, &checksum_error_msg)) { in OpenDexFilesFromOat()
[all …]
Ddex_file.cc953 std::string DexFile::GetMultiDexClassesDexName(size_t number, const char* dex_location) { in GetMultiDexClassesDexName() argument
955 return dex_location; in GetMultiDexClassesDexName()
957 return StringPrintf("%s" kMultiDexSeparatorString "classes%zu.dex", dex_location, number + 1); in GetMultiDexClassesDexName()
961 std::string DexFile::GetDexCanonicalLocation(const char* dex_location) { in GetDexCanonicalLocation() argument
962 CHECK_NE(dex_location, static_cast<const char*>(nullptr)); in GetDexCanonicalLocation()
963 std::string base_location = GetBaseLocation(dex_location); in GetDexCanonicalLocation()
964 const char* suffix = dex_location + base_location.size(); in GetDexCanonicalLocation()
972 return dex_location; in GetDexCanonicalLocation()
Doat_file.h279 const OatDexFile* GetOatDexFile(const char* dex_location,
Ddex_file.h873 static std::string GetMultiDexClassesDexName(size_t number, const char* dex_location);
888 static std::string GetDexCanonicalLocation(const char* dex_location);
/art/dex2oat/
Ddex2oat.cc568 const char* dex_location = dex_locations[i]; in OpenDexFiles() local
575 if (!DexFile::Open(dex_filename, dex_location, &error_msg, &dex_files)) { in OpenDexFiles()