/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | file_asset.cpp | 43 FileAsset::FileAsset() in FileAsset() function in OHOS::Media::FileAsset 49 int32_t FileAsset::GetId() const in GetId() 54 void FileAsset::SetId(int32_t id) in SetId() 59 int32_t FileAsset::GetCount() const in GetCount() 129 int64_t FileAsset::GetSize() const in GetSize() 199 int32_t FileAsset::GetWidth() const in GetWidth() 299 bool FileAsset::IsFavorite() const in IsFavorite() 309 double FileAsset::GetLatitude() in GetLatitude() 319 double FileAsset::GetLongitude() in GetLongitude() 460 bool FileAsset::IsHidden() const in IsHidden() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_asset_test/src/ |
H A D | media_asset_test.cpp | 48 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 60 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 70 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 82 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 92 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 103 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 116 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 127 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 140 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 151 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/ |
H A D | fetch_result_test.cpp | 98 shared_ptr<FetchResult<FileAsset>> fetchResult = make_shared<FetchResult<FileAsset>>(); 108 …shared_ptr<FetchResult<FileAsset>> fetchResultTest = make_shared<FetchResult<FileAsset>>(datashare… 136 …shared_ptr<FetchResult<FileAsset>> fetchResult = make_shared<FetchResult<FileAsset>>(datashareResu… 167 auto result = make_shared<FetchResult<FileAsset>>(); 193 auto result = make_shared<FetchResult<FileAsset>>(); 224 auto result = make_shared<FetchResult<FileAsset>>(); 255 auto result = make_shared<FetchResult<FileAsset>>(); 286 auto result = make_shared<FetchResult<FileAsset>>(); 339 auto result = make_shared<FetchResult<FileAsset>>(); 357 auto result = make_shared<FetchResult<FileAsset>>(); [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-mediaLibrary.md | 44 | medialibrary | **function** FileAsset.isDirectory():Promise\<boolean\> | Deprecated | 46 | medialibrary | **function** FileAsset.commitModify(): Promise\<void\> | Deprecated | 48 | medialibrary | **function** FileAsset.open(mode: string): Promise\<number\> | Deprecated | 50 | medialibrary | **function** FileAsset.close(fd: number): Promise\<void\> | Deprecated | 57 | medialibrary | **function** FileAsset.isFavorite():Promise\<boolean\> | Deprecated | 59 | medialibrary | **function** FileAsset.trash(isTrash: boolean): Promise\<void\> | Deprecated … 61 | medialibrary | **function** FileAsset.isTrash():Promise\<boolean\> | Deprecated | 66 | medialibrary | **function** FetchFileResult.getFirstObject(): Promise\<FileAsset\> | Deprecate… 68 | medialibrary | **function** FetchFileResult.getNextObject(): Promise\<FileAsset\> | Deprecated… 70 | medialibrary | **function** FetchFileResult.getLastObject(): Promise\<FileAsset\> | Deprecated… [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_library_asset_helper_capi_test/src/ |
H A D | media_library_asset_helper_capi_test.cpp | 71 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 91 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 111 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 130 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 157 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 184 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 211 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 242 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 268 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); 296 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-multimedia.md | 65 …: AsyncCallback\<FileAsset>): void;<br>createAsset(mediaType: MediaType, displayName: string, rela… 97 …etAllObject(callback: AsyncCallback\<Array\<FileAsset>>): void;<br>getAllObject(): Promise\<Array\… 98 …ndex: number, callback: AsyncCallback\<FileAsset>): void;<br>getPositionObject(index: number): Pro… 99 …sult | getLastObject(callback: AsyncCallback\<FileAsset>): void;<br>getLastObject(): Promise\<Fi… 100 …sult | getNextObject(callback: AsyncCallback\<FileAsset>): void;<br>getNextObject(): Promise\<Fi… 101 …lt | getFirstObject(callback: AsyncCallback\<FileAsset>): void;<br>getFirstObject(): Promise\<Fi… 130 | ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback\<boolean>): vo… 131 | ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallbac… 132 | ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback\<boolean>):… 133 | ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncC… [all …]
|
H A D | js-apidiff-file-management.md | 65 …: AsyncCallback\<FileAsset>): void;<br>createAsset(mediaType: MediaType, displayName: string, rela… 96 …ndex: number, callback: AsyncCallback\<FileAsset>): void;<br>getPositionObject(index: number): Pro… 97 …sult | getLastObject(callback: AsyncCallback\<FileAsset>): void;<br>getLastObject(): Promise\<Fi… 98 …sult | getNextObject(callback: AsyncCallback\<FileAsset>): void;<br>getNextObject(): Promise\<Fi… 99 …lt | getFirstObject(callback: AsyncCallback\<FileAsset>): void;<br>getFirstObject(): Promise\<Fi… 135 | ohos.filemanagement.userfile_manager | FileAsset | isTrash(callback: AsyncCallback\<boole… 136 | ohos.filemanagement.userfile_manager | FileAsset | trash(isTrash: boolean, callback: Asyn… 137 | ohos.filemanagement.userfile_manager | FileAsset | isFavorite(callback: AsyncCallback\<bo… 138 | ohos.filemanagement.userfile_manager | FileAsset | favorite(isFavorite: boolean, callback… 139 | ohos.filemanagement.userfile_manager | FileAsset | getThumbnail(callback: AsyncCallback\<… [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-mediaLibrary.md | 28 | medialibrary | **function** FileAsset.open(mode: string): Promise\<number\> | 废弃 | 30 | medialibrary | **function** FileAsset.close(fd: number): Promise\<void\> | 废弃 | 35 | medialibrary | **function** FetchFileResult.getFirstObject(): Promise\<FileAsset\> | 废弃 | 37 | medialibrary | **function** FetchFileResult.getNextObject(): Promise\<FileAsset\> | 废弃 | 39 | medialibrary | **function** FetchFileResult.getLastObject(): Promise\<FileAsset\> | 废弃 | 50 | medialibrary | **interface** FileAsset | 废弃 | 250 | medialibrary | **function** FileAsset.isDirectory():Promise\<boolean\> | 废弃 | 252 | medialibrary | **function** FileAsset.commitModify(): Promise\<void\> | 废弃 | 259 | medialibrary | **function** FileAsset.isFavorite():Promise\<boolean\> | 废弃 | 261 | medialibrary | **function** FileAsset.trash(isTrash: boolean): Promise\<void\> | 废弃 | [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/ |
H A D | changelogs-mediaLibrary.md | 28 | medialibrary | **function** FileAsset.open(mode: string): Promise\<number\> | 废弃 | 30 | medialibrary | **function** FileAsset.close(fd: number): Promise\<void\> | 废弃 | 35 | medialibrary | **function** FetchFileResult.getFirstObject(): Promise\<FileAsset\> | 废弃 | 37 | medialibrary | **function** FetchFileResult.getNextObject(): Promise\<FileAsset\> | 废弃 | 39 | medialibrary | **function** FetchFileResult.getLastObject(): Promise\<FileAsset\> | 废弃 | 50 | medialibrary | **interface** FileAsset | 废弃 | 250 | medialibrary | **function** FileAsset.isDirectory():Promise\<boolean\> | 废弃 | 252 | medialibrary | **function** FileAsset.commitModify(): Promise\<void\> | 废弃 | 259 | medialibrary | **function** FileAsset.isFavorite():Promise\<boolean\> | 废弃 | 261 | medialibrary | **function** FileAsset.trash(isTrash: boolean): Promise\<void\> | 废弃 | [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-multimedia.md | 65 …: AsyncCallback\<FileAsset>): void;<br>createAsset(mediaType: MediaType, displayName: string, rela… 97 …etAllObject(callback: AsyncCallback\<Array\<FileAsset>>): void;<br>getAllObject(): Promise\<Array\… 98 …ndex: number, callback: AsyncCallback\<FileAsset>): void;<br>getPositionObject(index: number): Pro… 99 …sult | getLastObject(callback: AsyncCallback\<FileAsset>): void;<br>getLastObject(): Promise\<Fi… 100 …sult | getNextObject(callback: AsyncCallback\<FileAsset>): void;<br>getNextObject(): Promise\<Fi… 101 …lt | getFirstObject(callback: AsyncCallback\<FileAsset>): void;<br>getFirstObject(): Promise\<Fi… 130 | ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback\<boolean>): vo… 131 | ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallbac… 132 | ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback\<boolean>):… 133 | ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncC… [all …]
|
H A D | js-apidiff-file-management.md | 65 …: AsyncCallback\<FileAsset>): void;<br>createAsset(mediaType: MediaType, displayName: string, rela… 96 …ndex: number, callback: AsyncCallback\<FileAsset>): void;<br>getPositionObject(index: number): Pro… 97 …sult | getLastObject(callback: AsyncCallback\<FileAsset>): void;<br>getLastObject(): Promise\<Fi… 98 …sult | getNextObject(callback: AsyncCallback\<FileAsset>): void;<br>getNextObject(): Promise\<Fi… 99 …lt | getFirstObject(callback: AsyncCallback\<FileAsset>): void;<br>getFirstObject(): Promise\<Fi… 135 | ohos.filemanagement.userfile_manager | FileAsset | isTrash(callback: AsyncCallback\<boole… 136 | ohos.filemanagement.userfile_manager | FileAsset | trash(isTrash: boolean, callback: Asyn… 137 | ohos.filemanagement.userfile_manager | FileAsset | isFavorite(callback: AsyncCallback\<bo… 138 | ohos.filemanagement.userfile_manager | FileAsset | favorite(isFavorite: boolean, callback… 139 | ohos.filemanagement.userfile_manager | FileAsset | getThumbnail(callback: AsyncCallback\<… [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_unittest_utils/include/ |
H A D | medialibrary_unittest_utils.h | 60 static std::shared_ptr<FileAsset> GetRootAsset(const std::string &dir); 62 static bool GetFileAsset(const int fileId, std::shared_ptr<FileAsset> &fileAsset); 63 static bool CreateAlbum(std::string displayName, std::shared_ptr<FileAsset> parentAlbumAsset, 64 std::shared_ptr<FileAsset> &albumAsset); 65 static bool CreateFile(std::string displayName, std::shared_ptr<FileAsset> parentAlbumAsset, 66 std::shared_ptr<FileAsset> &fileAsset); 69 static void TrashFile(std::shared_ptr<FileAsset> &fileAsset); 70 static void RecoveryFile(std::shared_ptr<FileAsset> &fileAsset); 77 static inline std::unordered_map<std::string, std::shared_ptr<FileAsset>> rootDirAssetMap_;
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | medialibrary_asset_operations.h | 110 static std::shared_ptr<FileAsset> GetFileAssetFromDb(NativeRdb::AbsPredicates &predicates, 115 static std::shared_ptr<FileAsset> GetFileAssetByUri(const std::string &fileUri, bool isPhoto, 121 MediaLibraryCommand &cmd, const FileAsset &fileAsset); 128 EXPORT static int32_t SetAssetPathInCreate(FileAsset &fileAsset, 130 EXPORT static int32_t SetAssetPath(FileAsset &fileAsset, const std::string &extention, 134 …static int32_t UpdateFileName(MediaLibraryCommand &cmd, const std::shared_ptr<FileAsset> &fileAsse… 142 static int32_t OpenAsset(const std::shared_ptr<FileAsset> &fileAsset, const std::string &mode, 149 static void SendFavoriteNotify(MediaLibraryCommand &cmd, std::shared_ptr<FileAsset> &fileAsset, 160 EXPORT static std::string CreateExtUriForV10Asset(FileAsset &fileAsset); 178 static int32_t SetPendingTrue(const std::shared_ptr<FileAsset> &fileAsset); [all …]
|
H A D | medialibrary_photo_operations.h | 85 static int32_t DeletePhoto(const std::shared_ptr<FileAsset> &fileAsset, MediaLibraryApi api); 89 static void SolvePhotoAlbumInCreate(MediaLibraryCommand &cmd, FileAsset &fileAsset); 96 static int32_t CommitEditOpenExecute(const std::shared_ptr<FileAsset> &fileAsset); 97 static int32_t CommitEditInsertExecute(const std::shared_ptr<FileAsset> &fileAsset, 99 static int32_t DoRevertEdit(const std::shared_ptr<FileAsset> &fileAsset); 100 static int32_t RevertMovingPhotoVideo(const std::shared_ptr<FileAsset> &fileAsset, 113 …static int32_t AddFiltersExecute(MediaLibraryCommand& cmd, const std::shared_ptr<FileAsset>& fileA… 116 const std::shared_ptr<FileAsset> &fileAsset, const std::string &cachePath); 118 const std::shared_ptr<FileAsset> &fileAsset, const std::string &cachePath); 128 … static int32_t UpdateExif(MediaLibraryCommand &cmd, const std::shared_ptr<FileAsset> &fileAsset); [all …]
|
H A D | medialibrary_object_utils.h | 42 …static int32_t BuildFileAsset(MediaLibraryCommand &cmd, FileAsset &fileAsset, NativeAlbumAsset &di… 47 EXPORT static int32_t DeleteFileObj(const std::shared_ptr<FileAsset> &fileAsset); 48 static int32_t DeleteDirObj(const std::shared_ptr<FileAsset> &dirAsset); 60 …static std::unique_ptr<FileAsset> GetFileAssetByPredicates(const NativeRdb::AbsRdbPredicates &pred… 62 …static std::shared_ptr<FileAsset> GetFileAssetFromId(const std::string &id, const std::string &net… 63 EXPORT static std::shared_ptr<FileAsset> GetFileAssetFromUri(const std::string &uriStr); 75 …EXPORT static int32_t CopyAsset(const std::shared_ptr<FileAsset> &srcFileAsset, const std::string … 76 …EXPORT static int32_t CopyDir(const std::shared_ptr<FileAsset> &srcDirAsset, const std::string &re… 95 EXPORT static int32_t InsertFileInDb(MediaLibraryCommand &cmd, const FileAsset &fileAsset, 111 static int32_t DeleteInfoRecursively(const shared_ptr<FileAsset> &fileAsset);
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.6/ |
H A D | changelogs-mediaLibrary.md | 28 | medialibrary | **function** FileAsset.open(mode: string): Promise\<number\> | Deprecated | 30 | medialibrary | **function** FileAsset.close(fd: number): Promise\<void\> | Deprecated | 35 | medialibrary | **function** FetchFileResult.getFirstObject(): Promise\<FileAsset\> | Deprecate… 37 | medialibrary | **function** FetchFileResult.getNextObject(): Promise\<FileAsset\> | Deprecated… 39 | medialibrary | **function** FetchFileResult.getLastObject(): Promise\<FileAsset\> | Deprecated… 50 | medialibrary | **interface** FileAsset | Deprecated | 250 | medialibrary | **function** FileAsset.isDirectory():Promise\<boolean\> | Deprecated | 252 | medialibrary | **function** FileAsset.commitModify(): Promise\<void\> | Deprecated | 259 | medialibrary | **function** FileAsset.isFavorite():Promise\<boolean\> | Deprecated | 261 | medialibrary | **function** FileAsset.trash(isTrash: boolean): Promise\<void\> | Deprecated … [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/ |
H A D | js-apidiff-multimedia.md | 38 |废弃版本有变化|类名:FileAsset<br>废弃版本:N/A|类名:FileAsset<br>废弃版本:9<br>代替接口:ohos.file.picker |@ohos.multimed… 39 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:readonly id: number;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:readonl… 40 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:readonly uri: string;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:readon… 43 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:displayName: string;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:display… 44 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:title: string;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:title: string… 45 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:relativePath: string;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:relati… 46 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:readonly parent: number;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:rea… 47 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:readonly size: number;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:reado… 51 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:readonly artist: string;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:rea… 53 |废弃版本有变化|类名:FileAsset<br>方法 or 属性:readonly width: number;<br>废弃版本:N/A|类名:FileAsset<br>方法 or 属性:read… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-userFileManager-sys.md | 272 | Promise<[FileAsset](#fileasset)> | Promise对象,返回创建的图片和视频结果。 | 366 | Promise<[FileAsset](#fileasset)> | Promise对象,返回创建的图片和视频结果。 | 440 createAudioAsset(displayName: string): Promise<FileAsset>; 458 | Promise<[FileAsset](#fileasset)> | Promise对象,返回创建的音频资源结果。 | 1827 ## FileAsset section 1845 获取FileAsset成员参数。 1883 设置FileAsset成员参数。 3560 addPhotoAssets(assets: Array<FileAsset>): Promise<void>; 3674 removePhotoAssets(assets: Array<FileAsset>): Promise<void>; 3904 deletePhotoAssets(assets: Array<FileAsset>): Promise<void>; [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_fileext_test/src/ |
H A D | medialibrary_fileext_test.cpp | 46 shared_ptr<FileAsset> g_pictures = nullptr; 47 shared_ptr<FileAsset> g_camera = nullptr; 48 shared_ptr<FileAsset> g_videos = nullptr; 49 shared_ptr<FileAsset> g_audios = nullptr; 50 shared_ptr<FileAsset> g_documents = nullptr; 51 shared_ptr<FileAsset> g_download = nullptr; 177 shared_ptr<FileAsset> albumAsset = nullptr; 235 shared_ptr<FileAsset> albumAsset = nullptr; 258 shared_ptr<FileAsset> albumAsset = nullptr; 316 shared_ptr<FileAsset> fileAsset = nullptr; [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_datamanager_test/src/ |
H A D | medialibrary_datamanager_test.cpp | 459 shared_ptr<FileAsset> file1 = nullptr; 483 shared_ptr<FileAsset> file1 = nullptr; 650 shared_ptr<FileAsset> dir1 = nullptr; 683 shared_ptr<FileAsset> dir1 = nullptr; 717 shared_ptr<FileAsset> dir1 = nullptr; 751 shared_ptr<FileAsset> dir1 = nullptr; 755 shared_ptr<FileAsset> dir2 = nullptr; 789 shared_ptr<FileAsset> dir1 = nullptr; 793 shared_ptr<FileAsset> dir2 = nullptr; 961 shared_ptr<FileAsset> file = nullptr; [all …]
|
/ohos5.0/foundation/multimedia/media_library/interfaces/kits/js/include/sendable/ |
H A D | sendable_fetch_file_result_napi.h | 37 std::shared_ptr<FetchResult<FileAsset>> fetchFileResult_ = nullptr; 51 …static napi_value CreateFetchFileResult(napi_env env, std::unique_ptr<FetchResult<FileAsset>> file… 55 std::shared_ptr<FetchResult<FileAsset>> GetFetchFileResultObject(); 60 std::shared_ptr<FetchResult<FileAsset>> GetFetchFileResult() const; 63 …static void SolveConstructorRef(unique_ptr<FetchResult<FileAsset>> &fileResult, napi_ref &construc… 85 static inline thread_local std::unique_ptr<FetchResult<FileAsset>> sFetchFileResult_ = nullptr; 101 std::unique_ptr<FileAsset> fileAsset; 105 std::vector<std::unique_ptr<FileAsset>> fileAssetArray;
|
/ohos5.0/foundation/multimedia/media_library/interfaces/kits/js/include/ |
H A D | fetch_file_result_napi.h | 38 std::shared_ptr<FetchResult<FileAsset>> fetchFileResult_ = nullptr; 54 …static napi_value CreateFetchFileResult(napi_env env, std::unique_ptr<FetchResult<FileAsset>> file… 58 std::shared_ptr<FetchResult<FileAsset>> GetFetchFileResultObject(); 63 std::shared_ptr<FetchResult<FileAsset>> GetFetchFileResult() const; 66 …static void SolveConstructorRef(unique_ptr<FetchResult<FileAsset>> &fileResult, napi_ref &construc… 90 static inline thread_local std::unique_ptr<FetchResult<FileAsset>> sFetchFileResult_ = nullptr; 106 std::unique_ptr<FileAsset> fileAsset; 110 std::vector<std::unique_ptr<FileAsset>> fileAssetArray;
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_unittest_utils/src/ |
H A D | medialibrary_unittest_utils.cpp | 91 shared_ptr<FileAsset> dirAsset = nullptr; in InitRootDirs() 130 shared_ptr<FileAsset> MediaLibraryUnitTestUtils::GetRootAsset(const string &dir) in GetRootAsset() 145 bool MediaLibraryUnitTestUtils::GetFileAsset(const int fileId, shared_ptr<FileAsset> &fileAsset) in GetFileAsset() 164 …shared_ptr<FetchResult<FileAsset>> fetchFileResult = make_unique<FetchResult<FileAsset>>(move(resu… in GetFileAsset() 178 bool MediaLibraryUnitTestUtils::CreateAlbum(string displayName, shared_ptr<FileAsset> parentAlbumAs… in CreateAlbum() 179 shared_ptr<FileAsset> &albumAsset) in CreateAlbum() 209 bool MediaLibraryUnitTestUtils::CreateFile(string displayName, shared_ptr<FileAsset> parentAlbumAss… in CreateFile() 210 shared_ptr<FileAsset> &fileAsset) in CreateFile() 276 void MediaLibraryUnitTestUtils::TrashFile(shared_ptr<FileAsset> &fileAsset) in TrashFile() 288 void MediaLibraryUnitTestUtils::RecoveryFile(shared_ptr<FileAsset> &fileAsset) in RecoveryFile()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.2/ |
H A D | changelogs-mediaLibrary.md | 18 …, displayName: string, relativePath: string, callback: AsyncCallback<FileAsset>): void| 接口兼容… 19 …Type: MediaType, displayName: string, relativePath: string): Promise<FileAsset>| 接口兼容性变更 … 22 | medialibrary | **function** FileAsset.commitModify(callback: AsyncCallback<void>): void … 23 | medialibrary | **function** FileAsset.commitModify(): Promise<void> | 接口兼容性变更 | 24 | medialibrary | **function** FileAsset.deleteAsset(uri: string, callback: AsyncCallback<void… 25 | medialibrary | **function** FileAsset.deleteAsset(uri: string): Promise<void> | 接口兼容性变更 … 147 **FileAsset.commitModify接口获取相册兼容性影响:** 151 **FileAsset.deleteAsset接口删除媒体文件资源兼容性影响:** 158 2. 然后调用[FileAsset.trash](../../../application-dev/reference/apis/js-apis-medialibrary.md#trash8)接口将…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-multimedia.md | 48 …etAllObject(callback: AsyncCallback\<Array\<FileAsset>>): void;<br>getAllObject(): Promise\<Array\… 50 …Result | getLastObject(callback: AsyncCallback\<FileAsset>): void;<br>getLastObject(): Promise\<Fi… 51 …Result | getNextObject(callback: AsyncCallback\<FileAsset>): void;<br>getNextObject(): Promise\<Fi… 52 …sult | getFirstObject(callback: AsyncCallback\<FileAsset>): void;<br>getFirstObject(): Promise\<Fi… 94 | ohos.multimedia.mediaLibrary | FileAsset | orientation: number; | 新增 | 102 | ohos.multimedia.mediaLibrary | FileAsset | readonly size: number; | 新增 | 104 | ohos.multimedia.mediaLibrary | FileAsset | relativePath: string; | 新增 | 105 | ohos.multimedia.mediaLibrary | FileAsset | title: string; | 新增 | 106 | ohos.multimedia.mediaLibrary | FileAsset | displayName: string; | 新增 | 109 | ohos.multimedia.mediaLibrary | FileAsset | readonly uri: string; | 新增 | [all …]
|