/art/libdexfile/dex/ |
D | dex_file_loader.h | 48 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 …]
|
D | dex_file_loader.cc | 123 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 …]
|
D | dex_file_loader_test.cc | 220 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 …]
|
D | art_dex_file_loader.h | 37 class ArtDexFileLoader : public DexFileLoader { 39 using DexFileLoader::DexFileLoader; 63 using DexFileLoader::Open;
|
D | art_dex_file_loader_test.cc | 124 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()
|
D | compact_dex_file_test.cc | 41 EXPECT_EQ(valid_magic, DexFileLoader::IsMagicValid(header)); in TEST() 42 EXPECT_EQ(valid_magic && valid_version, DexFileLoader::IsVersionAndMagicValid(header)); in TEST()
|
D | standard_dex_file.h | 130 friend class DexFileLoader; variable
|
D | code_item_accessors_test.cc | 46 DexFileLoader dex_file_loader(data->data(), data->size(), "location"); in CreateFakeDex()
|
D | compact_dex_file.h | 318 friend class DexFileLoader; variable
|
D | test_dex_file_builder.h | 240 DexFileLoader dex_file_loader(std::move(dex_file_data), dex_location);
|
/art/runtime/native/ |
D | java_lang_VMClassLoader.cc | 137 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/ |
D | sdk_checker.cc | 34 DexFileLoader dex_file_loader(path); in Create()
|
D | class_loader_context.cc | 548 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()
|
D | oat_file.cc | 538 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 …]
|
D | oat_file_assistant_context.cc | 80 if (!DexFileLoader::IsMultiDexLocation(dex_file->GetLocation().c_str())) {
|
D | oat_file_manager.cc | 116 if (DexFileLoader::GetBaseLocation(oat_dex_file->GetDexFileLocation()) == dex_base_location) { in FindOpenedOatFileFromDexLocation() 559 DexFileLoader::GetMultiDexLocation(i, dex_location.c_str())); in OpenDexFilesFromOat_Impl()
|
D | runtime.cc | 3497 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()
|
D | vdex_file.cc | 225 std::string location = DexFileLoader::GetMultiDexLocation(i, kVdexLocation); in OpenAllDexFiles()
|
D | oat_file_assistant.cc | 440 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/ |
D | dexanalyze.cc | 211 DexFileLoader dex_file_loader( in Run()
|
/art/dexlist/ |
D | dexlist.cc | 172 DexFileLoader dex_file_loader( in processFile()
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 794 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/ |
D | dex_file_ext.cc | 185 art::DexFileLoader loader(static_cast<const uint8_t*>(address), dex_size, loc_str); in ADexFile_create()
|
/art/test/674-hiddenapi/ |
D | hiddenapi.cc | 62 DexFileLoader dex_loader(path); in Java_Main_appendToBootClassLoader()
|
/art/tools/veridex/ |
D | veridex.cc | 308 DexFileLoader dex_file_loader( in Load()
|