/foundation/filemanagement/app_file_service/test/unittest/file_share_native/ |
H A D | file_share_test.cpp | 320 std::string physicalPath; in HWTEST_F() local 321 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F() 323 EXPECT_EQ(physicalPath, "/mnt/hmdfs/100/account/cloud_merge_view/files/Photo/11/IMG_12345_0011.jpg"); in HWTEST_F() 339 std::string physicalPath; in HWTEST_F() local 340 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F() 357 std::string physicalPath; in HWTEST_F() local 358 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F() 375 std::string physicalPath; in HWTEST_F() local 376 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F() 394 std::string physicalPath; in HWTEST_F() local 419 std::string physicalPath; HWTEST_F() local 458 std::string physicalPath; HWTEST_F() local 477 std::string physicalPath; HWTEST_F() local 495 std::string physicalPath; HWTEST_F() local 513 std::string physicalPath; HWTEST_F() local 532 std::string physicalPath; HWTEST_F() local 557 std::string physicalPath; HWTEST_F() local [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session_listener.cpp | 84 std::string physicalPath = GetRealPath(sessionInfo.srcUri); in OnSessionOpened() local 85 if (physicalPath.empty()) { in OnSessionOpened() 90 auto fileList = OHOS::Storage::DistributedFile::Utils::GetFilePath(physicalPath); in OnSessionOpened() 101 auto fileNameList = GetFileName(fileList, physicalPath, sessionInfo.dstPath); in OnSessionOpened() 171 std::string physicalPath; in GetRealPath() local 172 if (SandboxHelper::GetPhysicalPath(localUri, std::to_string(QueryActiveUserId()), physicalPath) != E_OK) { in GetRealPath() 173 LOGE("GetPhysicalPath failed, invalid uri, physicalPath = %{public}s", GetAnonyString(physicalPath).c_str()); in GetRealPath() 176 if (physicalPath.empty() || physicalPath in GetRealPath() [all...] |
H A D | softbus_file_receive_listener.cpp | 71 void SoftBusFileReceiveListener::SetRecvPath(const std::string &physicalPath) in SetRecvPath() argument 73 if (physicalPath.empty()) { in SetRecvPath() 74 LOGI("SetRecvPath physicalPath is empty."); in SetRecvPath() 77 LOGI("SetRecvPath physicalPath: %{public}s", GetAnonyString(physicalPath).c_str()); in SetRecvPath() 78 if (!AppFileService::SandboxHelper::CheckValidPath(physicalPath)) { in SetRecvPath() 86 path_ = physicalPath; in SetRecvPath()
|
H A D | softbus_handler.cpp | 120 DFS_CHANNEL_ROLE role, const std::string physicalPath) in CreateSessionServer() 122 if (packageName.empty() || sessionName.empty() || physicalPath.empty()) { in CreateSessionServer() 157 DistributedFile::SoftBusFileReceiveListener::SetRecvPath(physicalPath); in CreateSessionServer() 226 std::string physicalPath = SoftBusSessionListener::GetRealPath(srcUri); in CopySendFile() local 227 if (physicalPath.empty()) { in CopySendFile() 231 auto fileList = OHOS::Storage::DistributedFile::Utils::GetFilePath(physicalPath); in CopySendFile() 233 LOGE("GetFilePath failed or file is empty, path %{public}s", physicalPath.c_str()); in CopySendFile() 241 auto fileNameList = SoftBusSessionListener::GetFileName(fileList, physicalPath, dstPath); in CopySendFile() 243 LOGE("GetFileName failed, path %{public}s %{public}s", physicalPath.c_str(), dstPath.c_str()); in CopySendFile() 119 CreateSessionServer(const std::string &packageName, const std::string &sessionName, DFS_CHANNEL_ROLE role, const std::string physicalPath) CreateSessionServer() argument
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | daemon.cpp | 408 std::string physicalPath; in PrepareSession() local 409 auto ret = GetRealPath(srcUri, dstUri, physicalPath, info, daemon); in PrepareSession() 415 SoftBusSessionPool::SessionInfo sessionInfo{.dstPath = physicalPath, .uid = IPCSkeleton::GetCallingUid()}; in PrepareSession() 422 StoreSessionAndListener(physicalPath, sessionName, listenerCallback); in PrepareSession() 424 DFS_CHANNLE_ROLE_SINK, physicalPath); in PrepareSession() 430 physicalPath.clear(); in PrepareSession() 433 physicalPath = "??" + info.dstPhysicalPath; in PrepareSession() 435 ret = Copy(srcUri, physicalPath, daemon, sessionName); in PrepareSession() 444 void Daemon::StoreSessionAndListener(const std::string &physicalPath, in StoreSessionAndListener() argument 453 std::string &physicalPath, in GetRealPath() 451 GetRealPath(const std::string &srcUri, const std::string &dstUri, std::string &physicalPath, HmdfsInfo &info, const sptr<IDaemon> &daemon) GetRealPath() argument 503 CheckCopyRule(std::string &physicalPath, const std::string &dstUri, HapTokenInfo &hapTokenInfo, const bool &isSrcFile, HmdfsInfo &info) CheckCopyRule() argument 562 auto physicalPath = SoftBusSessionListener::GetRealPath(srcUri); GetRemoteCopyInfo() local [all...] |
H A D | daemon_execute.cpp | 214 std::string physicalPath; in GetFileList() local 215 int32_t ret = SandboxHelper::GetPhysicalPath(uri, std::to_string(userId), physicalPath); in GetFileList() 220 if (!SandboxHelper::CheckValidPath(physicalPath)) { in GetFileList() 221 LOGE("invalid path : %{public}s", GetAnonyString(physicalPath).c_str()); in GetFileList() 224 if (OHOS::Storage::DistributedFile::Utils::IsFolder(physicalPath)) { in GetFileList() 228 if (!std::regex_match(physicalPath, pattern)) { in GetFileList() 229 LOGE("physicalPath is not hmdfs path."); in GetFileList() 231 fileList.emplace_back(physicalPath); in GetFileList()
|
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/remote_file_share/src/ |
H A D | remote_file_share.cpp | 287 std::string physicalPath = ""; in GetPhysicalPath() local 288 int ret = SandboxHelper::GetPhysicalPath(uri.ToString(), userId, physicalPath); in GetPhysicalPath() 293 return physicalPath; in GetPhysicalPath() 296 static void InitHmdfsInfo(struct HmdfsDstInfo &hdi, const std::string &physicalPath, in InitHmdfsInfo() argument 299 hdi.localLen = physicalPath.size() + 1; in InitHmdfsInfo() 300 hdi.localPathIndex = reinterpret_cast<uint64_t>(physicalPath.c_str()); in InitHmdfsInfo() 346 static int32_t SetPublicDirHmdfsInfo(const std::string &physicalPath, const std::string &uriStr, in SetPublicDirHmdfsInfo() argument 351 if (stat(physicalPath.c_str(), &buf) != 0) { in SetPublicDirHmdfsInfo() 382 std::string physicalPath = GetPhysicalPath(uri, std::to_string(userId)); in GetDfsUriFromLocal() local 383 if (physicalPath in GetDfsUriFromLocal() 441 std::string physicalPath = GetPhysicalPath(uri, std::to_string(userId)); GetDfsUrisFromLocal() local [all...] |
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/ |
H A D | file_transfer_manager.cpp | 76 auto [physicalPath, relativePath] = UriToPath(uri, userId); in HandleDownloadFileRequest() 79 auto result = sessionManager_->SendFile(senderNetworkId, {physicalPath}, {relativePath}); in HandleDownloadFileRequest() 192 string physicalPath = ""; in UriToPath() local 193 int ret = AppFileService::SandboxHelper::GetPhysicalPath(uri, std::to_string(userId), physicalPath); in UriToPath() 200 if (!this->IsFileExists(physicalPath)) { in UriToPath() 209 size_t fileDirPos = physicalPath.find(DATA_DIR); in UriToPath() 214 relativePath = physicalPath.substr(fileDirPos); in UriToPath() 216 return {physicalPath, relativePath}; in UriToPath() 222 auto [physicalPath, relativePath] = UriToPath(uri, userId, false); in AddTransTask()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_session_listener_test.cpp | 40 std::string &physicalPath) in GetPhysicalPath() 47 physicalPath = TEST_PATH; in GetPhysicalPath() 52 physicalPath = ""; in GetPhysicalPath() 56 physicalPath = TEST_ERR_PATH; in GetPhysicalPath() 39 GetPhysicalPath(const std::string &fileUri, const std::string &userId, std::string &physicalPath) GetPhysicalPath() argument
|
H A D | softbus_handler_test.cpp | 123 std::string physicalPath = "/data/test"; in HWTEST_F() local 125 int32_t result = handler.CreateSessionServer(packageName, sessionName, role, physicalPath); in HWTEST_F() 131 result = handler.CreateSessionServer(packageName, sessionName, role, physicalPath); in HWTEST_F() 137 result = handler.CreateSessionServer(packageName, sessionName, role, physicalPath); in HWTEST_F() 145 EXPECT_EQ(string(SoftBusFileReceiveListener::GetRecvPath()), physicalPath); in HWTEST_F() 162 std::string physicalPath = "/data/test"; in HWTEST_F() local 164 auto result = handler.CreateSessionServer("", sessionName, role, physicalPath); in HWTEST_F() 167 result = handler.CreateSessionServer(packageName, "", role, physicalPath); in HWTEST_F() 227 std::string physicalPath = "/data/test"; in HWTEST_F() local 229 int32_t result = handler.OpenSession("", sessionName, physicalPath, socketI in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/interfaces/common/include/ |
H A D | sandbox_helper.h | 37 std::string &physicalPath); 39 std::string &physicalPath);
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/ |
H A D | daemon.h | 98 void StoreSessionAndListener(const std::string &physicalPath, 103 std::string &physicalPath, 106 int32_t CheckCopyRule(std::string &physicalPath,
|
/foundation/distributedhardware/distributed_input/services/source/inputinject/src/ |
H A D | distributed_input_node_manager.cpp | 100 pBuf.physicalPath = inputDeviceJson[PHYSICAL_PATH].get<std::string>(); in ParseInputDeviceBasicInfo() 253 bool DistributedInputNodeManager::GetDevDhUniqueIdByFd(int fd, DhUniqueID &dhUnqueId, std::string &physicalPath) in GetDevDhUniqueIdByFd() argument 257 DHLOGE("Could not get device physicalPath for %{public}s.", ConvertErrNo().c_str()); in GetDevDhUniqueIdByFd() 261 physicalPath = buffer; in GetDevDhUniqueIdByFd() 263 DHLOGD("GetDevDhUniqueIdByFd physicalPath %{public}s.", physicalPath.c_str()); in GetDevDhUniqueIdByFd() 265 SplitStringToVector(physicalPath, VIR_NODE_SPLIT_CHAR, phyPathVec); in GetDevDhUniqueIdByFd() 304 std::string physicalPath; in MatchAndSavePhysicalPath() local 315 if (!GetDevDhUniqueIdByFd(fd, curDhUniqueId, physicalPath)) { in MatchAndSavePhysicalPath()
|
H A D | distributed_input_inject.cpp | 92 tmpJson[PHYSICAL_PATH] = pBuf.physicalPath; in StructTransJson()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/ |
H A D | softbus_file_receive_listener.h | 38 static void SetRecvPath(const std::string &physicalPath);
|
H A D | softbus_handler.h | 41 DFS_CHANNEL_ROLE role, const std::string physicalPath);
|
/foundation/filemanagement/storage_service/services/storage_daemon/quota/ |
H A D | quota_manager.cpp | 446 std::string physicalPath = sandboxPathStr;
in ConvertSandboxRealPath() local 447 physicalPath.insert(MEDIA_SAND_PREFIX.length(), FILE_SEPARATOR_CHAR + std::to_string(userId));
in ConvertSandboxRealPath() 448 realPaths.emplace_back(physicalPath);
in ConvertSandboxRealPath() 449 pathMap.insert({physicalPath, sandboxPathStr});
in ConvertSandboxRealPath() 452 std::string physicalPath = sandboxPathStr;
in ConvertSandboxRealPath() local 453 physicalPath.insert(MEDIA_CLOUD_SAND_PREFIX.length(), FILE_SEPARATOR_CHAR + std::to_string(userId));
in ConvertSandboxRealPath() 454 realPaths.emplace_back(physicalPath);
in ConvertSandboxRealPath() 455 pathMap.insert({physicalPath, sandboxPathStr});
in ConvertSandboxRealPath() 463 std::string physicalPath;
in ConvertSandboxRealPath() local 465 physicalPath);
in ConvertSandboxRealPath() [all...] |
/foundation/distributedhardware/distributed_input/utils/src/ |
H A D | dinput_utils_tool.cpp | 193 std::string physicalPath = "N/A"; in GetNodeDesc() local 198 physicalPath = parObj.at(PHYSICAL_PATH).get<std::string>(); in GetNodeDesc() 202 return "{ nodeName: " + nodeName + ", physicalPath: " + physicalPath + ", classes: " + in GetNodeDesc()
|
/foundation/distributedhardware/distributed_input/common/include/ |
H A D | constants_dinput.h | 169 const std::string PHYSICAL_PATH = "physicalPath"; 267 inline InputDevice() : name(""), physicalPath(""), uniqueId(""), bus(0), vendor(0), product(0), in InputDevice() 270 std::string physicalPath; member
|
H A D | input_hub.cpp | 643 // Get device physical physicalPath. in QueryInputDeviceInfo() 645 DHLOGE("could not get physicalPath for %{public}s\n", ConvertErrNo().c_str()); in QueryInputDeviceInfo() 648 device->identifier.physicalPath = buffer; in QueryInputDeviceInfo() 985 if (!identifier.physicalPath.empty()) { in GenerateDescriptor() 986 rawDescriptor += "physicalPath:"; in GenerateDescriptor() 987 rawDescriptor += identifier.physicalPath; in GenerateDescriptor() 1375 DHLOGI(" physicalPath: \"%{public}s\"\n", identifier.physicalPath.c_str()); in RecordDeviceLog()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | prop_n_exporter.cpp | 182 string physicalPath = PHYSICAL_PATH_PREFIX + relativePath;
in HandleLocalCheck() local 183 physicalPath.replace(physicalPath.find(USER_ID_FLAG), USER_ID_FLAG.length(), to_string(userId));
in HandleLocalCheck() 184 physicalPath.replace(physicalPath.find(PACKAGE_NAME_FLAG), PACKAGE_NAME_FLAG.length(), bundleName);
in HandleLocalCheck() 186 return UvAccess(physicalPath, mode);
in HandleLocalCheck()
|
/foundation/distributedhardware/distributed_input/services/source/inputinject/include/ |
H A D | distributed_input_node_manager.h | 113 bool GetDevDhUniqueIdByFd(int fd, DhUniqueID &dhUnqueId, std::string &physicalPath);
|
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/ipc/ |
H A D | cloud_sync_service.cpp | 723 std::string physicalPath = ""; in DeleteAsset() local 724 int ret = AppFileService::SandboxHelper::GetPhysicalPath(uri, std::to_string(userId), physicalPath); in DeleteAsset() 730 LOGD("delete assert, path %{public}s", GetAnonyString(physicalPath).c_str()); in DeleteAsset() 732 ret = unlink(physicalPath.c_str()); in DeleteAsset()
|
/foundation/distributedhardware/distributed_input/services/source/inputinject/test/sourceinjectunittest/ |
H A D | distributed_input_sourceinject_test.cpp | 86 pBuffer.physicalPath = "usb-hiusb-ehci-2.1/input1"; in HWTEST_F() 107 pBuffer.physicalPath = "usb-hiusb-ehci-2.1/input1"; in HWTEST_F() 128 pBuffer.physicalPath = "usb-hiusb-ehci-2.1/input1"; in HWTEST_F()
|
/foundation/distributedhardware/distributed_input/inputdevicehandler/src/ |
H A D | distributed_input_handler.cpp | 62 tmpJson[PHYSICAL_PATH] = pBuf.physicalPath; in StructTransJson()
|