Home
last modified time | relevance | path

Searched refs:zip_fd (Results 1 – 13 of 13) sorted by relevance

/art/runtime/
Dzip_archive.cc101 const int zip_fd = GetFileDescriptor(handle_); in MapDirectlyFromFile() local
107 CHECK_GE(zip_fd, 0) << in MapDirectlyFromFile()
143 zip_fd, in MapDirectlyFromFile()
158 lseek(zip_fd, 0, SEEK_SET); in MapDirectlyFromFile()
167 while (read(zip_fd, &buf, 1) > 0 && i < count) { in MapDirectlyFromFile()
Doat_file.cc100 static OatFileBase* OpenOatFile(int zip_fd,
113 static OatFileBase* OpenOatFile(int zip_fd,
165 bool Setup(int zip_fd, const char* abs_dex_location, std::string* error_msg);
186 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
220 if (!ret->Setup(zip_fd, abs_dex_location, error_msg)) { in OpenOatFile()
228 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
261 if (!ret->Setup(zip_fd, abs_dex_location, error_msg)) { in OpenOatFile()
510 bool OatFileBase::Setup(int zip_fd, const char* abs_dex_location, std::string* error_msg) { in Setup() argument
653 if (zip_fd != -1) { in Setup()
654 loaded = dex_file_loader.OpenZip(zip_fd, in Setup()
[all …]
Doat_file.h77 static OatFile* OpenWithElfFile(int zip_fd,
87 static OatFile* Open(int zip_fd,
100 static OatFile* Open(int zip_fd,
116 static OatFile* OpenWritable(int zip_fd,
122 static OatFile* OpenReadable(int zip_fd,
Doat_file_assistant.h139 int zip_fd);
383 int zip_fd = -1,
Doat_file_assistant.cc94 int zip_fd) in OatFileAssistant() argument
100 zip_fd_(zip_fd) { in OatFileAssistant()
103 if (zip_fd < 0) { in OatFileAssistant()
104 CHECK_LE(oat_fd, 0) << "zip_fd must be provided with valid oat_fd. zip_fd=" << zip_fd in OatFileAssistant()
106 CHECK_LE(vdex_fd, 0) << "zip_fd must be provided with valid vdex_fd. zip_fd=" << zip_fd in OatFileAssistant()
122 odex_.Reset(odex_file_name, UseFdToReadFiles(), zip_fd, vdex_fd, oat_fd); in OatFileAssistant()
1248 int zip_fd, in Reset() argument
1254 zip_fd_ = zip_fd; in Reset()
Doat_file_assistant_test.cc273 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F() local
281 zip_fd.get()); in TEST_F()
313 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F() local
321 zip_fd.get()); in TEST_F()
348 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F() local
356 zip_fd.get()); in TEST_F()
373 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY)); in TEST_F() local
380 zip_fd); in TEST_F()
/art/runtime/dex/
Dart_dex_file_loader.cc89 int zip_fd, in GetMultiDexChecksums() argument
95 if (zip_fd != -1) { in GetMultiDexChecksums()
96 if (ReadMagicAndReset(zip_fd, &magic, error_msg)) { in GetMultiDexChecksums()
97 fd = File(zip_fd, false /* check_usage */); in GetMultiDexChecksums()
Dart_dex_file_loader.h53 int zip_fd = -1,
/art/libdexfile/dex/
Ddex_file_loader.h111 int zip_fd = -1,
Ddex_file_loader.cc213 int zip_fd ATTRIBUTE_UNUSED, in GetMultiDexChecksums()
/art/dex2oat/linker/
Doat_writer_test.cc164 File&& zip_fd, in WriteElf() argument
173 if (!oat_writer.AddZippedDexFilesSource(std::move(zip_fd), location)) { in WriteElf()
801 File zip_fd(dup(zip_file.GetFd()), /* check_usage */ false); in TestZipFileInput() local
802 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
807 std::move(zip_fd), in TestZipFileInput()
Doat_writer.h150 File&& zip_fd,
Doat_writer.cc522 bool OatWriter::AddZippedDexFilesSource(File&& zip_fd, in AddZippedDexFilesSource() argument
527 zip_archives_.emplace_back(ZipArchive::OpenFromFd(zip_fd.Release(), location, &error_msg)); in AddZippedDexFilesSource()