/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_event_test/src/ |
H A D | event_create_test.cpp | 64 int32_t CreateFileAsset(const string &relativePath, const string &displayName, const MediaType &mediaType) in CreateFileAsset() argument 70 valuesBucket.Put(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in CreateFileAsset() 98 string relativePath = "Pictures/"; in HWTEST_F() local 101 int rowId = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F() 104 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F() 115 string relativePath = ""; in HWTEST_F() local 118 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F() 126 string relativePath = "Pictures/"; in HWTEST_F() local 129 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); in HWTEST_F()
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | extractor.cpp | 136 std::string relativePath = GetRelativePath(fileName); in GetData() local 137 return zipFile_.CreateFileMapper(relativePath, FileMapperType::NORMAL_MEM); in GetData() 142 std::string relativePath = GetRelativePath(fileName); in GetSafeData() local 143 if (!StringEndWith(relativePath, EXT_NAME_ABC, sizeof(EXT_NAME_ABC) - 1)) { in GetSafeData() 147 return zipFile_.CreateFileMapper(relativePath, FileMapperType::SAFE_ABC); in GetSafeData() 152 std::string relativePath = GetRelativePath(fileName); in GetMmapData() local 153 return zipFile_.CreateFileMapper(relativePath, FileMapperType::SHARED_MMAP); in GetMmapData() 189 std::string relativePath = GetRelativePath(fileName); in ExtractToBufByName() local 190 return zipFile_.ExtractToBufByName(relativePath, dataPtr, len); in ExtractToBufByName() 195 std::string relativePath in GetFileInfo() local 239 std::string relativePath = GetRelativePath(fileName); IsHapCompress() local [all...] |
H A D | file_path_utils.cpp | 457 std::string relativePath = std::regex_replace(srcPath, srcPattern, ""); in GetRelativePath() local 458 if (relativePath.find(Constants::FILE_SEPARATOR) == 0) { in GetRelativePath() 459 relativePath = relativePath.substr(1); in GetRelativePath() 460 relativePath = relativePath.substr(relativePath.find(std::string(Constants::FILE_SEPARATOR)) + 1); in GetRelativePath() 462 return relativePath; in GetRelativePath()
|
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/ |
H A D | file_transfer_manager.cpp | 76 auto [physicalPath, relativePath] = UriToPath(uri, userId); in HandleDownloadFileRequest() 78 if (!relativePath.empty()) { in HandleDownloadFileRequest() 79 auto result = sessionManager_->SendFile(senderNetworkId, {physicalPath}, {relativePath}); in HandleDownloadFileRequest() 81 LOGE("send file failed, relativePath:%{public}s, ret:%{public}d", in HandleDownloadFileRequest() 82 GetAnonyString(relativePath).c_str(), result); in HandleDownloadFileRequest() 208 std::string relativePath; in UriToPath() local 214 relativePath = physicalPath.substr(fileDirPos); in UriToPath() 216 return {physicalPath, relativePath}; in UriToPath() 222 auto [physicalPath, relativePath] = UriToPath(uri, userId, false); in AddTransTask() 223 TaskInfo info = {uri, relativePath, taskI in AddTransTask() 240 FinishTransTask(const std::string &relativePath, int result) FinishTransTask() argument [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_dir_operations.cpp | 65 string relativePath; in CreateDirOperation() local 66 valueObject.GetString(relativePath); in CreateDirOperation() 67 if (relativePath.empty()) { in CreateDirOperation() 72 values.PutString(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in CreateDirOperation()
|
H A D | medialibrary_object_utils.cpp | 187 void GetRelativePathFromValues(ValuesBucket &values, string &relativePath, int32_t mediaType) in GetRelativePathFromValues() argument 191 valueObject.GetString(relativePath); in GetRelativePathFromValues() 199 relativePath = albumAsset->GetRelativePath() + albumAsset->GetDisplayName() + SLASH_CHAR; in GetRelativePathFromValues() 202 MediaLibraryObjectUtils::GetDefaultRelativePath(mediaType, relativePath); in GetRelativePathFromValues() 209 string relativePath; in BuildFileAsset() local 230 GetRelativePathFromValues(values, relativePath, mediaType); in BuildFileAsset() 231 if (!relativePath.empty()) { in BuildFileAsset() 232 values.PutString(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in BuildFileAsset() 233 path = ROOT_MEDIA_DIR + relativePath + displayName; in BuildFileAsset() 234 fileAsset.SetRelativePath(relativePath); in BuildFileAsset() 353 string relativePath; SetDirValuesByPath() local 1065 GetDefaultRelativePath(const int32_t mediaType, string &relativePath) GetDefaultRelativePath() argument 1083 string relativePath; GetRelativePathFromFilePath() local 1439 CopyAsset(const shared_ptr<FileAsset> &srcFileAsset, const string &relativePath) CopyAsset() argument 1506 GetFileResult(shared_ptr<NativeRdb::ResultSet> &resultSet, int count, const string &relativePath, const string &displayName) GetFileResult() argument 1528 CopyDir(const shared_ptr<FileAsset> &srcDirAsset, const string &relativePath) CopyDir() argument 1582 string relativePath; GetRelativePathFromPath() local 1595 string relativePath = GetRelativePathFromPath(destFilePath); CheckDirExtension() local 1600 GetRootDirAssetByRelativePath(const string &relativePath, DirAsset &dirAsset) GetRootDirAssetByRelativePath() argument 1623 CheckDirExtension(const string &relativePath, const string &displayName) CheckDirExtension() argument [all...] |
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_effect_server.cpp | 51 static bool LoadLibrary(const std::string &relativePath, std::shared_ptr<AudioEffectLibEntry> &libEntry) noexcept 55 if (!ResolveLibrary(relativePath, absolutePath)) { 57 relativePath.c_str()); 63 AUDIO_ERR_LOG("<log error> dlopen lib %{public}s Fail", relativePath.c_str()); 66 AUDIO_INFO_LOG("<log info> dlopen lib %{public}s successful", relativePath.c_str()); 79 AUDIO_INFO_LOG("<log info> dlsym lib %{public}s successful", relativePath.c_str());
|
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/include/ |
H A D | file_access_extension_info.h | 102 std::string relativePath { "" }; 110 FileInfo(std::string uri, std::string relativePath, std::string fileName, int32_t mode, std::string mimeType) in FileInfo() 111 : uri(uri), relativePath(relativePath), fileName(fileName), mode(mode), mimeType(mimeType) in FileInfo() 117 relativePath = parcel.ReadString(); in ReadFromParcel() 131 if (!parcel.WriteString(relativePath)) { 171 std::string relativePath { "" }; 179 relativePath = parcel.ReadString(); in ReadFromParcel() 193 if (!parcel.WriteString(relativePath)) {
|
/foundation/filemanagement/dfs_service/utils/system/src/ |
H A D | dfsu_mount_argument_descriptors.cpp | 104 MountArgument DfsuMountArgumentDescriptors::Alpha(int userId, string relativePath) in Alpha() argument 114 .relativePath_ = relativePath, in Alpha() 117 if (relativePath == "non_account") { in Alpha()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_object_test/src/ |
H A D | medialibrary_object_test.cpp | 342 string relativePath = ""; in HWTEST_F() local 343 int32_t ret = MediaLibraryObjectUtils::CopyAsset(srcFileAsset, relativePath); in HWTEST_F() 345 relativePath = "medialib_CopyAsset_test_001"; in HWTEST_F() 346 shared_ptr<FileAsset> srcFileAssetPtr = MediaLibraryObjectUtils::GetFileAssetFromUri(relativePath); in HWTEST_F() 347 ret = MediaLibraryObjectUtils::CopyAsset(srcFileAssetPtr, relativePath); in HWTEST_F() 354 string relativePath = ""; 356 int32_t ret = MediaLibraryObjectUtils::CopyDir(srcDirAsset, relativePath); 358 relativePath = "medialib_CopyDir_test_001"; 362 relativePath = "/storage/cloud/files/"; 363 ret = MediaLibraryObjectUtils::CopyDir(srcDirAssetPtr, relativePath); 417 string relativePath = ""; HWTEST_F() local 575 string relativePath = "/storage/cloud/files/"; HWTEST_F() local [all...] |
/foundation/filemanagement/user_file_service/test/unittest/ |
H A D | medialibrary_file_access_test_info.cpp | 1169 * @tc.desc: convert the general directory relativePath to fileinfo for SUCCESS. 1182 string relativePath = ""; in HWTEST_F() local 1183 int result = fileAccessHelper->GetFileInfoFromRelativePath(relativePath, fileInfo); in HWTEST_F() 1186 relativePath = "Audios/"; in HWTEST_F() 1187 result = fileAccessHelper->GetFileInfoFromRelativePath(relativePath, fileInfo); in HWTEST_F() 1190 relativePath = "Camera/"; in HWTEST_F() 1191 result = fileAccessHelper->GetFileInfoFromRelativePath(relativePath, fileInfo); in HWTEST_F() 1194 relativePath = "Documents/"; in HWTEST_F() 1195 result = fileAccessHelper->GetFileInfoFromRelativePath(relativePath, fileInfo); in HWTEST_F() 1198 relativePath in HWTEST_F() 1232 string relativePath = "test/"; HWTEST_F() local 1270 string relativePath = "Download/"; HWTEST_F() local 1312 string relativePath = "Download/"; HWTEST_F() local 1357 string relativePath = "Download/"; HWTEST_F() local 1409 std::string relativePath = "Documents/"; HWTEST_F() local 1454 std::string relativePath = "Documents/Test/"; HWTEST_F() local 1501 std::string relativePath = "Documents/"; HWTEST_F() local 1646 std::string relativePath = "test/test.txt"; HWTEST_F() local [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner_db_test/src/ |
H A D | medialibrary_scanner_db_test.cpp | 135 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; in HWTEST_F() local 136 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); in HWTEST_F() 161 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; in HWTEST_F() local 162 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); in HWTEST_F() 210 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; in HWTEST_F() local 211 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); in HWTEST_F() 290 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; in HWTEST_F() local 291 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); in HWTEST_F() 317 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; in HWTEST_F() local 318 metadata.SetRelativePath(relativePath in HWTEST_F() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/create_delete_directory_test/src/ |
H A D | create_delete_directory_test.cpp | 57 static inline int32_t GetAlbumId(string &&relativePath) in GetAlbumId() argument 59 return MediaLibraryObjectUtils::GetIdByPathFromDb("/storage/cloud/files/" + relativePath); in GetAlbumId() 67 static int32_t CreateDir(string &&relativePath) in CreateDir() argument 71 valuesBucket.Put(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in CreateDir() 79 static int32_t DeleteDir(string &relativePath) in DeleteDir() argument 83 deleteValuesBucket.Put(MEDIA_DATA_DB_URI, relativePath); in DeleteDir() 97 string relativePath = "Pictures/" + testNum + "/"; in TrashDir() local 98 valuesBucket.Put(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in TrashDir() 106 relativePath.pop_back(); in TrashDir() 107 int32_t albumId = GetAlbumId("/storage/cloud/files/" + relativePath); in TrashDir() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/ |
H A D | backup_file_utils.h | 43 static std::string GetFullPathByPrefixType(PrefixType prefixType, const std::string &relativePath); 53 string relativePath = "", bool hasLowQualityImage = false); 69 static string ConvertLowQualityPath(int32_t sceneCode, const std::string &filePath, const string &relativePath); 71 string relativePath, bool hasLowQualityImage);
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | zip_writer.cpp | 92 bool AddFileEntryToZip(zipFile zip_file, FilePath &relativePath, FilePath &absolutePath, const OPTIONS &options) in AddFileEntryToZip() argument 98 if (!OpenNewFileEntry(zip_file, relativePath, false, lastModified, options)) { in AddFileEntryToZip() 188 FilePath &relativePath = relativePaths[i].first; in FlushEntriesIfNeeded() local 193 if (!AddFileEntryToZip(zipFile_, relativePath, absolutePath, options)) { in FlushEntriesIfNeeded() 200 if (!AddDirectoryEntryToZip(zipFile_, relativePath, last_modified, options)) { in FlushEntriesIfNeeded()
|
/foundation/filemanagement/storage_service/services/storage_daemon/include/user/ |
H A D | mount_manager.h | 86 int32_t MountDfsDocs(int32_t userId, const std::string &relativePath, 88 int32_t UMountDfsDocs(int32_t userId, const std::string &relativePath, 114 int32_t HmdfsMount(int32_t userId, std::string relativePath, bool mountCloudDisk = false); 115 int32_t HmdfsTwiceMount(int32_t userId, const std::string &relativePath); 116 int32_t HmdfsUMount(int32_t userId, std::string relativePath);
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplgetrealpath_fuzzer/ |
H A D | verifymanagerhostimplgetrealpath_fuzzer.cpp | 35 std::string relativePath; in DoSomethingInterestingWithMyAPI() local 37 impl.GetRealPath(bundleName, userId, relativePath); in DoSomethingInterestingWithMyAPI()
|
/foundation/multimedia/media_library/frameworks/services/media_file_extension/src/ |
H A D | media_file_extention_utils.cpp | 151 string relativePath = albumPath.substr(ROOT_MEDIA_DIR.size()) + SLASH_CHAR; in CreateFile() local 153 if (!CheckDestRelativePath(relativePath)) { in CreateFile() 160 valuesBucket.Put(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in CreateFile() 182 string relativePath; in Mkdir() local 186 CHECK_AND_RETURN_RET_LOG(MediaFileExtentionUtils::GetAlbumRelativePathFromDB(parentUriStr, relativePath), in Mkdir() 190 string dirPath = ROOT_MEDIA_DIR + relativePath + displayName; in Mkdir() 195 relativePath = relativePath + displayName + SLASH_CHAR; in Mkdir() 197 if (!CheckDestRelativePath(relativePath)) { in Mkdir() 202 valuesBucket.Put(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in Mkdir() 221 string relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); Delete() local 426 GetAlbumRelativePathFromDB(const string &selectUri, string &relativePath) GetAlbumRelativePathFromDB() argument 481 string relativePath; GetListFilePredicates() local 839 string relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); SetScanFileSelection() local 1100 GetFileInfoFromRelativePath(const string &relativePath, FileAccessFwk::FileInfo &fileInfo) GetFileInfoFromRelativePath() argument 1149 string relativePath = ""; GetRelativePathFromPath() local 1255 string relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); Rename() local 1448 string relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); Move() local 1481 GetUriByRelativePath(const string &relativePath, string &fileUriStr) GetUriByRelativePath() argument 1502 GetRelativePathByUri(const string &uriStr, string &relativePath) GetRelativePathByUri() argument [all...] |
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_spatial_channel_converter.cpp | 194 bool LibLoader::LoadLibrary(const std::string &relativePath) noexcept 198 bool ret = ResolveLibrary(relativePath, absolutePath); 200 relativePath.c_str()); 203 CHECK_AND_RETURN_RET_LOG(libHandle_, false, "<log error> dlopen lib %{public}s Fail", relativePath.c_str()); 204 AUDIO_INFO_LOG("<log info> dlopen lib %{public}s successful", relativePath.c_str()); 216 AUDIO_INFO_LOG("<log info> dlsym lib %{public}s successful", relativePath.c_str());
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | medialibrary_object_utils.h | 75 EXPORT static int32_t CopyAsset(const std::shared_ptr<FileAsset> &srcFileAsset, const std::string &relativePath); 76 EXPORT static int32_t CopyDir(const std::shared_ptr<FileAsset> &srcDirAsset, const std::string &relativePath); 77 EXPORT static NativeAlbumAsset GetDirAsset(const std::string &relativePath); 81 EXPORT static int32_t CheckDirExtension(const std::string &relativePath, const std::string &displayName); 83 EXPORT static void GetDefaultRelativePath(const int32_t mediaType, string &relativePath); 109 int count, const string &relativePath, const string &displayName);
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | daemon_execute.cpp | 183 std::string DaemonExecute::GetZipName(const std::string &relativePath) in GetZipName() argument 193 while (std::filesystem::exists(relativePath + zipName)) { in GetZipName() 248 std::string relativePath = fileList[0].substr(0, pos + assetObj->srcBundleName_.length()) + "/"; in HandleZip() local 249 sendFileName = relativePath + GetZipName(relativePath); in HandleZip() 250 int32_t ret = SoftBusHandlerAsset::GetInstance().CompressFile(fileList, relativePath, sendFileName); in HandleZip()
|
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/src/util/ |
H A D | path_util.cpp | 142 string relativePath = ""; in GetRelativePath() local 144 relativePath.append("../"); in GetRelativePath() 147 relativePath.append(path); in GetRelativePath() 149 return relativePath; in GetRelativePath()
|
/foundation/filemanagement/storage_service/services/storage_manager/client/ |
H A D | storage_manager_client.cpp | 196 int32_t StorageManagerClient::MountDfsDocs(int32_t userId, const std::string &relativePath, in MountDfsDocs() argument 205 return client->MountDfsDocs(userId, relativePath, networkId, deviceId); in MountDfsDocs() 208 int32_t StorageManagerClient::UMountDfsDocs(int32_t userId, const std::string &relativePath, in UMountDfsDocs() argument 217 return client->UMountDfsDocs(userId, relativePath, networkId, deviceId); in UMountDfsDocs()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_utils.cpp | 849 int32_t MediaFileUtils::CheckRelativePath(const std::string &relativePath) in CheckTitle() argument 851 if (relativePath.empty()) { in CheckTitle() 855 size_t firstPoint = (relativePath.front() == '/') ? 1 : 0; in CheckTitle() 858 lastPoint = relativePath.find_first_of('/', firstPoint); in CheckTitle() 860 lastPoint = relativePath.length(); in CheckTitle() 864 MEDIA_ERR_LOG("relativePath %{private}s is invalid", relativePath.c_str()); in CheckTitle() 867 string checkedDirName = relativePath.substr(firstPoint, len); in CheckTitle() 870 checkedDirName.c_str(), relativePath.c_str()); in CheckTitle() 873 if (lastPoint == relativePath in CheckTitle() 924 FormatRelativePath(string &relativePath) FormatRelativePath() argument 938 GetRootDirFromRelativePath(const string &relativePath, string &rootDir) GetRootDirFromRelativePath() argument 1596 string relativePath = path.substr(ROOT_MEDIA_DIR.size()); global() local 1613 string relativePath = path.substr(ROOT_MEDIA_DIR.size()); global() local 1719 AddDocsToRelativePath(const string &relativePath) global() argument 1728 RemoveDocsFromRelativePath(const string &relativePath) global() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_manager/include/client/ |
H A D | storage_manager_client.h | 50 static int32_t MountDfsDocs(int32_t userId, const std::string &relativePath, 52 static int32_t UMountDfsDocs(int32_t userId, const std::string &relativePath,
|