Home
last modified time | relevance | path

Searched refs:pkgStream_ (Results 1 – 8 of 8) sorted by relevance

/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.cpp118 PKG_LOGI("SavePackage %s", pkgStream_->GetFileName().c_str()); in SavePackage()
137 …PKG_CHECK(ret == EOK, return ret, "Fail to memcpy_s %s ret: %d", pkgStream_->GetFileName().c_str()… in SavePackage()
140 …PKG_CHECK(ret == EOK, return ret, "Fail to memcpy_s %s ret: %d", pkgStream_->GetFileName().c_str()… in SavePackage()
148 …PKG_CHECK(ret == EOK, return ret, "Fail to memcpy_s %s ret: %d", pkgStream_->GetFileName().c_str()… in SavePackage()
150 …PKG_CHECK(ret == EOK, return ret, "Fail to memcpy_s %s ret: %d", pkgStream_->GetFileName().c_str()… in SavePackage()
156 ret = pkgStream_->Write(buffer, UPGRADE_FILE_HEADER_LEN, 0); in SavePackage()
158 pkgStream_->GetFileName().c_str(), ret); in SavePackage()
168 ret = pkgStream_->Write(buffer, GetUpgradeSignatureLen() + UPGRADE_RESERVE_LEN, offset); in SavePackage()
169 …PKG_CHECK(ret == PKG_SUCCESS, return ret, "Fail write sign for %s", pkgStream_->GetFileName().c_st… in SavePackage()
170 …PKG_LOGI("SavePackage success file length: %zu signOffset %zu", pkgStream_->GetFileLength(), signO… in SavePackage()
[all …]
Dpkg_pkgfile.cpp37 PkgManager::StreamPtr tmpStream = pkgStream_; in ~PkgFile()
77 PKG_LOGE("error get entry %s", pkgStream_->GetFileName().c_str()); in ExtractFile()
174 int32_t ret = pkgStream_->Write(buffer, buffer.size(), currOffset); in AddSignData()
176 PKG_LOGE("Fail write sign for %s", pkgStream_->GetFileName().c_str()); in AddSignData()
179 pkgStream_->Flush(currOffset + buffer.size()); in AddSignData()
180 …PKG_LOGI("SavePackage success file length: %zu signOffset %zu", pkgStream_->GetFileLength(), signO… in AddSignData()
Dpkg_pkgfile.h90 : type_(type), pkgStream_(stream), pkgManager_(manager) {} in PkgFile()
106 return pkgStream_; in GetPkgStream()
121 pkgStream_ = nullptr; in SetPkgStream()
142 PkgStreamPtr pkgStream_ = nullptr; variable
Dpkg_zipfile.cpp93 entry->EncodeCentralDirEntry(pkgStream_, offset, encodeLen); in SavePackage()
107 ret = pkgStream_->Write(buffer, sizeof(EndCentralDir), offset); in SavePackage()
109 PKG_LOGE("Failed to write CentralDirEntry for %s", pkgStream_->GetFileName().c_str()); in SavePackage()
113 pkgStream_->Flush(currentOffset_); in SavePackage()
120 size_t fileLen = pkgStream_->GetFileLength(); in LoadPackage()
137 PKG_LOGE("end dir format error %s", pkgStream_->GetFileName().c_str()); in LoadPackage()
142 int32_t ret = pkgStream_->Read(buffer, endDirPos - sizeof(Zip64EndCentralDirLocator), in LoadPackage()
149 ret = pkgStream_->Read(buffer, currentPos, sizeof(Zip64EndCentralDirRecord), readLen); in LoadPackage()
161 PKG_LOGI("LoadPackage %s :%zu", pkgStream_->GetFileName().c_str(), pkgStream_->GetFileLength()); in LoadPackage()
165 size_t fileLen = pkgStream_->GetFileLength(); in LoadPackage()
[all …]
Dpkg_lz4file.cpp166 pkgStream_->Flush(currentOffset_); in AddEntry()
183 PKG_LOGI("LoadPackage %s ", pkgStream_->GetFileName().c_str()); in LoadPackage()
188 int32_t ret = pkgStream_->Read(buffer, srcOffset, buffer.length, readLen); in LoadPackage()
206 PKG_LOGE("Fail create upgrade node for %s", pkgStream_->GetFileName().c_str()); in LoadPackage()
Dpkg_gzipfile.cpp302 pkgStream_->Flush(currentOffset_); in AddEntry()
319 PKG_LOGI("LoadPackage %s ", pkgStream_->GetFileName().c_str()); in LoadPackage()
323 int32_t ret = pkgStream_->Read(buffer, srcOffset, buffer.length, readLen); in LoadPackage()
325 PKG_LOGE("Fail to read file %s", pkgStream_->GetFileName().c_str()); in LoadPackage()
332 PKG_LOGE("Invalid gzip file %s", pkgStream_->GetFileName().c_str()); in LoadPackage()
343 PKG_LOGE("Fail create gzip node for %s", pkgStream_->GetFileName().c_str()); in LoadPackage()
/base/update/updater/services/script/script_interpreter/
Dscanner.h55 pkgStream_ = pkgStream; in SetPkgStream()
59 Hpackage::PkgManager::StreamPtr pkgStream_ = nullptr;
Dscript_scanner.cpp25 (void)pkgStream_->Read(data, currPos, maxSize, readLen); in LexerInput()