Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dapi_test.cpp43 int fd1; member in OHOS::Media::DemuxerApiNdkTest
62 fd1 = open(g_file1, O_RDONLY); in SetUp()
74 close(fd1); in TearDown()
75 fd1 = 0; in TearDown()
188 source = OH_AVSource_CreateWithFD(fd1, 0, size);
201 source = OH_AVSource_CreateWithFD(fd1, 0, 0);
243 source = OH_AVSource_CreateWithFD(fd1, 0, size);
266 source = OH_AVSource_CreateWithFD(fd1, 0, size);
294 source = OH_AVSource_CreateWithFD(fd1, 0, size);
311 source = OH_AVSource_CreateWithFD(fd1, 0, size);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/frameworks/fence/src/
H A Dfence.cpp120 int FenceMerge(const char* name, int fd1, int fd2) in FenceMerge() argument
129 if (fd1 >= 0 && fd2 < 0) { in FenceMerge()
130 sync_merge_data.fd2 = fd1; in FenceMerge()
131 result_code = ioctl(fd1, SYNC_IOC_MERGE, &sync_merge_data); in FenceMerge()
134 if (fd1 < 0 && fd2 >= 0) { in FenceMerge()
139 if (fd1 >= 0 && fd2 >= 0) { in FenceMerge()
141 result_code = ioctl(fd1, SYNC_IOC_MERGE, &sync_merge_data); in FenceMerge()
144 if (fd1 < 0 && fd2 < 0) { in FenceMerge()
/ohos5.0/base/startup/init/services/begetctl/
H A Dmisc_daemon.cpp160 int fd1 = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in WriteLogoToMisc() local
161 if (fd1 < 0) { in WriteLogoToMisc()
164 if (lseek(fd1, addrOffset * BLOCK_SZIE_1, SEEK_SET) < 0) { in WriteLogoToMisc()
166 close(fd1); in WriteLogoToMisc()
172 if (read(fd1, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogoToMisc()
174 close(fd1); in WriteLogoToMisc()
177 if (read(fd1, &size, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogoToMisc()
179 close(fd1); in WriteLogoToMisc()
183 close(fd1); in WriteLogoToMisc()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/
H A Dapi_test.cpp61 int fd1; member in __anon5f66f7170210::DemuxerInnerApiNdkTest
70 fd1 = open(g_file1, O_RDONLY); in SetUp()
81 close(fd1); in TearDown()
82 fd1 = 0; in TearDown()
149 source = AVSourceFactory::CreateWithFD(fd1, 0, size);
164 source = AVSourceFactory::CreateWithFD(fd1, 0, 0);
186 source = AVSourceFactory::CreateWithFD(fd1, 0, size);
200 source = AVSourceFactory::CreateWithFD(fd1, 0, size);
224 source = AVSourceFactory::CreateWithFD(fd1, 0, size);
247 source = AVSourceFactory::CreateWithFD(fd1, 0, size);
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/test/unittest/common/
H A Dsys_event_stat_test.cpp76 int fd1 = OpenTestFile("./fd1.txt"); variable
77 ASSERT_FALSE(fd1 == -1);
78 sysEventStat_.StatSummary(fd1);
79 close(fd1);
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/flowbufferadapter_fuzzer/
H A Dflowbufferadapter_fuzzer.cpp41 int fd1 = 1; in FlowBufferAdapterFuzzTest() local
43 flowbufferAdapter1->CreateAshmemWithFd(fd1, scriptLength1, PROT_READ); in FlowBufferAdapterFuzzTest()
45 close(fd1); in FlowBufferAdapterFuzzTest()
/ohos5.0/foundation/ability/ability_runtime/test/mock/frameworks_kits_test/DemoAbility/
H A Dmock_ability_test.h60 FILE* fd1 = fopen("/dataability_openfile_test.txt", "w+"); in OpenFile() local
61 if (fd1 == nullptr) { in OpenFile()
65 (void)fputs("123456", fd1); in OpenFile()
66 (void)fclose(fd1); in OpenFile()
/ohos5.0/commonlibrary/utils_lite/
H A DREADME_zh.md96 int fd1 = UtilsFileOpen(fileName, O_RDWR_FS, 0);
97 ret = UtilsFileSeek(fd1, 5, SEEK_SET_FS);
101 int readLen = UtilsFileRead(fd1, buf, 32);
102 ret = UtilsFileClose(fd1);
H A DREADME.md96 int fd1 = UtilsFileOpen(fileName, O_RDWR_FS, 0);
97 ret = UtilsFileSeek(fd1, 5, SEEK_SET_FS);
101 int readLen = UtilsFileRead(fd1, buf, 32);
102 ret = UtilsFileClose(fd1);
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-debug-trace.md50 假设需要新增对文件(fd1、fd2)读写操作的简易插桩,
52 在读fd1文件的适当位置插入:
53 LOS_TRACE_EASY(1, fd1, flag, size);
56 在写fd1文件的适当位置插入:
57 LOS_TRACE_EASY(2, fd1, flag, size);
/ohos5.0/foundation/graphic/graphic_2d/frameworks/fence/include/
H A Dfence.h33 int FenceMerge(const char* name, int fd1, int fd2);
/ohos5.0/foundation/graphic/graphic_surface/sync_fence/src/
H A Dsync_fence.cpp92 int32_t SyncFence::SyncMerge(const char *name, int32_t fd1, int32_t fd2, int32_t &newFenceFd) in SyncMerge() argument
101 int32_t retCode = ioctl(fd1, SYNC_IOC_MERGE, &syncMergeData); in SyncMerge()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_ashmem_helper_test.cpp115 int fd1 = 0; variable
116 auto res = AshmemAllocator::CreateAshmemAllocatorWithFd(fd1, size1, mapType);
/ohos5.0/foundation/graphic/graphic_surface/interfaces/inner_api/utils/
H A Dsync_fence.h77 static int32_t SyncMerge(const char *name, int32_t fd1, int32_t fd2, int32_t &newFenceFd);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-form-kit/
H A Djs-apis-application-formBindingData.md38 …son 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。 |
H A Djs-apis-app-form-formBindingData.md59 …json 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。|
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-trace.md50 Perform simple instrumentation for reading and writing files fd1 and fd2.
52 Insert the following to the position where the fd1 file is read:
53 LOS_TRACE_EASY(1, fd1, flag, size);
56 Insert the following to the position where the fd1 file is written:
57 LOS_TRACE_EASY(2, fd1, flag, size);
/ohos5.0/base/tee/tee_client/services/tlogcat/src/
H A Dtlogcat.c229 int32_t fd1 = open(logName, O_WRONLY); in LogFilesOpen() local
230 if (fd1 < 0) { in LogFilesOpen()
236 file = fdopen(fd1, "w"); in LogFilesOpen()
241 CloseFileFd(&fd1); in LogFilesOpen()
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/
H A Devent_logger_catcher_test.cpp544 auto fd1 = open("/data/test/peerTestFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); variable
545 if (fd1 < 0) {
550 peerBinderCatcher->BinderInfoParser(fin, fd1, 1, asyncPids);
/ohos5.0/docs/en/application-dev/reference/apis-form-kit/
H A Djs-apis-application-formBindingData.md38 …ntifier and image file descriptor. The final format is {'formImages': {'key1': fd1, 'key2': fd2}}.|
H A Djs-apis-app-form-formBindingData.md59 …ntifier and image file descriptor. The final format is {'formImages': {'key1': fd1, 'key2': fd2}}.|
/ohos5.0/docs/zh-cn/application-dev/application-models/
H A Dcapi_nativechildprocess_development_guideline.md245 (void)strcpy(args.fdList.head->fdName, "fd1");
/ohos5.0/foundation/filemanagement/app_file_service/test/fuzztest/backupservicestub_fuzzer/
H A Dbackupservicestub_fuzzer.cpp499 int fd1 = TypeCast<int>(data, &pos); in CmdAppIncrementalFileReadyFuzzTest() local
506 msg.WriteFileDescriptor(fd1); in CmdAppIncrementalFileReadyFuzzTest()
/ohos5.0/docs/en/application-dev/application-models/
H A Dcapi_nativechildprocess_development_guideline.md245 (void)strcpy(args.fdList.head->fdName, "fd1");
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Djs-apis-fileio.md738 let fd1 = fileio.openSync(filePath, 0o2002);
739 fileio.writeSync(fd1, 'hello world');
748 let num = fileio.readSync(fd1, buf, option);

12