Lines Matching defs:count
186 HnpSignMapInfo *hnpSignMapInfos, int *count)
191 ret = HnpUnZip(hnpFile, hnpInfo->hnpVersionPath, hnpInfo->hnpSignKeyPrefix, hnpSignMapInfos, count);
288 int count = 0;
304 int ret = HnpPackageInfoGet(packageName, &packageInfo, &count);
310 for (int i = 0; i < count; i++) {
400 static int HnpReadAndInstall(char *srcFile, HnpInstallInfo *hnpInfo, HnpSignMapInfo *hnpSignMapInfos, int *count)
445 ret = HnpInstall(srcFile, hnpInfo, &hnpCfg, hnpSignMapInfos, count);
480 HnpSignMapInfo *hnpSignMapInfos, int *count)
508 int ret = HnpPackageGetAndInstall(path, hnpInfo, sunDirNew, hnpSignMapInfos, count);
523 int ret = HnpReadAndInstall(path, hnpInfo, hnpSignMapInfos, count);
536 int *count)
573 ret = HnpPackageGetAndInstall(hnpPath, &hnpInfo, "", hnpSignMapInfos, count);
584 static int HnpInstallHnpFileCountGet(char *hnpPath, int *count)
592 HNP_LOGE("hnp install count get opendir:%{public}s unsuccess, errno=%{public}d", hnpPath, errno);
602 HNP_LOGE("hnp install count get sprintf unsuccess, dir[%{public}s], path[%{public}s]", hnpPath,
614 ret = HnpInstallHnpFileCountGet(path, count);
623 ret = HnpFileCountGet(path, count);
635 static int HnpInstallHapFileCountGet(const char *root, int *count)
656 int ret = HnpInstallHnpFileCountGet(hnpPath, count);
713 int count = 0;
722 (ret = HnpInstallHapFileCountGet(installInfo->hnpRootPath, &count)) != 0) {
726 if (count > 0) {
727 hnpSignMapInfos = (HnpSignMapInfo *)malloc(sizeof(HnpSignMapInfo) * count);
733 count = 0;
734 ret = HapReadAndInstall(dstPath, installInfo, hnpSignMapInfos, &count);
735 HNP_LOGI("sign start hap path[%{public}s],abi[%{public}s],count=%{public}d", installInfo->hapPath, installInfo->abi,
736 count);
738 if ((ret == 0) && (count > 0)) {
739 data.entries = malloc(sizeof(struct EntryMapEntry) * count);
743 for (i = 0; i < count; i++) {
747 data.count = count;