Home
last modified time | relevance | path

Searched refs:apk_path (Results 1 – 3 of 3) sorted by relevance

/system/extras/simpleperf/
Dread_apk.cpp37 EmbeddedElf* ApkInspector::FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffset() argument
39 ApkOffset ami(apk_path, file_offset); in FindElfInApkByOffset()
44 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByOffsetWithoutCache(apk_path, file_offset); in FindElfInApkByOffset()
50 …unique_ptr<EmbeddedElf> ApkInspector::FindElfInApkByOffsetWithoutCache(const std::string& apk_path, in FindElfInApkByOffsetWithoutCache() argument
53 if (!IsValidApkPath(apk_path)) { in FindElfInApkByOffsetWithoutCache()
57 FileHelper fhelper = FileHelper::OpenReadOnly(apk_path); in FindElfInApkByOffsetWithoutCache()
62 ArchiveHelper ahelper(fhelper.fd(), apk_path); in FindElfInApkByOffsetWithoutCache()
95 PLOG(ERROR) << "lseek() failed in " << apk_path << " offset " << zentry.offset; in FindElfInApkByOffsetWithoutCache()
103 LOG(ERROR) << "problems reading ELF from " << apk_path << " entry '" in FindElfInApkByOffsetWithoutCache()
109 return std::unique_ptr<EmbeddedElf>(new EmbeddedElf(apk_path, entry_name, zentry.offset, in FindElfInApkByOffsetWithoutCache()
[all …]
Dread_apk.h74 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset);
75 static std::unique_ptr<EmbeddedElf> FindElfInApkByName(const std::string& apk_path,
79 static std::unique_ptr<EmbeddedElf> FindElfInApkByOffsetWithoutCache(const std::string& apk_path,
89 bool IsValidApkPath(const std::string& apk_path);
91 std::string GetUrlInApk(const std::string& apk_path, const std::string& elf_filename);
94 ElfStatus GetBuildIdFromApkFile(const std::string& apk_path, const std::string& elf_filename,
97 ElfStatus ParseSymbolsFromApkFile(const std::string& apk_path, const std::string& elf_filename,
/system/core/libbacktrace/
DBacktraceOffline.cpp772 static bool IsValidApkPath(const std::string& apk_path) { in IsValidApkPath() argument
775 if (stat(apk_path.c_str(), &st) != 0 || !S_ISREG(st.st_mode)) { in IsValidApkPath()
778 FILE* fp = fopen(apk_path.c_str(), "reb"); in IsValidApkPath()