Home
last modified time | relevance | path

Searched refs:file_offset (Results 1 – 10 of 10) sorted by relevance

/system/update_engine/payload_consumer/
Ddownload_action.cc121 off_t file_offset) { in WriteToP2PFile() argument
143 if (p2p_size < file_offset) { in WriteToP2PFile()
144 LOG(ERROR) << "Wanting to write to file offset " << file_offset in WriteToP2PFile()
151 off_t cur_file_offset = lseek(p2p_sharing_fd_, file_offset, SEEK_SET); in WriteToP2PFile()
152 if (cur_file_offset != static_cast<off_t>(file_offset)) { in WriteToP2PFile()
154 << file_offset << " in p2p file"; in WriteToP2PFile()
162 << file_offset << " in p2p file"; in WriteToP2PFile()
Ddownload_action.h132 void WriteToP2PFile(const void* data, size_t length, off_t file_offset);
/system/extras/simpleperf/
Dread_elf.cpp146 static BinaryRet OpenObjectFile(const std::string& filename, uint64_t file_offset = 0, in OpenObjectFile() argument
161 …ffer_or_err = llvm::MemoryBuffer::getOpenFileSlice(fhelper.fd(), filename, file_size, file_offset); in OpenObjectFile()
163 …LOG(ERROR) << "failed to read " << filename << " [" << file_offset << "-" << (file_offset + file_s… in OpenObjectFile()
169 LOG(ERROR) << filename << " [" << file_offset << "-" << (file_offset + file_size) in OpenObjectFile()
177 LOG(ERROR) << filename << " [" << file_offset << "-" << (file_offset + file_size) in OpenObjectFile()
192 bool GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, in GetBuildIdFromEmbeddedElfFile() argument
194 BinaryRet ret = OpenObjectFile(filename, file_offset, file_size); in GetBuildIdFromEmbeddedElfFile()
294 bool ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, in ParseSymbolsFromEmbeddedElfFile() argument
297 BinaryRet ret = OpenObjectFile(filename, file_offset, file_size); in ParseSymbolsFromEmbeddedElfFile()
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()
51 uint64_t file_offset) { in FindElfInApkByOffsetWithoutCache() argument
81 file_offset >= static_cast<uint64_t>(zentry.offset) && in FindElfInApkByOffsetWithoutCache()
82 file_offset < static_cast<uint64_t>(zentry.offset + zentry.uncompressed_length)) { in FindElfInApkByOffsetWithoutCache()
Dread_elf.h26 bool GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
46 bool ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
Dread_apk.h74 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset);
80 uint64_t file_offset);
/system/core/libsparse/include/sparse/
Dsparse.h114 const char *filename, int64_t file_offset, unsigned int len,
141 int fd, int64_t file_offset, unsigned int len, unsigned int block);
/system/core/libsparse/
Dsparse.c68 const char *filename, int64_t file_offset, unsigned int len, in sparse_file_add_file() argument
71 return backed_block_add_file(s->backed_block_list, filename, file_offset, in sparse_file_add_file()
76 int fd, int64_t file_offset, unsigned int len, unsigned int block) in sparse_file_add_fd() argument
78 return backed_block_add_fd(s->backed_block_list, fd, file_offset, in sparse_file_add_fd()
/system/core/libbacktrace/
DBacktraceOffline.cpp216 uint64_t file_offset, uint64_t* vaddr) { in FileOffsetToVaddr() argument
218 if (file_offset >= header.file_offset && file_offset < header.file_offset + header.file_size) { in FileOffsetToVaddr()
220 *vaddr = file_offset - header.file_offset + header.vaddr; in FileOffsetToVaddr()
612 header.file_offset = it->p_offset; in ReadDebugFrameFromELFFile()
DBacktraceOffline.h53 uint64_t file_offset; member