/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/storage/src/ |
H A D | hks_storage_util_test.cpp | 86 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; in HWTEST_F() local 88 struct HksStoreFileInfo fileInfo = { { 0 } }; in HWTEST_F() local 90 int32_t ret = HksGetFileInfo(&material, &fileInfo); in HWTEST_F() 92 ASSERT_EQ(strlen(fileInfo.mainPath.fileName), strlen(material.keyAliasPath)); in HWTEST_F() 93 ASSERT_EQ(EOK, HksMemCmp(fileInfo.mainPath.fileName, material.keyAliasPath, strlen(material.keyAliasPath))); in HWTEST_F() 97 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; in HWTEST_F() 98 ASSERT_EQ(EOK, HksMemCmp(fileInfo.mainPath.path, expectPath, strlen(expectPath))); in HWTEST_F() 115 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; in HWTEST_F() local 117 struct HksStoreFileInfo fileInfo in HWTEST_F() local 144 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HWTEST_F() local 146 struct HksStoreFileInfo fileInfo = { { 0 } }; HWTEST_F() local 173 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HWTEST_F() local 175 struct HksStoreFileInfo fileInfo = { { 0 } }; HWTEST_F() local 203 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HWTEST_F() local 205 struct HksStoreFileInfo fileInfo = { { 0 } }; HWTEST_F() local 233 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HWTEST_F() local 235 struct HksStoreFileInfo fileInfo = { { 0 } }; HWTEST_F() local 262 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HWTEST_F() local 264 struct HksStoreFileInfo fileInfo = { { 0 } }; HWTEST_F() local [all...] |
/base/update/updater/services/package/pkg_package/ |
H A D | pkg_lz4file.cpp | 22 int32_t Lz4FileEntry::Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream)
in Init() argument 24 int32_t ret = PkgEntry::Init(&fileInfo_.fileInfo, fileInfo, inStream);
in Init() 29 Lz4FileInfo *info = (Lz4FileInfo *)fileInfo;
in Init() 42 fileInfo_.fileInfo.headerOffset = startOffset;
in EncodeHeader() 43 fileInfo_.fileInfo.dataOffset = startOffset;
in EncodeHeader() 49 PkgAlgorithm::PkgAlgorithmPtr algorithm = PkgAlgorithmFactory::GetAlgorithm(&fileInfo_.fileInfo);
in Pack() 51 if (fileInfo_.fileInfo.headerOffset != startOffset) {
in Pack() 52 PKG_LOGE("start offset error for %s", fileInfo_.fileInfo.identity.c_str());
in Pack() 56 PKG_LOGE("outStream or inStream null for %s", fileInfo_.fileInfo in Pack() [all...] |
H A D | pkg_gzipfile.cpp | 71 header->mtime = fileInfo_.fileInfo.modifiedTime;
in GetUpGradeCompInfo() 84 fileInfo_.fileInfo.identity, {buffer.buffer + offset, buffer.length - offset}, fileNameLen);
in GetUpGradeCompInfo() 94 fileInfo_.fileInfo.identity, {buffer.buffer + offset, buffer.length - offset}, fileNameLen);
in GetUpGradeCompInfo() 107 PKG_LOGE("Check outstream fail %s", fileInfo_.fileInfo.identity.c_str());
in EncodeHeader() 115 fileInfo_.fileInfo.headerOffset = startOffset;
in EncodeHeader() 116 fileInfo_.fileInfo.dataOffset = startOffset + offset;
in EncodeHeader() 119 PKG_LOGE("Fail write header for %s", fileInfo_.fileInfo.identity.c_str());
in EncodeHeader() 128 PkgAlgorithm::PkgAlgorithmPtr algorithm = PkgAlgorithmFactory::GetAlgorithm(&fileInfo_.fileInfo);
in Pack() 130 if (fileInfo_.fileInfo.dataOffset != startOffset) {
in Pack() 131 PKG_LOGE("start offset error for %s", fileInfo_.fileInfo in Pack() [all...] |
H A D | pkg_zipfile.cpp | 286 fileInfo_.fileInfo.headerOffset = startOffset;
in EncodeHeader() 296 PkgFileImpl::ConvertStringToBuffer(fileInfo_.fileInfo.identity, {
in PackStream() 308 fileInfo_.fileInfo.dataOffset = startOffset + headerLen;
in PackStream() 311 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize},
in PackStream() 312 0, fileInfo_.fileInfo.digestMethod
in PackStream() 316 PKG_LOGE("Failed to compress for %s", fileInfo_.fileInfo.identity.c_str());
in PackStream() 320 fileInfo_.fileInfo.packedSize = context.packedSize;
in PackStream() 326 PKG_LOGE("Failed to encodeFileHeader for %s", fileInfo_.fileInfo.identity.c_str());
in PackStream() 332 PKG_LOGE("Failed to write header for %s", fileInfo_.fileInfo in PackStream() 761 Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream) Init() argument [all...] |
H A D | pkg_pkgfile.cpp | 136 int32_t PkgEntry::Init(PkgManager::FileInfoPtr localFileInfo, const PkgManager::FileInfoPtr fileInfo,
in Init() argument 139 if (localFileInfo == nullptr || fileInfo == nullptr || inStream == nullptr) {
in Init() 145 localFileInfo->identity.assign(fileInfo->identity);
in Init() 146 localFileInfo->flags = fileInfo->flags;
in Init() 147 localFileInfo->digestMethod = fileInfo->digestMethod;
in Init() 148 localFileInfo->packMethod = fileInfo->packMethod;
in Init() 149 localFileInfo->modifiedTime = fileInfo->modifiedTime;
in Init() 150 localFileInfo->packedSize = fileInfo->packedSize;
in Init() 151 localFileInfo->unpackedSize = fileInfo->unpackedSize;
in Init()
|
H A D | pkg_upgradefile.cpp | 58 int32_t UpgradeFileEntry::Init(const PkgManager::FileInfoPtr fileInfo, PkgStreamPtr inStream)
in Init() argument 60 int32_t ret = PkgEntry::Init(&fileInfo_.fileInfo, fileInfo, inStream);
in Init() 65 ComponentInfo *info = (ComponentInfo *)fileInfo;
in Init() 777 fileInfo_.fileInfo.identity, {comp.address, sizeof(comp.address)}, len);
in GetUpGradeCompInfo() 811 WriteLE32(reinterpret_cast<uint8_t *>(&comp.size), fileInfo_.fileInfo.unpackedSize);
in EncodeHeader() 828 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize);
in EncodeHeader() 834 PkgAlgorithm::PkgAlgorithmPtr algorithm = PkgAlgorithmFactory::GetAlgorithm(&fileInfo_.fileInfo);
in Pack() 843 {fileInfo_.fileInfo in Pack() [all...] |
/base/update/updater/services/diffpatch/patch/ |
H A D | image_patch.cpp | 250 Hpackage::ZipFileInfo *fileInfo = new(std::nothrow) ZipFileInfo; in GetFileInfo() local 251 if (fileInfo == nullptr) { in GetFileInfo() 255 fileInfo->fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in GetFileInfo() 256 fileInfo->fileInfo.digestMethod = PKG_DIGEST_TYPE_NONE; in GetFileInfo() 257 fileInfo->fileInfo.packedSize = 0; in GetFileInfo() 258 fileInfo->fileInfo in GetFileInfo() 304 Hpackage::Lz4FileInfo *fileInfo = new(std::nothrow) Lz4FileInfo; GetFileInfo() local [all...] |
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage_manager.c | 275 const struct HksStoreMaterial *material, struct HksStoreFileInfo *fileInfo) in HksConstructStoreFileInfo() 282 ret = HksGetFileInfo(material, fileInfo); in HksConstructStoreFileInfo() 294 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; in HksManageStoreKeyBlob() local 296 struct HksStoreFileInfo fileInfo = { { 0 } }; in HksManageStoreKeyBlob() local 307 ret = HksConstructStoreFileInfo(processInfo, paramSet, &material, &fileInfo); in HksManageStoreKeyBlob() 310 ret = HksStoreKeyBlob(&fileInfo, &material, keyBlob); in HksManageStoreKeyBlob() 315 FileInfoFree(&fileInfo); in HksManageStoreKeyBlob() 326 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; in HksManageStoreDeleteKeyBlob() local 328 struct HksStoreFileInfo fileInfo = { { 0 } }; in HksManageStoreDeleteKeyBlob() local 339 ret = HksConstructStoreFileInfo(processInfo, paramSet, &material, &fileInfo); in HksManageStoreDeleteKeyBlob() 274 HksConstructStoreFileInfo(const struct HksProcessInfo *processInfo, const struct HksParamSet *paramSet, const struct HksStoreMaterial *material, struct HksStoreFileInfo *fileInfo) HksConstructStoreFileInfo() argument 358 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksManageStoreIsKeyBlobExist() local 360 struct HksStoreFileInfo fileInfo = { { 0 } }; HksManageStoreIsKeyBlobExist() local 390 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksManageStoreGetKeyBlob() local 392 struct HksStoreFileInfo fileInfo = { { 0 } }; HksManageStoreGetKeyBlob() local 435 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksManageStoreGetKeyBlobSize() local 437 struct HksStoreFileInfo fileInfo = { { 0 } }; HksManageStoreGetKeyBlobSize() local 472 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksManageGetKeyAliasByProcessName() local 500 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksManageGetKeyCountByProcessName() local 502 struct HksStoreFileInfo fileInfo = { { 0 } }; HksManageGetKeyCountByProcessName() local 531 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksManageListAliasesByProcessName() local [all...] |
H A D | hks_storage.c | 212 static int32_t DeleteKeyBlob(const struct HksStoreFileInfo *fileInfo) in DeleteKeyBlob() argument 214 int32_t isMainFileExist = HksIsFileExist(fileInfo->mainPath.path, fileInfo->mainPath.fileName); in DeleteKeyBlob() 217 int32_t isBakFileExist = HksIsFileExist(fileInfo->bakPath.path, fileInfo->bakPath.fileName); in DeleteKeyBlob() 223 ret = HksStorageRemoveFile(fileInfo->bakPath.path, fileInfo->bakPath.fileName); in DeleteKeyBlob() 228 ret = HksStorageRemoveFile(fileInfo->mainPath.path, fileInfo->mainPath.fileName); in DeleteKeyBlob() 259 static int32_t IsKeyBlobExist(const struct HksStoreFileInfo *fileInfo) in IsKeyBlobExist() argument 278 HksStoreKeyBlob(const struct HksStoreFileInfo *fileInfo, const struct HksStoreMaterial *material, const struct HksBlob *keyBlob) HksStoreKeyBlob() argument 301 HksStoreDeleteKeyBlob(const struct HksStoreFileInfo *fileInfo, const struct HksStoreMaterial *material) HksStoreDeleteKeyBlob() argument 314 HksStoreIsKeyBlobExist(const struct HksStoreFileInfo *fileInfo) HksStoreIsKeyBlobExist() argument 428 GetKeyAliasByProcessName(const struct HksStoreFileInfo *fileInfo, struct HksKeyInfo *keyInfoList, uint32_t *listCount) GetKeyAliasByProcessName() argument 462 HksGetKeyAliasByProcessName(const struct HksStoreFileInfo *fileInfo, struct HksKeyInfo *keyInfoList, uint32_t *listCount) HksGetKeyAliasByProcessName() argument 474 HksGetKeyCountByProcessName(const struct HksStoreFileInfo *fileInfo, uint32_t *fileCount) HksGetKeyCountByProcessName() argument 816 GetHksFileEntry(const struct HksStoreFileInfo *fileInfo, struct HksFileEntry **fileNameList, uint32_t *fileCnt) GetHksFileEntry() argument 851 HksListAliasesByProcessName(const struct HksStoreFileInfo *fileInfo, struct HksKeyAliasSet **outData) HksListAliasesByProcessName() argument [all...] |
H A D | hks_storage_utils.c | 249 static int32_t FileInfoInit(struct HksStoreFileInfo *fileInfo) in FileInfoInit() argument 251 fileInfo->mainPath.size = HKS_MAX_FILE_NAME_LEN; in FileInfoInit() 253 int32_t ret = DataInit(&fileInfo->mainPath.path, fileInfo->mainPath.size); in FileInfoInit() 254 ret += DataInit(&fileInfo->mainPath.fileName, fileInfo->mainPath.size); in FileInfoInit() 257 fileInfo->bakPath.size = HKS_MAX_FILE_NAME_LEN; in FileInfoInit() 258 ret += DataInit(&fileInfo->bakPath.path, fileInfo->bakPath.size); in FileInfoInit() 259 ret += DataInit(&fileInfo in FileInfoInit() 265 FileInfoFree(struct HksStoreFileInfo *fileInfo) FileInfoFree() argument 590 HksGetFileInfo(const struct HksStoreMaterial *material, struct HksStoreFileInfo *fileInfo) HksGetFileInfo() argument [all...] |
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/include/ |
H A D | hks_storage.h | 27 int32_t HksStoreKeyBlob(const struct HksStoreFileInfo *fileInfo, const struct HksBlob *keyAlias, 30 int32_t HksStoreDeleteKeyBlob(const struct HksStoreFileInfo *fileInfo, 33 int32_t HksStoreIsKeyBlobExist(const struct HksStoreFileInfo *fileInfo, 45 int32_t HksStoreKeyBlob(const struct HksStoreFileInfo *fileInfo, const struct HksStoreMaterial *material, 48 int32_t HksStoreDeleteKeyBlob(const struct HksStoreFileInfo *fileInfo, const struct HksStoreMaterial *material); 50 int32_t HksStoreIsKeyBlobExist(const struct HksStoreFileInfo *fileInfo); 57 int32_t HksGetKeyCountByProcessName(const struct HksStoreFileInfo *fileInfo, uint32_t *fileCount); 65 int32_t HksGetKeyAliasByProcessName(const struct HksStoreFileInfo *fileInfo, struct HksKeyInfo *keyInfoList, 74 int32_t HksListAliasesByProcessName(const struct HksStoreFileInfo *fileInfo, struct HksKeyAliasSet **outData);
|
H A D | hks_storage_utils.h | 100 int32_t HksFileInfoInit(struct HksStoreFileInfo *fileInfo); 102 void FileInfoFree(struct HksStoreFileInfo *fileInfo); 112 int32_t HksGetFileInfo(const struct HksStoreMaterial *material, struct HksStoreFileInfo *fileInfo);
|
/base/security/dlp_permission_service/frameworks/dlp_permission/src/ |
H A D | open_dlp_file_callback_info_parcel.cpp | 30 if (!(out.WriteString(this->fileInfo.uri))) {
in Marshalling() 34 if (!(out.WriteUint64(this->fileInfo.timeStamp))) {
in Marshalling() 48 if (!(in.ReadString(parcel->fileInfo.uri))) {
in Unmarshalling() 54 if (!(in.ReadUint64(parcel->fileInfo.timeStamp))) {
in Unmarshalling()
|
/base/update/updater/test/unittest/package/ |
H A D | pkg_manager_unittest.cpp | 119 info->fileInfo.identity = testFileNames_[i]; in GetUpgradePkgInfo() 120 info->fileInfo.unpackedSize = GetFileSize(filePath); in GetUpgradePkgInfo() 121 info->fileInfo.packedSize = info->fileInfo.unpackedSize; in GetUpgradePkgInfo() 122 info->fileInfo.packMethod = PKG_COMPRESS_METHOD_NONE; in GetUpgradePkgInfo() 123 info->fileInfo.digestMethod = PKG_DIGEST_TYPE_SHA256; in GetUpgradePkgInfo() 128 info->originalSize = info->fileInfo.unpackedSize; in GetUpgradePkgInfo() 248 info.fileInfo.identity = "aaaaaaaa"; in TestCreatePackageInvalidFile() 249 info.fileInfo.unpackedSize = testSize; in TestCreatePackageInvalidFile() 250 info.fileInfo in TestCreatePackageInvalidFile() [all...] |
/base/update/updater/services/diffpatch/bzip2/ |
H A D | lz4_adapter.h | 36 Lz4Adapter(UpdatePatchWriterPtr outStream, size_t offset, const Hpackage::PkgManager::FileInfoPtr fileInfo);
54 const Hpackage::PkgManager::FileInfoPtr fileInfo) : Lz4Adapter(outStream, offset, fileInfo) {}
in Lz4FrameAdapter() 75 const Hpackage::PkgManager::FileInfoPtr fileInfo) : Lz4FrameAdapter(outStream, offset, fileInfo) {}
in Lz4BlockAdapter() 53 Lz4FrameAdapter(UpdatePatchWriterPtr outStream, size_t offset, const Hpackage::PkgManager::FileInfoPtr fileInfo) Lz4FrameAdapter() argument 74 Lz4BlockAdapter(UpdatePatchWriterPtr outStream, size_t offset, const Hpackage::PkgManager::FileInfoPtr fileInfo) Lz4BlockAdapter() argument
|
/base/security/code_signature/utils/include/ |
H A D | cs_hisysevent.h | 44 inline void ReportParseCodeSig(const std::string &fileInfo, int32_t errCode)
in ReportParseCodeSig() argument 48 "FILE_INFO", fileInfo, "ERR_TYPE", errCode);
in ReportParseCodeSig() 50 inline void ReportInvalidOwner(const std::string &fileInfo, const std::string &ownerID,
in ReportInvalidOwner() argument 55 "FILE_INFO", fileInfo, "OWNER_ID", ownerID, "PARSED_OWNER_ID", parsedOwnerID);
in ReportInvalidOwner()
|
/base/security/huks/test/fuzz_test/innerapi_fuzzer/hksstorage_fuzzer/ |
H A D | hksstorage_fuzzer.cpp | 573 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; in HksStorageUtilTest001() local 575 struct HksStoreFileInfo fileInfo = { { 0 } }; in HksStorageUtilTest001() local 577 HksGetFileInfo(&material, &fileInfo); in HksStorageUtilTest001() 578 HksMemCmp(fileInfo.mainPath.fileName, material.keyAliasPath, strlen(material.keyAliasPath)); in HksStorageUtilTest001() 581 HksMemCmp(fileInfo.mainPath.path, expectPath, strlen(expectPath)); in HksStorageUtilTest001() 593 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; in HksStorageUtilTest002() local 595 struct HksStoreFileInfo fileInfo = { { 0 } }; in HksStorageUtilTest002() local 597 HksGetFileInfo(&material, &fileInfo); in HksStorageUtilTest002() 598 HksMemCmp(fileInfo.mainPath.fileName, material.keyAliasPath, strlen(material.keyAliasPath)); in HksStorageUtilTest002() 601 HksMemCmp(fileInfo in HksStorageUtilTest002() 613 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksStorageUtilTest003() local 615 struct HksStoreFileInfo fileInfo = { { 0 } }; HksStorageUtilTest003() local 633 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksStorageUtilTest004() local 635 struct HksStoreFileInfo fileInfo = { { 0 } }; HksStorageUtilTest004() local 653 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksStorageUtilTest005() local 655 struct HksStoreFileInfo fileInfo = { { 0 } }; HksStorageUtilTest005() local 673 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksStorageUtilTest006() local 675 struct HksStoreFileInfo fileInfo = { { 0 } }; HksStorageUtilTest006() local 693 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; HksStorageUtilTest007() local 695 struct HksStoreFileInfo fileInfo = { { 0 } }; HksStorageUtilTest007() local [all...] |
/base/update/updater/test/unittest/diffpatch/ |
H A D | bzip2_unittest.cpp | 285 zipInfo.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in HWTEST_F() 292 EXPECT_EQ(0, test.DeflateAdapterTest("../diffpatch/patchtest.new", &zipInfo.fileInfo)); in HWTEST_F() 298 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in HWTEST_F() 304 EXPECT_EQ(0, test.DeflateAdapterTest("../diffpatch/patchtest.test", &lz4Info.fileInfo)); in HWTEST_F() 310 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in HWTEST_F() 316 EXPECT_EQ(0, test.DeflateAdapterTest("../diffpatch/patchtest.test", &lz4Info.fileInfo)); in HWTEST_F() 322 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in HWTEST_F() 328 EXPECT_EQ(0, test.DeflateAdapterTest("../diffpatch/patchtest.test", &lz4Info.fileInfo)); in HWTEST_F() 334 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in HWTEST_F() 340 EXPECT_EQ(0, test.DeflateAdapterTest("../diffpatch/patchtest.test", &lz4Info.fileInfo)); in HWTEST_F() [all...] |
/base/update/updater/services/diffpatch/diff/ |
H A D | image_diff.cpp | 425 const FileInfo *fileInfo = newParser_->GetFileInfo(fileName);
in TestAndSetConfig() local 426 if (fileInfo == nullptr) {
in TestAndSetConfig() 430 ZipFileInfo *info = (ZipFileInfo *)fileInfo;
in TestAndSetConfig() 444 zipInfo.fileInfo.packMethod = info->fileInfo.packMethod;
in TestAndSetConfig() 452 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset);
in TestAndSetConfig() 455 BlockBuffer orgData = {orgNewBuffer.buffer + fileInfo in TestAndSetConfig() 519 const FileInfo *fileInfo = newParser_->GetFileInfo(fileName); TestAndSetConfig() local [all...] |
/base/update/updater/services/flow_update/update_bin/ |
H A D | bin_process.h | 36 const std::string &name, const Hpackage::FileInfo &fileInfo); 46 bool CheckEsDeviceUpdate(const Hpackage::FileInfo &fileInfo); 47 bool IsMatchedCsEsIamge(const Hpackage::FileInfo &fileInfo);
|
H A D | bin_process.cpp | 254 bool UScriptInstructionBinFlowWrite::IsMatchedCsEsIamge(const Hpackage::FileInfo &fileInfo) in IsMatchedCsEsIamge() argument 256 if ((fileInfo.resType == ES_IMAGE && !Utils::IsEsDevice()) || in IsMatchedCsEsIamge() 257 (fileInfo.resType == CS_IMAGE && Utils::IsEsDevice())) { in IsMatchedCsEsIamge() 264 bool UScriptInstructionBinFlowWrite::CheckEsDeviceUpdate(const Hpackage::FileInfo &fileInfo) in CheckEsDeviceUpdate() argument 266 if (fileInfo.resType == NEED_VERIFY_CS_IMAGE && Utils::IsEsDevice()) { in CheckEsDeviceUpdate() 274 const std::string &name, const Hpackage::FileInfo &fileInfo) in ComponentProcess() 276 size_t fileSize = fileInfo.unpackedSize; in ComponentProcess() 291 if (!CheckEsDeviceUpdate(fileInfo)) { in ComponentProcess() 296 if ((processor == nullptr && fileInfo.resType == UPGRADE_FILE_COMP_OTHER_TPYE) || in ComponentProcess() 297 !IsMatchedCsEsIamge(fileInfo)) { in ComponentProcess() 273 ComponentProcess(Uscript::UScriptEnv &env, PkgManager::StreamPtr stream, const std::string &name, const Hpackage::FileInfo &fileInfo) ComponentProcess() argument [all...] |
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_zip.c | 79 zip_fileinfo fileInfo = {0};
in ZipAddFile() local 100 fileInfo.external_fa = (buffer.st_mode & 0xFFFF) << ZIP_EXTERNAL_FA_OFFSET;
in ZipAddFile() 102 err = zipOpenNewFileInZip3(zf, transPath + offset, &fileInfo, NULL, 0, NULL, 0, NULL, Z_DEFLATED,
in ZipAddFile() 290 static int HnpUnZipForFile(const char *filePath, unzFile zipFile, unz_file_info fileInfo)
in HnpUnZipForFile() argument 296 mode_t mode = (fileInfo.external_fa >> ZIP_EXTERNAL_FA_OFFSET) & 0xFFFF;
in HnpUnZipForFile() 422 unz_file_info fileInfo;
in HnpUnZip() local 435 result = unzGetCurrentFileInfo(zipFile, &fileInfo, fileName, sizeof(fileName), NULL, 0, NULL, 0);
in HnpUnZip() 459 result = HnpUnZipForFile(filePath, zipFile, fileInfo);
in HnpUnZip() 480 unz_file_info fileInfo;
in HnpCfgGetFromZip() local 491 ret = unzGetCurrentFileInfo(zipFile, &fileInfo, fileNam in HnpCfgGetFromZip() [all...] |
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/expire/ |
H A D | event_scan_handler.cpp | 37 struct stat fileInfo {0}; in GetFileLastModifiedTime() struct 38 if (stat(file.c_str(), &fileInfo) != ERR_OK) { in GetFileLastModifiedTime() 42 return fileInfo.st_mtime; in GetFileLastModifiedTime()
|
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/ |
H A D | dlp_parcel_test.cpp | 103 info.fileInfo.uri = "test"; in HWTEST_F() 104 info.fileInfo.timeStamp = 1; in HWTEST_F() 110 EXPECT_EQ("test", result->fileInfo.uri); in HWTEST_F() 111 EXPECT_EQ(1, result->fileInfo.timeStamp); in HWTEST_F()
|
/base/security/huks/services/huks_standard/huks_service/main/upgrade/file_transfer/src/ |
H A D | hks_file_transfer.c | 86 struct HksStoreFileInfo fileInfo = { { 0 }, { 0 } }; in ConstructNewFilePath() local 88 struct HksStoreFileInfo fileInfo = { { 0 } }; in ConstructNewFilePath() local 96 ret = HksGetFileInfo(&storeMaterial, &fileInfo); in ConstructNewFilePath() 101 *newPath = (char *)HksMalloc(strlen(fileInfo.mainPath.path) + 1); in ConstructNewFilePath() 107 (void)memcpy_s(*newPath, strlen(fileInfo.mainPath.path), in ConstructNewFilePath() 108 fileInfo.mainPath.path, strlen(fileInfo.mainPath.path)); in ConstructNewFilePath() 110 FileInfoFree(&fileInfo); in ConstructNewFilePath()
|