Home
last modified time | relevance | path

Searched refs:dex_file (Results 1 – 5 of 5) sorted by relevance

/system/core/libunwindstack/
DDexFiles.cpp37 uint32_t dex_file; member
43 uint64_t dex_file; member
94 if (!memory_->ReadFully(entry_addr_, &entry, sizeof(entry)) || entry.dex_file == 0) { in ReadEntry32()
99 addrs_.push_back(entry.dex_file); in ReadEntry32()
106 if (!memory_->ReadFully(entry_addr_, &entry, sizeof(entry)) || entry.dex_file == 0) { in ReadEntry64()
111 addrs_.push_back(entry.dex_file); in ReadEntry64()
133 DexFile* dex_file; in GetDexFile() local
137 dex_file = new_dex_file.get(); in GetDexFile()
140 dex_file = entry->second.get(); in GetDexFile()
142 return dex_file; in GetDexFile()
[all …]
DDexFile.cpp38 std::unique_ptr<DexFile> dex_file = in Create() local
40 if (dex_file) { in Create()
41 return dex_file; in Create()
/system/extras/simpleperf/
Dread_dex_file.cpp35 std::unique_ptr<art_api::dex::DexFile> dex_file = open_file_cb(offset); in ReadSymbols() local
36 if (dex_file == nullptr) { in ReadSymbols()
40 std::vector<art_api::dex::MethodInfo> file_syms = dex_file->GetAllMethodInfos(false); in ReadSymbols()
69 std::unique_ptr<art_api::dex::DexFile> dex_file = in ReadSymbolsFromDexFileInMemory() local
71 if (dex_file == nullptr) { in ReadSymbolsFromDexFileInMemory()
75 return dex_file; in ReadSymbolsFromDexFileInMemory()
89 std::unique_ptr<art_api::dex::DexFile> dex_file = in ReadSymbolsFromDexFile() local
91 if (dex_file == nullptr) { in ReadSymbolsFromDexFile()
96 return dex_file; in ReadSymbolsFromDexFile()
/system/core/libunwindstack/tests/
DDexFileTest.cpp162 std::unique_ptr<DexFile> dex_file = DexFile::Create(0x4000, &memory, &info); in TEST() local
163 ASSERT_TRUE(dex_file != nullptr); in TEST()
167 dex_file = DexFile::Create(0x4000, &memory, &info); in TEST()
168 EXPECT_TRUE(dex_file == nullptr); in TEST()
175 std::unique_ptr<DexFile> dex_file(DexFile::Create(0x4000, &memory, &info)); in TEST() local
176 ASSERT_TRUE(dex_file != nullptr); in TEST()
180 ASSERT_TRUE(dex_file->GetMethodInformation(0x102, &method, &method_offset)); in TEST()
184 ASSERT_TRUE(dex_file->GetMethodInformation(0x118, &method, &method_offset)); in TEST()
193 std::unique_ptr<DexFile> dex_file(DexFile::Create(0x4000, &memory, &info)); in TEST() local
194 ASSERT_TRUE(dex_file != nullptr); in TEST()
[all …]
DDexFilesTest.cpp91 void WriteEntry32(uint64_t entry_addr, uint32_t next, uint32_t prev, uint32_t dex_file);
92 void WriteEntry64(uint64_t entry_addr, uint64_t next, uint64_t prev, uint64_t dex_file);
93 void WriteDex(uint64_t dex_file);
119 uint32_t dex_file) { in WriteEntry32() argument
126 memory_->SetData32(entry_addr + 8, dex_file); in WriteEntry32()
130 uint64_t dex_file) { in WriteEntry64() argument
137 memory_->SetData64(entry_addr + 16, dex_file); in WriteEntry64()
140 void DexFilesTest::WriteDex(uint64_t dex_file) { in WriteDex() argument
141 memory_->SetMemory(dex_file, kDexData, sizeof(kDexData) * sizeof(uint32_t)); in WriteDex()