/base/security/huks/services/huks_standard/huks_service/main/upgrade/file_transfer/src/ |
H A D | hks_file_transfer.c | 82 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 D | native_leak_util.cpp | 57 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 D | img_view_adapter.cpp | 123 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 D | compatibility_small_bin.c | 187 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 D | cj_request_task.cpp | 145 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 D | hks_sa.cpp | 339 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 D | fault_detector_util.h | 55 static bool RenameFile(const std::string &path, const std::string &newPath);
|
H A D | fault_detector_util.cpp | 220 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 D | js_task.cpp | 958 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 D | notification_rdb_data_mgr_test.cpp | 259 virtual int ChangeDbFileForRestore(const std::string newPath, const std::string backupPath,
in ChangeDbFileForRestore() argument
|