Home
last modified time | relevance | path

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

/art/libartbase/base/
Dzip_archive.cc97 const int zip_fd = GetFileDescriptor(handle_); in MapDirectlyFromFile() local
103 CHECK_GE(zip_fd, 0) << in MapDirectlyFromFile()
138 zip_fd, in MapDirectlyFromFile()
152 lseek(zip_fd, 0, SEEK_SET); in MapDirectlyFromFile()
161 while (read(zip_fd, &buf, 1) > 0 && i < count) { in MapDirectlyFromFile()
/art/runtime/
Doat_file.cc106 static OatFileBase* OpenOatFile(int zip_fd,
118 static OatFileBase* OpenOatFile(int zip_fd,
167 bool Setup(int zip_fd, const char* abs_dex_location, std::string* error_msg);
189 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
222 if (!ret->Setup(zip_fd, abs_dex_location, error_msg)) { in OpenOatFile()
230 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
262 if (!ret->Setup(zip_fd, abs_dex_location, error_msg)) { in OpenOatFile()
475 bool OatFileBase::Setup(int zip_fd, const char* abs_dex_location, std::string* error_msg) { in Setup() argument
642 if (zip_fd != -1) { in Setup()
643 loaded = dex_file_loader.OpenZip(zip_fd, in Setup()
[all …]
Doat_file.h79 static OatFile* OpenWithElfFile(int zip_fd,
89 static OatFile* Open(int zip_fd,
101 static OatFile* Open(int zip_fd,
116 static OatFile* OpenWritable(int zip_fd,
122 static OatFile* OpenReadable(int zip_fd,
Doat_file_assistant.h122 int zip_fd);
316 int zip_fd = -1,
Doat_file_assistant.cc95 int zip_fd) in OatFileAssistant() argument
101 zip_fd_(zip_fd) { in OatFileAssistant()
104 if (zip_fd < 0) { in OatFileAssistant()
105 CHECK_LE(oat_fd, 0) << "zip_fd must be provided with valid oat_fd. zip_fd=" << zip_fd in OatFileAssistant()
107 CHECK_LE(vdex_fd, 0) << "zip_fd must be provided with valid vdex_fd. zip_fd=" << zip_fd in OatFileAssistant()
123 odex_.Reset(odex_file_name, UseFdToReadFiles(), zip_fd, vdex_fd, oat_fd); in OatFileAssistant()
955 int zip_fd, in Reset() argument
961 zip_fd_ = zip_fd; in Reset()
Doat_file_assistant_test.cc384 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
392 zip_fd.get()); in TEST_F()
422 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
430 zip_fd.get()); in TEST_F()
455 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
463 zip_fd.get()); in TEST_F()
480 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
487 zip_fd); in TEST_F()
/art/libdexfile/dex/
Dart_dex_file_loader.cc90 int zip_fd, in GetMultiDexChecksums() argument
96 if (zip_fd != -1) { in GetMultiDexChecksums()
97 if (ReadMagicAndReset(zip_fd, &magic, error_msg)) { in GetMultiDexChecksums()
98 fd = File(DupCloexec(zip_fd), /* check_usage= */ false); in GetMultiDexChecksums()
Dart_dex_file_loader.h53 int zip_fd = -1,
Ddex_file_loader.h120 int zip_fd = -1,
Ddex_file_loader.cc215 int zip_fd ATTRIBUTE_UNUSED, in GetMultiDexChecksums()
/art/dex2oat/linker/
Doat_writer_test.cc149 File&& zip_fd, in WriteElf() argument
160 if (!oat_writer.AddZippedDexFilesSource(std::move(zip_fd), location)) { in WriteElf()
769 File zip_fd(DupCloexec(zip_file.GetFd()), /*check_usage=*/ false); in TestZipFileInput() local
770 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
775 std::move(zip_fd), in TestZipFileInput()
Doat_writer.h153 File&& zip_fd,
Doat_writer.cc538 bool OatWriter::AddZippedDexFilesSource(File&& zip_fd, in AddZippedDexFilesSource() argument
543 zip_archives_.emplace_back(ZipArchive::OpenFromFd(zip_fd.Release(), location, &error_msg)); in AddZippedDexFilesSource()