Home
last modified time | relevance | path

Searched refs:srcFilePath (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/service/
H A Dhiview_service.h41 int32_t Copy(const std::string& srcFilePath, const std::string& destFilePath);
42 int32_t Move(const std::string& srcFilePath, const std::string& destFilePath);
71 int CopyFile(const std::string& srcFilePath, const std::string& destFilePath);
H A Dhiview_service.cpp234 int32_t HiviewService::CopyFile(const std::string& srcFilePath, const std::string& destFilePath) in CopyFile() argument
236 int srcFd = open(srcFilePath.c_str(), O_RDONLY); in CopyFile()
238 …EW_LOGE("failed to open source file, src=%{public}s", StringUtil::HideSnInfo(srcFilePath).c_str()); in CopyFile()
276 int32_t HiviewService::Copy(const std::string& srcFilePath, const std::string& destFilePath) in Copy() argument
278 return CopyFile(srcFilePath, destFilePath); in Copy()
281 int32_t HiviewService::Move(const std::string& srcFilePath, const std::string& destFilePath) in Move() argument
283 int copyResult = CopyFile(srcFilePath, destFilePath); in Move()
288 bool result = FileUtil::RemoveFile(srcFilePath); in Move()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_object_test/src/
H A Dmedialibrary_object_test.cpp130 string srcFilePath = ""; variable
134 srcFilePath = "/storage/cloud/files";
136 ret = MediaLibraryObjectUtils::RenameFileObj(cmd, srcFilePath, dstFilePath);
146 ret = MediaLibraryObjectUtils::RenameFileObj(cmd, srcFilePath, dstFilePath);
153 string srcFilePath = ""; variable
155 int32_t ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath);
158 ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath);
160 srcFilePath = "/storage/cloud/files/medialib_GetDirAsset_test_001";
162 ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath);
164 srcFilePath = "//data/test";
[all …]
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/
H A Dwifi_hdi_wpa_proxy_test.cpp66 const char *srcFilePath; variable
68 WifiErrorNo result = CopyUserFile(srcFilePath, destFilePath);
72 result = CopyUserFile(srcFilePath, nullptr);
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Dringtone_restore_base.cpp298 std::string srcFilePath = dirEntry.path(); in MoveDirectory() local
299 std::string tmpFilePath = srcFilePath; in MoveDirectory()
301 if (!MoveFile(srcFilePath, dstFilePath)) { in MoveDirectory()
302 … RINGTONE_ERR_LOG("Move file from %{private}s to %{private}s failed", srcFilePath.c_str(), in MoveDirectory()
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dmemory_collector_impl.cpp591 std::string srcFilePath = GetSnapshotPath("/data/log/faultlog/temp", pidStr); in CollectHprof() local
592 if (srcFilePath.empty()) { in CollectHprof()
593 srcFilePath = GetSnapshotPath("/data/log/reliability/resource_leak/memory_leak", pidStr); in CollectHprof()
594 if (srcFilePath.empty()) { in CollectHprof()
609 if (FileUtil::CopyFile(srcFilePath, savePath) != 0) { in CollectHprof()
610 … HIVIEW_LOGE("copy from %{public}s to %{public}s failed.", srcFilePath.c_str(), savePath.c_str()); in CollectHprof()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/
H A Dwifi_hdi_wpa_proxy.c511 WifiErrorNo CopyUserFile(const char *srcFilePath, const char* destFilePath) in CopyUserFile() argument
514 if (srcFilePath == NULL || destFilePath == NULL) { in CopyUserFile()
521 if ((srcFd = open(srcFilePath, O_RDONLY)) < 0) { in CopyUserFile()
522 LOGE("CopyUserFile() failed, open srcFilePath:%{public}s error!", srcFilePath); in CopyUserFile()
537 LOGE("CopyUserFile() failed, read srcFilePath:%{public}s error!", srcFilePath); in CopyUserFile()
H A Dwifi_hdi_wpa_proxy.h123 WifiErrorNo CopyUserFile(const char *srcFilePath, const char* destFilePath);
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/src/
H A Dutil.cpp195 bool ReadZipFile(const std::string& srcFilePath, ImageStructVec& imgVec, FrameRateConfig& frameConf… in ReadZipFile() argument
197 unzFile zipFile = unzOpen2(srcFilePath.c_str(), nullptr); in ReadZipFile()
199 LOGE("Open zipFile fail: %{public}s", srcFilePath.c_str()); in ReadZipFile()
/ohos5.0/base/print/print_fwk/services/print_service/src/
H A Dprint_cups_client.cpp296 void PrintCupsClient::SymlinkFile(std::string &srcFilePath, std::string &destFilePath) in SymlinkFile() argument
298 int ret = symlink(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkFile()
323 std::string srcFilePath = std::string(srcDir) + "/" + std::string(file->d_name); in SymlinkDirectory() local
326 stat(srcFilePath.c_str(), &filestat); in SymlinkDirectory()
328 SymlinkDirectory(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkDirectory()
343 SymlinkFile(srcFilePath, destFilePath); in SymlinkDirectory()
346 SymlinkFile(srcFilePath, destFilePath); in SymlinkDirectory()
368 std::string srcFilePath = std::string(srcDir) + "/" + std::string(file->d_name); in CopyDirectory() local
371 stat(srcFilePath.c_str(), &filestat); in CopyDirectory()
373 CopyDirectory(srcFilePath.c_str(), destFilePath.c_str()); in CopyDirectory()
[all …]
/ohos5.0/foundation/multimedia/ringtone_library/services/utils/src/
H A Dringtone_file_utils.cpp605 std::string srcFilePath = dirEntry.path(); in MoveDirectory() local
606 std::string tmpFilePath = srcFilePath; in MoveDirectory()
608 if (!MoveFile(srcFilePath, dstFilePath)) { in MoveDirectory()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/include/
H A Dutil.h149 bool ReadZipFile(const std::string& srcFilePath, ImageStructVec& imgVec, FrameRateConfig& frameConf…
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/
H A Dbase_restore.cpp649 std::string srcFilePath = dirEntry.path(); in MoveDirectory() local
650 std::string tmpFilePath = srcFilePath; in MoveDirectory()
654 opRet = this->MoveFile(srcFilePath, dstFilePath); in MoveDirectory()
656 opRet = this->CopyFile(srcFilePath, dstFilePath); in MoveDirectory()
660 BackupFileUtils::GarbleFilePath(srcFilePath, sceneCode_).c_str(), in MoveDirectory()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_album_fusion_utils.cpp365 std::string srcFilePath = dirEntry.path(); in CopyDirectory() local
366 std::string tmpFilePath = srcFilePath; in CopyDirectory()
368 … if (!MediaFileUtils::IsFileExists(srcFilePath) || !MediaFileUtils::IsFileValid(srcFilePath)) { in CopyDirectory()
369 …ERR_LOG("Copy file from %{public}s failed , because of thumbnail is invalid", srcFilePath.c_str()); in CopyDirectory()
371 if (!MediaFileUtils::CopyFileUtil(srcFilePath, dstFilePath)) { in CopyDirectory()
373 srcFilePath.c_str(), dstFilePath.c_str()); in CopyDirectory()
H A Dmedialibrary_object_utils.cpp638 const string &srcFilePath, const string &dstFilePath) in RenameFileObj() argument
640 if (srcFilePath.empty() || dstFilePath.empty()) { in RenameFileObj()
644 if (srcFilePath.compare(dstFilePath) == 0) { in RenameFileObj()
661 errCode = MediaFileUtils::ModifyAsset(srcFilePath, dstFilePath); in RenameFileObj()
671 (ProcessHiddenFile(dstFileName, srcFilePath) == E_SUCCESS)) { in RenameFileObj()
680 string srcAlbumPath = MediaFileUtils::GetParentPath(srcFilePath); in RenameFileObj()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dmedialibrary_object_utils.h50 EXPORT static int32_t RenameFileObj(MediaLibraryCommand &cmd, const std::string &srcFilePath,
/ohos5.0/base/print/print_fwk/services/print_service/include/
H A Dprint_cups_client.h117 static void SymlinkFile(std::string &srcFilePath, std::string &destFilePath);
/ohos5.0/base/print/print_fwk/test/unittest/fwk_print_cups_client_test/
H A Dprint_cups_client_test.cpp129 std::string srcFilePath = "./PrintCupsClientTest_0003_srcDir/PrintCupsClientTestFileName"; variable
130 std::ofstream testSrcFile(srcFilePath.c_str(), std::ios::out);
170 std::string srcFilePath = std::string(subSrcDir) + "/PrintCupsClientTestFileName"; variable
171 std::ofstream testSrcFile(srcFilePath.c_str(), std::ios::out);
/ohos5.0/docs/zh-cn/contribute/
H A DOpenHarmony-c-cpp-secure-coding-guide.md1914 bool WriteDataToFile(const std::string& dstFilePath, const std::string& srcFilePath)
1919 std::ifstream srcFile(srcFilePath, std::ios::binary);
/ohos5.0/docs/en/contribute/
H A DOpenHarmony-c-cpp-secure-coding-guide.md1974 bool WriteDataToFile(const std::string& dstFilePath, const std::string& srcFilePath)
1979 std::ifstream srcFile(srcFilePath, std::ios::binary);