Home
last modified time | relevance | path

Searched refs:DexFile (Results 1 – 7 of 7) sorted by relevance

/system/core/libunwindstack/
DDexFile.h32 class DexFile : protected art_api::dex::DexFile {
34 virtual ~DexFile() = default;
38 static std::unique_ptr<DexFile> Create(uint64_t dex_file_offset_in_memory, Memory* memory,
42 DexFile(std::unique_ptr<art_api::dex::DexFile>& art_dex_file) in DexFile() function
43 : art_api::dex::DexFile(art_dex_file) {} in DexFile()
46 class DexFileFromFile : public DexFile {
52 DexFileFromFile(std::unique_ptr<art_api::dex::DexFile>& art_dex_file) : DexFile(art_dex_file) {} in DexFileFromFile()
55 class DexFileFromMemory : public DexFile {
62 DexFileFromMemory(std::unique_ptr<art_api::dex::DexFile>& art_dex_file, in DexFileFromMemory()
64 : DexFile(art_dex_file), memory_(std::move(memory)) {} in DexFileFromMemory()
DDexFile.cpp51 std::unique_ptr<DexFile> DexFile::Create(uint64_t dex_file_offset_in_memory, Memory* memory, in Create()
62 std::unique_ptr<art_api::dex::DexFile> art_dex_file = DexFile::OpenFromMemory( in Create()
65 return std::unique_ptr<DexFile>(new DexFile(art_dex_file)); in Create()
70 std::unique_ptr<DexFile> dex_file = in Create()
79 bool DexFile::GetMethodInformation(uint64_t dex_offset, std::string* method_name, in GetMethodInformation()
102 std::unique_ptr<art_api::dex::DexFile> art_dex_file = in Create()
123 std::unique_ptr<art_api::dex::DexFile> art_dex_file = in Create()
DDexFiles.cpp38 class DexFile { class
40 DexFile() = default;
41 virtual ~DexFile() = default;
143 DexFile* DexFiles::GetDexFile(uint64_t dex_file_offset, MapInfo* info) { in GetDexFile()
145 DexFile* dex_file; in GetDexFile()
148 std::unique_ptr<DexFile> new_dex_file = DexFile::Create(dex_file_offset, memory_.get(), info); in GetDexFile()
157 DexFile* DexFiles::GetDexFile(uint64_t, MapInfo*) { in GetDexFile()
189 DexFile* dex_file = GetDexFile(addr, info); in GetMethodInformation()
DAndroid.bp135 srcs: ["DexFile.cpp"],
142 exclude_srcs: ["DexFile.cpp"],
147 exclude_srcs: ["DexFile.cpp"],
152 exclude_srcs: ["DexFile.cpp"],
/system/extras/simpleperf/
Dread_dex_file.cpp33 const std::function<std::unique_ptr<art_api::dex::DexFile>(uint64_t offset)>& open_file_cb) { in ReadSymbols()
35 std::unique_ptr<art_api::dex::DexFile> dex_file = open_file_cb(offset); in ReadSymbols()
62 dex_file_offsets, symbols, [&](uint64_t offset) -> std::unique_ptr<art_api::dex::DexFile> { in ReadSymbolsFromDexFileInMemory()
69 std::unique_ptr<art_api::dex::DexFile> dex_file = in ReadSymbolsFromDexFileInMemory()
70 art_api::dex::DexFile::OpenFromMemory(file_addr, &max_file_size, "", &error_msg); in ReadSymbolsFromDexFileInMemory()
87 dex_file_offsets, symbols, [&](uint64_t offset) -> std::unique_ptr<art_api::dex::DexFile> { in ReadSymbolsFromDexFile()
89 std::unique_ptr<art_api::dex::DexFile> dex_file = in ReadSymbolsFromDexFile()
90 art_api::dex::DexFile::OpenFromFd(fd, offset, file_path, &error_msg); in ReadSymbolsFromDexFile()
/system/core/libunwindstack/tests/
DDexFileTest.cpp155 EXPECT_TRUE(DexFile::Create(0x500, &memory, &info) != nullptr); in TEST()
168 EXPECT_TRUE(DexFile::Create(0x600, &memory, &info) != nullptr); in TEST()
181 EXPECT_TRUE(DexFile::Create(0x400, &memory, &info) != nullptr); in TEST()
188 EXPECT_TRUE(DexFile::Create(0x4000, &memory, &info) != nullptr); in TEST()
195 EXPECT_TRUE(DexFile::Create(0x4000, &memory, &info) != nullptr); in TEST()
208 std::unique_ptr<DexFile> dex_file = DexFile::Create(0x4000, &memory, &info); in TEST()
213 dex_file = DexFile::Create(0x4000, &memory, &info); in TEST()
221 EXPECT_TRUE(DexFile::Create(0x4000, &memory, &info) != nullptr); in TEST()
241 EXPECT_TRUE(DexFile::Create(start, &memory, &info) != nullptr); in TEST()
251 EXPECT_TRUE(DexFile::Create(start, &memory, &info) == nullptr); in TEST()
[all …]
/system/core/libunwindstack/include/unwindstack/
DDexFiles.h34 class DexFile; variable
45 DexFile* GetDexFile(uint64_t dex_file_offset, MapInfo* info);
69 std::unordered_map<uint64_t, std::unique_ptr<DexFile>> files_;