/foundation/filemanagement/app_file_service/interfaces/common/src/ |
H A D | sandbox_helper.cpp | 61 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 D | common_func.cpp | 121 realPath = FILE_SCHEME_PREFIX + packageName + SandboxHelper::Encode(realPath); in GetUriFromPath()
|
/foundation/filemanagement/app_file_service/test/unittest/file_share_native/ |
H A D | file_share_test.cpp | 321 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 D | file_uri.cpp | 36 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 D | file_uri.cpp | 56 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 D | remote_file_share.cpp | 225 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 D | file_share.cpp | 96 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 D | softbus_session_listener_test.cpp | 39 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 D | sandbox_helper.h | 25 class SandboxHelper { class
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | daemon_execute.cpp | 215 int32_t ret = SandboxHelper::GetPhysicalPath(uri, std::to_string(userId), physicalPath); in GetFileList() 220 if (!SandboxHelper::CheckValidPath(physicalPath)) { in GetFileList()
|
H A D | daemon.cpp | 483 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 D | b_report_entity.cpp | 273 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 D | translistener.cpp | 71 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 D | softbus_file_receive_listener.cpp | 78 if (!AppFileService::SandboxHelper::CheckValidPath(physicalPath)) { in SetRecvPath()
|
H A D | softbus_session_listener.cpp | 172 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 D | trans_listener.cpp | 116 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 D | file_transfer_manager.cpp | 193 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 D | file_asset.cpp | 686 AppFileService::SandboxHelper::Decode(jsonObject[PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION]); in GetAssetJson()
|
/foundation/filemanagement/storage_service/services/storage_daemon/quota/ |
H A D | quota_manager.cpp | 464 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 D | metadata_extractor.cpp | 309 AppFileService::SandboxHelper::Encode(exifJson[PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION]); in ExtractImageExif()
|
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/ipc/ |
H A D | cloud_sync_service.cpp | 724 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 D | medialibrary_object_utils.cpp | 765 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 D | file_asset_napi.cpp | 3558 AppFileService::SandboxHelper::Decode(allExifJson[PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION]); in UserFileMgrGetExifComplete()
|