Searched refs:compInfo (Results 1 – 3 of 3) sorted by relevance
/base/update/updater/interfaces/kits/packages/ |
D | package.cpp | 32 ComponentInfoExt compInfo[]) in GetUpgradePkgInfo() argument 56 files[i].first.assign(compInfo[i].filePath); in GetUpgradePkgInfo() 58 …if (memcpy_s(info->digest, sizeof(info->digest), compInfo[i].digest, sizeof(info->digest)) != EOK)… in GetUpgradePkgInfo() 62 info->fileInfo.identity.assign(compInfo[i].componentAddr); in GetUpgradePkgInfo() 63 info->fileInfo.unpackedSize = compInfo[i].size; in GetUpgradePkgInfo() 64 info->fileInfo.packedSize = compInfo[i].size; in GetUpgradePkgInfo() 67 info->version.assign(compInfo[i].version); in GetUpgradePkgInfo() 68 info->id = compInfo[i].id; in GetUpgradePkgInfo() 69 info->resType = compInfo[i].resType; in GetUpgradePkgInfo() 70 info->type = compInfo[i].type; in GetUpgradePkgInfo() [all …]
|
/base/update/updater/test/unittest/package/ |
D | pkg_test.h | 122 … const ComponentInfo* compInfo = (const ComponentInfo*)manager->GetFileInfo(components[i]); in ExtractFile() local 123 if (compInfo != nullptr) { in ExtractFile() 124 … PKG_LOGI("comp [%zu] componentAddr: %s \n", i, (*compInfo).fileInfo.identity.c_str()); in ExtractFile() 125 PKG_LOGI("comp [%zu] version: %s \n", i, (*compInfo).version.c_str()); in ExtractFile() 126 PKG_LOGI("comp [%zu] originalSize: %zu \n", i, (*compInfo).originalSize); in ExtractFile() 127 PKG_LOGI("comp [%zu] size: %zu \n", i, (*compInfo).fileInfo.unpackedSize); in ExtractFile() 128 PKG_LOGI("comp [%zu] id: %d \n", i, (*compInfo).id); in ExtractFile() 129 PKG_LOGI("comp [%zu] resType: %d \n", i, (*compInfo).resType); in ExtractFile() 130 PKG_LOGI("comp [%zu] flags: %d \n", i, (*compInfo).compFlags); in ExtractFile() 131 PKG_LOGI("comp [%zu] type: %d \n", i, (*compInfo).type); in ExtractFile()
|
D | package_unittest.cpp | 43 ComponentInfoExt compInfo; in TestInvalidCreatePackage() local 45 int ret = CreatePackage(nullptr, &compInfo, nullptr, GetTestPrivateKeyName(0).c_str()); in TestInvalidCreatePackage() 50 ret = CreatePackage(&pkgInfoExt, &compInfo, nullptr, GetTestPrivateKeyName(0).c_str()); in TestInvalidCreatePackage() 59 …ret = CreatePackage(&pkgInfoExt, &compInfo, packagePath.c_str(), GetTestPrivateKeyName(0).c_str()); in TestInvalidCreatePackage() 64 …ret = CreatePackage(&pkgInfoExt, &compInfo, packagePath.c_str(), GetTestPrivateKeyName(0).c_str()); in TestInvalidCreatePackage() 69 …ret = CreatePackage(&pkgInfoExt, &compInfo, packagePath.c_str(), GetTestPrivateKeyName(0).c_str()); in TestInvalidCreatePackage() 74 …ret = CreatePackage(&pkgInfoExt, &compInfo, packagePath.c_str(), GetTestPrivateKeyName(0).c_str()); in TestInvalidCreatePackage() 79 …ret = CreatePackage(&pkgInfoExt, &compInfo, packagePath.c_str(), GetTestPrivateKeyName(0).c_str()); in TestInvalidCreatePackage()
|