Home
last modified time | relevance | path

Searched refs:whence (Results 1 - 25 of 33) sorted by relevance

12

/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dlseek.cpp42 auto [resGetThirdArg, whence] = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetLseekArg()
44 UniError(EINVAL).ThrowErr(env, "Invalid whence"); in GetLseekArg()
48 return { true, fd, offset, whence }; in GetLseekArg()
59 auto [resGetLseekArg, fd, offset, whence] = GetLseekArg(env, funcArg); in Sync()
64 int ret = lseek(fd, offset, whence); in Sync()
81 auto [resGetLseekArg, fd, offset, whence] = GetLseekArg(env, funcArg); in Async()
87 auto cbExec = [fd = fd, offset = offset, whence = whence, arg](napi_env env) -> UniError { in Async()
88 int ret = lseek(fd, offset, whence); in Async()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dlseek.cpp51 SeekPos whence = SeekPos::START; in Sync() local
55 HILOGE("Invalid whence from JS third argument"); in Sync()
59 whence = static_cast<SeekPos>(pos); in Sync()
62 int64_t ret = ::Lseek(fd, offset, whence); in Sync()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dlseek.cpp37 SeekPos whence = static_cast<SeekPos>(pos); in Lseek() local
39 int64_t seekRet = ::Lseek(fd, offset, whence); in Lseek()
H A Dfile_fs_ffi.h81 FFI_EXPORT RetDataI64 FfiOHOSFileFsLseek(int32_t fd, int64_t offset, int whence);
/foundation/filemanagement/app_file_service/tests/mock/library_func_mock/
H A Dlibrary_func_mock.cpp19 int fseeko(FILE *stream, off_t offset, int whence) in fseeko() argument
24 return LibraryFunc::libraryFunc_->fseeko(stream, offset, whence); in fseeko()
H A Dlibrary_func_mock.h32 virtual int fseeko(FILE *stream, off_t offset, int whence) = 0;
42 MOCK_METHOD3(fseeko, int(FILE *stream, off_t offset, int whence));
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/
H A Dsystem_function_mock.cpp35 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
37 return Assistant::ins->lseek(fd, offset, whence); in lseek()
/foundation/multimedia/av_codec/services/media_engine/modules/muxer/
H A Ddata_sink_file.cpp70 int64_t DataSinkFile::Seek(int64_t offset, int whence) in Seek() argument
72 switch (whence) { in Seek()
H A Ddata_sink_fd.cpp75 int64_t DataSinkFd::Seek(int64_t offset, int whence) in Seek() argument
77 switch (whence) { in Seek()
H A Ddata_sink_file.h33 int64_t Seek(int64_t offset, int whence) override;
H A Ddata_sink_fd.h32 int64_t Seek(int64_t offset, int whence) override;
/foundation/multimedia/av_codec/interfaces/plugin/
H A Ddata_sink.h28 virtual int64_t Seek(int64_t offset, int whence) = 0;
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp543 int64_t FFmpegMuxerPlugin::IoSeek(void* opaque, int64_t offset, int whence) in IoSeek() argument
547 switch (whence) { in IoSeek()
551 MEDIA_LOG_I("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG_U64, in IoSeek()
552 whence, offset, newPos); in IoSeek()
556 MEDIA_LOG_I("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG_U64, in IoSeek()
557 whence, offset, newPos); in IoSeek()
562 MEDIA_LOG_I("AVSeek seek end whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64, whence, offset); in IoSeek()
565 MEDIA_LOG_E("AVSeek unexpected whence: " PUBLIC_LOG_D32, whence); in IoSeek()
[all...]
H A Dffmpeg_muxer_plugin.h82 static int64_t IoSeek(void* opaque, int64_t offset, int whence);
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_demuxer_plugin.cpp571 int64_t FFmpegDemuxerPlugin::AVSeek(void* opaque, int64_t offset, int whence) // NOLINT: void* in AVSeek() argument
575 switch (whence) { in AVSeek()
579 MEDIA_LOG_DD("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG in AVSeek()
580 PRIu64, whence, offset, newPos); in AVSeek()
584 MEDIA_LOG_DD("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG in AVSeek()
585 PRIu64, whence, offset, newPos); in AVSeek()
592 MEDIA_LOG_I("AVSeek seek end whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64, in AVSeek()
593 whence, offset); in AVSeek()
598 MEDIA_LOG_E("AVSeek unexpected whence: " PUBLIC_LOG_D32, whence); in AVSeek()
[all...]
H A Dffmpeg_demuxer_plugin.h95 static int64_t AVSeek(void* opaque, int64_t offset, int whence); // NOLINT: void*
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Dfuse_operations.cpp343 void FuseOperations::Lseek(fuse_req_t req, fuse_ino_t ino, off_t off, int whence, in Lseek() argument
348 opsPtr->Lseek(req, ino, off, whence, fi); in Lseek()
357 inoPtr->ops->Lseek(req, ino, off, whence, fi); in Lseek()
H A Dfile_operations_base.cpp167 void FileOperationsBase::Lseek(fuse_req_t req, fuse_ino_t ino, off_t off, int whence, in Lseek() argument
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/include/cloud_disk/
H A Dfile_operations_cloud.h51 void Lseek(fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
H A Dfile_operations_base.h58 virtual void Lseek(fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
H A Dfuse_operations.h53 static void Lseek(fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/
H A Dfuse_operations_test.cpp1636 int whence = 0; in HWTEST_F() local
1639 fuseoperations_->Lseek(req, FUSE_ROOT_ID, off, whence, &fi); in HWTEST_F()
1662 int whence = 0; in HWTEST_F() local
1665 fuseoperations_->Lseek(req, 0, off, whence, &fi); in HWTEST_F()
1696 int whence = 0; in HWTEST_F() local
1699 fuseoperations_->Lseek(req, 0, off, whence, &fi); in HWTEST_F()
H A Dfile_operations_cloud_test.cpp2520 int whence = 0; in HWTEST_F() local
2525 fileOperationsCloud_->Lseek(req, ino, off, whence, &fi); in HWTEST_F()
2548 int whence = 0; in HWTEST_F() local
2554 fileOperationsCloud_->Lseek(req, ino, off, whence, &fi); in HWTEST_F()
2577 int whence = 0; in HWTEST_F() local
2583 fileOperationsCloud_->Lseek(req, ino, off, whence, &fi); in HWTEST_F()
2606 int whence = 0; in HWTEST_F() local
2613 fileOperationsCloud_->Lseek(req, ino, off, whence, &fi); in HWTEST_F()
2636 int whence = 0; in HWTEST_F() local
2643 fileOperationsCloud_->Lseek(req, ino, off, whence, in HWTEST_F()
[all...]
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.h77 static int64_t IoSeek(void *opaque, int64_t offset, int whence);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stream/
H A Dstream_n_exporter.cpp439 int whence = SEEK_SET; in Seek() local
443 HILOGE("Invalid whence from JS third argument"); in Seek()
447 whence = pos; in Seek()
451 int ret = fseek(fp.get(), static_cast<long>(offset), whence); in Seek()

Completed in 22 milliseconds

12