Lines Matching refs:file_offset
220 bool Write(OatWriter* oat_writer, OutputStream* out, const size_t file_offset) const;
361 DCHECK_EQ(static_cast<off_t>(file_offset + relative_offset), out->Seek(0, kSeekCurrent)) \
362 << "file_offset=" << file_offset << " relative_offset=" << relative_offset
365 DCHECK_EQ(static_cast<off_t>(file_offset + offset_), out->Seek(0, kSeekCurrent)) \
366 << "file_offset=" << file_offset << " offset_=" << offset_
1628 const size_t file_offset, in WriteCodeMethodVisitor() argument
1638 file_offset_(file_offset), in WriteCodeMethodVisitor()
1692 size_t file_offset = file_offset_; // Used by DCHECK_OFFSET_ macro. in VisitMethod() local
2352 size_t file_offset = oat_data_offset_; in WriteRodata() local
2357 DCHECK_GE(static_cast<size_t>(current_offset), file_offset + oat_header_->GetHeaderSize()); in WriteRodata()
2358 size_t relative_offset = current_offset - file_offset; in WriteRodata()
2364 relative_offset = WriteClassOffsets(out, file_offset, relative_offset); in WriteRodata()
2370 relative_offset = WriteClasses(out, file_offset, relative_offset); in WriteRodata()
2376 relative_offset = WriteIndexBssMappings(out, file_offset, relative_offset); in WriteRodata()
2382 relative_offset = WriteMaps(out, file_offset, relative_offset); in WriteRodata()
2388 relative_offset = WriteOatDexFiles(out, file_offset, relative_offset); in WriteRodata()
2398 size_t expected_file_offset = file_offset + relative_offset; in WriteRodata()
2675 const size_t file_offset = oat_data_offset_; in WriteCode() local
2679 relative_offset = WriteCode(out, file_offset, relative_offset); in WriteCode()
2685 relative_offset = WriteCodeDexFiles(out, file_offset, relative_offset); in WriteCode()
2694 if (!CheckOatSize(out, file_offset, relative_offset)) { in WriteCode()
2709 const size_t file_offset = oat_data_offset_; in WriteDataBimgRelRo() local
2720 relative_offset = WriteDataBimgRelRo(out, file_offset, relative_offset); in WriteDataBimgRelRo()
2726 if (!CheckOatSize(out, file_offset, relative_offset)) { in WriteDataBimgRelRo()
2733 bool OatWriter::CheckOatSize(OutputStream* out, size_t file_offset, size_t relative_offset) { in CheckOatSize() argument
2802 CHECK_EQ(file_offset + size_total - vdex_size_, static_cast<size_t>(oat_end_file_offset)); in CheckOatSize()
2805 CHECK_EQ(file_offset + oat_size_, static_cast<size_t>(oat_end_file_offset)); in CheckOatSize()
2823 const size_t file_offset = oat_data_offset_; in WriteHeader() local
2830 if (out->Seek(file_offset, kSeekSet) == static_cast<off_t>(-1)) { in WriteHeader()
2834 DCHECK_EQ(file_offset, static_cast<size_t>(out->Seek(0, kSeekCurrent))); in WriteHeader()
2863 size_t OatWriter::WriteClassOffsets(OutputStream* out, size_t file_offset, size_t relative_offset) { in WriteClassOffsets() argument
2884 size_t OatWriter::WriteClasses(OutputStream* out, size_t file_offset, size_t relative_offset) { in WriteClasses() argument
2907 size_t OatWriter::WriteMaps(OutputStream* out, size_t file_offset, size_t relative_offset) { in WriteMaps() argument
2962 size_t file_offset, in WriteIndexBssMappings() argument
3049 size_t OatWriter::WriteOatDexFiles(OutputStream* out, size_t file_offset, size_t relative_offset) { in WriteOatDexFiles() argument
3067 size_t OatWriter::WriteCode(OutputStream* out, size_t file_offset, size_t relative_offset) { in WriteCode() argument
3097 size_t file_offset, in WriteCodeDexFiles() argument
3116 file_offset, in WriteCodeDexFiles()
3132 size_t file_offset, in WriteDataBimgRelRo() argument
3372 size_t file_offset = start_offset; in SeekToDexFile() local
3376 off_t actual_offset = out->Seek(file_offset, kSeekSet); in SeekToDexFile()
3377 if (actual_offset != static_cast<off_t>(file_offset)) { in SeekToDexFile()
3379 << " Expected: " << file_offset in SeekToDexFile()
3389 if (actual_offset != static_cast<off_t>(file_offset)) { in SeekToDexFile()
3391 << " Expected: " << file_offset in SeekToDexFile()
4059 const size_t file_offset = oat_writer->oat_data_offset_; in Write() local
4181 const size_t file_offset) const { in Write()