Home
last modified time | relevance | path

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

12

/art/libdexfile/dex/
Dart_dex_file_loader.h37 class ArtDexFileLoader : public DexFileLoader {
39 using DexFileLoader::DexFileLoader; // Use constructors from base class.
40 using DexFileLoader::Open; // Don't shadow overloads from base class.
Ddex_file_loader.cc127 const File DexFileLoader::kInvalidFile;
129 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid()
133 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid()
138 bool DexFileLoader::IsVersionAndMagicValid(const uint8_t* magic) { in IsVersionAndMagicValid()
148 bool DexFileLoader::IsMultiDexLocation(std::string_view location) { in IsMultiDexLocation()
152 std::string DexFileLoader::GetMultiDexClassesDexName(size_t index) { in GetMultiDexClassesDexName()
156 std::string DexFileLoader::GetMultiDexLocation(size_t index, const char* dex_location) { in GetMultiDexLocation()
164 bool DexFileLoader::GetMultiDexChecksum(std::optional<uint32_t>* checksum, in GetMultiDexChecksum()
225 std::string DexFileLoader::GetDexCanonicalLocation(const char* dex_location) { in GetDexCanonicalLocation()
250 DexFileLoader::DexFileLoader(const uint8_t* base, size_t size, const std::string& location) in DexFileLoader() function in art::DexFileLoader
[all …]
Ddex_file_loader.h48 class DexFileLoader {
163 DexFileLoader(const char* filename, const File* file, const std::string& location) in DexFileLoader() function
168 DexFileLoader(std::shared_ptr<DexFileContainer> container, const std::string& location) in DexFileLoader() function
173 DexFileLoader(const uint8_t* base, size_t size, const std::string& location);
175 DexFileLoader(std::vector<uint8_t>&& memory, const std::string& location);
177 DexFileLoader(MemMap&& mem_map, const std::string& location);
179 DexFileLoader(File* file, const std::string& location) in DexFileLoader() function
180 : DexFileLoader(/*filename=*/location.c_str(), file, location) {} in DexFileLoader()
182 DexFileLoader(const char* filename, const std::string& location) in DexFileLoader() function
183 : DexFileLoader(filename, /*file=*/&kInvalidFile, location) {} in DexFileLoader()
[all …]
Ddex_file_loader_test.cc368 DexFileLoader dex_file_loader(dex_bytes->data(), dex_bytes->size(), location); in OpenDexFilesBase64()
397 DexFileLoader dex_file_loader(dex_bytes->data(), dex_bytes->size(), location); in OpenDexFileInMemoryBase64()
503 DexFileLoader dex_file_loader(dex_bytes.data(), dex_bytes.size(), kLocationString); in TEST_F()
526 DexFileLoader dex_file_loader(dex_bytes.data(), dex_bytes.size(), kLocationString); in TEST_F()
532 ASSERT_EQ("classes.dex", DexFileLoader::GetMultiDexClassesDexName(0)); in TEST_F()
533 ASSERT_EQ("classes2.dex", DexFileLoader::GetMultiDexClassesDexName(1)); in TEST_F()
534 ASSERT_EQ("classes3.dex", DexFileLoader::GetMultiDexClassesDexName(2)); in TEST_F()
535 ASSERT_EQ("classes100.dex", DexFileLoader::GetMultiDexClassesDexName(99)); in TEST_F()
541 ASSERT_EQ("/system/app/framework.jar", DexFileLoader::GetMultiDexLocation(0, dex_location)); in TEST_F()
543 DexFileLoader::GetMultiDexLocation(1, dex_location)); in TEST_F()
[all …]
Dart_dex_file_loader_test.cc107 uint32_t expected_checksum = DexFileLoader::GetMultiDexChecksum(dex_files); in TEST_F()
122 uint32_t expected_checksum = DexFileLoader::GetMultiDexChecksum(dexes); in TEST_F()
123 EXPECT_EQ(dexes[0]->GetLocation(), DexFileLoader::GetMultiDexLocation(0, multidex_file.c_str())); in TEST_F()
124 EXPECT_EQ(dexes[1]->GetLocation(), DexFileLoader::GetMultiDexLocation(1, multidex_file.c_str())); in TEST_F()
141 DexFileLoader loader(multidex_file); in TEST_F()
347 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F()
348 std::string multidex_location = DexFileLoader::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F()
349 ASSERT_EQ(multidex_location, DexFileLoader::GetDexCanonicalLocation(multidex_location.c_str())); in TEST_F()
354 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
356 std::string multidex_location_sym = DexFileLoader::GetMultiDexLocation( in TEST_F()
[all …]
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.h131 friend class DexFileLoader; variable
Dcode_item_accessors_test.cc48 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()); 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.cc504 dex_checksum = DexFileLoader::GetMultiDexChecksum(info->opened_dex_files, &i); in OpenDexFiles()
552 canonical_locations.insert(DexFileLoader::GetDexCanonicalLocation(location.c_str())); in RemoveLocationsFromClassPaths()
566 DexFileLoader::GetDexCanonicalLocation(location.c_str())); in RemoveLocationsFromClassPaths()
610 const std::string base_location(DexFileLoader::GetBaseLocation(path)); in EncodeClassPathContexts()
1161 uint32_t checksum = DexFileLoader::GetMultiDexChecksum(dex_files_loaded, &i); in CreateInfoFromClassLoader()
1275 results.emplace(DexFileLoader::GetBaseLocation(dex_file->GetLocation()), in EncodeClassPathContextsForClassLoader()
1329 size_t pos = filename.find(DexFileLoader::kMultiDexSeparator); in ResolveIfAbsolutePath()
1487 uint32_t checksum = DexFileLoader::GetMultiDexChecksum(dex_files_to_check, &i); in CheckForDuplicateDexFiles()
Druntime.cc2907 DexFileLoader loader(path); in RegisterAppInfo()
3430 DCHECK(!DexFileLoader::IsMultiDexLocation(filename)); in AppendToBootClassPath()
3433 DCHECK(!DexFileLoader::IsMultiDexLocation(location)); in AppendToBootClassPath()
3446 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation()), in AppendToBootClassPath()
3459 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation()), in AppendToBootClassPath()
3474 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation()), in AppendToBootClassPath()
3488 DCHECK_NE(DexFileLoader::IsMultiDexLocation(dex_file->GetLocation()), in AddExtraBootDexFiles()
Dvdex_file.cc224 std::string location = DexFileLoader::GetMultiDexLocation(i, kVdexLocation); in OpenAllDexFiles()
/art/runtime/oat/
Doat_file.cc585 std::string canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location.c_str()); in Setup()
731 bool is_multidex = DexFileLoader::IsMultiDexLocation(dex_file_location); in Setup()
761 dex_file_location[primary_location.size()] != DexFileLoader::kMultiDexSeparator)) { in Setup()
920 const bool valid_magic = DexFileLoader::IsMagicValid(dex_file_pointer); in Setup()
927 if (UNLIKELY(!DexFileLoader::IsVersionAndMagicValid(dex_file_pointer))) { in Setup()
1020 DexFileLoader::GetDexCanonicalLocation(dex_file_name.c_str()), in Setup()
1768 if (UNLIKELY(!DexFileLoader::IsVersionAndMagicValid(dex_file_start))) { in Open()
1775 std::string location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in Open()
1776 std::string canonical_location = DexFileLoader::GetDexCanonicalLocation(location.c_str()); in Open()
2140 std::string dex_canonical_location = DexFileLoader::GetDexCanonicalLocation(dex_location); in GetOatDexFile()
[all …]
Doat_file_assistant_context.cc83 uint32_t checksum = DexFileLoader::GetMultiDexChecksum(bcp_dex_files, &i);
Doat_file_assistant.cc429 std::string multidex_dex_location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in LoadDexFiles()
478 std::string dex = DexFileLoader::GetMultiDexLocation(i, dex_location_.c_str()); in DexChecksumUpToDate()
486 uint32_t oat_checksum = DexFileLoader::GetMultiDexChecksum(oat_dex_files); in DexChecksumUpToDate()
Doat_file_manager.cc121 if (DexFileLoader::GetBaseLocation(oat_dex_file->GetDexFileLocation()) == dex_base_location) { in FindOpenedOatFileFromDexLocation()
576 DexFileLoader::GetMultiDexLocation(i, dex_location.c_str())); in OpenDexFilesFromOat_Impl()
/art/tools/dexanalyze/
Ddexanalyze.cc211 DexFileLoader dex_file_loader( in Run()
/art/dexlist/
Ddexlist.cc175 DexFileLoader dex_file_loader( in processFile()
/art/dex2oat/linker/
Doat_writer_test.cc788 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(0, zip_file.GetFilename().c_str()), in TestZipFileInput()
795 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(1, zip_file.GetFilename().c_str()), in TestZipFileInput()
837 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(0, zip_file.GetFilename().c_str()), in TestZipFileInput()
844 ASSERT_EQ(DexFileLoader::GetMultiDexLocation(1, zip_file.GetFilename().c_str()), in TestZipFileInput()
/art/libdexfile/external/
Ddex_file_ext.cc194 art::DexFileLoader loader(static_cast<const uint8_t*>(address), full_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