Home
last modified time | relevance | path

Searched refs:dstPath (Results 1 - 25 of 57) sorted by relevance

123

/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_adapter.c191 char dstPath[BUFF_SIZE] = P2P_CONFIG_DIR; in CopyConfigFile() local
192 if (strcat_s(dstPath, sizeof(dstPath), configName) != EOK) { in CopyConfigFile()
196 LOGD("%{public}s: destination is %{public}s", __func__, dstPath); in CopyConfigFile()
197 if ((strcmp(dstPath, P2P_WPA_CONFIG_FILE) == 0) && (FileIsExisted(dstPath) == HAL_SUCCESS)) { in CopyConfigFile()
198 LOGW("%{public}s: dstPath is existed", __func__); in CopyConfigFile()
199 if (memset_s(dstPath, sizeof(dstPath), 0x0, sizeof(dstPath)) ! in CopyConfigFile()
[all...]
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_session_pool_test.cpp57 .dstPath = "/data/test/1", in HWTEST_F()
61 .dstPath = "/data/test/2", in HWTEST_F()
71 EXPECT_EQ(sessionInfo.dstPath, sessionInfo1.dstPath); in HWTEST_F()
77 EXPECT_EQ(sessionInfo.dstPath, sessionInfo2.dstPath); in HWTEST_F()
103 .dstPath = "/data/test/1", in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/
H A Dhelp_utils.cpp55 bool StorageTestUtils::CheckMount(const std::string& dstPath) in CheckMount() argument
67 if (dstPath.compare(mntent->mnt_dir) == 0) { in CheckMount()
241 std::string dstPath(hmdfsTarget); in ClearTestResource()
242 dstPath.replace(dstPath.find("%d"), strlen("%d"), std::to_string(id)); in ClearTestResource()
243 UMount(dstPath); in ClearTestResource()
H A Dhelp_utils.h45 static bool CheckMount(const std::string& dstPath);
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/
H A Ddaemon_event.h42 const std::string &dstPath, in RequestSendFileData()
47 dstPath_(dstPath), in RequestSendFileData()
H A Ddaemon.h77 const std::string &dstPath,
112 const std::string &dstPath,
H A Ddaemon_execute.h41 const std::string &dstPath,
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkpath_fuzzer/
H A Dpath_fuzzer.cpp249 OH_Drawing_Path* dstPath = OH_Drawing_PathCreate(); in NativeDrawingPathTest005() local
261 OH_Drawing_PathAddPathWithMode(dstPath, nullptr, in NativeDrawingPathTest005()
263 OH_Drawing_PathAddPathWithMode(dstPath, path, in NativeDrawingPathTest005()
268 OH_Drawing_PathAddPathWithOffsetAndMode(dstPath, nullptr, dx, dy, in NativeDrawingPathTest005()
270 OH_Drawing_PathAddPathWithOffsetAndMode(dstPath, path, dx, dy, in NativeDrawingPathTest005()
274 OH_Drawing_PathDestroy(dstPath); in NativeDrawingPathTest005()
362 OH_Drawing_Path* dstPath = OH_Drawing_PathCreate(); in NativeDrawingPathTest007() local
363 OH_Drawing_PathTransformWithPerspectiveClip(nullptr, matrix, dstPath, isValue); in NativeDrawingPathTest007()
364 OH_Drawing_PathTransformWithPerspectiveClip(path, nullptr, dstPath, isValue); in NativeDrawingPathTest007()
365 OH_Drawing_PathTransformWithPerspectiveClip(path, matrix, dstPath, isValu in NativeDrawingPathTest007()
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/user/src/
H A Dmount_manager.cpp658 std::string dstPath = SANDBOX_ROOT_PATH; in MountSandboxPath() local
659 dstPath = dstPath.append(userId).append("/").append(bundleName).append(dstPaths[i]); in MountSandboxPath()
662 if (!IsDir(dstPath)) { in MountSandboxPath()
663 LOGE("dstPath is not a dir: %{public}s", dstPath.c_str()); in MountSandboxPath()
670 LOGD("mount crypto path, srcPath is %{public}s, dstPath is %{public}s", srcPath.c_str(), dstPath.c_str()); in MountSandboxPath()
671 int32_t ret = mount(srcPath.c_str(), dstPath.c_str(), nullptr, MS_BIND | MS_REC, nullptr); in MountSandboxPath()
673 ret = mount(srcPath.c_str(), dstPath in MountSandboxPath()
1139 std::string dstPath = StringPrintf("/mnt/data/%d/hmdfs/%s/", userId, deviceId.c_str()); MountDfsDocs() local
1172 std::string dstPath = StringPrintf("/mnt/data/%d/hmdfs/%s", userId, deviceId.c_str()); UMountDfsDocs() local
[all...]
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dmove_file.cpp75 LOGE("Failed to utime dstPath"); in ChangeTime()
93 filesystem::path dstPath(dest); in CopyAndDeleteFile()
95 if (filesystem::exists(dstPath)) { in CopyAndDeleteFile()
96 if (!filesystem::remove(dstPath, errCode)) { in CopyAndDeleteFile()
102 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) { in CopyAndDeleteFile()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_session_listener.cpp54 const std::string &dstPath) in GetFileName()
63 if (dstPath.find("??") == 0) { in GetFileName()
64 auto pos = dstPath.rfind("/"); in GetFileName()
65 tmp.push_back(dstPath.substr(pos + 1)); in GetFileName()
101 auto fileNameList = GetFileName(fileList, physicalPath, sessionInfo.dstPath); in OnSessionOpened()
52 GetFileName(const std::vector<std::string> &fileList, const std::string &path, const std::string &dstPath) GetFileName() argument
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dmovedir.cpp108 filesystem::path dstPath(dest); in CopyAndDeleteFile()
110 if (filesystem::exists(dstPath, errCode)) { in CopyAndDeleteFile()
118 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) { in CopyAndDeleteFile()
127 filesystem::path dstPath(dest); in RenameFile()
129 if (filesystem::exists(dstPath, errCode)) { in RenameFile()
130 if (filesystem::is_directory(dstPath, errCode)) { in RenameFile()
143 filesystem::rename(srcPath, dstPath, errCode); in RenameFile()
H A Dmove.cpp99 filesystem::path dstPath(dest); in CopyAndDeleteFile()
101 if (filesystem::exists(dstPath, errCode)) { in CopyAndDeleteFile()
102 if (!filesystem::remove(dstPath, errCode)) { in CopyAndDeleteFile()
108 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) { in CopyAndDeleteFile()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_paint_test.cpp227 Path dstPath; in HWTEST_F() local
232 ret = skiaPaint.GetFillPath(pen, srcPath, dstPath, &rect, matrix); in HWTEST_F()
234 ret = skiaPaint.GetFillPath(pen, srcPath, dstPath, nullptr, matrix); in HWTEST_F()
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhencoder_buffer_unit_test.cpp45 static bool CreateFakeYuv(const string& dstPath, uint32_t w, uint32_t h, uint32_t frameCnt) in CreateFakeYuv() argument
47 ofstream ofs(dstPath, ios::binary); in CreateFakeYuv()
49 TLOGE("cannot create %s", dstPath.c_str()); in CreateFakeYuv()
/foundation/multimedia/ringtone_library/test/unittest/ringtone_utils_test/src/
H A Dringtone_file_utils_test.cpp169 const string dstPath = "/data/local/tmp/test/createfile_Test_001.ogg"; in HWTEST_F() local
170 auto ret = RingtoneFileUtils::IsSameFile(srcPath, dstPath); in HWTEST_F()
173 ret = RingtoneFileUtils::IsSameFile(srcPath, dstPath); in HWTEST_F()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/
H A Ddaemon_execute.cpp139 std::string dstPath = requestSendFileData->dstPath_; in ExecuteRequestSendFile() local
148 requestSendFileBlock->SetValue(RequestSendFileInner(srcUri, dstPath, dstDeviceId, sessionName)); in ExecuteRequestSendFile()
152 const std::string &dstPath, in RequestSendFileInner()
174 ret = SoftBusHandler::GetInstance().CopySendFile(socketId, sessionName, srcUri, dstPath); in RequestSendFileInner()
151 RequestSendFileInner(const std::string &srcUri, const std::string &dstPath, const std::string &dstDeviceId, const std::string &sessionName) RequestSendFileInner() argument
/foundation/bundlemanager/bundle_framework/services/test/moduletest/utils/include/
H A Dcommon_tool.h30 bool CopyTmpFileToSystemPath(const std::string &srcPath, const std::string &dstPath);
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/
H A Dsoftbus_session_pool.h31 std::string dstPath; member
H A Dsoftbus_session_listener.h33 const std::string &dstPath);
/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Dringtone_dualfwk_restore.cpp446 bool RingtoneDualFwkRestore::OnPrepare(FileInfo &info, const std::string &dstPath) in OnPrepare() argument
448 if (!RingtoneFileUtils::IsFileExists(dstPath)) { in OnPrepare()
449 RINGTONE_ERR_LOG("dst path is not existing, dst path=%{public}s", dstPath.c_str()); in OnPrepare()
465 info.restorePath = dstPath + "/" + fileName; in OnPrepare()
475 RINGTONE_ERR_LOG("samefile: srcPath=%{private}s, dstPath=%{private}s", info.data.c_str(), in OnPrepare()
479 info.restorePath = dstPath + "/" + baseName + "(" + to_string(repeatCount++) + ")" + "." + extensionName; in OnPrepare()
/foundation/bundlemanager/bundle_framework/services/test/moduletest/utils/src/
H A Dcommon_tool.cpp71 bool CommonTool::CopyTmpFileToSystemPath(const std::string &srcPath, const std::string &dstPath) in CopyTmpFileToSystemPath() argument
80 FILE *dstFile = fopen(dstPath.c_str(), "w"); in CopyTmpFileToSystemPath()
/foundation/filemanagement/dfs_service/frameworks/native/distributed_file_inner/src/
H A Ddistributed_file_daemon_manager_impl.cpp91 const std::string &dstPath, in RequestSendFile()
100 return distributedFileDaemonProxy->RequestSendFile(srcUri, dstPath, remoteDeviceId, sessionName); in RequestSendFile()
90 RequestSendFile(const std::string &srcUri, const std::string &dstPath, const std::string &remoteDeviceId, const std::string &sessionName) RequestSendFile() argument
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/ipc/
H A Dcloud_daemon.cpp125 string dstPath = dstBase + '/' + sub; in HandleStartMove() local
132 filesystem::copy(srcPath, dstPath, copyOptions, errCode); in HandleStartMove()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/
H A Dcommon_func.h52 napi_value srcPath, napi_value dstPath);

Completed in 13 milliseconds

123