/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | extractor.cpp | 63 std::string relativePath = GetRelativePath(srcPath); in GetFileBuffer() local 64 if (!ExtractByName(relativePath, dest)) { in GetFileBuffer() 160 std::string relativePath = GetRelativePath(fileName); in GetData() local 166 std::string relativePath = GetRelativePath(fileName); in GetSafeData() local 176 std::string relativePath = GetRelativePath(fileName); in GetMmapData() local 213 std::string relativePath = GetRelativePath(fileName); in ExtractToBufByName() local 214 return zipFile_.ExtractToBufByName(relativePath, dataPtr, len); in ExtractToBufByName() 219 std::string relativePath = GetRelativePath(fileName); in GetFileInfo() local 221 if (!zipFile_.GetEntry(relativePath, zipEntry)) { in GetFileInfo() 263 std::string relativePath = GetRelativePath(fileName); in IsHapCompress() local [all …]
|
H A D | file_path_utils.cpp | 456 std::string relativePath = std::regex_replace(srcPath, srcPattern, ""); in GetRelativePath() local 457 if (relativePath.find(Constants::FILE_SEPARATOR) == 0) { in GetRelativePath() 458 relativePath = relativePath.substr(1); in GetRelativePath() 459 … relativePath = relativePath.substr(relativePath.find(std::string(Constants::FILE_SEPARATOR)) + 1); in GetRelativePath() 461 return relativePath; in GetRelativePath()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_event_test/src/ |
H A D | event_create_test.cpp | 62 int32_t CreateFileAsset(const string &relativePath, const string &displayName, const MediaType &med… in CreateFileAsset() argument 68 valuesBucket.Put(MEDIA_DATA_DB_RELATIVE_PATH, relativePath); in CreateFileAsset() 96 string relativePath = "Pictures/"; variable 99 int rowId = CreateFileAsset(relativePath, displayName, mediaType); 102 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); 113 string relativePath = ""; variable 116 auto retVal = CreateFileAsset(relativePath, displayName, mediaType); 124 string relativePath = "Pictures/"; variable 127 auto retVal = CreateFileAsset(relativePath, displayName, mediaType);
|
/ohos5.0/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() 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, taskId}; in AddTransTask() 240 void FileTransferManager::FinishTransTask(const std::string &relativePath, int result) in FinishTransTask() argument 244 if ((*iter).relativePath == relativePath) { in FinishTransTask() [all …]
|
/ohos5.0/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::strin… 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)) { in Marshalling() 171 std::string relativePath { "" }; 179 relativePath = parcel.ReadString(); in ReadFromParcel() 193 if (!parcel.WriteString(relativePath)) { in Marshalling()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_object_utils.cpp | 209 string relativePath; in BuildFileAsset() local 231 if (!relativePath.empty()) { in BuildFileAsset() 353 string relativePath; in SetDirValuesByPath() local 1082 string relativePath; in GetRelativePathFromFilePath() local 1088 relativePath = relativePath.substr(0, pos + 1); in GetRelativePathFromFilePath() 1090 return relativePath; in GetRelativePathFromFilePath() 1439 const string &relativePath) in CopyAsset() argument 1528 const string &relativePath) in CopyDir() argument 1581 string relativePath; in GetRelativePathFromPath() local 1601 auto pos = relativePath.find('/'); in GetRootDirAssetByRelativePath() [all …]
|
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()
|
/ohos5.0/foundation/filemanagement/user_file_service/test/unittest/ |
H A D | medialibrary_file_access_test_info.cpp | 1182 string relativePath = ""; variable 1186 relativePath = "Audios/"; 1190 relativePath = "Camera/"; 1194 relativePath = "Documents/"; 1198 relativePath = "Download"; 1202 relativePath = "Pictures"; 1206 relativePath = "Videos"; 1232 string relativePath = "test/"; variable 1236 relativePath = "/"; 1240 relativePath = "~!@#$%^&*()_"; [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_object_test/src/ |
H A D | medialibrary_object_test.cpp | 342 string relativePath = ""; variable 345 relativePath = "medialib_CopyAsset_test_001"; 347 ret = MediaLibraryObjectUtils::CopyAsset(srcFileAssetPtr, relativePath); 354 string relativePath = ""; variable 358 relativePath = "medialib_CopyDir_test_001"; 362 relativePath = "/storage/cloud/files/"; 363 ret = MediaLibraryObjectUtils::CopyDir(srcDirAssetPtr, relativePath); 417 string relativePath = ""; variable 422 relativePath = "medialib_CheckDirExtension_test_001"; 430 ret = MediaLibraryObjectUtils::CheckDirExtension(relativePath, name); [all …]
|
/ohos5.0/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> &libE… in LoadLibrary() argument 55 if (!ResolveLibrary(relativePath, absolutePath)) { in LoadLibrary() 57 relativePath.c_str()); in LoadLibrary() 63 AUDIO_ERR_LOG("<log error> dlopen lib %{public}s Fail", relativePath.c_str()); in LoadLibrary() 66 AUDIO_INFO_LOG("<log info> dlopen lib %{public}s successful", relativePath.c_str()); in LoadLibrary() 79 AUDIO_INFO_LOG("<log info> dlsym lib %{public}s successful", relativePath.c_str()); in LoadLibrary()
|
/ohos5.0/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()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_file_extension/src/ |
H A D | media_file_extention_utils.cpp | 153 if (!CheckDestRelativePath(relativePath)) { in CreateFile() 182 string relativePath; in Mkdir() local 195 relativePath = relativePath + displayName + SLASH_CHAR; in Mkdir() 197 if (!CheckDestRelativePath(relativePath)) { in Mkdir() 222 if (!CheckDestRelativePath(relativePath)) { in Delete() 481 string relativePath; in GetListFilePredicates() local 1102 if (relativePath.empty()) { in GetFileInfoFromRelativePath() 1149 string relativePath = ""; in GetRelativePathFromPath() local 1153 return relativePath; in GetRelativePathFromPath() 1256 if (!CheckDestRelativePath(relativePath)) { in Rename() [all …]
|
/ohos5.0/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; variable 136 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 161 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; variable 162 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 210 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; variable 211 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 290 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; variable 291 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 317 string relativePath = ScannerUtils::GetParentPath(albumPath) + SLASH_CHAR; variable 318 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length()));
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/ |
H A D | zip_writer.cpp | 118 std::string relativePath = item.second; // second:relativePath in FlushItems() local 120 relativePath.c_str(), absolutePath.c_str()); in FlushItems() 122 if (!AddFileEntryToZip(zipFile_, relativePath, absolutePath)) { in FlushItems() 231 bool ZipWriter::AddFileEntryToZip(zipFile zip_file, std::string &relativePath, std::string &absolut… in AddFileEntryToZip() argument 234 relativePath.c_str(), absolutePath.c_str()); in AddFileEntryToZip() 236 if (!OpenNewFileEntry(zip_file, relativePath)) { in AddFileEntryToZip()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | medialibrary_object_utils.h | 75 …int32_t CopyAsset(const std::shared_ptr<FileAsset> &srcFileAsset, const std::string &relativePath); 76 …ic 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 &displa… 83 EXPORT static void GetDefaultRelativePath(const int32_t mediaType, string &relativePath); 109 int count, const string &relativePath, const string &displayName);
|
/ohos5.0/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 OPTI… 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()
|
/ohos5.0/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()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_utils.cpp | 891 MEDIA_ERR_LOG("relativePath %{private}s is invalid", relativePath.c_str()); in CheckTitle() 951 void MediaFileUtils::FormatRelativePath(string &relativePath) in FormatRelativePath() argument 953 if (relativePath.empty()) { in FormatRelativePath() 956 string FormatRelativePath = relativePath; in FormatRelativePath() 957 if (relativePath.back() != '/') { in FormatRelativePath() 958 relativePath += '/'; in FormatRelativePath() 960 if (relativePath.front() == '/') { in FormatRelativePath() 961 relativePath = relativePath.substr(1); in FormatRelativePath() 967 rootDir = relativePath; in GetRootDirFromRelativePath() 968 if (relativePath.empty()) { in GetRootDirFromRelativePath() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_queryperf_test/src/ |
H A D | medialibrary_queryperf_test.cpp | 235 string relativePath; variable 254 relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); 284 string relativePath; variable 303 relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); 333 string relativePath; variable 352 relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); 463 string relativePath; variable 481 relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); 512 string relativePath; variable 530 relativePath = GetStringVal(MEDIA_DATA_DB_RELATIVE_PATH, result); [all …]
|
/ohos5.0/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 in LoadLibrary() argument 198 bool ret = ResolveLibrary(relativePath, absolutePath); in LoadLibrary() 200 relativePath.c_str()); in LoadLibrary() 203 …_RETURN_RET_LOG(libHandle_, false, "<log error> dlopen lib %{public}s Fail", relativePath.c_str()); in LoadLibrary() 204 AUDIO_INFO_LOG("<log info> dlopen lib %{public}s successful", relativePath.c_str()); in LoadLibrary() 216 AUDIO_INFO_LOG("<log info> dlsym lib %{public}s successful", relativePath.c_str()); in LoadLibrary()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.2/ |
H A D | changelogs-mediaLibrary.md | 18 … **function** createAsset(mediaType: MediaType, displayName: string, relativePath: string, callba… 19 … **function** createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promi… 89 由于API version 10的SDK上relativePath和相册没有关联关系,文件创建成功后,relativePath的最后一级目录不会作为相册呈现。 93 由于API version 10的SDK上relativePath和相册没有关联关系,在使用getAlbums时不支持relativePath作为查询条件,并且ALBUM_NAME参数只能使用"Ca…
|
/ohos5.0/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); 54 string relativePath = "", bool hasLowQualityImage = false); 68 … ConvertLowQualityPath(int32_t sceneCode, const std::string &filePath, const string &relativePath); 70 string relativePath, bool hasLowQualityImage);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/client/ |
H A D | storage_manager_client.cpp | 181 int32_t StorageManagerClient::MountDfsDocs(int32_t userId, const std::string &relativePath, in MountDfsDocs() argument 190 return client->MountDfsDocs(userId, relativePath, networkId, deviceId); in MountDfsDocs() 193 int32_t StorageManagerClient::UMountDfsDocs(int32_t userId, const std::string &relativePath, in UMountDfsDocs() argument 202 return client->UMountDfsDocs(userId, relativePath, networkId, deviceId); in UMountDfsDocs()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/client/test/ |
H A D | storage_daemon_client_test.cpp | 134 std::string relativePath = "account"; variable 137 int32_t ret = storageDaemonClient_->MountDfsDocs(userId, relativePath, networkId, deviceId); 155 std::string relativePath = "account"; variable 158 int32_t ret = storageDaemonClient_->UMountDfsDocs(userId, relativePath, networkId, deviceId);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | platform_specific.cpp | 235 static int GetFilePathAttr(const std::string &topPath, const std::string &relativePath, in GetFilePathAttr() argument 248 … LOGE("find first file %s %s relativePath %s", topPath.c_str(), file.name, relativePath.c_str()); in GetFilePathAttr() 259 fileAttr.fileName = relativePath + file.name; in GetFilePathAttr() 273 file.attrib, relativePath.c_str()); in GetFilePathAttr() 275 … errCode = GetFilePathAttr(fileAbsName, relativePath + file.name + "/", files, isNeedAllPath); in GetFilePathAttr() 531 static int GetFilePathAttr(const std::string &topPath, const std::string &relativePath, 558 file.fileName = relativePath + fileDirInfo->d_name; 572 …errCode = GetFilePathAttr(fileAbsName, relativePath + fileDirInfo->d_name + "/", files, isNeedAllP…
|