/base/startup/appspawn/service/hnp/installer/src/ |
H A D | hnp_installer.c | 50 static int HnpGenerateSoftLinkAllByJson(const char *installPath, const char *dstPath, HnpCfgInfo *hnpCfg)
in HnpGenerateSoftLinkAllByJson() argument 57 if (access(dstPath, F_OK) != 0) {
in HnpGenerateSoftLinkAllByJson() 58 int ret = mkdir(dstPath, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
in HnpGenerateSoftLinkAllByJson() 60 HNP_LOGE("mkdir [%{public}s] unsuccess, ret=%{public}d, errno:%{public}d", dstPath, ret, errno);
in HnpGenerateSoftLinkAllByJson() 89 ret = sprintf_s(dstFile, MAX_FILE_PATH_LEN, "%s/%s", dstPath, fileName);
in HnpGenerateSoftLinkAllByJson() 106 static int HnpGenerateSoftLinkAll(const char *installPath, const char *dstPath)
in HnpGenerateSoftLinkAll() argument 126 if (access(dstPath, F_OK) != 0) {
in HnpGenerateSoftLinkAll() 127 ret = mkdir(dstPath, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
in HnpGenerateSoftLinkAll() 130 HNP_LOGE("mkdir [%{public}s] unsuccess, ret=%{public}d, errno:%{public}d", dstPath, ret, errno);
in HnpGenerateSoftLinkAll() 147 ret = sprintf_s(dstFile, MAX_FILE_PATH_LEN, "%s/%s", dstPath, entr in HnpGenerateSoftLinkAll() 290 char dstPath[MAX_FILE_PATH_LEN]; HnpUnInstall() local 535 HapReadAndInstall(const char *dstPath, HapInstallInfo *installInfo, HnpSignMapInfo *hnpSignMapInfos, int *count) HapReadAndInstall() argument 692 CheckInstallPath(char *dstPath, HapInstallInfo *installInfo) CheckInstallPath() argument 712 char dstPath[MAX_FILE_PATH_LEN]; HnpInsatllPre() local [all...] |
/base/hiviewdfx/hiview/core/param_update/src/ |
H A D | param_manager.cpp | 64 std::string dstPath(FileUtil::ExtractFilePath(dstFile)); in CopyFile() 66 if (dstPath != CLOUD_CFG_PATH && !FileUtil::ForceCreateDirectory(dstPath)) { in CopyFile() 67 HIVIEW_LOGW("create dst path failed: %{public}s", dstPath.c_str()); in CopyFile()
|
/base/update/sys_installer/frameworks/installer_manager/src/ |
H A D | installer_manager.cpp | 98 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() 104 return helper_->AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkg() 107 int32_t InstallerManager::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument 113 return helper_->AccDeleteDir(dstPath); in AccDeleteDir() 97 AccDecompressAndVerifyPkg(const std::string &srcPath, const std::string &dstPath, const uint32_t type) AccDecompressAndVerifyPkg() argument
|
H A D | installer_manager_helper.cpp | 90 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() 95 int32_t InstallerManagerHelper::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument 89 AccDecompressAndVerifyPkg(const std::string &srcPath, const std::string &dstPath, const uint32_t type) AccDecompressAndVerifyPkg() argument
|
/base/update/sys_installer/frameworks/installer_manager/include/ |
H A D | installer_manager_helper.h | 35 const std::string &dstPath, const uint32_t type) = 0; 36 virtual int32_t AccDeleteDir(const std::string &dstPath) = 0; 52 const std::string &dstPath, const uint32_t type); 53 virtual int32_t AccDeleteDir(const std::string &dstPath);
|
H A D | installer_manager.h | 39 const std::string &dstPath, const uint32_t type); 40 virtual int32_t AccDeleteDir(const std::string &dstPath);
|
/base/update/sys_installer/frameworks/ipc_server/src/ |
H A D | sys_installer_server.cpp | 85 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() 88 return InstallerManager::GetInstance().AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkg() 91 int32_t SysInstallerServer::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument 94 return InstallerManager::GetInstance().AccDeleteDir(dstPath); in AccDeleteDir() 84 AccDecompressAndVerifyPkg(const std::string &srcPath, const std::string &dstPath, const uint32_t type) AccDecompressAndVerifyPkg() argument
|
H A D | sys_installer_stub.cpp | 154 string dstPath = Str16ToStr8(data.ReadString16()); in AccDecompressAndVerifyPkgStub() local 156 LOG(INFO) << "StartUpdateParaZipStub srcPath:" << srcPath << " dstPath:" << dstPath; in AccDecompressAndVerifyPkgStub() local 158 int32_t ret = service->AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkgStub() 170 string dstPath = Str16ToStr8(data.ReadString16()); in AccDeleteDirStub() local 171 LOG(INFO) << "AccDeleteDirStub dstPath:" << dstPath; in AccDeleteDirStub() 173 int32_t ret = service->AccDeleteDir(dstPath); in AccDeleteDirStub()
|
/base/update/sys_installer/interfaces/inner_api/include/ |
H A D | isys_installer.h | 38 const std::string &dstPath, const uint32_t type) = 0; 39 virtual int32_t AccDeleteDir(const std::string &dstPath) = 0;
|
/base/update/sys_installer/interfaces/innerkits/ipc_client/include/ |
H A D | sys_installer_proxy.h | 36 const std::string &dstPath, const uint32_t type); 37 virtual int32_t AccDeleteDir(const std::string &dstPath);
|
H A D | sys_installer_kits.h | 47 const std::string &dstPath, const uint32_t type) = 0; 48 virtual int32_t AccDeleteDir(const std::string &dstPath) = 0;
|
H A D | sys_installer_kits_impl.h | 38 const std::string &dstPath, const uint32_t type); 39 virtual int32_t AccDeleteDir(const std::string &dstPath);
|
/base/update/sys_installer/frameworks/ipc_server/include/ |
H A D | sys_installer_server.h | 47 const std::string &dstPath, const uint32_t type) override; 48 int32_t AccDeleteDir(const std::string &dstPath) override;
|
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/ |
H A D | sys_installer_kits_impl.cpp | 229 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() 237 int32_t ret = updateService->AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkg() 245 int32_t SysInstallerKitsImpl::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument 253 int32_t ret = updateService->AccDeleteDir(dstPath); in AccDeleteDir() 228 AccDecompressAndVerifyPkg(const std::string &srcPath, const std::string &dstPath, const uint32_t type) AccDecompressAndVerifyPkg() argument
|
H A D | sys_installer_proxy.cpp | 203 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() 218 data.WriteString16(Str8ToStr16(dstPath)); in AccDecompressAndVerifyPkg() 233 int32_t SysInstallerProxy::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument 247 data.WriteString16(Str8ToStr16(dstPath)); in AccDeleteDir() 202 AccDecompressAndVerifyPkg(const std::string &srcPath, const std::string &dstPath, const uint32_t type) AccDecompressAndVerifyPkg() argument
|
/base/security/security_guard/frameworks/common/utils/include/ |
H A D | security_guard_utils.h | 29 static bool CopyFile(const std::string &srcPath, const std::string &dstPath);
|
/base/global/i18n/services/src/ |
H A D | hmos_libphonenumber_mount.cpp | 71 std::string dstPath = SAFE_PATH + DATA_FILES[i]; in CopyDataFile() local 76 if (!FileCopy(srcPath, dstPath)) { in CopyDataFile()
|
/base/security/security_guard/frameworks/common/utils/src/ |
H A D | security_guard_utils.cpp | 118 bool SecurityGuardUtils::CopyFile(const std::string &srcPath, const std::string &dstPath)
in CopyFile() argument 131 std::ofstream dst(dstPath, std::ios::binary);
in CopyFile()
|
/base/theme/wallpaper_mgr/utils/src/ |
H A D | file_deal.cpp | 61 std::filesystem::path dstPath(newFile); in CopyFile() 64 if (!std::filesystem::copy_file(srcPath, dstPath, std::filesystem::copy_options::overwrite_existing, errCode)) { in CopyFile()
|
/base/startup/init/services/sandbox/ |
H A D | sandbox.c | 229 char *dstPath = cJSON_GetStringValue(cJSON_GetObjectItem(item, SANDBOX_TARGET)); in AddMountInfoToSandbox() local 230 BEGET_INFO_CHECK(dstPath != NULL, return 0, "Get sandbox-path is null"); in AddMountInfoToSandbox() 241 tmpMount->target = strdup(dstPath); in AddMountInfoToSandbox() 257 RemoveOldSandboxMountListNode(&sandbox->pathMountsHead, dstPath); in AddMountInfoToSandbox() 261 RemoveOldSandboxMountListNode(&sandbox->fileMountsHead, dstPath); in AddMountInfoToSandbox()
|
/base/global/i18n/frameworks/intl/include/ |
H A D | utils.h | 44 bool FileCopy(const std::string& srcPath, const std::string& dstPath);
|
/base/security/code_signature/test/unittest/ |
H A D | enable_verity_test.cpp | 174 static bool CopyFile(const std::string &srcPath, const std::string &dstPath)
in CopyFile() argument 176 FILE *fout = fopen(dstPath.c_str(), "wb");
in CopyFile() 191 size_t gapSize, const std::string &dstPath)
in ExpandFile() 193 FILE *fout = fopen(dstPath.c_str(), "wb");
in ExpandFile() 190 ExpandFile(const std::string &srcPath, const std::string &expandDataFile, size_t gapSize, const std::string &dstPath) ExpandFile() argument
|
/base/global/i18n/frameworks/intl/src/ |
H A D | utils.cpp | 223 bool FileCopy(const std::string& srcPath, const std::string& dstPath) in FileCopy() argument 226 std::filesystem::copy(srcPath.c_str(), dstPath.c_str()); in FileCopy()
|
/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_load.c | 208 char *dstPath = GetStringFromJsonObj(config, "sandbox-path"); in DecodeMountPathConfig() local 209 if (srcPath == NULL || dstPath == NULL) { in DecodeMountPathConfig() 213 PathMountNode *tmp = GetPathMountNode(section, type, srcPath, dstPath); in DecodeMountPathConfig() 216 APPSPAWN_LOGW("path %{public}s %{public}s repeat config, delete old", srcPath, dstPath); in DecodeMountPathConfig() 224 sandboxNode->target = strdup(dstPath); in DecodeMountPathConfig()
|
/base/update/updater/utils/ |
H A D | utils.cpp | 396 bool CopyDir(const std::string &srcPath, const std::string &dstPath) in CopyDir() argument 406 bool existFlag = (access(dstPath.c_str(), 0) == 0); in CopyDir() 407 if ((!existFlag) && (mkdir(dstPath.c_str(), DEFAULT_DIR_MODE) != 0)) { in CopyDir() 408 LOG(ERROR) << "mkdir failed, path: " << dstPath.c_str() << ", err: " << strerror(errno); in CopyDir() 413 remove(dstPath.c_str()); in CopyDir() 423 std::string fullDestPath = dstPath + dirent->d_name + "/"; in CopyDir() 431 std::string fullDestPath = dstPath + dirent->d_name; in CopyDir()
|