Lines Matching refs:vdex_out

679   std::unique_ptr<BufferedOutputStream> vdex_out =  in WriteAndOpenDexFiles()  local
684 if (!WriteDexFiles(vdex_out.get(), vdex_file, update_input_vdex, copy_dex_files) || in WriteAndOpenDexFiles()
2533 bool OatWriter::WriteQuickeningInfo(OutputStream* vdex_out) { in WriteQuickeningInfo() argument
2544 off_t actual_offset = vdex_out->Seek(start_offset, kSeekSet); in WriteQuickeningInfo()
2548 << " Output: " << vdex_out->GetLocation(); in WriteQuickeningInfo()
2555 WriteQuickeningInfoMethodVisitor write_quicken_info_visitor(this, vdex_out); in WriteQuickeningInfo()
2557 PLOG(ERROR) << "Failed to write the vdex quickening info. File: " << vdex_out->GetLocation(); in WriteQuickeningInfo()
2567 actual_offset = vdex_out->Seek(current_offset, kSeekSet); in WriteQuickeningInfo()
2571 << " Output: " << vdex_out->GetLocation(); in WriteQuickeningInfo()
2577 vdex_out, in WriteQuickeningInfo()
2583 << vdex_out->GetLocation(); in WriteQuickeningInfo()
2596 actual_offset = vdex_out->Seek(desired_offset, kSeekSet); in WriteQuickeningInfo()
2600 << " Output: " << vdex_out->GetLocation(); in WriteQuickeningInfo()
2604 if (!vdex_out->WriteFully(reinterpret_cast<const uint8_t*>(&offset), sizeof(offset))) { in WriteQuickeningInfo()
2606 << " File: " << vdex_out->GetLocation(); in WriteQuickeningInfo()
2611 if (!vdex_out->Flush()) { in WriteQuickeningInfo()
2613 << " File: " << vdex_out->GetLocation(); in WriteQuickeningInfo()
2635 bool OatWriter::WriteVerifierDeps(OutputStream* vdex_out, verifier::VerifierDeps* verifier_deps) { in WriteVerifierDeps() argument
2650 off_t actual_offset = vdex_out->Seek(start_offset, kSeekSet); in WriteVerifierDeps()
2654 << " Output: " << vdex_out->GetLocation(); in WriteVerifierDeps()
2661 if (!vdex_out->WriteFully(buffer.data(), buffer.size())) { in WriteVerifierDeps()
2663 << " File: " << vdex_out->GetLocation(); in WriteVerifierDeps()
2666 if (!vdex_out->Flush()) { in WriteVerifierDeps()
2668 << " File: " << vdex_out->GetLocation(); in WriteVerifierDeps()
3943 bool OatWriter::WriteChecksumsAndVdexHeader(OutputStream* vdex_out) { in WriteChecksumsAndVdexHeader() argument
3946 off_t actual_offset = vdex_out->Seek(checksums_offset, kSeekSet); in WriteChecksumsAndVdexHeader()
3949 << " File: " << vdex_out->GetLocation(); in WriteChecksumsAndVdexHeader()
3955 if (!vdex_out->WriteFully( in WriteChecksumsAndVdexHeader()
3958 << vdex_out->GetLocation(); in WriteChecksumsAndVdexHeader()
3978 if (!vdex_out->WriteFully(&dex_section_header, sizeof(VdexFile::DexSectionHeader))) { in WriteChecksumsAndVdexHeader()
3979 PLOG(ERROR) << "Failed to write vdex header. File: " << vdex_out->GetLocation(); in WriteChecksumsAndVdexHeader()
3986 actual_offset = vdex_out->Seek(0, kSeekSet); in WriteChecksumsAndVdexHeader()
3989 << " File: " << vdex_out->GetLocation(); in WriteChecksumsAndVdexHeader()
3997 if (!vdex_out->WriteFully(&deps_header, sizeof(VdexFile::VerifierDepsHeader))) { in WriteChecksumsAndVdexHeader()
3998 PLOG(ERROR) << "Failed to write vdex header. File: " << vdex_out->GetLocation(); in WriteChecksumsAndVdexHeader()
4003 if (!vdex_out->Flush()) { in WriteChecksumsAndVdexHeader()
4005 << " File: " << vdex_out->GetLocation(); in WriteChecksumsAndVdexHeader()