/foundation/filemanagement/app_file_service/interfaces/kits/cj/src/ |
H A D | file_uri.cpp | 36 string sandboxPath = AppFileService::SandboxHelper::Decode(uri_.GetPath()); in GetName() local 37 size_t posLast = sandboxPath.find_last_of("/"); in GetName() 42 if (posLast == sandboxPath.size()) { in GetName() 46 return sandboxPath.substr(posLast + 1); in GetName() 51 string sandboxPath = AppFileService::SandboxHelper::Decode(uri_.GetPath()); in GetPath() local 53 if (bundleName == MEDIA_AUTHORITY && sandboxPath.find(".") != string::npos) { in GetPath() 54 size_t pos = sandboxPath.rfind("/"); in GetPath() 55 return sandboxPath.substr(0, pos); in GetPath() 58 return sandboxPath; in GetPath()
|
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_uri/src/ |
H A D | file_uri.cpp | 56 string sandboxPath = SandboxHelper::Decode(uri_.GetPath()); in GetName() local 57 size_t posLast = sandboxPath.find_last_of("/"); in GetName() 62 if (posLast == (sandboxPath.size() - 1)) { in GetName() 66 return sandboxPath.substr(posLast + 1); in GetName() 71 string sandboxPath = SandboxHelper::Decode(uri_.GetPath()); in GetPath() local 73 if (bundleName == MEDIA_AUTHORITY && sandboxPath.find(".") != string::npos) { in GetPath() 74 size_t pos = sandboxPath.rfind("/"); in GetPath() 78 return sandboxPath.substr(0, pos); in GetPath() 81 return sandboxPath; in GetPath() 86 string sandboxPath in GetRealPath() local 107 string sandboxPath = SandboxHelper::Decode(uri_.GetPath()); GetRealPathBySA() local [all...] |
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | translistener.cpp | 71 info.sandboxPath = AppFileService::SandboxHelper::Decode(uri.GetPath()); in CopyFileFromSoftBus() 101 ret = CopyToSandBox(srcUri, disSandboxPath, info.sandboxPath); in CopyFileFromSoftBus() 126 auto pos = info.sandboxPath.rfind('/'); in PrepareCopySession() 131 auto sandboxDir = info.sandboxPath.substr(0, pos); in PrepareCopySession() 153 const std::string &sandboxPath) in CopyToSandBox() 156 if (std::filesystem::exists(sandboxPath) && std::filesystem::is_directory(sandboxPath)) { in CopyToSandBox() 158 std::filesystem::copy(disSandboxPath, sandboxPath, in CopyToSandBox() 173 std::filesystem::copy(disSandboxPath + fileName, sandboxPath, std::filesystem::copy_options::update_existing, in CopyToSandBox() 152 CopyToSandBox(const std::string &srcUri, const std::string &disSandboxPath, const std::string &sandboxPath) CopyToSandBox() argument
|
H A D | translistener.h | 49 const std::string &disSandboxPath, const std::string &sandboxPath);
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_session_listener_test.cpp | 133 string sandboxPath = SoftBusSessionListener::GetSandboxPath(TEST_URI); in HWTEST_F() local 134 EXPECT_EQ(sandboxPath, ""); in HWTEST_F() 136 sandboxPath = SoftBusSessionListener::GetSandboxPath(testUri2); in HWTEST_F() 137 EXPECT_EQ(sandboxPath, "data/test/el2/base/files/test.txt"); in HWTEST_F()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/copy_listener/ |
H A D | trans_listener.cpp | 116 info.sandboxPath = SandboxHelper::Decode(uri.GetPath()); in CopyFileFromSoftBus() 139 ret = CopyToSandBox(srcUri, disSandboxPath, info.sandboxPath, currentId); in CopyFileFromSoftBus() 164 auto pos = info.sandboxPath.rfind('/'); in PrepareCopySession() 169 auto sandboxDir = info.sandboxPath.substr(0, pos); in PrepareCopySession() 191 const std::string &sandboxPath, const std::string ¤tId) in CopyToSandBox() 194 if (std::filesystem::exists(sandboxPath) && std::filesystem::is_directory(sandboxPath)) { in CopyToSandBox() 196 std::filesystem::copy(disSandboxPath, sandboxPath, in CopyToSandBox() 214 std::filesystem::copy(disSandboxPath + fileName, sandboxPath, std::filesystem::copy_options::update_existing, in CopyToSandBox() 190 CopyToSandBox(const std::string &srcUri, const std::string &disSandboxPath, const std::string &sandboxPath, const std::string ¤tId) CopyToSandBox() argument
|
H A D | trans_listener.h | 53 const std::string &sandboxPath, const std::string ¤tId);
|
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/remote_file_share/src/ |
H A D | remote_file_share.cpp | 281 std::string sandboxPath = SandboxHelper::Decode(uri.GetPath()); in GetPhysicalPath() local 282 if (!SandboxHelper::IsValidPath(sandboxPath) || uri.GetScheme() != FILE_SCHEME) { in GetPhysicalPath() 493 std::string sandboxPath = SandboxHelper::Decode(uri.GetPath()); in TransRemoteUriToLocal() local 494 if (!SandboxHelper::IsValidPath(sandboxPath) || uri.GetScheme() != FILE_SCHEME) { in TransRemoteUriToLocal() 499 if ((bundleName != FILE_MANAGER_AUTHORITY) || (sandboxPath.find(FILE_MANAGER_URI_HEAD) != 0)) { in TransRemoteUriToLocal() 508 pos = sandboxPath.find('/', pos + 1); in TransRemoteUriToLocal() 512 part = sandboxPath.substr(pos + 1); in TransRemoteUriToLocal()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/ |
H A D | hmdfs_info.h | 28 std::string sandboxPath; member
|
/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | thumbnail_manager.cpp | 291 string sandboxPath = GetSandboxPath(path, type); in OpenThumbnail() local 293 if (!sandboxPath.empty()) { in OpenThumbnail() 294 fd = open(sandboxPath.c_str(), O_RDONLY); in OpenThumbnail() 306 string sandboxPath = GetKeyFrameSandboxPath(path, beginStamp, type); in OpenKeyFrameThumbnail() local 308 if (!sandboxPath.empty()) { in OpenKeyFrameThumbnail() 309 fd = open(sandboxPath.c_str(), O_RDONLY); in OpenKeyFrameThumbnail()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/ |
H A D | common_func.h | 101 static bool CheckPublicDirPath(const std::string &sandboxPath);
|
H A D | common_func.cpp | 299 bool CommonFunc::CheckPublicDirPath(const std::string &sandboxPath)
in CheckPublicDirPath() argument 302 if (sandboxPath.find(path) == 0) {
in CheckPublicDirPath()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_manager/ |
H A D | media_library_manager.cpp | 486 static int32_t GetFdFromSandbox(const string &path, string &sandboxPath, bool isAstc) in GetFdFromSandbox() argument 489 if (sandboxPath.empty()) { in GetFdFromSandbox() 490 MEDIA_ERR_LOG("OpenThumbnail sandboxPath is empty, path :%{public}s", in GetFdFromSandbox() 495 if (PathToRealPath(sandboxPath, absFilePath)) { in GetFdFromSandbox() 502 size_t thmIdx = sandboxPath.find(suffixStr); in GetFdFromSandbox() 506 sandboxPath.replace(thmIdx, suffixStr.length(), "THM.jpg"); in GetFdFromSandbox() 507 if (!PathToRealPath(sandboxPath, absFilePath)) { in GetFdFromSandbox() 525 string sandboxPath = GetSandboxPath(path, size, isAstc); in OpenThumbnail() local 526 int32_t fd = GetFdFromSandbox(path, sandboxPath, isAstc); in OpenThumbnail()
|
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/ |
H A D | cloud_sync_napi.cpp | 413 string sandboxPath = uri.GetPath(); 415 if (realpath(sandboxPath.c_str(), realPath) == nullptr) { 419 if (strncmp(realPath, sandboxPath.c_str(), sandboxPath.size()) != 0) { 420 LOGE("sandboxPath is not equal to realPath"); 423 if (sandboxPath.find("/data/storage/el2/cloud") != 0) {
|
/foundation/filemanagement/app_file_service/test/unittest/file_permission_native/src/ |
H A D | file_permission_test.cpp | 429 std::string sandboxPath = "/storage/Users/currentUser/Download"; in HWTEST_F() local 431 EXPECT_EQ(path, sandboxPath); in HWTEST_F() 446 std::string sandboxPath = "/storage/Users/currentUser/Desktop"; in HWTEST_F() local 448 EXPECT_EQ(path, sandboxPath); in HWTEST_F() 463 std::string sandboxPath = "/storage/Users/currentUser/Documents"; in HWTEST_F() local 465 EXPECT_EQ(path, sandboxPath); in HWTEST_F()
|
/foundation/filemanagement/storage_service/services/storage_daemon/quota/ |
H A D | quota_manager.cpp | 566 std::string sandboxPath = path;
in CheckIfDirForIncludes() local 569 sandboxPath = it->second;
in CheckIfDirForIncludes() 573 fileStat.filePath = sandboxPath;
in CheckIfDirForIncludes()
|