Home
last modified time | relevance | path

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

/art/libartbase/base/
Dzip_archive.cc105 const int zip_fd = GetFileDescriptor(handle_); in MapDirectlyFromFile() local
111 CHECK_GE(zip_fd, 0) << in MapDirectlyFromFile()
146 zip_fd, in MapDirectlyFromFile()
160 lseek(zip_fd, 0, SEEK_SET); in MapDirectlyFromFile()
169 while (read(zip_fd, &buf, 1) > 0 && i < count) { in MapDirectlyFromFile()
/art/runtime/
Doat_file.h105 static OatFile* Open(int zip_fd,
114 static OatFile* Open(int zip_fd, in Open() argument
121 return Open(zip_fd, in Open()
131 static OatFile* Open(int zip_fd, in Open() argument
137 return Open(zip_fd, in Open()
150 static OatFile* Open(int zip_fd,
Doat_file_assistant.h122 int zip_fd);
311 int zip_fd = -1,
Doat_file_assistant.cc96 int zip_fd) in OatFileAssistant() argument
102 zip_fd_(zip_fd) { in OatFileAssistant()
105 if (zip_fd < 0) { in OatFileAssistant()
106 CHECK_LE(oat_fd, 0) << "zip_fd must be provided with valid oat_fd. zip_fd=" << zip_fd in OatFileAssistant()
108 CHECK_LE(vdex_fd, 0) << "zip_fd must be provided with valid vdex_fd. zip_fd=" << zip_fd in OatFileAssistant()
124 odex_.Reset(odex_file_name, UseFdToReadFiles(), zip_fd, vdex_fd, oat_fd); in OatFileAssistant()
922 int zip_fd, in Reset() argument
928 zip_fd_ = zip_fd; in Reset()
Doat_file.cc107 static OatFileBase* OpenOatFile(int zip_fd,
119 static OatFileBase* OpenOatFile(int zip_fd,
169 bool Setup(int zip_fd, ArrayRef<const std::string> dex_filenames, std::string* error_msg);
195 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
228 if (!ret->Setup(zip_fd, dex_filenames, error_msg)) { in OpenOatFile()
236 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
268 if (!ret->Setup(zip_fd, dex_filenames, error_msg)) { in OpenOatFile()
489 bool OatFileBase::Setup(int zip_fd, in Setup() argument
704 if (zip_fd != -1) { in Setup()
705 loaded = dex_file_loader.OpenZip(zip_fd, in Setup()
[all …]
Doat_file_assistant_test.cc411 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
419 zip_fd.get()); in TEST_F()
449 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
457 zip_fd.get()); in TEST_F()
482 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
490 zip_fd.get()); in TEST_F()
507 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
514 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.cc812 File zip_fd(DupCloexec(zip_file.GetFd()), /*check_usage=*/ false); in TestZipFileInput() local
813 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
814 ASSERT_EQ(0, lseek(zip_fd.Fd(), 0, SEEK_SET)); in TestZipFileInput()
819 std::move(zip_fd), in TestZipFileInput()