Lines Matching refs:fd
47 return LoadImpl({} /*fd*/, path, nullptr, nullptr, system, false /*load_as_shared_library*/);
52 return LoadImpl({} /*fd*/, path, nullptr, nullptr, system, true /*load_as_shared_library*/);
70 return LoadImpl({} /*fd*/, loaded_idmap->OverlayApkPath(), std::move(idmap_asset),
74 std::unique_ptr<const ApkAssets> ApkAssets::LoadFromFd(unique_fd fd,
77 return LoadImpl(std::move(fd), friendly_name, nullptr /*idmap_asset*/, nullptr /*loaded_idmap*/,
82 unique_fd fd(base::utf8::open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC));
83 if (fd == -1) {
88 const off64_t file_len = lseek64(fd, 0, SEEK_END);
95 if (!file_map->create(path.c_str(), fd, 0, static_cast<size_t>(file_len), true /*readOnly*/)) {
103 unique_fd fd, const std::string& path, std::unique_ptr<Asset> idmap_asset,
107 if (fd >= 0) {
109 ::OpenArchiveFd(fd.release(), path.c_str(), &unmanaged_handle, true /*assume_ownership*/);