Home
last modified time | relevance | path

Searched refs:newPath (Results 1 - 10 of 10) sorted by relevance

/base/security/huks/services/huks_standard/huks_service/main/upgrade/file_transfer/src/
H A Dhks_file_transfer.c82 char **newPath) in ConstructNewFilePath()
101 *newPath = (char *)HksMalloc(strlen(fileInfo.mainPath.path) + 1); in ConstructNewFilePath()
102 if (*newPath == NULL) { in ConstructNewFilePath()
103 HKS_LOG_E("malloc newPath->data failed."); in ConstructNewFilePath()
107 (void)memcpy_s(*newPath, strlen(fileInfo.mainPath.path), in ConstructNewFilePath()
122 char *newPath = NULL; in TransferFile() local
124 ret = ConstructNewFilePath(alias, info, &newPath); in TransferFile()
133 ret = HksFileRemove(newPath, alias); in TransferFile()
135 HKS_LOG_E("remove DE rdb file in %" LOG_PUBLIC "s write failed.", newPath); in TransferFile()
139 ret = HksIsFileExist(newPath, alia in TransferFile()
81 ConstructNewFilePath(const char *alias, const struct HksUpgradeFileTransferInfo *info, char **newPath) ConstructNewFilePath() argument
[all...]
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/
H A Dnative_leak_util.cpp57 string newPath = path + "/" + userMonitorInfo->GetProcessName() + "_died"; in RemoveInvalidFile() local
58 if (!FaultDetectorUtil::RenameFile(filePath, newPath)) { in RemoveInvalidFile()
/base/update/updater/services/ui/view/component/
H A Dimg_view_adapter.cpp123 std::string newPath = dir_ + "_" + iter->second + ".png"; in GetRealImgPath() local
124 if (!Fs::exists(newPath)) { in GetRealImgPath()
125 LOG(WARNING) << "newPath not existed " << newPath; in GetRealImgPath()
128 dir_ = newPath; in GetRealImgPath()
/base/security/huks/utils/compatibility_bin/
H A Dcompatibility_small_bin.c187 const char *newPath = "/storage/data/service/el1/public/huks_service/maindata"; in main() local
190 MoveOldFolderToNew(oldPath, newPath); in main()
193 ChangeDirAndFilesPerm(newPath); in main()
/base/request/request/frameworks/cj/ffi/src/
H A Dcj_request_task.cpp145 std::string newPath = "/data/storage/el2/base/.ohos/.request/.certs"; in SetDirsPermission() local
147 CJInitialize::StringSplit(newPath, '/', dirElems); in SetDirsPermission()
149 REQUEST_HILOGE("CreateDirs Err: %{public}s", newPath.c_str()); in SetDirsPermission()
161 std::string newfilePath = newPath + "/" + path.filename().string(); in SetDirsPermission()
177 dirs.push_back(newPath); in SetDirsPermission()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/
H A Dhks_sa.cpp339 char newPath[DEFAULT_PATH_LEN] = { 0 }; in MoveMineOldFile() local
340 if (strcpy_s(newPath, DEFAULT_PATH_LEN, newDir) != EOK) { in MoveMineOldFile()
343 if (strcat_s(newPath, DEFAULT_PATH_LEN, "/") != EOK) { in MoveMineOldFile()
346 if (strcat_s(newPath, DEFAULT_PATH_LEN, ptr->d_name) != EOK) { in MoveMineOldFile()
354 std::filesystem::copy(curPath, newPath, in MoveMineOldFile()
357 HKS_LOG_E("copy curPath to newPath failed %" LOG_PUBLIC "s", errCode.message().c_str()); in MoveMineOldFile()
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/
H A Dfault_detector_util.h55 static bool RenameFile(const std::string &path, const std::string &newPath);
H A Dfault_detector_util.cpp220 bool FaultDetectorUtil::RenameFile(const string &path, const string &newPath) in RenameFile() argument
222 if (rename(path.c_str(), newPath.c_str())) { in RenameFile()
223 HIVIEW_LOGE("failed to move %{public}s to %{public}s", path.c_str(), newPath.c_str()); in RenameFile()
/base/request/request/frameworks/js/napi/src/
H A Djs_task.cpp958 std::string newPath = "/data/storage/el2/base/.ohos/.request/.certs"; in SetDirsPermission() local
960 JsInitialize::StringSplit(newPath, '/', dirElems); in SetDirsPermission()
962 REQUEST_HILOGE("CreateDirs Err: %{public}s", newPath.c_str()); in SetDirsPermission()
974 std::string newfilePath = newPath + "/" + path.filename().string(); in SetDirsPermission()
990 dirs.push_back(newPath); in SetDirsPermission()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_rdb_data_mgr_test/
H A Dnotification_rdb_data_mgr_test.cpp259 virtual int ChangeDbFileForRestore(const std::string newPath, const std::string backupPath, in ChangeDbFileForRestore() argument

Completed in 9 milliseconds