Home
last modified time | relevance | path

Searched refs:sandboxPath (Results 1 - 16 of 16) sorted by relevance

/foundation/filemanagement/app_file_service/interfaces/kits/cj/src/
H A Dfile_uri.cpp36 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 Dfile_uri.cpp56 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 Dtranslistener.cpp71 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 Dtranslistener.h49 const std::string &disSandboxPath, const std::string &sandboxPath);
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_session_listener_test.cpp133 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 Dtrans_listener.cpp116 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 &currentId) 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 &currentId) CopyToSandBox() argument
H A Dtrans_listener.h53 const std::string &sandboxPath, const std::string &currentId);
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/remote_file_share/src/
H A Dremote_file_share.cpp281 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 Dhmdfs_info.h28 std::string sandboxPath; member
/foundation/multimedia/media_library/frameworks/js/src/
H A Dthumbnail_manager.cpp291 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 Dcommon_func.h101 static bool CheckPublicDirPath(const std::string &sandboxPath);
H A Dcommon_func.cpp299 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 Dmedia_library_manager.cpp486 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 Dcloud_sync_napi.cpp413 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 Dfile_permission_test.cpp429 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 Dquota_manager.cpp566 std::string sandboxPath = path; in CheckIfDirForIncludes() local
569 sandboxPath = it->second; in CheckIfDirForIncludes()
573 fileStat.filePath = sandboxPath; in CheckIfDirForIncludes()

Completed in 14 milliseconds