Home
last modified time | relevance | path

Searched refs:DexFileLoader (Results 1 – 25 of 38) sorted by relevance

12

/art/libdexfile/dex/
Ddex_file_loader.h48 class DexFileLoader {
110 DexFileLoader(const char* filename, int fd, const std::string& location) in DexFileLoader() function
115 DexFileLoader(std::shared_ptr<DexFileContainer> container, const std::string& location) in DexFileLoader() function
120 DexFileLoader(const uint8_t* base, size_t size, const std::string& location);
122 DexFileLoader(std::vector<uint8_t>&& memory, const std::string& location);
124 DexFileLoader(MemMap&& mem_map, const std::string& location);
126 DexFileLoader(int fd, const std::string& location) in DexFileLoader() function
127 : DexFileLoader(/*filename=*/location.c_str(), fd, location) {} in DexFileLoader()
129 DexFileLoader(const char* filename, const std::string& location) in DexFileLoader() function
130 : DexFileLoader(filename, /*fd=*/-1, location) {} in DexFileLoader()
[all …]
Ddex_file_loader.cc123 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid()
127 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid()
132 bool DexFileLoader::IsVersionAndMagicValid(const uint8_t* magic) { in IsVersionAndMagicValid()
142 bool DexFileLoader::IsMultiDexLocation(const char* location) { in IsMultiDexLocation()
146 std::string DexFileLoader::GetMultiDexClassesDexName(size_t index) { in GetMultiDexClassesDexName()
150 std::string DexFileLoader::GetMultiDexLocation(size_t index, const char* dex_location) { in GetMultiDexLocation()
156 std::string DexFileLoader::GetDexCanonicalLocation(const char* dex_location) { in GetDexCanonicalLocation()
181 DexFileLoader::DexFileLoader(const uint8_t* base, size_t size, const std::string& location) in DexFileLoader() function in art::DexFileLoader
182 : DexFileLoader(std::make_shared<MemoryDexFileContainer>(base, base + size), location) {} in DexFileLoader()
184 DexFileLoader::DexFileLoader(std::vector<uint8_t>&& memory, const std::string& location) in DexFileLoader() function in art::DexFileLoader
[all …]
Ddex_file_loader_test.cc220 DexFileLoader dex_file_loader(dex_bytes->data(), dex_bytes->size(), location); in OpenDexFilesBase64()
248 DexFileLoader dex_file_loader(dex_bytes->data(), dex_bytes->size(), location); in OpenDexFileInMemoryBase64()
347 DexFileLoader dex_file_loader(dex_bytes.data(), dex_bytes.size(), kLocationString); in TEST_F()
360 DexFileLoader dex_file_loader(dex_bytes.data(), dex_bytes.size(), kLocationString); in TEST_F()
366 ASSERT_EQ("classes.dex", DexFileLoader::GetMultiDexClassesDexName(0)); in TEST_F()
367 ASSERT_EQ("classes2.dex", DexFileLoader::GetMultiDexClassesDexName(1)); in TEST_F()
368 ASSERT_EQ("classes3.dex", DexFileLoader::GetMultiDexClassesDexName(2)); in TEST_F()
369 ASSERT_EQ("classes100.dex", DexFileLoader::GetMultiDexClassesDexName(99)); in TEST_F()
375 ASSERT_EQ("/system/app/framework.jar", DexFileLoader::GetMultiDexLocation(0, dex_location)); in TEST_F()
377 DexFileLoader::GetMultiDexLocation(1, dex_location)); in TEST_F()
[all …]
Dart_dex_file_loader.h37 class ArtDexFileLoader : public DexFileLoader {
39 using DexFileLoader::DexFileLoader;
63 using DexFileLoader::Open;
Dart_dex_file_loader_test.cc124 EXPECT_EQ(dexes[0]->GetLocation(), DexFileLoader::GetMultiDexLocation(0, multidex_file.c_str())); in TEST_F()
128 EXPECT_EQ(dexes[1]->GetLocation(), DexFileLoader::GetMultiDexLocation(1, multidex_file.c_str())); in TEST_F()
360 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F()
361 std::string multidex_location = DexFileLoader::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F()
362 ASSERT_EQ(multidex_location, DexFileLoader::GetDexCanonicalLocation(multidex_location.c_str())); in TEST_F()
367 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
369 std::string multidex_location_sym = DexFileLoader::GetMultiDexLocation( in TEST_F()
372 DexFileLoader::GetDexCanonicalLocation(multidex_location_sym.c_str())); in TEST_F()
Dcompact_dex_file_test.cc41 EXPECT_EQ(valid_magic, DexFileLoader::IsMagicValid(header)); in TEST()
42 EXPECT_EQ(valid_magic && valid_version, DexFileLoader::IsVersionAndMagicValid(header)); in TEST()
Dstandard_dex_file.h130 friend class DexFileLoader; variable
Dcode_item_accessors_test.cc46 DexFileLoader dex_file_loader(data->data(), data->size(), "location"); in CreateFakeDex()
Dcompact_dex_file.h318 friend class DexFileLoader; variable
Dtest_dex_file_builder.h240 DexFileLoader dex_file_loader(std::move(dex_file_data), dex_location);
/art/runtime/native/
Djava_lang_VMClassLoader.cc137 return !DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str()); in VMClassLoader_getBootClassPathEntries()
148 CHECK_EQ(DexFileLoader::GetBaseLocation(dex_file->GetLocation().c_str()), in VMClassLoader_getBootClassPathEntries()
152 CHECK_EQ(DexFileLoader::GetBaseLocation(dex_file->GetLocation().c_str()), in VMClassLoader_getBootClassPathEntries()
153 DexFileLoader::GetBaseLocation(last_dex_file->GetLocation().c_str())); in VMClassLoader_getBootClassPathEntries()
/art/runtime/
Dsdk_checker.cc34 DexFileLoader dex_file_loader(path); in Create()
Dclass_loader_context.cc548 canonical_locations.insert(DexFileLoader::GetDexCanonicalLocation(location.c_str())); in RemoveLocationsFromClassPaths()
562 DexFileLoader::GetDexCanonicalLocation(location.c_str())); in RemoveLocationsFromClassPaths()
606 const std::string base_location(DexFileLoader::GetBaseLocation(path)); in EncodeClassPathContexts()
701 seen_locations.insert(DexFileLoader::GetBaseLocation(dex_file->GetLocation())).second; in EncodeContextInternal()
710 std::string base_dex_location = DexFileLoader::GetBaseLocation(location); in EncodeContextInternal()
713 location = it->second + DexFileLoader::GetMultiDexSuffix(location); in EncodeContextInternal()
1270 results.emplace(DexFileLoader::GetBaseLocation(dex_file->GetLocation()), in EncodeClassPathContextsForClassLoader()
1324 size_t pos = filename.find(DexFileLoader::kMultiDexSeparator); in ResolveIfAbsolutePath()
Doat_file.cc538 std::string canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location.c_str()); in Setup()
692 bool is_multidex = DexFileLoader::IsMultiDexLocation(dex_file_location.c_str()); in Setup()
724 dex_file_location[primary_location.size()] != DexFileLoader::kMultiDexSeparator)) { in Setup()
884 const bool valid_magic = DexFileLoader::IsMagicValid(dex_file_pointer); in Setup()
893 if (UNLIKELY(!DexFileLoader::IsVersionAndMagicValid(dex_file_pointer))) { in Setup()
1007 DexFileLoader::GetDexCanonicalLocation(dex_file_name.c_str()), in Setup()
1765 if (UNLIKELY(!DexFileLoader::IsVersionAndMagicValid(dex_file_start))) { in Open()
1772 std::string location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in Open()
1773 std::string canonical_location = DexFileLoader::GetDexCanonicalLocation(location.c_str()); in Open()
2117 std::string dex_canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location); in GetOatDexFile()
[all …]
Doat_file_assistant_context.cc80 if (!DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str())) {
Doat_file_manager.cc116 if (DexFileLoader::GetBaseLocation(oat_dex_file->GetDexFileLocation()) == dex_base_location) { in FindOpenedOatFileFromDexLocation()
559 DexFileLoader::GetMultiDexLocation(i, dex_location.c_str())); in OpenDexFilesFromOat_Impl()
Druntime.cc3497 DCHECK(!DexFileLoader::IsMultiDexLocation(filename.c_str())); in AppendToBootClassPath()
3500 DCHECK(!DexFileLoader::IsMultiDexLocation(location.c_str())); in AppendToBootClassPath()
3513 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str()), in AppendToBootClassPath()
3526 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str()), in AppendToBootClassPath()
3541 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str()), in AppendToBootClassPath()
3555 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str()), in AddExtraBootDexFiles()
Dvdex_file.cc225 std::string location = DexFileLoader::GetMultiDexLocation(i, kVdexLocation); in OpenAllDexFiles()
Doat_file_assistant.cc440 std::string multidex_dex_location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in LoadDexFiles()
494 std::string dex = DexFileLoader::GetMultiDexLocation(i, dex_location_.c_str()); in DexChecksumUpToDate()
/art/tools/dexanalyze/
Ddexanalyze.cc211 DexFileLoader dex_file_loader( in Run()
/art/dexlist/
Ddexlist.cc172 DexFileLoader dex_file_loader( in processFile()
/art/dex2oat/linker/
Doat_writer_test.cc794 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(0, zip_file.GetFilename().c_str()), in TestZipFileInput()
801 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(1, zip_file.GetFilename().c_str()), in TestZipFileInput()
843 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(0, zip_file.GetFilename().c_str()), in TestZipFileInput()
850 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(1, zip_file.GetFilename().c_str()), in TestZipFileInput()
/art/libdexfile/external/
Ddex_file_ext.cc185 art::DexFileLoader loader(static_cast<const uint8_t*>(address), dex_size, loc_str); in ADexFile_create()
/art/test/674-hiddenapi/
Dhiddenapi.cc62 DexFileLoader dex_loader(path); in Java_Main_appendToBootClassLoader()
/art/tools/veridex/
Dveridex.cc308 DexFileLoader dex_file_loader( in Load()

12