Home
last modified time | relevance | path

Searched refs:destUri (Results 1 - 25 of 47) sorted by relevance

12

/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_library_asset_manager_test/src/
H A Dmedia_library_asset_manager_test.cpp258 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; in HWTEST_F() local
259 ASSERT_NE(destUri, ""); in HWTEST_F()
261 MEDIA_INFO_LOG("createFile uri: %{public}s", destUri.c_str()); in HWTEST_F()
268 requestOptions, destUri.c_str(), callback); in HWTEST_F()
271 AppFileService::ModuleFileUri::FileUri destFileUri(destUri); in HWTEST_F()
306 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; in HWTEST_F() local
307 ASSERT_NE(destUri, ""); in HWTEST_F()
308 MEDIA_INFO_LOG("createFile uri: %{public}s", destUri.c_str()); in HWTEST_F()
316 requestOptions, destUri.c_str(), callback); in HWTEST_F()
319 AppFileService::ModuleFileUri::FileUri destFileUri(destUri); in HWTEST_F()
354 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
391 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
426 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
474 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
509 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
544 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
603 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/native/media_library_asset_manager/src/
H A Dmedia_asset_data_handler_capi.cpp26 const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode) in CapiMediaAssetDataHandler()
31 destUri_ = destUri; in CapiMediaAssetDataHandler()
36 ReturnDataType dataType, const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode) in CapiMediaAssetDataHandler()
41 destUri_ = destUri; in CapiMediaAssetDataHandler()
46 ReturnDataType dataType, const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode) in CapiMediaAssetDataHandler()
51 destUri_ = destUri; in CapiMediaAssetDataHandler()
25 CapiMediaAssetDataHandler(NativeOnDataPrepared dataHandler, ReturnDataType dataType, const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode) CapiMediaAssetDataHandler() argument
35 CapiMediaAssetDataHandler(OH_MediaLibrary_OnImageDataPrepared imageDataHandler, ReturnDataType dataType, const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode) CapiMediaAssetDataHandler() argument
45 CapiMediaAssetDataHandler(OH_MediaLibrary_OnMovingPhotoDataPrepared photoDataHandler, ReturnDataType dataType, const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode) CapiMediaAssetDataHandler() argument
H A Dmedia_asset_manager_impl.cpp119 const std::string &uri, const std::string &destUri, const MediaAssetDataHandlerPtr &handler) in CreateAssetHandler()
121 AssetHandler *assetHandler = new AssetHandler(photoId, requestId, uri, destUri, handler); in CreateAssetHandler()
229 asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
234 asyncContext->requestUri, asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
239 asyncContext->destUri, asyncContext->requestOptions.sourceMode); in InsertDataHandler()
244 asyncContext->requestUri, asyncContext->destUri, mediaAssetDataHandler); in InsertDataHandler()
392 const NativeRequestOptions &requestOptions, const char* destUri, const NativeOnDataPrepared &callback) in NativeRequestImage()
394 if (photoUri == nullptr || destUri == nullptr || callback == nullptr) { in NativeRequestImage()
404 asyncContext->destUri = std::string(destUri); in NativeRequestImage()
118 CreateAssetHandler(const std::string &photoId, const std::string &requestId, const std::string &uri, const std::string &destUri, const MediaAssetDataHandlerPtr &handler) CreateAssetHandler() argument
391 NativeRequestImage(const char* photoUri, const NativeRequestOptions &requestOptions, const char* destUri, const NativeOnDataPrepared &callback) NativeRequestImage() argument
434 NativeRequestVideo(const char* videoUri, const NativeRequestOptions &requestOptions, const char* destUri, const NativeOnDataPrepared &callback) NativeRequestVideo() argument
771 WriteFileToPath(const std::string &srcUri, const std::string &destUri, bool isSource) WriteFileToPath() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/moving_photo_test/src/
H A Dmoving_photo_test.cpp109 string destUri = ROOT_TEST_MEDIA_DIR + srcDisplayName; in HWTEST_F() local
110 EXPECT_NE(destUri, ""); in HWTEST_F()
111 MEDIA_INFO_LOG("createFile uri: %{public}s", destUri.c_str()); in HWTEST_F()
121 char* imageUri = strdup(destUri.c_str()); in HWTEST_F()
167 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; in HWTEST_F() local
168 EXPECT_NE(destUri, ""); in HWTEST_F()
169 MEDIA_INFO_LOG("createFile uri: %{public}s", destUri.c_str()); in HWTEST_F()
177 char* uri = strdup(destUri.c_str()); in HWTEST_F()
196 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; in HWTEST_F() local
197 EXPECT_NE(destUri, ""); in HWTEST_F()
279 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
H A Dmedia_asset_manager.h45 std::string destUri; member
59 std::string destUri; member
64 const std::string &destUri, const MediaAssetDataHandlerPtr &handler) in AssetHandler()
65 : photoId(photoId), requestId(requestId), requestUri(uri), destUri(destUri), dataHandler(handler) {} in AssetHandler()
90 const char* destUri, const NativeOnDataPrepared &callback) = 0;
H A Dmedia_asset_data_handler_capi.h128 const std::string &destUri, NativeSourceMode sourceMode);
130 const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode);
132 const std::string &uri, const std::string &destUri, NativeSourceMode sourceMode);
/foundation/filemanagement/user_file_service/test/unittest/
H A Dmedialibrary_file_access_test_basic.cpp1161 Uri destUri(""); in HWTEST_F()
1162 result = g_fah->Mkdir(g_newDirUri, "Copy_0000_dest", destUri); in HWTEST_F()
1166 result = g_fah->Copy(aFileUri, destUri, copyResult, false); in HWTEST_F()
1171 result = g_fah->Delete(destUri); in HWTEST_F()
1217 Uri destUri(""); in HWTEST_F()
1218 result = g_fah->Mkdir(g_newDirUri, "Copy_0001_dest", destUri); in HWTEST_F()
1222 result = g_fah->Copy(srcUri, destUri, copyResult, false); in HWTEST_F()
1227 result = g_fah->Delete(destUri); in HWTEST_F()
1263 Uri destUri(""); in HWTEST_F()
1264 result = g_fah->Mkdir(g_newDirUri, "Copy_0002_dest_false", destUri); in HWTEST_F()
[all...]
H A Djs_file_access_ext_ability_test.cpp1134 Uri destUri(""); in HWTEST_F()
1140 auto result = ability->Copy(sourceUri, destUri, copyResult, force); in HWTEST_F()
1165 Uri destUri(""); in HWTEST_F()
1175 auto result = ability->Copy(sourceUri, destUri, copyResult, force); in HWTEST_F()
1185 result = ability->Copy(sourceUri, destUri, copyResult, force); in HWTEST_F()
1195 result = ability->Copy(sourceUri, destUri, copyResult, force); in HWTEST_F()
1220 Uri destUri(""); in HWTEST_F()
1232 auto result = ability->Copy(sourceUri, destUri, copyResult, force); in HWTEST_F()
1257 Uri destUri(""); in HWTEST_F()
1272 auto result = ability->Copy(sourceUri, destUri, copyResul in HWTEST_F()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dcopy.h92 std::string destUri; member
107 return (srcUri == infos.srcUri && destUri == infos.destUri); in operator ==()
112 return destUri < infos.destUri; in operator <()
133 static void Copy(const char* srcUri, const char* destUri, sptr<CopyInfo> info);
146 const std::string& srcUri, const std::string& destUri, sptr<CopyInfo> info);
H A Dtranslistener.h40 static int32_t CopyFileFromSoftBus(const std::string& srcUri, const std::string& destUri,
51 const std::string &destUri,
H A Dtranslistener.cpp58 int32_t TransListener::CopyFileFromSoftBus(const std::string& srcUri, const std::string& destUri, in CopyFileFromSoftBus() argument
69 Uri uri(destUri); in CopyFileFromSoftBus()
73 auto ret = PrepareCopySession(srcUri, destUri, transListener, info, disSandboxPath); in CopyFileFromSoftBus()
111 const std::string &destUri, in PrepareCopySession()
140 auto ret = Storage::DistributedFile::DistributedFileDaemonManager::GetInstance().PrepareSession(srcUri, destUri, in PrepareCopySession()
110 PrepareCopySession(const std::string &srcUri, const std::string &destUri, TransListener* transListener, Storage::DistributedFile::HmdfsInfo &info, std::string &disSandboxPath) PrepareCopySession() argument
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/include/
H A Dfile_access_extension_info.h245 std::string destUri { "" };
250 Result(std::string sourceUri, std::string destUri, int32_t errCode, std::string errMsg) in Result()
251 : sourceUri(sourceUri), destUri(destUri), errCode(errCode), errMsg(errMsg) in Result()
257 destUri = parcel.ReadString(); in ReadFromParcel()
268 if (!parcel.WriteString(destUri)) {
H A Dfile_access_helper.h77 int Copy(Uri &sourceUri, Uri &destUri, std::vector<Result> &copyResult, bool force = false);
78 int CopyFile(Uri &sourceUri, Uri &destUri, const std::string &fileName, Uri &newFileUri);
109 int CopyOperation(Uri &sourceUri, Uri &destUri, std::vector<Result> &copyResult, bool force = false);
110 int CopyFileOperation(Uri &sourceUri, Uri &destUri, const std::string &fileName, Uri &newFileUri);
H A Difile_access_ext_base.h64 virtual int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<Result> &copyResult,
66 virtual int CopyFile(const Uri &sourceUri, const Uri &destUri, const std::string &fileName,
H A Dfile_access_ext_stub_impl.h42 int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<Result> &copyResult,
44 int CopyFile(const Uri &sourceUri, const Uri &destUri, const std::string &fileName,
H A Dfile_access_ext_proxy.h44 virtual int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<Result> &copyResult,
46 virtual int CopyFile(const Uri &sourceUri, const Uri &destUri, const std::string &fileName,
H A Dfile_access_ext_ability.h49 virtual int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<Result> &copyResult, bool force = false);
50 virtual int CopyFile(const Uri &sourceUri, const Uri &destUri, const std::string &fileName, Uri &newFileUri);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dcopy.h81 std::string destUri; member
98 return (srcUri == infos.srcUri && destUri == infos.destUri); in operator ==()
103 return destUri < infos.destUri; in operator <()
160 const std::string &srcUri, const std::string &destUri, NVal &listener, NVal copySignal);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_library_asset_helper_capi_test/src/
H A Dmedia_library_asset_helper_capi_test.cpp739 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; in HWTEST_F() local
740 EXPECT_NE(destUri, ""); in HWTEST_F()
741 MEDIA_INFO_LOG("createFile uri: %{public}s", destUri.c_str()); in HWTEST_F()
782 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; in HWTEST_F() local
783 EXPECT_NE(destUri, ""); in HWTEST_F()
784 MEDIA_INFO_LOG("createFile uri: %{public}s", destUri.c_str()); in HWTEST_F()
798 char* fileUri = strdup(destUri.c_str()); in HWTEST_F()
819 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; in HWTEST_F() local
820 EXPECT_NE(destUri, ""); in HWTEST_F()
821 MEDIA_INFO_LOG("createFile uri: %{public}s", destUri in HWTEST_F()
856 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
898 string destUri = ROOT_TEST_MEDIA_DIR + destDisplayName; HWTEST_F() local
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/copy_listener/
H A Dtrans_listener.h43 const std::string &destUri,
55 const std::string &destUri,
H A Dtrans_listener.cpp97 NError TransListener::CopyFileFromSoftBus(const std::string &srcUri, const std::string &destUri, in CopyFileFromSoftBus() argument
114 Uri uri(destUri); in CopyFileFromSoftBus()
118 auto ret = PrepareCopySession(srcUri, destUri, transListener, info, disSandboxPath); in CopyFileFromSoftBus()
149 const std::string &destUri, in PrepareCopySession()
178 auto ret = Storage::DistributedFile::DistributedFileDaemonManager::GetInstance().PrepareSession(srcUri, destUri, in PrepareCopySession()
148 PrepareCopySession(const std::string &srcUri, const std::string &destUri, TransListener* transListener, Storage::DistributedFile::HmdfsInfo &info, std::string &disSandboxPath) PrepareCopySession() argument
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/src/
H A Dfile_access_helper.cpp585 static int GetResult(const std::string &sourceUri, const std::string &destUri, int errCode, in GetResult() argument
588 Result tmpResult { sourceUri, destUri, errCode, errMsg }; in GetResult()
595 int FileAccessHelper::CopyOperation(Uri &sourceUri, Uri &destUri, std::vector<Result> &copyResult, bool force) in CopyOperation() argument
609 ret = proxy->Copy(sourceUri, destUri, copyResult, force); in CopyOperation()
624 int FileAccessHelper::CopyFileOperation(Uri &sourceUri, Uri &destUri, const std::string &fileName, Uri &newFileUri) in CopyFileOperation() argument
634 int ret = proxy->CopyFile(sourceUri, destUri, fileName, newFileUri); in CopyFileOperation()
642 int FileAccessHelper::Copy(Uri &sourceUri, Uri &destUri, std::vector<Result> &copyResult, bool force) in Copy() argument
651 if (!CheckUri(sourceUri) || !CheckUri(destUri)) { in Copy()
657 int ret = IsDirectory(destUri, isDir); in Copy()
668 ret = CopyOperation(sourceUri, destUri, copyResul in Copy()
672 CopyFile(Uri &sourceUri, Uri &destUri, const std::string &fileName, Uri &newFileUri) CopyFile() argument
[all...]
H A Dfile_access_ext_stub_impl.cpp98 int FileAccessExtStubImpl::Copy(const Uri &sourceUri, const Uri &destUri, std::vector<Result> &copyResult, in Copy() argument
107 int ret = extension_->Copy(sourceUri, destUri, copyResult, force); in Copy()
111 int FileAccessExtStubImpl::CopyFile(const Uri &sourceUri, const Uri &destUri, const std::string &fileName, in CopyFile() argument
120 int ret = extension_->CopyFile(sourceUri, destUri, fileName, newFileUri); in CopyFile()
/foundation/filemanagement/user_file_service/test/fuzztest/fileaccessextstub_fuzzer/
H A Dfileaccessextabilitymock.h38 int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<Result> &copyResult, bool force = false) override
40 int CopyFile(const Uri &sourceUri, const Uri &destUri, const std::string &fileName,
/foundation/filemanagement/user_file_service/test/unittest/mock/
H A Dfile_access_ext_ability_mock.h37 MOCK_METHOD4(Copy, int(const Uri &sourceUri, const Uri &destUri, std::vector<Result> &copyResult, bool force));
38 MOCK_METHOD4(CopyFile, int(const Uri &sourceUri, const Uri &destUri, const std::string &fileName, Uri &newFileUri));

Completed in 19 milliseconds

12