Home
last modified time | relevance | path

Searched refs:dstFd (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/multimedia/player_framework/frameworks/native/transcoder/test/unittest/src/
H A Dtranscoder_unit_test.cpp85 close(dstFd);
119 close(dstFd);
154 close(dstFd);
191 close(dstFd);
222 close(dstFd);
255 close(dstFd);
299 close(dstFd);
345 close(dstFd);
392 close(dstFd);
441 close(dstFd);
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Ddup.cpp44 int dstFd = dup(srcFd); in Sync() local
45 if (dstFd < 0) { in Sync()
57 string path = "/proc/self/fd/" + to_string(dstFd); in Sync()
64 …return CommonFunc::InstantiateFile(env, dstFd, string(static_cast<const char *>(readlink_req->ptr)… in Sync()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/deferred_processing/
H A Ddeferred_video_proc_adapter.cpp85 void DeferredVideoProcessingAdapter::AddVideo(const std::string &videoId, int srcFd, int dstFd) in AddVideo() argument
97 if (dstFd < 0) { in AddVideo()
98 MEDIA_ERR_LOG("AddVideo dstFd is %{public}d", dstFd); in AddVideo()
103 auto dst = sptr<IPCFileDescriptor>::MakeSptr(dstFd); in AddVideo()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/
H A Dcamera_deferred_video_unittest.cpp138 sptr<IPCFileDescriptor> dstFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_TEMP); variable
139 session_->AddVideo(videoId, srcFd, dstFd);
157 sptr<IPCFileDescriptor> dstFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_TEMP); variable
158 session_->AddVideo(videoId, srcFd, dstFd);
176 sptr<IPCFileDescriptor> dstFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_TEMP); variable
177 session_->AddVideo(videoId, srcFd, dstFd);
204 sptr<IPCFileDescriptor> dstFd = sptr<IPCFileDescriptor>::MakeSptr(VIDEO_REQUEST_FD_TEMP); variable
205 session_->AddVideo(videoId, srcFd, dstFd);
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/session/video_session/
H A Ddeferred_video_processing_session.h28 VideoInfo(const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in VideoInfo() argument
29 : srcFd_(srcFd), dstFd_(dstFd) in VideoInfo()
48 const sptr<IPCFileDescriptor>& dstFd) override;
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/server/src/
H A Ddeferred_video_processing_session_stub.cpp54 sptr<IPCFileDescriptor> dstFd(data.ReadParcelable<IPCFileDescriptor>()); in OnRemoteRequest() local
56 if (!dstFd) { in OnRemoteRequest()
59 ErrCode errCode = AddVideo(videoId, srcFd, dstFd); in OnRemoteRequest()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_video_capture_manager.cpp81 int dstFd = open(tempPath.c_str(), O_CREAT|O_WRONLY|O_TRUNC, fileMode); in AddVideoInternal() local
82 if (dstFd < 0) { in AddVideoInternal()
83 MEDIA_ERR_LOG("open file fail, dstFd = %{public}d, errno:%{public}d", dstFd, errno); in AddVideoInternal()
88 deferredProcSession_->AddVideo(videoId, srcFd, dstFd); in AddVideoInternal()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/video_job_repository/
H A Ddeferred_video_job.cpp39 const sptr<IPCFileDescriptor>& dstFd) in DeferredVideoJob() argument
42 dstFd_(dstFd), in DeferredVideoJob()
H A Dvideo_job_repository.cpp34 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in AddVideoJob() argument
40 DeferredVideoJobPtr jobPtr = std::make_shared<DeferredVideoJob>(videoId, srcFd, dstFd); in AddVideoJob()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/command/
H A Dvideo_command.cpp50 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in AddVideoCommand() argument
51 : VideoCommand(userId, videoId), srcFd_(srcFd), dstFd_(dstFd) in AddVideoCommand()
/ohos5.0/base/startup/init/services/init/
H A Dinit_common_cmds.c262 int dstFd = -1; in DoCopy() local
287 dstFd = open(realPath2, O_WRONLY | O_TRUNC | O_CREAT, mode); in DoCopy()
289 dstFd = open(ctx->argv[1], O_WRONLY | O_TRUNC | O_CREAT, mode); in DoCopy()
291 if (dstFd < 0) { in DoCopy()
297 int rtLen = write(dstFd, buf, rdLen); in DoCopy()
303 fsync(dstFd); in DoCopy()
306 INIT_CHECK(dstFd < 0, close(dstFd)); in DoCopy()
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Dringtone_dualfw_restore.cpp269 int32_t dstFd = open(absFilePath.c_str(), O_WRONLY | O_CREAT, MODE_RW_USR); in DupToneFile() local
270 if (dstFd < 0) { in DupToneFile()
278 if (sendfile(dstFd, srcFd, nullptr, fst.st_size) <= 0) { in DupToneFile()
283 close(dstFd); in DupToneFile()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/video_session/
H A Ddeferred_video_processing_session.cpp60 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in AddVideo() argument
63 auto outFd = sptr<IPCFileDescriptor>::MakeSptr(dup(dstFd->GetFd())); in AddVideo()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/
H A Ddeferred_video_processor.cpp49 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd) in AddVideo() argument
52 repository_->AddVideoJob(videoId, srcFd, dstFd); in AddVideo()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/client/src/
H A Ddeferred_video_processing_session_proxy.cpp78 const sptr<IPCFileDescriptor>& dstFd) in AddVideo() argument
94 if (!data.WriteParcelable(dstFd)) { in AddVideo()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dfile_impl.cpp247 int dstFd = dup(fd); in Dup() local
248 if (dstFd < 0) { in Dup()
258 string path = "/proc/self/fd/" + to_string(dstFd); in Dup()
264 auto fdPrt = CreateUniquePtr<DistributedFS::FDGuard>(dstFd, false); in Dup()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/deferred_proc_session/
H A Ddeferred_video_proc_session.cpp100 const sptr<IPCFileDescriptor> dstFd) in AddVideo() argument
106 auto ret = remoteSession_->AddVideo(videoId, srcFd, dstFd); in AddVideo()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/base/include/
H A Dideferred_video_processing_session.h40 const sptr<IPCFileDescriptor>& dstFd) = 0;
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_randomaccessfile/
H A Drandomaccessfile_n_exporter.cpp424 auto dstFd = dup(rafEntity->fd.get()->GetFD()); in CreateStream() local
425 if (dstFd < 0) { in CreateStream()
432 string path = "/proc/self/fd/" + to_string(dstFd); in CreateStream()
437 close(dstFd); in CreateStream()
441 close(dstFd); in CreateStream()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/include/deferred_processing/
H A Ddeferred_video_proc_adapter.h40 void AddVideo(const std::string &videoId, int srcFd, int dstFd);
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/binder/client/include/
H A Ddeferred_video_processing_session_proxy.h44 const sptr<IPCFileDescriptor>& dstFd) override;
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/schedule/video_processor/
H A Ddeferred_video_processor.h34 const sptr<IPCFileDescriptor>& dstFd);
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/session/command/
H A Dvideo_command.h45 const sptr<IPCFileDescriptor>& srcFd, const sptr<IPCFileDescriptor>& dstFd);
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/schedule/video_processor/video_job_repository/
H A Dvideo_job_repository.h34 const sptr<IPCFileDescriptor>& dstFd);
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/deferred_proc_session/
H A Ddeferred_video_proc_session.h49 const sptr<IPCFileDescriptor> dstFd);

12