Home
last modified time | relevance | path

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

/art/dex2oat/linker/
Doat_writer_test.cc150 File&& dex_file_fd, in WriteElf() argument
162 if (!oat_writer.AddDexFileSource(std::move(dex_file_fd), location)) { in WriteElf()
675 File dex_file_fd(DupCloexec(dex_file->GetFd()), /*check_usage=*/ false); in TestDexFileInput() local
677 ASSERT_NE(-1, dex_file_fd.Fd()); in TestDexFileInput()
678 ASSERT_EQ(0, lseek(dex_file_fd.Fd(), 0, SEEK_SET)); in TestDexFileInput()
685 std::move(dex_file_fd), in TestDexFileInput()
Doat_writer.h153 File&& dex_file_fd,
Doat_writer.cc518 bool OatWriter::AddDexFileSource(File&& dex_file_fd, in AddDexFileSource() argument
524 if (!ReadMagicAndReset(dex_file_fd.Fd(), &magic, &error_msg)) { in AddDexFileSource()
530 const UnalignedDexFileHeader* header = GetDexFileHeader(&dex_file_fd, raw_header, location); in AddDexFileSource()
538 raw_dex_files_.emplace_back(new File(dex_file_fd.Release(), location, /* checkUsage */ false)); in AddDexFileSource()
546 zip_archives_.emplace_back(ZipArchive::OpenFromFd(dex_file_fd.Release(), location, &error_msg)); in AddDexFileSource()