Searched refs:comp (Results 1 – 7 of 7) sorted by relevance
/base/update/updater/test/unittest/updater_binary/ |
D | updater_binary_unittest.cpp | 130 ComponentInfoExt *comp = (ComponentInfoExt*)malloc( in CreatePackageBin() local 132 if (comp == nullptr) { in CreatePackageBin() 136 BuildCompnentInfo(comp[i], testFileNames_[i], testFileNames_[i], componentType); in CreatePackageBin() 140 BuildCompnentInfo(comp[index++], "/hos"); in CreatePackageBin() 141 BuildCompnentInfo(comp[index++], "/system"); in CreatePackageBin() 142 BuildCompnentInfo(comp[index++], "/vendor"); in CreatePackageBin() 146 ret = CreatePackage(&pkgInfo, comp, packagePath.c_str(), GetTestPrivateKeyName().c_str()); in CreatePackageBin() 148 free(comp[i].componentAddr); in CreatePackageBin() 149 free(comp[i].filePath); in CreatePackageBin() 150 free(comp[i].version); in CreatePackageBin() [all …]
|
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/ |
D | UpdaterStartUpdaterProc_fuzzer.cpp | 108 ComponentInfoExt comp[fstabFile.size()]; in CreatePackageZip() local 110 comp[i].componentAddr = strdup(fstabFile[i].c_str()); in CreatePackageZip() 113 comp[i].filePath = strdup(filePath.c_str()); in CreatePackageZip() 114 comp[i].version = strdup("55555555"); in CreatePackageZip() 116 ret = BuildFileDigest(*comp[i].digest, sizeof(comp[i].digest), filePath); in CreatePackageZip() 117 comp[i].size = GetFileSize(filePath); in CreatePackageZip() 118 comp[i].originalSize = comp[i].size; in CreatePackageZip() 119 comp[i].id = componentInfoIdBase; in CreatePackageZip() 120 comp[i].resType = 1; in CreatePackageZip() 121 comp[i].type = 1; in CreatePackageZip() [all …]
|
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/ |
D | extractandexecutescript_fuzzer.cpp | 236 ComponentInfoExt comp[inputFile.size()]; in CreatePackageBin() local 238 comp[i].componentAddr = strdup(inputFile[i].c_str()); in CreatePackageBin() 241 comp[i].filePath = strdup(filePath.c_str()); in CreatePackageBin() 242 comp[i].version = strdup("55555555"); in CreatePackageBin() 244 ret = BuildFileDigest(*comp[i].digest, sizeof(comp[i].digest), filePath); in CreatePackageBin() 245 comp[i].size = GetFileSize(filePath); in CreatePackageBin() 246 comp[i].originalSize = comp[i].size; in CreatePackageBin() 247 comp[i].id = componentInfoIdBase; in CreatePackageBin() 248 comp[i].resType = 1; in CreatePackageBin() 249 comp[i].type = 1; in CreatePackageBin() [all …]
|
/base/update/updater/test/unittest/package/ |
D | package_unittest.cpp | 101 ComponentInfoExt comp[testFileNames_.size()]; in TestPackagePack() local 103 comp[i].componentAddr = strdup(testFileNames_[i].c_str()); in TestPackagePack() 106 comp[i].filePath = strdup(filePath.c_str()); in TestPackagePack() 107 comp[i].version = strdup("55555555"); in TestPackagePack() 108 ret = BuildFileDigest(*comp[i].digest, sizeof(comp[i].digest), filePath); in TestPackagePack() 110 comp[i].size = GetFileSize(filePath); in TestPackagePack() 111 comp[i].originalSize = comp[i].size; in TestPackagePack() 112 comp[i].id = i + componentIdBase; in TestPackagePack() 113 comp[i].resType = 1; in TestPackagePack() 114 comp[i].type = 1; in TestPackagePack() [all …]
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_upgradefile.cpp | 377 UpgradeCompInfo comp; in EncodeHeader() local 378 PKG_CHECK(!memset_s(&comp, sizeof(comp), 0, sizeof(comp)), in EncodeHeader() 383 fileInfo_.fileInfo.identity, {comp.address, sizeof(comp.address)}, len); in EncodeHeader() 385 …ret = PkgFile::ConvertStringToBuffer(fileInfo_.version, {comp.version, sizeof(comp.version)}, len); in EncodeHeader() 388 ret = memcpy_s(comp.digest, sizeof(comp.digest), fileInfo_.digest, sizeof(fileInfo_.digest)); in EncodeHeader() 390 WriteLE32(reinterpret_cast<uint8_t *>(&comp.size), fileInfo_.fileInfo.unpackedSize); in EncodeHeader() 391 WriteLE16(reinterpret_cast<uint8_t *>(&comp.id), fileInfo_.id); in EncodeHeader() 392 WriteLE32(reinterpret_cast<uint8_t *>(&comp.originalSize), fileInfo_.originalSize); in EncodeHeader() 393 comp.resType = fileInfo_.resType; in EncodeHeader() 394 comp.flags = fileInfo_.compFlags; in EncodeHeader() [all …]
|
/base/hiviewdfx/hiview/base/include/ |
D | event_priority_queue.h | 31 std::make_heap(this->c.begin(), this->c.end(), this->comp); in remove()
|
/base/update/updater/interfaces/kits/include/package/ |
D | package.h | 110 int32_t CreatePackage(const UpgradePkgInfoExt *pkgInfo, ComponentInfoExt comp[],
|