/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/ |
H A D | wifi_hal_adapter.c | 191 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() 199 memset_s(dstPath, sizeof(dstPath), 0x0, sizeof(dstPath)); in CopyConfigFile() 202 memset_s(dstPath, sizeof(dstPath), 0x0, sizeof(dstPath)); in CopyConfigFile()
|
/ohos5.0/base/startup/appspawn/service/hnp/installer/src/ |
H A D | hnp_installer.c | 57 if (access(dstPath, F_OK) != 0) { in HnpGenerateSoftLinkAllByJson() 58 int ret = mkdir(dstPath, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); in HnpGenerateSoftLinkAllByJson() 126 if (access(dstPath, F_OK) != 0) { in HnpGenerateSoftLinkAll() 127 ret = mkdir(dstPath, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); in HnpGenerateSoftLinkAll() 234 char dstPath[MAX_FILE_PATH_LEN]; in HnpUnInstall() local 243 if (access(dstPath, F_OK) != 0) { in HnpUnInstall() 627 static int CheckInstallPath(char *dstPath, HapInstallInfo *installInfo) in CheckInstallPath() argument 636 if (access(dstPath, F_OK) != 0) { in CheckInstallPath() 642 return SetHnpRestorecon(dstPath); in CheckInstallPath() 647 char dstPath[MAX_FILE_PATH_LEN]; in HnpInsatllPre() local [all …]
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_session_pool_test.cpp | 57 .dstPath = "/data/test/1", 61 .dstPath = "/data/test/2", 71 EXPECT_EQ(sessionInfo.dstPath, sessionInfo1.dstPath); 77 EXPECT_EQ(sessionInfo.dstPath, sessionInfo2.dstPath); 103 .dstPath = "/data/test/1",
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/user/src/ |
H A D | mount_manager.cpp | 306 if (!IsDir(dstPath)) { in HmSharefsMount() 310 if (IsPathMounted(dstPath)) { in HmSharefsMount() 691 std::string dstPath = SANDBOX_ROOT_PATH; in MountSandboxPath() local 692 dstPath = dstPath.append(userId).append("/").append(bundleName).append(dstPaths[i]); in MountSandboxPath() 695 if (!IsDir(dstPath)) { in MountSandboxPath() 1248 int32_t ret = UMount2(dstPath, MNT_FORCE); in UMountDfsDocs() 1251 dstPath.c_str(), errno); in UMountDfsDocs() 1255 if (!filesystem::is_empty(dstPath)) { in UMountDfsDocs() 1259 if (!RmDirRecurse(dstPath)) { in UMountDfsDocs() 1395 if (dstPath.empty() || !IsDir(dstPath)) { in BindAndRecMount() [all …]
|
/ohos5.0/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);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkpath_fuzzer/ |
H A D | path_fuzzer.cpp | 249 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 364 OH_Drawing_PathTransformWithPerspectiveClip(path, nullptr, dstPath, isValue); in NativeDrawingPathTest007() 365 OH_Drawing_PathTransformWithPerspectiveClip(path, matrix, dstPath, isValue); in NativeDrawingPathTest007() 377 OH_Drawing_PathOffset(path, dstPath, GetObject<float>(), GetObject<float>()); in NativeDrawingPathTest007() [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/ |
H A D | help_utils.cpp | 54 bool StorageTestUtils::CheckMount(const std::string& dstPath) in CheckMount() argument 66 if (dstPath.compare(mntent->mnt_dir) == 0) { in CheckMount() 235 std::string dstPath(hmdfsTarget); in ClearTestResource() local 236 dstPath.replace(dstPath.find("%d"), strlen("%d"), std::to_string(id)); in ClearTestResource() 237 UMount(dstPath); in ClearTestResource()
|
/ohos5.0/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() argument 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()
|
H A D | installer_manager_helper.cpp | 90 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() argument 95 int32_t InstallerManagerHelper::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument
|
/ohos5.0/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() argument 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()
|
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() 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()
|
/ohos5.0/base/hiviewdfx/hiview/core/param_update/src/ |
H A D | param_manager.cpp | 64 std::string dstPath(FileUtil::ExtractFilePath(dstFile)); in CopyFile() local 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()
|
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/ |
H A D | ringtone_dualfw_restore.cpp | 299 bool RingtoneDualfwRestore::OnPrepare(FileInfo &info, const std::string &dstPath) in OnPrepare() argument 301 if (!RingtoneFileUtils::IsFileExists(dstPath)) { in OnPrepare() 302 RINGTONE_ERR_LOG("dst path is not existing, dst path=%{public}s", dstPath.c_str()); in OnPrepare() 318 while (RingtoneFileUtils::IsFileExists(dstPath + "/" + fileName)) { in OnPrepare() 320 string dstName = dstPath + "/" + fileName; in OnPrepare() 327 (dstPath + "/" + fileName).c_str()); in OnPrepare() 332 info.restorePath = dstPath + "/" + fileName; in OnPrepare()
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session_listener.cpp | 54 const std::string &dstPath) in GetFileName() argument 63 if (dstPath.find("??") == 0) { in GetFileName() 64 auto pos = dstPath.rfind("/"); in GetFileName() 65 tmp.push_back(dstPath.substr(pos + 1)); in GetFileName() 106 auto fileNameList = GetFileName(fileList, physicalPath, sessionInfo.dstPath); in OnSessionOpened()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | move_file.cpp | 93 filesystem::path dstPath(dest); in CopyAndDeleteFile() local 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()
|
/ohos5.0/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() argument 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()
|
H A D | sys_installer_proxy.cpp | 203 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() argument 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()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | movedir.cpp | 107 filesystem::path dstPath(dest); in CopyAndDeleteFile() local 109 if (filesystem::exists(dstPath, errCode)) { in CopyAndDeleteFile() 117 …if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode… in CopyAndDeleteFile() 126 filesystem::path dstPath(dest); in RenameFile() local 128 if (filesystem::exists(dstPath, errCode)) { in RenameFile() 129 if (filesystem::is_directory(dstPath, errCode)) { in RenameFile() 142 filesystem::rename(srcPath, dstPath, errCode); in RenameFile()
|
H A D | move.cpp | 102 filesystem::path dstPath(dest); in CopyAndDeleteFile() local 104 if (filesystem::exists(dstPath, errCode)) { in CopyAndDeleteFile() 105 if (!filesystem::remove(dstPath, errCode)) { in CopyAndDeleteFile() 111 …if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode… in CopyAndDeleteFile()
|
/ohos5.0/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;
|
/ohos5.0/base/update/sys_installer/interfaces/innerkits/ipc_client/include/ |
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_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_impl.h | 38 const std::string &dstPath, const uint32_t type); 39 virtual int32_t AccDeleteDir(const std::string &dstPath);
|
/ohos5.0/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;
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/ |
H A D | daemon_event.h | 45 const std::string &dstPath, in RequestSendFileData() 50 dstPath_(dstPath), in RequestSendFileData()
|