Home
last modified time | relevance | path

Searched refs:SandboxHelper (Results 1 - 23 of 23) sorted by relevance

/foundation/filemanagement/app_file_service/interfaces/common/src/
H A Dsandbox_helper.cpp61 std::unordered_map<std::string, std::string> SandboxHelper::sandboxPathMap_;
62 std::unordered_map<std::string, std::string> SandboxHelper::backupSandboxPathMap_;
63 std::mutex SandboxHelper::mapMutex_;
65 string SandboxHelper::Encode(const string &uri) in Encode()
89 string SandboxHelper::Decode(const string &uri) in Decode()
130 bool SandboxHelper::GetSandboxPathMap() in GetSandboxPathMap()
163 bool SandboxHelper::GetBackupSandboxPathMap() in GetBackupSandboxPathMap()
341 int32_t SandboxHelper::GetPhysicalPath(const std::string &fileUri, const std::string &userId, in GetPhysicalPath()
350 string sandboxPath = SandboxHelper::Decode(uri.GetPath()); in GetPhysicalPath()
377 int32_t SandboxHelper
[all...]
H A Dcommon_func.cpp121 realPath = FILE_SCHEME_PREFIX + packageName + SandboxHelper::Encode(realPath); in GetUriFromPath()
/foundation/filemanagement/app_file_service/test/unittest/file_share_native/
H A Dfile_share_test.cpp321 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F()
340 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F()
358 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F()
376 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F()
395 int32_t ret = SandboxHelper::GetPhysicalPath(strPrefix + SandboxHelper::Encode(fileUri), "100", physicalPath); in HWTEST_F()
401 ret = SandboxHelper::GetPhysicalPath(strPrefix + SandboxHelper::Encode(fileUri2), "100", physicalPath2); in HWTEST_F()
420 int32_t ret = SandboxHelper::GetPhysicalPath(fileUri, "100", physicalPath); in HWTEST_F()
437 auto ret = SandboxHelper in HWTEST_F()
[all...]
/foundation/filemanagement/app_file_service/interfaces/kits/cj/src/
H A Dfile_uri.cpp36 string sandboxPath = AppFileService::SandboxHelper::Decode(uri_.GetPath()); in GetName()
51 string sandboxPath = AppFileService::SandboxHelper::Decode(uri_.GetPath()); 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()
71 string sandboxPath = SandboxHelper::Decode(uri_.GetPath()); in GetPath()
86 string sandboxPath = SandboxHelper::Decode(uri_.GetPath()); in GetRealPath()
107 string sandboxPath = SandboxHelper::Decode(uri_.GetPath()); in GetRealPathBySA()
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/remote_file_share/src/
H A Dremote_file_share.cpp225 if (!SandboxHelper::IsValidPath(PACKAGE_PATH)) { in CreateSharePath()
271 REMOTE_SHARE_PATH_DIR + SandboxHelper::Decode(uri.GetPath()); in GetDistributedPath()
281 std::string sandboxPath = SandboxHelper::Decode(uri.GetPath()); in GetPhysicalPath()
282 if (!SandboxHelper::IsValidPath(sandboxPath) || uri.GetScheme() != FILE_SCHEME) { in GetPhysicalPath()
288 int ret = SandboxHelper::GetPhysicalPath(uri.ToString(), userId, physicalPath); in GetPhysicalPath()
493 std::string sandboxPath = SandboxHelper::Decode(uri.GetPath()); in TransRemoteUriToLocal()
494 if (!SandboxHelper::IsValidPath(sandboxPath) || uri.GetScheme() != FILE_SCHEME) { in TransRemoteUriToLocal()
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/
H A Dfile_share.cpp96 info.providerSandboxPath_ = SandboxHelper::Decode(uri.GetPath()); in GetProviderInfo()
149 if (!SandboxHelper::IsValidPath(shareRPath) || !SandboxHelper::IsValidPath(shareRWPath)) { in GetSharePath()
169 if (!SandboxHelper::CheckValidPath(info.providerLowerPath_)) { in GetShareFileType()
189 ret = SandboxHelper::GetPhysicalPath(uri, info.currentUid_, info.providerLowerPath_); in GetFileShareInfo()
249 if (!SandboxHelper::CheckValidPath(delPath)) { in DelSharePath()
269 string path = SandboxHelper::Decode(uri.GetPath()); in UmountDelUris()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_session_listener_test.cpp39 int32_t SandboxHelper::GetPhysicalPath(const std::string &fileUri, const std::string &userId, in GetPhysicalPath()
60 bool SandboxHelper::CheckValidPath(const std::string &filePath) in CheckValidPath()
/foundation/filemanagement/app_file_service/interfaces/common/include/
H A Dsandbox_helper.h25 class SandboxHelper { class
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/
H A Ddaemon_execute.cpp215 int32_t ret = SandboxHelper::GetPhysicalPath(uri, std::to_string(userId), physicalPath); in GetFileList()
220 if (!SandboxHelper::CheckValidPath(physicalPath)) { in GetFileList()
H A Ddaemon.cpp483 ret = SandboxHelper::GetPhysicalPath(dstUri, std::to_string(hapTokenInfo.userID), physicalPath); in GetRealPath()
529 if (!SandboxHelper::CheckValidPath(checkPath)) { in CheckCopyRule()
542 if (!SandboxHelper::CheckValidPath(physicalPath)) { in CheckCopyRule()
/foundation/filemanagement/app_file_service/utils/src/b_json/
H A Db_report_entity.cpp273 encodeItem = AppFileService::SandboxHelper::Encode(reportItem); in EncodeReportItem()
284 decodeItem = AppFileService::SandboxHelper::Decode(reportItem); in DecodeReportItem()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dtranslistener.cpp71 info.sandboxPath = AppFileService::SandboxHelper::Decode(uri.GetPath()); in CopyFileFromSoftBus()
191 return AppFileService::SandboxHelper::Decode(path.substr(pos)); in GetFileName()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_file_receive_listener.cpp78 if (!AppFileService::SandboxHelper::CheckValidPath(physicalPath)) { in SetRecvPath()
H A Dsoftbus_session_listener.cpp172 if (SandboxHelper::GetPhysicalPath(localUri, std::to_string(QueryActiveUserId()), physicalPath) != E_OK) { in GetRealPath()
/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()
237 return SandboxHelper::Decode(path.substr(pos)); in GetFileName()
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/
H A Dfile_transfer_manager.cpp193 int ret = AppFileService::SandboxHelper::GetPhysicalPath(uri, std::to_string(userId), physicalPath); in UriToPath()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dfile_asset.cpp686 AppFileService::SandboxHelper::Decode(jsonObject[PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION]); in GetAssetJson()
/foundation/filemanagement/storage_service/services/storage_daemon/quota/
H A Dquota_manager.cpp464 int ret = AppFileService::SandboxHelper::GetBackupPhysicalPath(uri.ToString(), std::to_string(userId), in ConvertSandboxRealPath()
484 fileLine += AppFileService::SandboxHelper::Encode(fileStat.filePath) + FILE_CONTENT_SEPARATOR; in WriteFileList()
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dmetadata_extractor.cpp309 AppFileService::SandboxHelper::Encode(exifJson[PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION]); in ExtractImageExif()
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/ipc/
H A Dcloud_sync_service.cpp724 int ret = AppFileService::SandboxHelper::GetPhysicalPath(uri, std::to_string(userId), physicalPath); in DeleteAsset()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_object_utils.cpp765 int32_t ret = AppFileService::SandboxHelper::GetPhysicalPath(uri, to_string(uid), realPath); in OpenDocument()
766 if (ret != E_OK || !AppFileService::SandboxHelper::CheckValidPath(realPath)) { in OpenDocument()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dfile_asset_napi.cpp3558 AppFileService::SandboxHelper::Decode(allExifJson[PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION]); in UserFileMgrGetExifComplete()

Completed in 28 milliseconds