/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
H A D | api_test.cpp | 43 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 D | fence.cpp | 120 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 D | misc_daemon.cpp | 160 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 D | api_test.cpp | 61 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 D | sys_event_stat_test.cpp | 76 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 D | flowbufferadapter_fuzzer.cpp | 41 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 D | mock_ability_test.h | 60 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 D | README_zh.md | 96 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 D | README.md | 96 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 D | kernel-small-debug-trace.md | 50 假设需要新增对文件(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 D | fence.h | 33 int FenceMerge(const char* name, int fd1, int fd2);
|
/ohos5.0/foundation/graphic/graphic_surface/sync_fence/src/ |
H A D | sync_fence.cpp | 92 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 D | rs_ashmem_helper_test.cpp | 115 int fd1 = 0; variable 116 auto res = AshmemAllocator::CreateAshmemAllocatorWithFd(fd1, size1, mapType);
|
/ohos5.0/foundation/graphic/graphic_surface/interfaces/inner_api/utils/ |
H A D | sync_fence.h | 77 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 D | js-apis-application-formBindingData.md | 38 …son 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。 |
|
H A D | js-apis-app-form-formBindingData.md | 59 …json 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。|
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-trace.md | 50 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 D | tlogcat.c | 229 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 D | event_logger_catcher_test.cpp | 544 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 D | js-apis-application-formBindingData.md | 38 …ntifier and image file descriptor. The final format is {'formImages': {'key1': fd1, 'key2': fd2}}.|
|
H A D | js-apis-app-form-formBindingData.md | 59 …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 D | capi_nativechildprocess_development_guideline.md | 245 (void)strcpy(args.fdList.head->fdName, "fd1");
|
/ohos5.0/foundation/filemanagement/app_file_service/test/fuzztest/backupservicestub_fuzzer/ |
H A D | backupservicestub_fuzzer.cpp | 499 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 D | capi_nativechildprocess_development_guideline.md | 245 (void)strcpy(args.fdList.head->fdName, "fd1");
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-fileio.md | 738 let fd1 = fileio.openSync(filePath, 0o2002); 739 fileio.writeSync(fd1, 'hello world'); 748 let num = fileio.readSync(fd1, buf, option);
|