Home
last modified time | relevance | path

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

/aosp12/art/runtime/
H A Doat_file.h102 static OatFile* Open(int zip_fd,
111 static OatFile* Open(int zip_fd, in Open() argument
118 return Open(zip_fd, in Open()
128 static OatFile* Open(int zip_fd, in Open() argument
134 return Open(zip_fd, in Open()
147 static OatFile* Open(int zip_fd,
165 static OatFile* OpenFromVdex(int zip_fd,
H A Doat_file_assistant.cc101 int zip_fd) in OatFileAssistant() argument
110 zip_fd_(zip_fd) { in OatFileAssistant()
114 if (zip_fd < 0) { in OatFileAssistant()
115 CHECK_LE(oat_fd, 0) << "zip_fd must be provided with valid oat_fd. zip_fd=" << zip_fd in OatFileAssistant()
117 CHECK_LE(vdex_fd, 0) << "zip_fd must be provided with valid vdex_fd. zip_fd=" << zip_fd in OatFileAssistant()
136 odex_.Reset(odex_file_name, UseFdToReadFiles(), zip_fd, vdex_fd, oat_fd); in OatFileAssistant()
141 DupCloexec(zip_fd), in OatFileAssistant()
154 vdex_for_oat_.Reset(vdex_file_name, UseFdToReadFiles(), zip_fd, vdex_fd, oat_fd); in OatFileAssistant()
963 int zip_fd, in Reset() argument
969 zip_fd_ = zip_fd; in Reset()
H A Doat_file.cc108 static OatFileBase* OpenOatFile(int zip_fd,
120 static OatFileBase* OpenOatFile(int zip_fd,
196 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
237 OatFileBase* OatFileBase::OpenOatFile(int zip_fd, in OpenOatFile() argument
570 bool OatFileBase::Setup(int zip_fd, in Setup() argument
785 if (zip_fd != -1) { in Setup()
1492 bool InitializeFromElfFile(int zip_fd,
1724 if (zip_fd != -1) { in Open()
1816 OatFile* OatFile::Open(int zip_fd, in Open() argument
1893 OatFile* OatFile::Open(int zip_fd, in Open() argument
[all …]
H A Doat_file_assistant.h129 int zip_fd);
327 int zip_fd = -1,
H A Doat_file_assistant_test.cc471 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
480 zip_fd.get()); in TEST_F()
510 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
519 zip_fd.get()); in TEST_F()
546 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
555 zip_fd.get()); in TEST_F()
572 android::base::unique_fd zip_fd(open(dex_location.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
580 zip_fd); in TEST_F()
/aosp12/art/libartbase/base/
H A 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()
/aosp12/art/libdexfile/dex/
H A Dart_dex_file_loader.cc91 int zip_fd, in GetMultiDexChecksums() argument
97 if (zip_fd != -1) { in GetMultiDexChecksums()
98 if (ReadMagicAndReset(zip_fd, &magic, error_msg)) { in GetMultiDexChecksums()
99 fd = File(DupCloexec(zip_fd), /* check_usage= */ false); in GetMultiDexChecksums()
H A Dart_dex_file_loader.h58 int zip_fd = -1,
H A Ddex_file_loader.h125 int zip_fd = -1,
H A Ddex_file_loader.cc216 int zip_fd ATTRIBUTE_UNUSED, in GetMultiDexChecksums()
/aosp12/art/dex2oat/linker/
H A Doat_writer_test.cc805 File zip_fd(DupCloexec(zip_file.GetFd()), /*check_usage=*/ false); in TestZipFileInput() local
806 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
807 ASSERT_EQ(0, lseek(zip_fd.Fd(), 0, SEEK_SET)); in TestZipFileInput()
812 std::move(zip_fd), in TestZipFileInput()
/aosp12/frameworks/native/cmds/installd/
H A Ddexopt.cpp1180 int zip_fd, in RunDexoptAnalyzer() argument
1187 CHECK_GE(zip_fd, 0); in RunDexoptAnalyzer()
1196 std::string zip_fd_arg = "--zip-fd=" + std::to_string(zip_fd); in RunDexoptAnalyzer()
1570 unique_fd zip_fd; in process_secondary_dex_dexopt() local
1571 zip_fd.reset(open(dex_path.c_str(), O_RDONLY)); in process_secondary_dex_dexopt()
1572 if (zip_fd.get() < 0) { in process_secondary_dex_dexopt()
1614 zip_fd.get(), in process_secondary_dex_dexopt()