Lines Matching refs:file
4 * you may not use this file except in compliance with the License.
91 int32_t UpgradePkgFile::GetEntryOffset(size_t &dataOffset, const PkgManager::FileInfoPtr file)
98 PKG_LOGE("More entry for and for %s %zu", file->identity.c_str(), pkgEntryMapId_.size());
101 PKG_LOGI("Add file %s to package", file->identity.c_str());
113 int32_t UpgradePkgFile::AddEntry(const PkgManager::FileInfoPtr file, const PkgStreamPtr inStream)
115 if (file == nullptr || inStream == nullptr) {
121 int32_t ret = GetEntryOffset(dataOffset, file);
127 UpgradeFileEntry *entry = static_cast<UpgradeFileEntry *>(AddPkgEntry(file->identity));
129 PKG_LOGE("Fail create pkg node for %s", file->identity.c_str());
132 ret = entry->Init(file, inStream);
134 PKG_LOGE("Fail init entry for %s", file->identity.c_str());
141 PKG_LOGE("Fail Pack for %s", file->identity.c_str());
149 PKG_LOGE("Fail encode header for %s", file->identity.c_str());
212 PKG_LOGI("SavePackage success file length: %zu signOffset %zu", pkgStream_->GetFileLength(), signOffset);
252 PKG_LOGE("Fail write upgrade file header for %s ret: %d", pkgStream_->GetFileName().c_str(), ret);
453 PKG_LOGE("Invalid file %s fileLen:%zu ", pkgStream_->GetFileName().c_str(), fileLen);
597 // Extract header information from file
619 PKG_LOGE("Failed to get file info");
734 PKG_LOGE("Invalid file %s", pkgStream_->GetFileName().c_str());
856 // Fill digest and compressed size of file
874 PKG_LOGE("Get pkg file ptr fail");
962 PKG_LOGE("Get pkg file ptr fail: %s", fileName_.c_str());