Lines Matching refs:pkgFile
115 PkgFilePtr pkgFile = CreatePackage<ZipFileInfo>(path, header, files, offset); in CreatePackage() local
116 if (pkgFile == nullptr) { in CreatePackage()
119 delete pkgFile; in CreatePackage()
120 pkgFile = nullptr; in CreatePackage()
137 PkgFilePtr pkgFile = CreatePackage<ComponentInfo>(path, header, files, offset); in CreatePackage() local
138 if (pkgFile == nullptr) { in CreatePackage()
141 ret = Sign(pkgFile->GetPkgStream(), offset, header); in CreatePackage()
142 delete pkgFile; in CreatePackage()
143 pkgFile = nullptr; in CreatePackage()
160 PkgFilePtr pkgFile = CreatePackage<Lz4FileInfo>(path, header, files, offset); in CreatePackage() local
161 if (pkgFile == nullptr) { in CreatePackage()
164 ret = Sign(pkgFile->GetPkgStream(), offset, header); in CreatePackage()
165 delete pkgFile; in CreatePackage()
166 pkgFile = nullptr; in CreatePackage()
181 PkgFilePtr pkgFile = CreatePackage(PkgStreamImpl::ConvertPkgStream(stream), in CreatePackage() local
183 if (pkgFile == nullptr) { in CreatePackage()
196 … ret = pkgFile->AddEntry(reinterpret_cast<const FileInfoPtr>(&(files[i].second)), inputStream); in CreatePackage()
206 delete pkgFile; in CreatePackage()
207 pkgFile = nullptr; in CreatePackage()
210 ret = pkgFile->SavePackage(offset); in CreatePackage()
212 delete pkgFile; in CreatePackage()
213 pkgFile = nullptr; in CreatePackage()
216 return pkgFile; in CreatePackage()
221 PkgFilePtr pkgFile = nullptr; in CreatePackage() local
224 pkgFile = new UpgradePkgFile(this, stream, header); in CreatePackage()
227 pkgFile = new ZipPkgFile(this, stream); in CreatePackage()
230 pkgFile = new Lz4PkgFile(this, stream); in CreatePackage()
233 pkgFile = new GZipPkgFile(this, stream); in CreatePackage()
238 return pkgFile; in CreatePackage()
260 …PkgFilePtr pkgFile = CreatePackage(static_cast<PkgStreamPtr>(stream), static_cast<PkgFile::PkgType… in ParsePackage() local
261 if (pkgFile == nullptr) { in ParsePackage()
266 int32_t ret = pkgFile->LoadPackage(fileIds, in ParsePackage()
272 pkgFile->SetPkgStream(); in ParsePackage()
273 delete pkgFile; in ParsePackage()
276 pkgFiles_.push_back(pkgFile); in ParsePackage()
295 PkgFilePtr pkgFile = iter; in LoadPackage() local
296 … if (pkgFile != nullptr && pkgFile->GetPkgStream()->GetFileName().compare(packagePath) == 0) { in LoadPackage()
392 PkgFilePtr pkgFile = CreatePackage(stream, type, nullptr); in LoadPackageWithStream() local
393 if (pkgFile == nullptr) { in LoadPackageWithStream()
400 ret = pkgFile->LoadPackage(fileIds, in LoadPackageWithStream()
406 delete pkgFile; in LoadPackageWithStream()
410 pkgFiles_.push_back(pkgFile); in LoadPackageWithStream()
433 PkgFilePtr pkgFile = iter; in GetPackageInfo() local
434 if (pkgFile != nullptr && pkgFile->GetPkgType() == PkgFile::PKG_TYPE_UPGRADE) { in GetPackageInfo()
435 return pkgFile->GetPkgInfo(); in GetPackageInfo()
454 PkgFilePtr pkgFile = iter; in GetPkgEntry() local
455 PkgEntryPtr pkgEntry = pkgFile->FindPkgEntry(path); in GetPkgEntry()